[PATCH v2 05/10] iommu/arm-smmu-v3: Reorganize struct arm_smmu_strtab_cfg
Nicolin Chen
nicolinc at nvidia.com
Mon Jun 10 19:31:15 PDT 2024
On Mon, Jun 10, 2024 at 09:31:14PM -0300, Jason Gunthorpe wrote:
> The members here are being used for both the linear and the 2 level case,
> with the meaning of each item slightly different in the two cases.
>
> Split it into a clean union where both cases have their own struct with
> their own logical names and correct types.
>
> Adjust all the users to detect linear/2lvl and use the right sub structure
> and types consistently.
>
> Remove STRTAB_STE_DWORDS by changing the last places to use
> sizeof(struct arm_smmu_ste).
>
> 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