drm/amdgpu: Disable uvd and vce free handles for raven
authorLeo Liu <leo.liu@amd.com>
Sun, 5 Feb 2017 20:19:57 +0000 (15:19 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 May 2017 21:41:37 +0000 (17:41 -0400)
Not required on raven.

Signed-off-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c

index 9890104ae9eaa39c706d833d68cd2f0ee6e02fb0..1a77893fa5f32bb900c1ddf007f46bfaa4f41069 100644 (file)
@@ -823,8 +823,10 @@ void amdgpu_driver_postclose_kms(struct drm_device *dev,
 
        amdgpu_ctx_mgr_fini(&fpriv->ctx_mgr);
 
-       amdgpu_uvd_free_handles(adev, file_priv);
-       amdgpu_vce_free_handles(adev, file_priv);
+       if (adev->asic_type != CHIP_RAVEN) {
+               amdgpu_uvd_free_handles(adev, file_priv);
+               amdgpu_vce_free_handles(adev, file_priv);
+       }
 
        amdgpu_vm_bo_rmv(adev, fpriv->prt_va);