Skip to content

Commit 9050589

Browse files
Kenneth Fengalexdeucher
authored andcommitted
drm/amdgpu: disable gfxoff with the compute workload on gfx12
Disable gfxoff with the compute workload on gfx12. This is a workaround for the opencl test failure. Signed-off-by: Kenneth Feng <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> (cherry picked from commit 2affe2b) Cc: [email protected] # 6.12.x
1 parent 1e8c193 commit 9050589

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -715,8 +715,9 @@ int amdgpu_amdkfd_submit_ib(struct amdgpu_device *adev,
715715
void amdgpu_amdkfd_set_compute_idle(struct amdgpu_device *adev, bool idle)
716716
{
717717
enum amd_powergating_state state = idle ? AMD_PG_STATE_GATE : AMD_PG_STATE_UNGATE;
718-
if (IP_VERSION_MAJ(amdgpu_ip_version(adev, GC_HWIP, 0)) == 11 &&
719-
((adev->mes.kiq_version & AMDGPU_MES_VERSION_MASK) <= 64)) {
718+
if ((IP_VERSION_MAJ(amdgpu_ip_version(adev, GC_HWIP, 0)) == 11 &&
719+
((adev->mes.kiq_version & AMDGPU_MES_VERSION_MASK) <= 64)) ||
720+
(IP_VERSION_MAJ(amdgpu_ip_version(adev, GC_HWIP, 0)) == 12)) {
720721
pr_debug("GFXOFF is %s\n", idle ? "enabled" : "disabled");
721722
amdgpu_gfx_off_ctrl(adev, idle);
722723
} else if ((IP_VERSION_MAJ(amdgpu_ip_version(adev, GC_HWIP, 0)) == 9) &&

0 commit comments

Comments
 (0)