summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
diff options
context:
space:
mode:
authorLeo Liu2017-02-05 21:19:57 +0100
committerAlex Deucher2017-05-24 23:41:37 +0200
commitef80d30b0266c44e31bca49abd5d80cbaa2acd3f (patch)
treed19b5cd6f14fda9b6b5807203e3a03fee4d43628 /drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
parentdrm/amdgpu: get cs support of AMDGPU_HW_IP_VCN_DEC (diff)
downloadkernel-qcow2-linux-ef80d30b0266c44e31bca49abd5d80cbaa2acd3f.tar.gz
kernel-qcow2-linux-ef80d30b0266c44e31bca49abd5d80cbaa2acd3f.tar.xz
kernel-qcow2-linux-ef80d30b0266c44e31bca49abd5d80cbaa2acd3f.zip
drm/amdgpu: Disable uvd and vce free handles for raven
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
index 9890104ae9ea..1a77893fa5f3 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
@@ -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);