[PATCH 0/7] Tidy some minor things in the stream table/cd table area

Nicolin Chen nicolinc at nvidia.com
Mon Jun 3 15:41:15 PDT 2024


On Mon, Jun 03, 2024 at 07:31:26PM -0300, Jason Gunthorpe wrote:
> Will pointed out that two places referring to the CD/STE struct did not
> get the new types. While auditing this code a few more oddities were
> noticed.
> 
> - Correct types for the linear stream/cd table pointers struct
> - Remove redundant dma_addr_t's and save some memory
> - Remove redundant devm usage
> - Use the modern rbtree API
> 
> Nothing is particularly profound here, I've been sitting on these for
> awhile, enough is merged now that they can be cleanly based and are
> seperate from my other series.
> 
> Jason Gunthorpe (7):
>   iommu/arm-smmu-v3: Split struct arm_smmu_strtab_cfg.strtab
>   iommu/arm-smmu-v3: Do not zero the strtab twice
>   iommu/arm-smmu-v3: Shrink the strtab l1_desc array
>   iommu/arm-smmu-v3: Split struct arm_smmu_ctx_desc_cfg.cdtab
>   iommu/arm-smmu-v3: Do not use devm for the cd table allocations
>   iommu/arm-smmu-v3: Shrink the cdtab l1_desc array
>   iommu/arm-smmu-v3: Use the new rb tree helpers
> 
>  drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 234 +++++++++-----------
>  drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.h |  30 +--
>  2 files changed, 119 insertions(+), 145 deletions(-)

Didn't try something too particular for the changes, yet boot
and sanity tests work fine with this series:

Tested-by: Nicolin Chen <nicolinc at nvidia.com>



More information about the linux-arm-kernel mailing list