[PATCH v2 10/27] iommu/arm-smmu-v3: Move the CD generation for SVA into a function

Nicolin Chen nicolinc at nvidia.com
Mon Dec 4 19:03:12 PST 2023


On Wed, Nov 01, 2023 at 08:36:28PM -0300, Jason Gunthorpe wrote:
> Pull all the calculations for building the CD table entry for a mmu_struct
> into arm_smmu_make_sva_cd().
> 
> Call it in the two places installing the SVA CD table entry.
> 
> Open code the last caller of arm_smmu_update_ctx_desc_devices() and remove
> the function.
> 
> Remove arm_smmu_write_ctx_desc() since all callers are gone.

It seems that there are still two lines of comments mentioning
arm_smmu_write_ctx_desc that should be removed or updated too?

Nicolin



More information about the linux-arm-kernel mailing list