projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c399dfc
)
drm/amdgpu: Use variable instead of constant for sdma doorbell range
author
Yong Zhao
<Yong.Zhao@amd.com>
Thu, 19 Sep 2019 22:01:06 +0000
(18:01 -0400)
committer
Alex Deucher
<alexander.deucher@amd.com>
Wed, 1 Jul 2020 05:59:07 +0000
(
01:59
-0400)
Signed-off-by: Yong Zhao <Yong.Zhao@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c
b/drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c
index 82145572e5a31b508abd1815693b262aa49bd353..52206050adb9181676904cd6ef78015154ef2299 100644
(file)
--- 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);