[PATCH v2 10/10] iommu/arm-smmu-v3: Reorganize struct arm_smmu_ctx_desc_cfg
Nicolin Chen
nicolinc at nvidia.com
Mon Jun 10 20:25:40 PDT 2024
On Mon, Jun 10, 2024 at 09:31:19PM -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 CTXDESC_CD_DWORDS by changing the last places to use
> sizeof(struct arm_smmu_cd).
>
> 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