Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp2132770img; Wed, 27 Feb 2019 10:55:51 -0800 (PST) X-Google-Smtp-Source: AHgI3IZaOxu7iQoBy2vAFYVonfGqaOyi3OwW+QDWSNqSwrWdFwm5YQau07sBO9nybdGcuxC7flNs X-Received: by 2002:a17:902:166:: with SMTP id 93mr3711045plb.20.1551293751518; Wed, 27 Feb 2019 10:55:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551293751; cv=none; d=google.com; s=arc-20160816; b=jRLxj7spJP5cAf2LiyngIdnNwvtKtpwI+fQQAEPNYxPHkk7acXQVEeaRgAXFS3EL8n cm2IdqfS6Rbl04YTdr+O8+oq+DFMCbJfnBiHwhNHlA8gPwcSMFchbIOWUCoHaI+nkwTR 4/MC79e00WH24ovFeLnRkEpOS9umWLQL37D+DwDl8aJC8pzDX5KQvEXMt7KGKCn/FYq9 B3QnSYgyZ1bNMsIRJbFdVkrxAUOC45W0H4SncbsKagy0blNMm+YVbKMpTyzwECAi3I3e YOcTW8aAw3Odks7DqSSAzTd3a42t19/ataTqY3YIMX4E93ExLR63Iaa+usTviiBASj7s 4q1g== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:cc:to:subject; bh=neay3KzO/S4ugf+8x4cTPJN9LtmPH0IK8I8RVM9JxL8=; b=kEuGcWnbI5vEpn6wX3L0hr7N+A/pdwwSzCaHaL5kHgNFiBTkmy0tKGeDkx5rwh1Z5l +9ar8CY9Z3b468w7PUOuQh8Usx/ppoxmPabebSHTobk/C620T69ofcobOBJjB+DtzNUp Hl2Hi6FrXAQO3DgSfdqJgXOzhClurhvTvWoZr3vJxSPOzhBdQI7aQ9Q7cQDgNpYbv/jj xOqHVlI/NSnVq3ckTiq2Z+CyMGiUz8+v2AMXY8autx1q7gmSFXUF9btQvqIjgCirm0dg GOwlUiHaA53+ia2z2JNcGaRqq+48iILzdStbcrk8KZpPy6oHfCoxXXL2KIUTBFVzWdBh ADhw== 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 76si16447399pft.132.2019.02.27.10.55.35; Wed, 27 Feb 2019 10:55:51 -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 S1729136AbfB0SzO (ORCPT + 99 others); Wed, 27 Feb 2019 13:55:14 -0500 Received: from mout.gmx.net ([212.227.17.20]:59851 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726356AbfB0SzO (ORCPT ); Wed, 27 Feb 2019 13:55:14 -0500 Received: from [192.168.20.60] ([92.116.177.218]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MPlMc-1gu6XT2w54-0054hD; Wed, 27 Feb 2019 19:54:25 +0100 Subject: Re: [PATCH v3 15/34] parisc: mm: Add p?d_large() definitions To: Steven Price , linux-mm@kvack.org Cc: Andy Lutomirski , Ard Biesheuvel , Arnd Bergmann , Borislav Petkov , Catalin Marinas , Dave Hansen , Ingo Molnar , James Morse , =?UTF-8?B?SsOpcsO0bWUgR2xpc3Nl?= , 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" , "James E.J. Bottomley" , linux-parisc@vger.kernel.org References: <20190227170608.27963-1-steven.price@arm.com> <20190227170608.27963-16-steven.price@arm.com> From: Helge Deller Openpgp: preference=signencrypt Autocrypt: addr=deller@gmx.de; keydata= xsBNBFDPIPYBCAC6PdtagIE06GASPWQJtfXiIzvpBaaNbAGgmd3Iv7x+3g039EV7/zJ1do/a y9jNEDn29j0/jyd0A9zMzWEmNO4JRwkMd5Z0h6APvlm2D8XhI94r/8stwroXOQ8yBpBcP0yX +sqRm2UXgoYWL0KEGbL4XwzpDCCapt+kmarND12oFj30M1xhTjuFe0hkhyNHkLe8g6MC0xNg KW3x7B74Rk829TTAtj03KP7oA+dqsp5hPlt/hZO0Lr0kSAxf3kxtaNA7+Z0LLiBqZ1nUerBh OdiCasCF82vQ4/y8rUaKotXqdhGwD76YZry9AQ9p6ccqKaYEzWis078Wsj7p0UtHoYDbABEB AAHNHEhlbGdlIERlbGxlciA8ZGVsbGVyQGdteC5kZT7CwJIEEwECADwCGwMGCwkIBwMCBhUI AgkKCwQWAgMBAh4BAheAFiEE9M/0wAvkPPtRU6Boh8nBUbUeOGQFAlrHzIICGQEACgkQh8nB UbUeOGT1GAgAt+EeoHB4DbAx+pZoGbBYp6ZY8L6211n8fSi7wiwgM5VppucJ+C+wILoPkqiU +ZHKlcWRbttER2oBUvKOt0+yDfAGcoZwHS0P+iO3HtxR81h3bosOCwek+TofDXl+TH/WSQJa iaitof6iiPZLygzUmmW+aLSSeIAHBunpBetRpFiep1e5zujCglKagsW78Pq0DnzbWugGe26A 288JcK2W939bT1lZc22D9NhXXRHfX2QdDdrCQY7UsI6g/dAm1d2ldeFlGleqPMdaaQMcv5+E vDOur20qjTlenjnR/TFm9tA1zV+K7ePh+JfwKc6BSbELK4EHv8J8WQJjfTphakYLVM7ATQRQ zyD2AQgA2SJJapaLvCKdz83MHiTMbyk8yj2AHsuuXdmB30LzEQXjT3JEqj1mpvcEjXrX1B3h +0nLUHPI2Q4XWRazrzsseNMGYqfVIhLsK6zT3URPkEAp7R1JxoSiLoh4qOBdJH6AJHex4CWu UaSXX5HLqxKl1sq1tO8rq2+hFxY63zbWINvgT0FUEME27Uik9A5t8l9/dmF0CdxKdmrOvGMw T770cTt76xUryzM3fAyjtOEVEglkFtVQNM/BN/dnq4jDE5fikLLs8eaJwsWG9k9wQUMtmLpL gRXeFPRRK+IT48xuG8rK0g2NOD8aW5ThTkF4apznZe74M7OWr/VbuZbYW443QQARAQABwsBf BBgBAgAJBQJQzyD2AhsMAAoJEIfJwVG1HjhkNTgH/idWz2WjLE8DvTi7LvfybzvnXyx6rWUs 91tXUdCzLuOtjqWVsqBtSaZynfhAjlbqRlrFZQ8i8jRyJY1IwqgvHP6PO9s+rIxKlfFQtqhl kR1KUdhNGtiI90sTpi4aeXVsOyG3572KV3dKeFe47ALU6xE5ZL5U2LGhgQkbjr44I3EhPWc/ lJ/MgLOPkfIUgjRXt0ZcZEN6pAMPU95+u1N52hmqAOQZvyoyUOJFH1siBMAFRbhgWyv+YE2Y ZkAyVDL2WxAedQgD/YCCJ+16yXlGYGNAKlvp07SimS6vBEIXk/3h5Vq4Hwgg0Z8+FRGtYZyD KrhlU0uMP9QTB5WAUvxvGy8= Message-ID: Date: Wed, 27 Feb 2019 19:54:22 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <20190227170608.27963-16-steven.price@arm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:GVERcQi2HwefwpmfHh/gl3DFsRldSfy2pf2hJBcZTGIy3DVEKKP iI0xMty44p8fvwZbS6tsPODCGUwOfyenBilXMM44uOd9qK46YCPdIsjllMaR1EK2XX2ukac VLlKFN3HVFeyP3BpD3oHrWIH9wBGPA9L46C+g2TckhBhGxaGg47rYbM+w4wT1jfG47lx+08 4XbF3H3dqbUxhLoEsZxrA== X-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lWEfWYimbI1 38SV8Us5P9BcIJZCo2HOG0E= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 27.02.19 18:05, Steven Price wrote: > 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 parisc, we don't support large pages, so add stubs returning 0. We do support huge pages on parisc, but not yet on those levels. So, you may add Acked-by: Helge Deller # parisc Helge > CC: "James E.J. Bottomley" > CC: Helge Deller > CC: linux-parisc@vger.kernel.org > Signed-off-by: Steven Price > --- > arch/parisc/include/asm/pgtable.h | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/arch/parisc/include/asm/pgtable.h b/arch/parisc/include/asm/pgtable.h > index c7bb74e22436..1f38c85a9530 100644 > --- a/arch/parisc/include/asm/pgtable.h > +++ b/arch/parisc/include/asm/pgtable.h > @@ -302,6 +302,7 @@ extern unsigned long *empty_zero_page; > #endif > #define pmd_bad(x) (!(pmd_flag(x) & PxD_FLAG_VALID)) > #define pmd_present(x) (pmd_flag(x) & PxD_FLAG_PRESENT) > +#define pmd_large(x) (0) > static inline void pmd_clear(pmd_t *pmd) { > #if CONFIG_PGTABLE_LEVELS == 3 > if (pmd_flag(*pmd) & PxD_FLAG_ATTACHED) > @@ -324,6 +325,7 @@ static inline void pmd_clear(pmd_t *pmd) { > #define pgd_none(x) (!pgd_val(x)) > #define pgd_bad(x) (!(pgd_flag(x) & PxD_FLAG_VALID)) > #define pgd_present(x) (pgd_flag(x) & PxD_FLAG_PRESENT) > +#define pgd_large(x) (0) > static inline void pgd_clear(pgd_t *pgd) { > #if CONFIG_PGTABLE_LEVELS == 3 > if(pgd_flag(*pgd) & PxD_FLAG_ATTACHED) > @@ -342,6 +344,7 @@ static inline void pgd_clear(pgd_t *pgd) { > static inline int pgd_none(pgd_t pgd) { return 0; } > static inline int pgd_bad(pgd_t pgd) { return 0; } > static inline int pgd_present(pgd_t pgd) { return 1; } > +static inline int pgd_large(pgd_t pgd) { return 0; } > static inline void pgd_clear(pgd_t * pgdp) { } > #endif > >