Commit 56c0a9c3 authored by Le Ma's avatar Le Ma Committed by Alex Deucher
Browse files

drm/amdgpu: enable CP interrupt for gfx v12_1 in frontdoor loading case



Enable cp interrupt for event detection since GFX CGCG and LS
has been enabled by firmware.

v2: enable CP INT by merely checking fw_load_type

Signed-off-by: default avatarLe Ma <le.ma@amd.com>
Reviewed-by: default avatarHawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent ba80939f
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -2479,8 +2479,9 @@ static int gfx_v12_1_xcc_cp_resume(struct amdgpu_device *adev, uint16_t xcc_mask
				return r;
		}

		if (!(adev->flags & AMD_IS_APU))
			gfx_v12_1_xcc_enable_gui_idle_interrupt(adev, false, xcc_id);
		/* GFX CGCG and LS is set by default */
		if (adev->firmware.load_type == AMDGPU_FW_LOAD_PSP)
			gfx_v12_1_xcc_enable_gui_idle_interrupt(adev, true, xcc_id);

		gfx_v12_1_xcc_cp_set_doorbell_range(adev, xcc_id);