From mboxrd@z Thu Jan 1 00:00:00 1970 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 6DBB127FB1F for ; Thu, 19 Mar 2026 13:48:20 +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=1773928100; cv=none; b=pqOE4CWXFFPm3sfrDgEm5V04FNnVlrzVazXVEhLjWjXm57uDehi4/BH9/Eckkfh19d6odwbcfH93jnnrtOKO+AIDaQUmorUjMMk4g5Z3+upht1rR4H2WmAmVWW9jrPKYpWFIrgCxR9/JGl5SdHxg4KbtEir0usUHyYO95SPMUq4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773928100; c=relaxed/simple; bh=FWs25TnUk+rL6JvNG2vl/ePh9BoVTknU8f+WnpPg5RM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=hLikfjagjLpxZJy/XbbeDLSh6UDSf2FLii0BHGVtpH+2Z2IvtHgu/HGQZFbm44pvhgYqsyJ2C6P0WfJAm8HC2NgTxqUN6zzFV3OYmPksHMTqzTO6lPt5g6OZTBqqn20AztFCHbyw93q5aago5JR4bnK3wypKNPi5ZIKR33AOTBI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=mgfTbnRF; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="mgfTbnRF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D57E3C19424; Thu, 19 Mar 2026 13:48:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1773928100; bh=FWs25TnUk+rL6JvNG2vl/ePh9BoVTknU8f+WnpPg5RM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mgfTbnRFCHhH/IEfxSlF6WcQ1WAKrye9EY07L0+jQ94J87j332Xwz2HN4NIPeznh5 ndFpy5qJC8sIb0IWUMjOmeYX+ZkjgLG28KciZ0jYf6nseYEaQqjZfpwJA3jXH4KDUc y/DAxJXT2fEwZy1R6TMAW2V/4W+lfuy+82yJsnL127bHD7ntGGI+xSuizM6n5a+Tyc eE8y1FoBxHmvEsRpDuAm+gFj6oKJPD/twzhKmWDJt/US780k9L7VF4SjLilW0ereu1 RL4TSA4u9wydnlHyMWTm0SRoLAKdt70wdimN6A1g8zKS7Tnt3iI1To8Bjkwyv4DXN1 4Fw1yRjxu0wqg== From: Will Deacon To: linux-arm-kernel@lists.infradead.org, Suzuki K Poulose Cc: catalin.marinas@arm.com, kernel-team@android.com, Will Deacon , mark.rutland@arm.com, maz@kernel.org, linux-kernel@vger.kernel.org, aneesh.kumar@kernel.org, steven.price@arm.com Subject: Re: [PATCH] arm64: realm: Fix PTE_NS_SHARED for 52bit PA support Date: Thu, 19 Mar 2026 13:48:11 +0000 Message-ID: <177392436633.2391768.4152570356691578955.b4-ty@kernel.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260316161901.2410354-1-suzuki.poulose@arm.com> References: <20260316161901.2410354-1-suzuki.poulose@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="utf-8" Content-Transfer-Encoding: 8bit On Mon, 16 Mar 2026 16:19:01 +0000, Suzuki K Poulose wrote: > With LPA/LPA2, the top bits of the PFN (Bits[51:48]) end up in the lower bits > of the PTE. So, simply creating a mask of the "top IPA bit" doesn't work well > for these configurations to set the "top" bit at the output of Stage1 > translation. > > Fix this by using the __phys_to_pte_val() to do the right thing for all > configurations. > > [...] Applied to arm64 (for-next/fixes), thanks! [1/1] arm64: realm: Fix PTE_NS_SHARED for 52bit PA support https://git.kernel.org/arm64/c/8c6e9b60f5c7 Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev