[PATCH] drm/amdgpu/vcn: finish delay work before release resources

Christian König ckoenig.leichtzumerken at gmail.com
Mon Nov 11 21:12:15 UTC 2019


Am 11.11.19 um 21:49 schrieb Alex Deucher:
> flush/cancel delayed works before doing finalization
> to avoid concurrently requests.
>
> Signed-off-by: Alex Deucher <alexander.deucher at amd.com>

Reviewed-by: Christian König <christian.koenig at amd.com>

> ---
>   drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 2 ++
>   1 file changed, 2 insertions(+)
>
> 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,



More information about the amd-gfx mailing list