]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Fix resume failures when device is gone
authorAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Fri, 17 Sep 2021 11:18:29 +0000 (07:18 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 23 Sep 2021 19:17:29 +0000 (15:17 -0400)
commit7ce7b869ea1cc6f7db819cc0f23b87ca01912e10
treee92a0f0da99afa77d92f7e9341ca428f3488a059
parent7c59510fcbb4a8eae21600bf3463400a3712fa9b
drm/amdgpu: Fix resume failures when device is gone

Problem:
When device goes into suspend and unplugged during it
then all HW programming during resume fails leading
to a bad SW during pci remove handling which follows.
Because device is first resumed and only later removed
we cannot rely on drm_dev_enter/exit here.

Fix:
Use a flag we use for PCIe error recovery to avoid
accessing registres. This allows to successfully complete
pm resume sequence and finish pci remove.

Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c