Skip to content

Commit 1ba7b24

Browse files
yifancomalexdeucher
authored andcommitted
drm/amdgpu/gfx10: enlarge CP_MEC_DOORBELL_RANGE_UPPER to cover full doorbell.
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 6310031 commit 1ba7b24

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6970,8 +6970,12 @@ static int gfx_v10_0_kiq_init_register(struct amdgpu_ring *ring)
69706970
if (ring->use_doorbell) {
69716971
WREG32_SOC15(GC, 0, mmCP_MEC_DOORBELL_RANGE_LOWER,
69726972
(adev->doorbell_index.kiq * 2) << 2);
6973+
/* If GC has entered CGPG, ringing doorbell > first page doesn't
6974+
* wakeup GC. Enlarge CP_MEC_DOORBELL_RANGE_UPPER to workaround
6975+
* this issue.
6976+
*/
69736977
WREG32_SOC15(GC, 0, mmCP_MEC_DOORBELL_RANGE_UPPER,
6974-
(adev->doorbell_index.userqueue_end * 2) << 2);
6978+
(adev->doorbell.size - 4));
69756979
}
69766980

69776981
WREG32_SOC15(GC, 0, mmCP_HQD_PQ_DOORBELL_CONTROL,

0 commit comments

Comments
 (0)