Commit 622b2a0a authored by Alex Deucher's avatar Alex Deucher
Browse files

drm/amdgpu/vcn: finish delay work before release resources



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

Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent fddbfb1c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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,