]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc882128ae7b5104bd17f5adb1851860e17812fa0
treec051267d0cdc5aedf768848543743532342c1f4a
parent56594a5a239d1a30e84de821924eab6c18e58cba
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