Skip to content

Commit 277bb0f

Browse files
jokim-amdalexdeucher
authored andcommitted
drm/amdgpu: enable suspend/resume all for gfx 12
Suspend/resume all gangs has been available for GFX12 for a while now so enable it. Signed-off-by: Jonathan Kim <jonathan.kim@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 0ef930e commit 277bb0f

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

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

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -691,14 +691,11 @@ int amdgpu_mes_init_microcode(struct amdgpu_device *adev, int pipe)
691691
bool amdgpu_mes_suspend_resume_all_supported(struct amdgpu_device *adev)
692692
{
693693
uint32_t mes_rev = adev->mes.sched_version & AMDGPU_MES_VERSION_MASK;
694-
bool is_supported = false;
695694

696-
if (amdgpu_ip_version(adev, GC_HWIP, 0) >= IP_VERSION(11, 0, 0) &&
697-
amdgpu_ip_version(adev, GC_HWIP, 0) < IP_VERSION(12, 0, 0) &&
698-
mes_rev >= 0x63)
699-
is_supported = true;
700-
701-
return is_supported;
695+
return ((amdgpu_ip_version(adev, GC_HWIP, 0) >= IP_VERSION(11, 0, 0) &&
696+
amdgpu_ip_version(adev, GC_HWIP, 0) < IP_VERSION(12, 0, 0) &&
697+
mes_rev >= 0x63) ||
698+
amdgpu_ip_version(adev, GC_HWIP, 0) >= IP_VERSION(12, 0, 0));
702699
}
703700

704701
/* Fix me -- node_id is used to identify the correct MES instances in the future */

0 commit comments

Comments
 (0)