Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp778265imb; Fri, 1 Mar 2019 13:47:55 -0800 (PST) X-Google-Smtp-Source: APXvYqzZr7BNP8N1l1Lcpq3G7g0ETMAg102T0vVt7IlIjXXRALSaGzlIUsSXjSRPUJXUxx8QE2Kg X-Received: by 2002:a62:1b92:: with SMTP id b140mr7938360pfb.159.1551476875629; Fri, 01 Mar 2019 13:47:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551476875; cv=none; d=google.com; s=arc-20160816; b=MyEMX5tEtCZr0sjpqATBdaEBN7GgJ9C+FzWr9+0wq6vQxf+sQ5g++lNAGLlwEKWqI2 ceZ/l+43NBm6eEWHhCs7TAzkI/375zlKl195k6hPwv+GcgdxeHq9kK0BAW39sOMt2ZC4 XR4rM7cJf5+FTwhw4Eq42gBo0wf4ZiT68pUNFmjgycX3kflCQq2jY+pJRkz1gYJcaRun at8cRyUq8MNUGv7mxmOO+m0RkzowVQzFRkgkdR7gWRhJCbHWTmWrbRf2UazkhH1Y8jae PDskyGYPba+Naj3LKYPir27e3jrf2F8Bk71MV5G2bM3Se+S26ZO4Y4RHcYGoXVzcp7xf sgPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=QLCw7MLhv4h+6kZHr+YJjXn0K/KcoNEB426LxMvC9t4=; b=XuVdzPNDzawDSTDfEdi3OdjPwmPHBgZLPFTHysv44CS6Tp8w9fL5drPd+8+ng1ilP6 iv7vQNJIHPVKUOCH1BoCMjWVMTVKNj20+4cx6cvPRz2hrQ0B+HFnJM2RZ6cw3VYT3lPQ xZKmwDrA2cRRvjcP3nl7o9ACpdB+z0nFadgUQWX/pu/McN0khPliYHH3HOZFYnpDtxfi KePDES1upNLaW4i42J4wocwi1brz5gZEYPT/V1KPzoQ53pf59xaFWpUtUqSXUEBpZgJD A3LnBC+Iz6Z+fW/49sniiOe3Jq8Iq+b2MKoV9mkA3Aa4XH/fJq5LWlNOf6xTcpEehxoL 3kWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=hGSWBt9c; 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 h7si21698922plr.178.2019.03.01.13.47.40; Fri, 01 Mar 2019 13:47:55 -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; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=hGSWBt9c; 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 S1726210AbfCAVrV (ORCPT + 99 others); Fri, 1 Mar 2019 16:47:21 -0500 Received: from mail-pf1-f194.google.com ([209.85.210.194]:35663 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725905AbfCAVrV (ORCPT ); Fri, 1 Mar 2019 16:47:21 -0500 Received: by mail-pf1-f194.google.com with SMTP id j5so12032002pfa.2 for ; Fri, 01 Mar 2019 13:47:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shutemov-name.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=QLCw7MLhv4h+6kZHr+YJjXn0K/KcoNEB426LxMvC9t4=; b=hGSWBt9cAdoYKR8uVW3ACUTxEx7wtlE60eK1bM2uTil9ubZCqf1Wf4S344xhrLinwn arwPrWLf+QkEgzLfkeRh3iRLMq4wHabZSRbd2FHG63IJve9loprZQw6hIVrrlYyenA6N iY/Jgo/gd+Bqq1dHmKaUB4U9WOSUra/Ub86v+r0lIsJWUe3nTXYixZnvjvg1OkZcvDCz HHl/8kmucKICv41ZcYbQ5MPuOLF9cLjBHgCE5BBKhVroNkG0Lg/d3d4qSfNJGH5M+N6a /eRdV+kYHzMGV2ip20Wsx7EWopJCbw9dyBrSiRDn6Eh/DvIdyY6cDUvtMZKnknv1JMJR AMyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=QLCw7MLhv4h+6kZHr+YJjXn0K/KcoNEB426LxMvC9t4=; b=jeEAAI1nW8zd7+lzrrA3SIJY2dnIrm/WiNirM4+SHkxAP9mKxRBDRo/yeVFPl2lCBN gP7E42Kjzj2/9Ocr1Onu09rT0bnEv0p/+4/fYtthXIoHxZZQVimktsp0JUJpuCDNgdBQ wqGHacXTTwTYT0OqBZ+Saf512Sx1dyx6P2hX464UVMzFX8GBphF5VsBxKBQhuLMLDRUh u3vwClMTHLv5rFP7Cf38picHnHVy5qZXnA/oVYo0zPf/gnEEjy3kBxk+DGWOzHX4yLVR llFBmHStkf7wyRwpdXl3gUH160ug0Ddoit1MxTJLSJl2CAKQpZut+Rz9SYRIaJFOB9Ty RIMg== X-Gm-Message-State: APjAAAVmLJozpdlAAojf3Po4xqajjsJJ9zC2f5MGSjf+f9hl0JxWS8q9 TbaNdJoJUZqWb25XSZlqjrlg8g== X-Received: by 2002:a65:46cd:: with SMTP id n13mr6894716pgr.221.1551476840156; Fri, 01 Mar 2019 13:47:20 -0800 (PST) Received: from kshutemo-mobl1.localdomain ([134.134.139.82]) by smtp.gmail.com with ESMTPSA id g3sm30177184pfo.125.2019.03.01.13.47.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Mar 2019 13:47:19 -0800 (PST) Received: by kshutemo-mobl1.localdomain (Postfix, from userid 1000) id C391F3007CA; Sat, 2 Mar 2019 00:47:15 +0300 (+03) Date: Sat, 2 Mar 2019 00:47:15 +0300 From: "Kirill A. Shutemov" To: Steven Price Cc: linux-mm@kvack.org, Andy Lutomirski , Ard Biesheuvel , Arnd Bergmann , Borislav Petkov , Catalin Marinas , Dave Hansen , Ingo Molnar , James Morse , =?utf-8?B?SsOpcsO0bWU=?= Glisse , 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" , Russell King Subject: Re: [PATCH v3 03/34] arm: mm: Add p?d_large() definitions Message-ID: <20190301214715.hyzy5tevvwgki4w5@kshutemo-mobl1> References: <20190227170608.27963-1-steven.price@arm.com> <20190227170608.27963-4-steven.price@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190227170608.27963-4-steven.price@arm.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 27, 2019 at 05:05:37PM +0000, 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 will be provided by the > p?d_large() functions/macros. > > For arm, we already provide most p?d_large() macros. Add a stub for PUD > as we don't have huge pages at that level. We do not have PUD for 2- and 3-level paging. Macros from generic header should cover it, shouldn't it? -- Kirill A. Shutemov