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)
commitd2ae842d24625756fb7ac5440335ed2973463b7d
treef23ac86f2dd32e194ff513640e2af2c442d0c51a
parentdd67d7a6202c4ec173b1aac96be6d4cc4d6166cc
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