diff options
author | Leo Liu <leo.liu@amd.com> | 2017-02-05 15:19:57 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-05-24 17:41:37 -0400 |
commit | ef80d30b0266c44e31bca49abd5d80cbaa2acd3f (patch) | |
tree | d19b5cd6f14fda9b6b5807203e3a03fee4d43628 /drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | |
parent | fc739f82c5050ec9dc9a13cdcbc4ebb0dd590c37 (diff) |
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.c | 6 |
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, | |||
823 | 823 | ||
824 | amdgpu_ctx_mgr_fini(&fpriv->ctx_mgr); | 824 | amdgpu_ctx_mgr_fini(&fpriv->ctx_mgr); |
825 | 825 | ||
826 | amdgpu_uvd_free_handles(adev, file_priv); | 826 | if (adev->asic_type != CHIP_RAVEN) { |
827 | amdgpu_vce_free_handles(adev, file_priv); | 827 | amdgpu_uvd_free_handles(adev, file_priv); |
828 | amdgpu_vce_free_handles(adev, file_priv); | ||
829 | } | ||
828 | 830 | ||
829 | amdgpu_vm_bo_rmv(adev, fpriv->prt_va); | 831 | amdgpu_vm_bo_rmv(adev, fpriv->prt_va); |
830 | 832 | ||