mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-27 03:49:57 -04:00
drm/amdgpu: allocate doorbell index for multi-die case
Allocate different doorbell index for kiq/kcq rings on each die Signed-off-by: Le Ma <le.ma@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
@@ -316,6 +316,11 @@ int amdgpu_gfx_kiq_init_ring(struct amdgpu_device *adev,
|
||||
ring->doorbell_index = adev->doorbell_index.kiq;
|
||||
ring->xcc_id = xcc_id;
|
||||
ring->vm_hub = AMDGPU_GFXHUB_0;
|
||||
if (xcc_id >= 1)
|
||||
ring->doorbell_index = adev->doorbell_index.xcc1_kiq_start +
|
||||
xcc_id - 1;
|
||||
else
|
||||
ring->doorbell_index = adev->doorbell_index.kiq;
|
||||
|
||||
r = amdgpu_gfx_kiq_acquire(adev, ring, xcc_id);
|
||||
if (r)
|
||||
|
||||
Reference in New Issue
Block a user