drm/amdgpu/vcn: finish delay work before release resources
Subsystems (2)
PATCH 1/1 drm/amdgpu/vcn: finish delay work before release resources
flush/cancel delayed works before doing finalization to avoid concurrently requests.
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c +2 -0
@@ -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,
Signature · 6 lines
2.23.0 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 20191111204938.836819-1-alexander.deucher-5C7GfCeVMHo@public.gmane.org
Christian König
Reviewed-byAm 11.11.19 um 21:49 schrieb Alex Deucher:
Quoted 4 lines
flush/cancel delayed works before doing finalization to avoid concurrently requests.
Signed-off-by Alex Deucher <[email protected]>
Reviewed-by Christian König <[email protected]>
Quoted 9 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 2 ++ 1 file changed, 2 insertions(+)drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c +0
-0
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c int amdgpu_vcn_sw_fini(struct amdgpu_device *adev) · line 200
Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c +2
-0@@ -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,
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx