[PATCH v2 04/10] iommu/arm-smmu-v3: Add types for each level of the 2 level stream table

Nicolin Chen nicolinc at nvidia.com
Mon Jun 10 19:13:29 PDT 2024


On Mon, Jun 10, 2024 at 09:31:13PM -0300, Jason Gunthorpe wrote:
> Add types struct arm_smmu_strtab_l1 and l2 to represent the HW layout of
> the descriptors, and use them in most places, following patches will get
> the remaing places. The size of the l1 and l2 HW allocations are
> sizeof(struct arm_smmu_strtab_l1/2).
> 
> This provides some more clarity than having raw __le64 *'s and sizes
> computed via macros.
> 
> Remove STRTAB_L1_DESC_DWORDS.
> 
> Signed-off-by: Jason Gunthorpe <jgg at nvidia.com>

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



More information about the linux-arm-kernel mailing list