diff options
| author | Jason Gunthorpe <[email protected]> | 2024-09-06 15:47:53 +0000 |
|---|---|---|
| committer | Will Deacon <[email protected]> | 2024-09-09 14:47:15 +0000 |
| commit | c0a25a96dee9c3af01fbcad227871fc0f222900b (patch) | |
| tree | 5393b8d524877ba2593436934a628a6774f6fa67 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | iommu/arm-smmu-v3: Do not use devm for the cd table allocations (diff) | |
| download | kernel-c0a25a96dee9c3af01fbcad227871fc0f222900b.tar.gz kernel-c0a25a96dee9c3af01fbcad227871fc0f222900b.zip | |
iommu/arm-smmu-v3: Shrink the cdtab l1_desc array
The top of the 2 level CD table is (at most) 1024 entries big, and two
high order allocations are required. One of __le64 which is programmed
into the HW (8k) and one of struct arm_smmu_l1_ctx_desc which holds the
CPU pointer (16k).
There are two copies of the l2ptr_dma, one is stored in the struct
arm_smmu_l1_ctx_desc, and another is encoded in the __le64 for the HW to
use. Instead of storing two copies just decode the value from the __le64.
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
