]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amdgpu: enable CP interrupt for gfx v12_1 in frontdoor loading case
authorLe Ma <le.ma@amd.com>
Fri, 7 Nov 2025 07:05:56 +0000 (15:05 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 5 Jan 2026 21:59:56 +0000 (16:59 -0500)
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: Le Ma <le.ma@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c

index 2fd0ec3cc7b0ffd0e2fc6273cedbaed7bdfa2caa..1b63546fbb91bf59241ef072d24396087fc5f110 100644 (file)
@@ -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);