]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iommu/arm: Add BBM Level 2 smmu feature
authorMikołaj Lenczewski <miko.lenczewski@arm.com>
Wed, 25 Jun 2025 11:34:34 +0000 (11:34 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 30 Jun 2025 17:09:05 +0000 (18:09 +0100)
commit212c439bdd8f99bcbec75adfca3297ae9319c2fb
treed844692ec0fcc7da19a21df1f174a6993f8fe2f5
parent5aa4b625762e5a1caf2e43aa52e55b7b507783e2
iommu/arm: Add BBM Level 2 smmu feature

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@arm.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Reviewed-by: Ryan Roberts <ryan.roberts@arm.com>
Link: https://lore.kernel.org/r/20250625113435.26849-4-miko.lenczewski@arm.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-sva.c
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.h