drm/amd: Don't reset dGPUs if the system is going to s2idle
authorMario Limonciello <mario.limonciello@amd.com>
Tue, 17 May 2022 17:00:37 +0000 (12:00 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 18 May 2022 19:20:18 +0000 (15:20 -0400)
commit0223e516470aa0589da6c03e6d177c10594cabbd
tree20b1c846b56c3c387e7e33dd2d7b31528f0edabc
parent5ad25ace7c9fc76b53657b0a2cc441379b4ab17d
drm/amd: Don't reset dGPUs if the system is going to s2idle

An A+A configuration on ASUS ROG Strix G513QY proves that the ASIC
reset for handling aborted suspend can't work with s2idle.

This functionality was introduced in commit daf8de0874ab5b ("drm/amdgpu:
always reset the asic in suspend (v2)").  A few other commits have
gone on top of the ASIC reset, but this still doesn't work on the A+A
configuration in s2idle.

Avoid doing the reset on dGPUs specifically when using s2idle.

Fixes: daf8de0874ab5b ("drm/amdgpu: always reset the asic in suspend (v2)")
Link: https://gitlab.freedesktop.org/drm/amd/-/issues/2008
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c