Skip to content

Commit 622b2a0

Browse files
committed
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 <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent fddbfb1 commit 622b2a0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,8 @@ int amdgpu_vcn_sw_fini(struct amdgpu_device *adev)
193193
{
194194
int i, j;
195195

196+
cancel_delayed_work_sync(&adev->vcn.idle_work);
197+
196198
if (adev->vcn.indirect_sram) {
197199
amdgpu_bo_free_kernel(&adev->vcn.dpg_sram_bo,
198200
&adev->vcn.dpg_sram_gpu_addr,

0 commit comments

Comments
 (0)