Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp646356rdb; Thu, 15 Feb 2024 10:45:16 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXXQ1/tJKaisvyk8d4zEat7SLRDJh9imifZ13XTbx4Dgi3WZSBwbWy6o/iKUbw7twA0x/+fxrdlUCieUtulcrzfGv9YQwUQqq0LMKsonA== X-Google-Smtp-Source: AGHT+IHzB18epblNhcYpkX1PIss+qANpr8WJKJmIcZAY5lkjxZenURE0RO048b/cff2HOI5QJR9H X-Received: by 2002:a17:902:680a:b0:1d7:8f22:62f5 with SMTP id h10-20020a170902680a00b001d78f2262f5mr2294959plk.61.1708022716535; Thu, 15 Feb 2024 10:45:16 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708022716; cv=pass; d=google.com; s=arc-20160816; b=cF7TwbGtULvMpwgl47lBPIXX2mqAS5dkoH8083ooRuDJnBe8aRLuigv3iTepdU7bS7 8fTvuHLDs/u9ytchFRFpd7HaZlAok0Wvjj+QNk3buSiqgfw7Jw2e+1o6lZDC1rwmeYeC T1ewbu0BE9fhUqpvA0wO5Va6KOtBWbWgn01jz761L1+m4Zo1lXrisUn0zEEYUC7OMWx8 QSFafUorC1AB7n8oA+0CmfU1EGzZ4DjsSszpsBQIwHHlbXnFAgfA1hVWyv4IUJEby5/o 5r7A0MZBDvfHpQ+Dai2J46aUUmIshK9qAd4yBlILnYTwz1CH+1PSPrsBPBlz2au0qV3x wUZQ== 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=ai7D/yT1PotAwMZ1rMsrW3MuMbV58ggSlnp3SEBBrHw=; fh=r8G2JENgcRo/RTe4xvZO7IzPLZ7yvHykzgF2Da/HHrw=; b=kMuLQxf9Ee0nCaF2wuEBJXdxydZ3JFMk3lmD9BkZ+iSmOuc8Dn+QNXqxGETPeSUQDC vWaQAJ7jJPh5qhFycZCa8+iJh9OOL6WOlY3TqmwLxsgt/fEmyJmHHwDnjTq2dzOrOkU/ iVoPvoGTwJakQUiF1TaGCYaO+UbXWv83DOkeJFQpsF/DuoQ6OAclH9fBdJRxoZderxM4 JEpdz5NDa9pWFZ3pt3AgpHXuaPonqlL/kWK1PMxCMXTwxnQogGaUuvEawyQLupT+wJk7 Dnkj3+8+Opa30EdovS2s7s6gLIpweLbm7pBDea9odIVXtRmXcUfObzuUcuA/rvhNn630 ZPNw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-67521-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67521-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id k13-20020a170902d58d00b001db675be3d6si1551026plh.234.2024.02.15.10.45.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 10:45:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67521-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-67521-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67521-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 598C929132C for ; Thu, 15 Feb 2024 18:36:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 04B451386B3; Thu, 15 Feb 2024 18:35:16 +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 73F9413849B for ; Thu, 15 Feb 2024 18:35:15 +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=1708022115; cv=none; b=FZD+KgLeBErpTmmVEYUt1V/xJFaDMDKPf/UIJs6AF/Y8VKcVOAJOyNMAWv2ImNLNQixibWw9F2QnguEuMgSzcbSdLQGOtfT2KYLQ+Y+5qFbjDNawrkg/fDPp78kPmcnFErl0V6tkxT/1sovw0FwH9g/ny6NYjukjITBTsNfk35c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708022115; c=relaxed/simple; bh=g81JVGrqhrJ2V33PSZJocpyegFm3vz67wCbLi3eAcE0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=r62UqilciyiSihc1iwSH0iLt58alzJuI76BUHH1Xd9cRxw9rxCiiOPxazRQ/67Gus5mCP7OlXvO4ZSMFuvMzDYzocB091yE+C/M7vwCzGpQ1THB6yVifEMsjYGKEUZZc0wEICzyFnSjeB+UTpWFaB8frNGpx1nkGK8+gH2l9eRg= 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 1EE5DC433F1; Thu, 15 Feb 2024 18:35:09 +0000 (UTC) Date: Thu, 15 Feb 2024 18:35:07 +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 09/18] arm64/mm: Convert ptep_clear() to ptep_get_and_clear() Message-ID: References: <20240215103205.2607016-1-ryan.roberts@arm.com> <20240215103205.2607016-10-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-10-ryan.roberts@arm.com> On Thu, Feb 15, 2024 at 10:31:56AM +0000, Ryan Roberts wrote: > ptep_clear() is a generic wrapper around the arch-implemented > ptep_get_and_clear(). We are about to convert ptep_get_and_clear() into > a public version and private version (__ptep_get_and_clear()) to support > the transparent contpte work. We won't have a private version of > ptep_clear() so let's convert it to directly call ptep_get_and_clear(). > > Tested-by: John Hubbard > Signed-off-by: Ryan Roberts Acked-by: Catalin Marinas