diff options
| author | Le Ma <[email protected]> | 2022-03-01 11:42:29 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2023-06-09 13:43:41 +0000 |
| commit | 2a47a2d90e5cd96c24503061c8920a1e6ee248a0 (patch) | |
| tree | 9e0a241e27989e4de1cdbc7e44793312257707d0 /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | |
| parent | drm/amdgpu: add support for SDMA on multiple AIDs (diff) | |
| download | kernel-2a47a2d90e5cd96c24503061c8920a1e6ee248a0.tar.gz kernel-2a47a2d90e5cd96c24503061c8920a1e6ee248a0.zip | |
drm/amdgpu: assign the doorbell index for sdma on non-AID0
Allocate new sdma doorbell index for the instances only on AID1 for now.
Todo: there's limitation that SDMA doorbell index on SDMA 4.4.2 needs to be
less than 0x1FF, so the tail part in _AMDGPU_VEGA20_DOORBELL_ASSIGNMENT is not
enough to store sdma doorbell range on maximum 4 AIDs if doorbell_range is 20.
So it looks better to create a new doorbell index assignment table for 4.4.2.
v2: change "(x << 1) + 2" to "(x + 1) << 1" for readability.
Signed-off-by: Le Ma <[email protected]>
Acked-by: Felix Kuehling <[email protected]>
Reviewed-by: Lijo Lazar <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
0 files changed, 0 insertions, 0 deletions
