diff options
| author | Jason Gunthorpe <[email protected]> | 2024-09-06 15:47:55 +0000 |
|---|---|---|
| committer | Will Deacon <[email protected]> | 2024-09-09 14:47:15 +0000 |
| commit | e3b1be2e73dbe599f8b8886e120d206aa87e90f9 (patch) | |
| tree | 4586b8602c124630b7d63fff8ff706c88b15fc31 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | iommu/arm-smmu-v3: Add types for each level of the CD table (diff) | |
| download | kernel-e3b1be2e73dbe599f8b8886e120d206aa87e90f9.tar.gz kernel-e3b1be2e73dbe599f8b8886e120d206aa87e90f9.zip | |
iommu/arm-smmu-v3: Reorganize struct arm_smmu_ctx_desc_cfg
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).
Tested-by: Nicolin Chen <[email protected]>
Reviewed-by: Nicolin Chen <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions
