Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp603229imp; Wed, 20 Feb 2019 05:58:59 -0800 (PST) X-Google-Smtp-Source: AHgI3IbyJirtGJ86Z+UQ4xG/drVf+zJ4dzHfw+3ls7pZXJOYGmG8wt/L3a5A4FPt0vX8xbN3sLO5 X-Received: by 2002:a17:902:4827:: with SMTP id s36mr36024410pld.168.1550671139332; Wed, 20 Feb 2019 05:58:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550671139; cv=none; d=google.com; s=arc-20160816; b=BllkZ1+Wr8u6b2h9DgAzBiDchK5RKdGlzdu91FlTxjlPdWkfu0H3t4RVvfBrdWHo1R o6go573SQX4tdjxXBqBFHrS4dqGBFzCjZ3AAi78QJsTjWBZzcwYB2AuJX0ZgCZvaV7LD fNDVn1PxA2xHvyBd90uilQcURM9q8F6KWLHYv365uYsbkOiQ6i1fEU8LA2tldPu6XH4R 1BXI6KgiR3qMQKqQvZZaXAo3dnjhWUhHZjmeC20RXqn5+pWJo8rAKrIkHyoJ1uJa6Vw0 gY7ov5EEPZR62keQlhLiLaCyV9zkWj1E2z1kgXtHVyoNc2oU3GNktCg6qxHPNZ+0q2a/ nLlw== 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:from:references:cc:to:subject; bh=B37FiqXGXeIJE2pVGB5cKjlrAip8k10+Ff50K8Po8jI=; b=HHnpBZJkZV4TP463Jtu0wLrX0B68C3fq1PIURjzbBmXFUc0HWT6RwRy0A8dnij0yQk Glm4bB8banqAzzF3KN2NsBFnp6Z7UVRNuDNYUrUg8syQZ37OFe+YT1N2C3mDUZCFpl1+ u/ebmxJU4jPm3hpJ/Cb7FY5HtlYYEJlllvNUiCIYGuAbvAAsyv9I0CLCdpZ5DXHmFUOA 73rju9WYazba8HOU5yU+6WB69RLCqvZMGpqf6JkajepxDjGpIoCjyhkamotCn/VtABSr Vm/3RmAOAKs0v5tUr9layonGkMX+evN1BtuE2ipp96fn1XsfvPvTuZO0tga30RMwJfAh HCFw== 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 k7si18149947pgj.177.2019.02.20.05.58.43; Wed, 20 Feb 2019 05:58:59 -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 S1726310AbfBTN5D (ORCPT + 99 others); Wed, 20 Feb 2019 08:57:03 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:58138 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725877AbfBTN5C (ORCPT ); Wed, 20 Feb 2019 08:57:02 -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 4327DEBD; Wed, 20 Feb 2019 05:57:02 -0800 (PST) Received: from [10.1.196.69] (e112269-lin.cambridge.arm.com [10.1.196.69]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 42E883F690; Wed, 20 Feb 2019 05:56:59 -0800 (PST) Subject: Re: [PATCH 03/13] mm: Add generic p?d_large() macros To: "Liang, Kan" , Peter Zijlstra Cc: Dave Hansen , James Morse , Arnd Bergmann , Ard Biesheuvel , Catalin Marinas , x86@kernel.org, Will Deacon , linux-kernel@vger.kernel.org, linux-mm@kvack.org, =?UTF-8?B?SsOpcsO0bWUgR2xpc3Nl?= , Ingo Molnar , Borislav Petkov , Andy Lutomirski , "H. Peter Anvin" , kirill@shutemov.name, Thomas Gleixner , linux-arm-kernel@lists.infradead.org References: <20190215170235.23360-1-steven.price@arm.com> <20190215170235.23360-4-steven.price@arm.com> <20190218113134.GU32477@hirez.programming.kicks-ass.net> <8a74c111-b099-8d18-5fb0-422909a1367a@linux.intel.com> From: Steven Price Message-ID: Date: Wed, 20 Feb 2019 13:56:57 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 MIME-Version: 1.0 In-Reply-To: <8a74c111-b099-8d18-5fb0-422909a1367a@linux.intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19/02/2019 03:44, Liang, Kan wrote: > > > On 2/18/2019 9:19 AM, Steven Price wrote: >> On 18/02/2019 11:31, Peter Zijlstra wrote: >>> On Fri, Feb 15, 2019 at 05:02:24PM +0000, Steven Price wrote: >>>> From: James Morse >>>> >>>> Exposing the pud/pgd levels of the page tables to walk_page_range() >>>> means >>>> we may come across the exotic large mappings that come with large areas >>>> of contiguous memory (such as the kernel's linear map). >>>> >>>> For architectures that don't provide p?d_large() macros, provided a >>>> does nothing default. >>> >>> Kan was going to fix that for all archs I think.. >> > > Yes, I'm still working on a generic function to retrieve page size. > The generic p?d_large() issue has been fixed. However, I found that the > pgd_page() is not generic either. I'm still working on it. > I will update you on the other thread when all issues are fixed. > > > >> The latest series I can find from Kan is still x86 specific. I'm happy >> to rebase onto something else if Kan has an implementation already >> (please point me in the right direction). Otherwise Kan is obviously >> free to base on these changes. >> > > My implementation is similar as yours. I'm happy to re-base on your > changes. > > Could you please also add a generic p4d_large()? Sure, I'll include that in the next posting. Thanks, Steve