]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iommu/arm-smmu-v3: Add types for each level of the CD table
authorJason Gunthorpe <jgg@nvidia.com>
Fri, 6 Sep 2024 15:47:54 +0000 (12:47 -0300)
committerWill Deacon <will@kernel.org>
Mon, 9 Sep 2024 14:47:15 +0000 (15:47 +0100)
commit7c567eb1e1d2a835140091ff8d4b73ac5454ba7b
tree85a1afa0fdff3cf22fb1bf085f17d436b1bd7a26
parentc0a25a96dee9c3af01fbcad227871fc0f222900b
iommu/arm-smmu-v3: Add types for each level of the CD table

As well as indexing helpers arm_smmu_cdtab_l1/2_idx().

Remove CTXDESC_L1_DESC_DWORDS and CTXDESC_CD_DWORDS replacing them all
with type specific calculations.

Tested-by: Nicolin Chen <nicolinc@nvidia.com>
Reviewed-by: Nicolin Chen <nicolinc@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/7-v4-6416877274e1+1af-smmuv3_tidy_jgg@nvidia.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.h