aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
diff options
context:
space:
mode:
authorNicolin Chen <[email protected]>2025-07-24 22:10:01 +0000
committerJason Gunthorpe <[email protected]>2025-07-28 15:07:50 +0000
commit5a1c7590939c3c5678b782d29f0ccfd1323a8d92 (patch)
treec2be91e765ddfd5fd052ca63ae8b1661fd74035a /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
parentiommufd: Rename some shortterm-related identifiers (diff)
downloadkernel-5a1c7590939c3c5678b782d29f0ccfd1323a8d92.tar.gz
kernel-5a1c7590939c3c5678b782d29f0ccfd1323a8d92.zip
iommu/arm-smmu-v3: Do not bother impl_ops if IOMMU_VIOMMU_TYPE_ARM_SMMUV3
When viommu type is IOMMU_VIOMMU_TYPE_ARM_SMMUV3, always return or init the standard struct arm_vsmmu, instead of going through impl_ops that must have its own viommu type than the standard IOMMU_VIOMMU_TYPE_ARM_SMMUV3. Given that arm_vsmmu_init() is called after arm_smmu_get_viommu_size(), any unsupported viommu->type must be a corruption. And it must be a driver bug that its vsmmu_size and vsmmu_init ops aren't paired. Warn these two cases. Link: https://patch.msgid.link/r/[email protected] Suggested-by: Will Deacon <[email protected]> Acked-by: Will Deacon <[email protected]> Reviewed-by: Pranjal Shrivastava <[email protected]> Signed-off-by: Nicolin Chen <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c')
0 files changed, 0 insertions, 0 deletions