diff options
author | Oak Zeng <ozeng@amd.com> | 2018-11-19 16:20:07 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-11-28 15:55:33 -0500 |
commit | 9564f1928ed29b093bb997df9573e8edae61983d (patch) | |
tree | 927f2959a789998860ae011e99a0b47f7edef2d0 /drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | |
parent | 6585661ddd6a0a47c4d2a70e1441031c294e6de2 (diff) |
drm/amdgpu: Use asic specific doorbell index instead of macro definition
ASIC specific doorbell layout is used instead of enum definition
Signed-off-by: Oak Zeng <ozeng@amd.com>
Suggested-by: Felix Kuehling <Felix.Kuehling@amd.com>
Suggested-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c index 6a70c0b7105f..97a60da62004 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | |||
@@ -250,7 +250,7 @@ int amdgpu_gfx_kiq_init_ring(struct amdgpu_device *adev, | |||
250 | ring->adev = NULL; | 250 | ring->adev = NULL; |
251 | ring->ring_obj = NULL; | 251 | ring->ring_obj = NULL; |
252 | ring->use_doorbell = true; | 252 | ring->use_doorbell = true; |
253 | ring->doorbell_index = AMDGPU_DOORBELL_KIQ; | 253 | ring->doorbell_index = adev->doorbell_index.kiq; |
254 | 254 | ||
255 | r = amdgpu_gfx_kiq_acquire(adev, ring); | 255 | r = amdgpu_gfx_kiq_acquire(adev, ring); |
256 | if (r) | 256 | if (r) |