drm/amdgpu/pm: return an error during GPU reset or suspend (v2)
authorAlex Deucher <alexander.deucher@amd.com>
Sun, 24 May 2020 06:46:53 +0000 (02:46 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 29 May 2020 17:06:53 +0000 (13:06 -0400)
commit48b270bb22dbe27f122ed9b310f23a20d2f39228
treec051267d0cdc5aedf768848543743532342c1f4a
parentec6837591f99245b061d82571331160285306b7a
drm/amdgpu/pm: return an error during GPU reset or suspend (v2)

Return an error for sysfs and debugfs power interfaces during
gpu reset and suspend.  Prevents access to the hw while it may
be in an unusable state.

v2: squash in fix to drop suspend check

Acked-by: Nirmoy Das <nirmoy.das@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c