Skip to content

Commit 6310031

Browse files
yifancomalexdeucher
authored andcommitted
drm/amdgpu/gfx9: fix the doorbell missing when in CGPG issue.
If GC has entered CGPG, ringing doorbell > first page doesn't wakeup GC. Enlarge CP_MEC_DOORBELL_RANGE_UPPER to workaround this issue. Signed-off-by: Yifan Zhang <yifan1.zhang@amd.com> Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent e18aaea commit 6310031

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3675,8 +3675,12 @@ static int gfx_v9_0_kiq_init_register(struct amdgpu_ring *ring)
36753675
if (ring->use_doorbell) {
36763676
WREG32_SOC15(GC, 0, mmCP_MEC_DOORBELL_RANGE_LOWER,
36773677
(adev->doorbell_index.kiq * 2) << 2);
3678+
/* If GC has entered CGPG, ringing doorbell > first page doesn't
3679+
* wakeup GC. Enlarge CP_MEC_DOORBELL_RANGE_UPPER to workaround
3680+
* this issue.
3681+
*/
36783682
WREG32_SOC15(GC, 0, mmCP_MEC_DOORBELL_RANGE_UPPER,
3679-
(adev->doorbell_index.userqueue_end * 2) << 2);
3683+
(adev->doorbell.size - 4));
36803684
}
36813685

36823686
WREG32_SOC15_RLC(GC, 0, mmCP_HQD_PQ_DOORBELL_CONTROL,

0 commit comments

Comments
 (0)