Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp642126rdb; Thu, 15 Feb 2024 10:36:53 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVrdK4DjQWCIyNfumnlkDoJgCW+GhWTn3yZ+EW0aS3UZX5nI0upkv2tN1JKZG/6wwM7tYO5Js10X2LnzJ9DWGFFGlNlMhpmSBou8utZKA== X-Google-Smtp-Source: AGHT+IFnWkD1SIc9h8PUHgoNeYpmgfBAoAYu0fx8OCoKOTDQPl0Yl2G7S9dl+KY35dXPpv8rn/rc X-Received: by 2002:a05:6512:328f:b0:511:7ca1:3c37 with SMTP id p15-20020a056512328f00b005117ca13c37mr1804513lfe.61.1708022213383; Thu, 15 Feb 2024 10:36:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708022213; cv=pass; d=google.com; s=arc-20160816; b=oO/BEoppGTlh+MiVE0CAwnFAl53xEjB88+XugC7LtcBJwtGDjK+grhd4EWRsIss2as 0OUZo5yWqFeDYVzVnZUHL3fBkfTOELGbyP7MzzKbchEPxEJfvITh3O6Zy657qvytITq6 OISj7h1BFKK7xIf+rNpOzGvbHEJ11GPhuyiMa5n9GUfboCgCE221EBOPdECDj+xkqdEa fKhQ7pHdK7vW4Z8d/Hv58/EbX53y5DjF/LPNVpPX3N0eKM+BawnYeFkiLOKfc3QsTZOY 8Fb+27atzCjT6OYnYrWp2J1y4P6LW56zXZu4TMKVh88AR/7/mxsAnNQT6SVysCz3Lonb 1EqQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=+uQMOFgT60AvhJE+m/ZyoiOXNIDaXtOy4/+dgAj43Tw=; fh=r8G2JENgcRo/RTe4xvZO7IzPLZ7yvHykzgF2Da/HHrw=; b=n1GFLPsk4fuivRxq2O7fOJ0lsPAbw8J2mr0GvWx/LpTdfwwIM2y+S2xA3RV7N6jkrK 4drjMjqtyajDVJqZR25UrCQAqM7QrB9FZ/i1886F7nNDS3+UA2IuK4hTLAxaB24NHE9q D/eHqKjas8OE9prq+sb0kd76jxd+IpkkpVOhg/eJ99d8yjgNON/Zf2709fZckqwcSedR RV18NLQvIFLK8KPrCHPvK4ZiGhvy1UfdSvXrVh4XWudY7NbL321l0vOJ8S0Qhy3rr89N njMjYmZtoJrECU3ilf32I2XDqWJvsIa27nQvssOn0ArL/ocDV7dCZorT4CPn5TkKSipQ ZXog==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-67520-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67520-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id v27-20020a50d59b000000b0056149504777si883535edi.438.2024.02.15.10.36.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 10:36:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67520-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-67520-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67520-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 0EEF41F26C40 for ; Thu, 15 Feb 2024 18:36:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AFE8413AA22; Thu, 15 Feb 2024 18:34:33 +0000 (UTC) Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 397F6139565 for ; Thu, 15 Feb 2024 18:34:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708022073; cv=none; b=SSxR+x4lKQZteBEX2t1YlG9uszGotny5UAEhUX5TQjyyJu7ly/4PAFd9pgZbK8U47h18+O2gy8QkY97xif19hrUHlff7eXCFLeAEO+PCN5QVOQ2stefavbeOIPyt6EDunoxL0Apu0XbF3hdapaB6Fit5ilRe3ngs9USztoSzBzg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708022073; c=relaxed/simple; bh=xFUHeOpu2v94WEgVrM78QpkrFdmxkfz0LYJ3IrH26zQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=oYZuFU24StMYUnoS0MNBKIF0M9kYs41VpOQZdWjgslLgzawrsBQlNpviKlRpk2ZHFZEJVAkamfwoabXoVPuLK551Zvre3wF21KL6iNVURVG2IgiSWOZ7h5ZoWa4SRfzzF2cZEIq2NIP+tgoHG+vze7zEFL/pHnbcNrTBwRTDh8w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240215103205.2607016-9-ryan.roberts@arm.com> 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