Skip to content

Commit afa6646

Browse files
committed
drm/amdgpu: skip MES for S0ix as well since it's part of GFX
It's also part of gfxoff. Cc: [email protected] # 6.0, 6.1 Reviewed-by: Mario Limonciello <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent d118b18 commit afa6646

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3016,14 +3016,15 @@ static int amdgpu_device_ip_suspend_phase2(struct amdgpu_device *adev)
30163016
continue;
30173017
}
30183018

3019-
/* skip suspend of gfx and psp for S0ix
3019+
/* skip suspend of gfx/mes and psp for S0ix
30203020
* gfx is in gfxoff state, so on resume it will exit gfxoff just
30213021
* like at runtime. PSP is also part of the always on hardware
30223022
* so no need to suspend it.
30233023
*/
30243024
if (adev->in_s0ix &&
30253025
(adev->ip_blocks[i].version->type == AMD_IP_BLOCK_TYPE_PSP ||
3026-
adev->ip_blocks[i].version->type == AMD_IP_BLOCK_TYPE_GFX))
3026+
adev->ip_blocks[i].version->type == AMD_IP_BLOCK_TYPE_GFX ||
3027+
adev->ip_blocks[i].version->type == AMD_IP_BLOCK_TYPE_MES))
30273028
continue;
30283029

30293030
/* XXX handle errors */

0 commit comments

Comments
 (0)