diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2019-11-11 21:48:48 +0100 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-11-13 21:29:42 +0100 |
commit | 622b2a0ab647d2755f2c1f1000d3403e86a69763 (patch) | |
tree | 417e232322437181e7d987e33c3c0403c65a8c4e /drivers | |
parent | drm/amd/powerplay: read pcie speed/width info (v2) (diff) | |
download | linux-622b2a0ab647d2755f2c1f1000d3403e86a69763.tar.xz linux-622b2a0ab647d2755f2c1f1000d3403e86a69763.zip |
drm/amdgpu/vcn: finish delay work before release resources
flush/cancel delayed works before doing finalization
to avoid concurrently requests.
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c index 3199e4a5ff12..9d870444d7d6 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c @@ -193,6 +193,8 @@ int amdgpu_vcn_sw_fini(struct amdgpu_device *adev) { int i, j; + cancel_delayed_work_sync(&adev->vcn.idle_work); + if (adev->vcn.indirect_sram) { amdgpu_bo_free_kernel(&adev->vcn.dpg_sram_bo, &adev->vcn.dpg_sram_gpu_addr, |