Commit d0b6c5f2 authored by Likun Gao's avatar Likun Gao Committed by Alex Deucher
Browse files

drm/amdgpu: disable graphics doorbell range for gfx v12_1



Disable doorbell range for graphics engine on gfx v12_1.

Signed-off-by: default avatarLikun Gao <Likun.Gao@amd.com>
Reviewed-by: default avatarHawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 77385a2d
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1998,6 +1998,10 @@ static void gfx_v12_1_xcc_kiq_setting(struct amdgpu_ring *ring,
static void gfx_v12_1_xcc_cp_set_doorbell_range(struct amdgpu_device *adev,
						int xcc_id)
{
	/* disable gfx engine doorbell range */
	WREG32_SOC15(GC, GET_INST(GC, xcc_id), regCP_RB_DOORBELL_RANGE_LOWER, 0);
	WREG32_SOC15(GC, GET_INST(GC, xcc_id), regCP_RB_DOORBELL_RANGE_UPPER, 0);

	/* set compute engine doorbell range */
	WREG32_SOC15(GC, GET_INST(GC, xcc_id), regCP_MEC_DOORBELL_RANGE_LOWER,
		     ((adev->doorbell_index.kiq +