Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp21365ybp; Tue, 8 Oct 2019 13:20:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqwmLFK93EcuJb2iMiOsfvDPHv72LDjzFt+48Hpd5YgFJnqjTChdWwixv08Z9ZqPiY7ZSvO0 X-Received: by 2002:a05:6402:120e:: with SMTP id c14mr8612370edw.272.1570566029192; Tue, 08 Oct 2019 13:20:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570566029; cv=none; d=google.com; s=arc-20160816; b=SFflHnvZIM7ZzNcRSG0A5IzrpqYp/U1d9fU1fIZ6xJdJqnz7SFOGRk9ayShd2IQBVq RgEOeibyaZD4+CKBfoPW3+mppQsHF0sXKpr/mPYD1sUcX0vj4gjdIhGytbi2dMvV0Ktb gUZavqSa3tcgSrH/xdzgOERDD2S10INAcQyPpP8ESjIfKEH460vvGXiVXi9ZSLo9Woce lO9QZ5aq70SrFE2d1PKbhqO22gj659osOej3E+YE2T05uNH1u4feSDianRy9X5xjdFnc d4TcxzuNs0EXHC9oP5WlMp+sGeK48XtCFcxhdGOblJJMcZ9WeJ1SRcld0/avhi5fkg9+ m2tQ== 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 :dkim-signature; bh=sTuc1jt2bCJ7mOFgkH6pDjda/ijIQB+HhxBLaoaEyBU=; b=SjvgkDWi1XCaBwcn+utq+hgzUiP/L5pWK9XByu1sDsHsdQXLw0siv8rXFJRinJsOf0 M0r477+7tiHhJ9gRAfWe5xL2FdFFwHC8Y8aHHj0SvYyZcSL2NeBN3qFwYUysYslBRBwy CrwjNv1sLEAnhmxHuyJuq3rmGaTALXArm3ZGJPWkN9S/0KbOtuqSE5B1bGgVE8MRuSvD HBALf0h3/l/cZ/MuV8KSWp5o5YgSdypaUEeskbdU8A6eBNQo8NpHu/TbbunIp4FkaRFH xIx0BRlqQH4h53la6AQNdASxpGrkM9tVyLSH7y9R5gHg+skYCIkeHLIB4J/2a1rhdpbS 2L+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jt7tuAo1; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g3si76050edj.220.2019.10.08.13.20.05; Tue, 08 Oct 2019 13:20:29 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=jt7tuAo1; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730565AbfJHUTd (ORCPT + 99 others); Tue, 8 Oct 2019 16:19:33 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:44160 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727835AbfJHUTc (ORCPT ); Tue, 8 Oct 2019 16:19:32 -0400 Received: by mail-pg1-f194.google.com with SMTP id u12so2562056pgb.11 for ; Tue, 08 Oct 2019 13:19:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=sTuc1jt2bCJ7mOFgkH6pDjda/ijIQB+HhxBLaoaEyBU=; b=jt7tuAo1LXYpIuOIkSkhy99+apbYvjlOe+PTojAi0QeCaalx+JoQVScvVESbMTtB// dUI2a4XaeM6Y85CF3cPpa+OnzDKTrRTGJrdZUOKDdTfirStoV2Tz7aZWPtN1v7IdlWtR 6TWJAfaNMO+p5zPPKty1Xa4UtU/yayV7Wn07+kXdZLFl2m9FogcMopCeVBQYlVDkOV3/ KWf6MIqk16tw6GtLdyTqXo4HCRwYABmZZcYcBjF5wxno4Jkt1sb1gBIcNlQbPQ/FAApm LSYaGwX/CfYJLCYSFm0PuWLzXh3ab9Hj4Ede3ghLWEGGt0Ut8o0ErGtU9nmcRpahcvAr YkaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=sTuc1jt2bCJ7mOFgkH6pDjda/ijIQB+HhxBLaoaEyBU=; b=O8w8V9qxhkemdSsFVQCHaYMffCrFF9Z6BZOP4D9C2irp3kbJmfPDbrE0S1nCJMNCBX DWlSiSrSbfNfNKwxanM1tQARJE/DN9ejKzhuPh6W4MRR9tknshArULop1EyY254V+3YK wF3KtrQ2NWLvDoZ7E0VSoLF1z/sbzBgISsUIpQuBoNwPZeMFKVFzV4qElsvjS1Bahb/m wY7lqcr6614eQ5pAtScxN8JC7f5saUx5423qUVKZwlBX+n5tK6+WccnEv3kVF9aEDfOg 2pjWi+Y7c9fYaNraFfVo+VfZPovwGZ5ZndMzvY3fL26S10qh+WVBJf0cO1ppuQrXQP/R VYbw== X-Gm-Message-State: APjAAAVf2PA7uNJfdix39XAcIdjVr1Xq/OkLpVgpWZuK76jyH374AsJj AGUdxvj+UhRhU8OEihzS/uY= X-Received: by 2002:aa7:9e50:: with SMTP id z16mr41840218pfq.83.1570565971659; Tue, 08 Oct 2019 13:19:31 -0700 (PDT) Received: from [192.168.104.168] ([198.182.47.47]) by smtp.gmail.com with ESMTPSA id n15sm46278pjt.13.2019.10.08.13.19.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 Oct 2019 13:19:30 -0700 (PDT) Subject: Re: [PATCH v11 02/22] arc: mm: Add p?d_leaf() 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" , Andrew Morton References: <20191007153822.16518-1-steven.price@arm.com> <20191007153822.16518-3-steven.price@arm.com> From: Vineet Gupta Openpgp: preference=signencrypt Autocrypt: addr=vineetg76@gmail.com; prefer-encrypt=mutual; keydata= mQINBFEffBMBEADIXSn0fEQcM8GPYFZyvBrY8456hGplRnLLFimPi/BBGFA24IR+B/Vh/EFk B5LAyKuPEEbR3WSVB1x7TovwEErPWKmhHFbyugdCKDv7qWVj7pOB+vqycTG3i16eixB69row lDkZ2RQyy1i/wOtHt8Kr69V9aMOIVIlBNjx5vNOjxfOLux3C0SRl1veA8sdkoSACY3McOqJ8 zR8q1mZDRHCfz+aNxgmVIVFN2JY29zBNOeCzNL1b6ndjU73whH/1hd9YMx2Sp149T8MBpkuQ cFYUPYm8Mn0dQ5PHAide+D3iKCHMupX0ux1Y6g7Ym9jhVtxq3OdUI5I5vsED7NgV9c8++baM 7j7ext5v0l8UeulHfj4LglTaJIvwbUrCGgtyS9haKlUHbmey/af1j0sTrGxZs1ky1cTX7yeF nSYs12GRiVZkh/Pf3nRLkjV+kH++ZtR1GZLqwamiYZhAHjo1Vzyl50JT9EuX07/XTyq/Bx6E dcJWr79ZphJ+mR2H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VV8/CjCkzfYiXPC7dMAT7OZE+nXSZJHQiCR0LUSToICFZ+Pntj1bjMLu9mDSy AtnheBEXom1b7TTHOZ13HuU4Cue9iNoACjVbbF9Zg4+YRmvtcPy8tTo5DXBdysrF7sO/yWGu ukgWa2otyae8BC7qBYFbm6uk9wMbYSN3yYBmbiAULMrBKA33iWlE0rIKMv91a2DVjp4NiOSu gyyFD9n83Sn4lcyjdLvBUCn9zgY4TwufG/ozyF2hSmO3iIzqt0GxmpQ+pBXk/m51D/UoTWGl deE0Dvw98SWmZSNtdOPnJZ0D Message-ID: <6c09d4df-ed4a-21ed-6f39-74b745650430@gmail.com> Date: Tue, 8 Oct 2019 13:19:28 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20191007153822.16518-3-steven.price@arm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/7/19 8:38 AM, 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_leaf() functions/macros. > > For arc, we only have two levels, so only pmd_leaf() is needed. > > CC: Vineet Gupta > CC: linux-snps-arc@lists.infradead.org > Signed-off-by: Steven Price Acked-by: Vineet Gupta -Vineet