]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu/pm: bail on sysfs/debugfs queries during platform suspend
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Mar 2021 21:09:41 +0000 (17:09 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Apr 2021 20:43:35 +0000 (16:43 -0400)
commit68ac8643f958138a0d4e4efca60fcb467d3ebfb9
treef23ac86f2dd32e194ff513640e2af2c442d0c51a
parent515824a94042b1cb3ad608968ba8993b6cb418cc
drm/amdgpu/pm: bail on sysfs/debugfs queries during platform suspend

The GPU is in the process of being shutdown.  Spurious queries during
suspend and resume can put the SMU into a bad state.  Runtime PM is
handled dynamically so we check if we are in non-runtime suspend.

Reviewed-by: Evan Quan <evan.quan@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/amdgpu_pm.c