From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5BAACC4829E for ; Thu, 15 Feb 2024 18:34:36 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id CDC278D001B; Thu, 15 Feb 2024 13:34:35 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id C8C408D0006; Thu, 15 Feb 2024 13:34:35 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B7BA08D001B; Thu, 15 Feb 2024 13:34:35 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id A84E78D0006 for ; Thu, 15 Feb 2024 13:34:35 -0500 (EST) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 84306A2BB0 for ; Thu, 15 Feb 2024 18:34:35 +0000 (UTC) X-FDA: 81794888910.23.C9F86D9 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf17.hostedemail.com (Postfix) with ESMTP id 11D6A4000F for ; Thu, 15 Feb 2024 18:34:33 +0000 (UTC) Authentication-Results: imf17.hostedemail.com; dkim=none; spf=pass (imf17.hostedemail.com: domain of cmarinas@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=cmarinas@kernel.org; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=arm.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1708022074; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+uQMOFgT60AvhJE+m/ZyoiOXNIDaXtOy4/+dgAj43Tw=; b=ZGlDHju7L4dshitGC8saWKKG0r3wWDgfZA/nz5LbPpxJR3gc/kQ/aEogVOcwWSNu3yXoUn TcJq+fU70hSZ3pJ0SzfZCzZ52ns3+djLNAzio+tl42W6lG9XLKEr9AzrS9cAfGFvoQFkLY A4toQaAwF3Q2dOhHrB4Nrgrfjh0w238= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1708022074; a=rsa-sha256; cv=none; b=ytjyCninCCpkVg10PtowegQ23n4UndnA1fntCrkCfvtdYV+Ddqwim8zIBDu716Z6qL8kqI YRvizs2BYwEFAAtNzbUv9gGu3KtR8/0+JNK9j2ccd9c8+vQReKlA/AxlvkWHZXaB6iijQ5 LJdoPDkwIovEGYUxQbfZMu2Q8PreQLc= ARC-Authentication-Results: i=1; imf17.hostedemail.com; dkim=none; spf=pass (imf17.hostedemail.com: domain of cmarinas@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=cmarinas@kernel.org; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=arm.com (policy=none) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 1B22761DAA; Thu, 15 Feb 2024 18:34:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 28676C433C7; Thu, 15 Feb 2024 18:34:27 +0000 (UTC) Date: Thu, 15 Feb 2024 18:34:25 +0000 From: Catalin Marinas To: Ryan Roberts Cc: Will Deacon , Ard Biesheuvel , Marc Zyngier , James Morse , Andrey Ryabinin , Andrew Morton , Matthew Wilcox , Mark Rutland , David Hildenbrand , Kefeng Wang , John Hubbard , Zi Yan , Barry Song <21cnbao@gmail.com>, Alistair Popple , Yang Shi , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , linux-arm-kernel@lists.infradead.org, x86@kernel.org, linuxppc-dev@lists.ozlabs.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v6 08/18] arm64/mm: Convert set_pte_at() to set_ptes(..., 1) Message-ID: References: <20240215103205.2607016-1-ryan.roberts@arm.com> <20240215103205.2607016-9-ryan.roberts@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240215103205.2607016-9-ryan.roberts@arm.com> X-Rspamd-Queue-Id: 11D6A4000F X-Rspam-User: X-Rspamd-Server: rspam11 X-Stat-Signature: mneyyhfqbkci1mekhu1ok6ugugo8jrpt X-HE-Tag: 1708022073-950393 X-HE-Meta: U2FsdGVkX18UYRaAOkj8acZnwBnwQaDRsdW+AA9SRRu8ZCSdwC/jLHdUsfTWlAoQtk3tD6baWNOWkxsoExGoo0UbSyngs9adMe4hf/f+OAs26o+fDvRx/0Wmrx6vKhd8oDJXzGcj0qaqw43GhBdvMwVjP54UuLiHa9tu15eh8UpC/OCY2Kcy7AStrL1q6O44W2Ze7LeIS2xi4/jJ6J3SWClJ3WvF6LyyAncRffCdoWc8AxbBMXkwQQae/8hrJ/7uKWnwvlxRj27NoUpn3oUbXJR7ticOc2aSu4jSyO4cKqivNn7nlexxWNrsnewOs3VSWxb6fCUvIDqsVP6ehsHydch0tP8uvLIEKxoySnV4AEEJ2JugxYYslSDsGIfn/DPRnQ9xz7i7hpyHH3IgYeWCdHri3E9+syfMLzsCYJLRDNtyIrzEgMjy3rHzPkDjQKWU97uk0V5boGMvRun2rh3hQRkY+vKc8onY0+hmFgQVwGS2CTELgiLxVoeMIWbDI8hxpL8ilNysA1PBzc+LTEh773YGk24+ph3CN6DmRPyjwn2dWb6uCyvMeTj+NMO+gze14DjZWyJSTRFtmdVPWzEtz1YPiglUp6EofiLlK2HS+BOMx84pNUk84TJGSgIOklCg1NOqc7hkf71ko0XRl7IEluMDSyVQGMNowd6J4loOdU+Ngcmr9mgYLcBMVwkq1u1hcO2em5tTMGqqeg7tyElXZCWXrK1bJf4bUSbYbd4NnA6Y+vgj42fK71o3MbW2fX010EGMyQ8CwVYiS8d5gm3eDjePam6abIVGNyvthjlWc6sLp0d9SQ3bGGdE0IEEjorS+nuZ+9ML/oDNXgvMn//d7JntVrMiwSTNjbVeA+bwr6r2maLVOwB2aqY10hYR8Ndcm8zAZ9ya23BUHq+L35nXnjcHq+mfc4kCxLfT7cqvEQQT65LaDs1zkpd8a+Z/dxk4IOA6IY8F71/oS4ubdXW OGFYw8wm YbYbGbY4PvNTms7r+BqttoyGJ/WBUh5OTw149LN97/Hjzwq3/3f9wgcoNAvpeljUMxPLsUxCnwpugSf16IcpdCo8yjEWzxQUhU/TEj1z7/aEcno1OJGN+mmXuGstnHGWCOwWeLLB7ntxeXlM33xhn41KE4X/nJlPaHPMR X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: On Thu, Feb 15, 2024 at 10:31:55AM +0000, Ryan Roberts wrote: > Since set_ptes() was introduced, set_pte_at() has been implemented as a > generic macro around set_ptes(..., 1). So this change should continue to > generate the same code. However, making this change prepares us for the > transparent contpte support. It means we can reroute set_ptes() to > __set_ptes(). Since set_pte_at() is a generic macro, there will be no > equivalent __set_pte_at() to reroute to. > > Note that a couple of calls to set_pte_at() remain in the arch code. > This is intentional, since those call sites are acting on behalf of > core-mm and should continue to call into the public set_ptes() rather > than the arch-private __set_ptes(). > > Tested-by: John Hubbard > Signed-off-by: Ryan Roberts Acked-by: Catalin Marinas