mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
iommu/arm-smmu-v3-sva: Use system_supports_bbml3() to detect CPU feature
Commit94104e3cfa("arm64: cpufeature: Rename BBML2_NOABORT as BBML3") renamed the cpu_supports_bbml2_noabort() helper to cpu_supports_bbml3(), as the Linux-defined "noabort" semantics have now been incorporated into the architecture under the BBML3 feature. Update the caller in the SMMUv3 SVA driver to use the new function. There is a slightly oddity in that the SMMUv3 architecture already defined BBML2 in such a way that aborts were prohibited, so we use the BBML3 feature on the CPU to enable BBML2 in the SMMU. Fixes:94104e3cfa("arm64: cpufeature: Rename BBML2_NOABORT as BBML3") Signed-off-by: Will Deacon <will@kernel.org>
This commit is contained in:
parent
879aca5119
commit
d8fc0793cf
|
|
@ -208,7 +208,7 @@ bool arm_smmu_sva_supported(struct arm_smmu_device *smmu)
|
|||
feat_mask |= ARM_SMMU_FEAT_VAX;
|
||||
}
|
||||
|
||||
if (system_supports_bbml2_noabort())
|
||||
if (system_supports_bbml3())
|
||||
feat_mask |= ARM_SMMU_FEAT_BBML2;
|
||||
|
||||
if ((smmu->features & feat_mask) != feat_mask)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user