summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c
diff options
context:
space:
mode:
authorYong Zhao <Yong.Zhao@amd.com>2019-09-19 18:01:06 -0400
committerAlex Deucher <alexander.deucher@amd.com>2020-07-01 01:59:07 -0400
commit9822ac8f8506994bf196a5cf5dd3136a6fb980c0 (patch)
treed8b2eb46ac323342bfddfb09a5d945da1f508d19 /drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c
parentc399dfcb0e4bc34dcbc979c1bd76680141e6ff5b (diff)
drm/amdgpu: Use variable instead of constant for sdma doorbell range
Signed-off-by: Yong Zhao <Yong.Zhao@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c b/drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c
index 82145572e5a3..52206050adb9 100644
--- a/drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c
+++ b/drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c
@@ -673,7 +673,8 @@ static int sdma_v5_2_gfx_resume(struct amdgpu_device *adev)
WREG32(sdma_v5_2_get_reg_offset(adev, i, mmSDMA0_GFX_DOORBELL_OFFSET), doorbell_offset);
adev->nbio.funcs->sdma_doorbell_range(adev, i, ring->use_doorbell,
- ring->doorbell_index, 20);
+ ring->doorbell_index,
+ adev->doorbell_index.sdma_doorbell_range);
if (amdgpu_sriov_vf(adev))
sdma_v5_2_ring_set_wptr(ring);