Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp2023742img; Wed, 27 Feb 2019 09:11:32 -0800 (PST) X-Google-Smtp-Source: AHgI3IbKb6emTpO6+DWGdXPkWeHuQlseNoU2WTAaUsCGEWH4Ji29f+7imyrKgHjdwqRdQKYVzLaa X-Received: by 2002:a17:902:505:: with SMTP id 5mr3212006plf.337.1551287492628; Wed, 27 Feb 2019 09:11:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551287492; cv=none; d=google.com; s=arc-20160816; b=KxMwqznsJgJdiNrcO1Arg+OwtsIR3WZEWK+fOpLJKpmXSmIl3ImzibGV6Idt7ezl5V Lpq7GdT8ab3pHqoceHrMrR5zNn2afoocZRyKiAPQmsxzJZt3qNRlZau5pKmdFmqhaaIv H79NQ3ADhbzRqZij2PkmT6ULXcTzeS5sZUfbvt83PPJHOOYR7PTqU8oZ+GNJFCs+s0yH cKTuyA+o+2+ugPjedNfeDnlyzMGW13Qdq6fnOj8hvXVPMl/IuBjy48GjQqI9OPCtIp3I IQPu4eJ6PFWQpc+tGywwIgLEU78ClThpE65Hmj7/r76t5dzMEHGl6kY2S+Gz6Ehs6e6o wvYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=oM9cZS/lHtdk47vkYK9PYvG9U6l+ctb4fui4NkIJKv4=; b=NSLzJwu3HneXi+5jQloay3FiUeN/3kodMl/AApkCRXmGHJzVHp9AgdRHFsMLBeFlGd pIIwPOD0NPiqz8aEfIqALoEMnjd7rOt5kQFHMxnUOazViatweoeDPMakSRtbHxKBC04M aTEvrD8rpoWpM6KqtDrOzPAOcCwdPIaCzvVaRYYmNRPJEBzIHpfJ7WNORl8VdbdG3gtR gtd6Miv/UScaG2yHqV0uRzhGf1g//XZveiSJWQVbYwrxAwYhzTG/EFBRHlv4rWlNxyG0 YdreLF+og+to0EnWwMiXnnxX57JioTLvtOqgch0gXW8t/IpcxJY9iLCsn38XibsRHgHe Ta3Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 128si16343878pfd.19.2019.02.27.09.11.16; Wed, 27 Feb 2019 09:11:32 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730143AbfB0RHB (ORCPT + 99 others); Wed, 27 Feb 2019 12:07:01 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:36000 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730115AbfB0RG6 (ORCPT ); Wed, 27 Feb 2019 12:06:58 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 6C7F3A78; Wed, 27 Feb 2019 09:06:58 -0800 (PST) Received: from e112269-lin.arm.com (e112269-lin.cambridge.arm.com [10.1.196.69]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BB5463F738; Wed, 27 Feb 2019 09:06:54 -0800 (PST) From: Steven Price To: linux-mm@kvack.org Cc: Steven Price , Andy Lutomirski , Ard Biesheuvel , Arnd Bergmann , Borislav Petkov , Catalin Marinas , Dave Hansen , Ingo Molnar , James Morse , =?UTF-8?q?J=C3=A9r=C3=B4me=20Glisse?= , Peter Zijlstra , Thomas Gleixner , Will Deacon , x86@kernel.org, "H. Peter Anvin" , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Mark Rutland , "Liang, Kan" , Tony Luck , Fenghua Yu , linux-ia64@vger.kernel.org Subject: [PATCH v3 08/34] ia64: mm: Add p?d_large() definitions Date: Wed, 27 Feb 2019 17:05:42 +0000 Message-Id: <20190227170608.27963-9-steven.price@arm.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190227170608.27963-1-steven.price@arm.com> References: <20190227170608.27963-1-steven.price@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org walk_page_range() is going to be allowed to walk page tables other than those of user space. For this it needs to know when it has reached a 'leaf' entry in the page tables. This information is provided by the p?d_large() functions/macros. For ia64 leaf entries are always at the lowest level, so implement stubs returning 0. CC: Tony Luck CC: Fenghua Yu CC: linux-ia64@vger.kernel.org Signed-off-by: Steven Price --- arch/ia64/include/asm/pgtable.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/ia64/include/asm/pgtable.h b/arch/ia64/include/asm/pgtable.h index b1e7468eb65a..84dda295391b 100644 --- a/arch/ia64/include/asm/pgtable.h +++ b/arch/ia64/include/asm/pgtable.h @@ -271,6 +271,7 @@ extern unsigned long VMALLOC_END; #define pmd_none(pmd) (!pmd_val(pmd)) #define pmd_bad(pmd) (!ia64_phys_addr_valid(pmd_val(pmd))) #define pmd_present(pmd) (pmd_val(pmd) != 0UL) +#define pmd_large(pmd) (0) #define pmd_clear(pmdp) (pmd_val(*(pmdp)) = 0UL) #define pmd_page_vaddr(pmd) ((unsigned long) __va(pmd_val(pmd) & _PFN_MASK)) #define pmd_page(pmd) virt_to_page((pmd_val(pmd) + PAGE_OFFSET)) @@ -278,6 +279,7 @@ extern unsigned long VMALLOC_END; #define pud_none(pud) (!pud_val(pud)) #define pud_bad(pud) (!ia64_phys_addr_valid(pud_val(pud))) #define pud_present(pud) (pud_val(pud) != 0UL) +#define pud_large(pud) (0) #define pud_clear(pudp) (pud_val(*(pudp)) = 0UL) #define pud_page_vaddr(pud) ((unsigned long) __va(pud_val(pud) & _PFN_MASK)) #define pud_page(pud) virt_to_page((pud_val(pud) + PAGE_OFFSET)) @@ -286,6 +288,7 @@ extern unsigned long VMALLOC_END; #define pgd_none(pgd) (!pgd_val(pgd)) #define pgd_bad(pgd) (!ia64_phys_addr_valid(pgd_val(pgd))) #define pgd_present(pgd) (pgd_val(pgd) != 0UL) +#define pgd_large(pgd) (0) #define pgd_clear(pgdp) (pgd_val(*(pgdp)) = 0UL) #define pgd_page_vaddr(pgd) ((unsigned long) __va(pgd_val(pgd) & _PFN_MASK)) #define pgd_page(pgd) virt_to_page((pgd_val(pgd) + PAGE_OFFSET)) -- 2.20.1