[RESEND PATCH v6 2/3] iommu/arm: Add BBM Level 2 smmu feature
Will Deacon
will at kernel.org
Tue May 6 07:19:49 PDT 2025
On Mon, Apr 28, 2025 at 03:35:16PM +0000, Mikołaj Lenczewski wrote:
> For supporting BBM Level 2 for userspace mappings, we want to ensure
> that the smmu also supports its own version of BBM Level 2. Luckily, the
> smmu spec (IHI 0070G 3.21.1.3) is stricter than the aarch64 spec (DDI
> 0487K.a D8.16.2), so already guarantees that no aborts are raised when
> BBM level 2 is claimed.
>
> Add the feature and testing for it under arm_smmu_sva_supported().
>
> Signed-off-by: Mikołaj Lenczewski <miko.lenczewski at arm.com>
> Reviewed-by: Robin Murphy <robin.murphy at arm.com>
> Reviewed-by: Ryan Roberts <ryan.roberts at arm.com>
> ---
> drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-sva.c | 3 +++
> drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 3 +++
> drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.h | 4 ++++
> 3 files changed, 10 insertions(+)
This looks fine to me but please note that it doesn't apply against
mainline (v6.15-rc5).
Will
More information about the linux-arm-kernel
mailing list