]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Fix vce work queue was not cancelled when suspend
authorRex Zhu <Rex.Zhu@amd.com>
Thu, 27 Sep 2018 12:48:39 +0000 (20:48 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 27 Sep 2018 15:01:20 +0000 (10:01 -0500)
commitc0940fc049bba7308df6189528601f4caf14318f
tree2be665d921f615477bc8d83b06a462110df9cc3c
parentacb3faa3dc6436ced924d1f68c2f99fe6e39405a
drm/amdgpu: Fix vce work queue was not cancelled when suspend

The vce cancel_delayed_work_sync never be called.
driver call the function in error path.

This caused the A+A suspend hang when runtime pm enebled.
As we will visit the smu in the idle queue. this will cause
smu hang because the dgpu has been suspend, and the dgpu also
will be waked up. As the smu has been hang, so the dgpu resume
will failed.

Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Feifei Xu <Feifei.Xu@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c