drm/amd/amdgpu: finish delay works before release resources
authorJesse Zhang <zhexi.zhang@amd.com>
Fri, 8 Nov 2019 10:06:07 +0000 (18:06 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 11 Nov 2019 22:38:13 +0000 (17:38 -0500)
commit9f87516764a9f2a6a6a9552844efb41d9748afec
tree0cd178c92f20a7f067d78bc372a0d44941eec286
parent4cae34d065e8702421ca4332aa249ec00d8b37c2
drm/amd/amdgpu: finish delay works before release resources

flush/cancel delayed works before doing finalization
to avoid concurrently requests.

Signed-off-by: Jesse Zhang <zhexi.zhang@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c