]> git.baikalelectronics.ru Git - kernel.git/commit
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:24:35 +0000 (15:24 -0400)
commit7123d39dc24dcd21ff23d75f46f926b15269b9da
treee95801867c311754a0be29175f224c6f5e9684a6
parent42226c989789d8da4af1de0c31070c96726d990c
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>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c