From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9F4E41D8E01 for ; Fri, 10 Apr 2026 04:48:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775796491; cv=none; b=fAsJAkv0kO6eSUwouO2TKpUAxHUXkS1u4huQTh8AVQTzEzp3l4MjAlCRq1aI/zCHL9di3JSrcNn1gb5r0UX4AQFyXl+JJTcluAnAPR9v91iR8PP10xhH/2NisnSlIRgyay5K0e04NDtq9/DB387mJMrWZ/MDSzFH2ahFOYwvj7U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775796491; c=relaxed/simple; bh=c3DJ+S2oOSvZXmmTi+zH6GgC1NLBeyFjVpTiXZLQF9A=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=nhbq9SCMaIARRxs8ZyZV0kJc/KlNIvSxNmeEmxEgNRYvzOzWph9DBuR7bcxVZ20ADIAGYMTaEx1Bv7vyPVRy2/GsasidujtZd5OHwhy82RHVZ/cZTjWCR8QXRfQxZ2xrB3Ub2p1J/ogvWKGRXBu5jrKVgLh3+zofRBr3wWcCsnQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b=lRQRKKOo; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b="lRQRKKOo" Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 55C1A2008; Thu, 9 Apr 2026 21:48:03 -0700 (PDT) Received: from [10.163.181.174] (unknown [10.163.181.174]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0FB943FAF5; Thu, 9 Apr 2026 21:48:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1775796489; bh=c3DJ+S2oOSvZXmmTi+zH6GgC1NLBeyFjVpTiXZLQF9A=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=lRQRKKOooSviZJCJhlupFZkcTLD7CpeoH/yuz7wjC+oBayyPRnena/ZGpFkvAqcYg O/mgWTpyTMw10Oe5L9uCW3To1refRX442FAOZ1q1Q9E7fUuKTSjWgWWVi72EG0vw8B gOyQQ8SLJFDCzSqAz8sfORy6kITdqnvEZuRVQXko= Message-ID: <8a3849cc-e6d3-4932-865f-476a137f891a@arm.com> Date: Fri, 10 Apr 2026 10:18:01 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC V1 05/16] arm64/mm: Convert READ_ONCE() as pmdp_get() while accessing PMD To: "David Hildenbrand (Arm)" , linux-arm-kernel@lists.infradead.org Cc: Catalin Marinas , Will Deacon , Ryan Roberts , Mark Rutland , Lorenzo Stoakes , Andrew Morton , Mike Rapoport , Linu Cherian , linux-kernel@vger.kernel.org, linux-mm@kvack.org, kasan-dev@googlegroups.com References: <20260224051153.3150613-1-anshuman.khandual@arm.com> <20260224051153.3150613-6-anshuman.khandual@arm.com> <628a1d9b-cc16-4cf6-8c19-b6ed49af8492@kernel.org> Content-Language: en-US From: Anshuman Khandual In-Reply-To: <628a1d9b-cc16-4cf6-8c19-b6ed49af8492@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 08/04/26 5:41 PM, David Hildenbrand (Arm) wrote: > On 2/24/26 06:11, Anshuman Khandual wrote: >> Convert all READ_ONCE() based PMD accesses as pmdp_get() instead which will >> support both D64 and D128 translation regime going forward. > > You should mention the move from pmdp_test_and_clear_young(), and why it > is performed. Sure will do that. Actually there as a build problem while accessing pmdp_get() from pmdp_test_and_clear_young() while being inside the header which necessitated this move. > > Nothing else jumped at me :) >