diff options
| author | Nicolin Chen <[email protected]> | 2025-07-24 22:10:01 +0000 |
|---|---|---|
| committer | Jason Gunthorpe <[email protected]> | 2025-07-28 15:07:50 +0000 |
| commit | 5a1c7590939c3c5678b782d29f0ccfd1323a8d92 (patch) | |
| tree | c2be91e765ddfd5fd052ca63ae8b1661fd74035a /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | |
| parent | iommufd: Rename some shortterm-related identifiers (diff) | |
| download | kernel-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
