aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c
index 9b71d6c2a968..b0c670294e2f 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c
@@ -634,7 +634,11 @@ int amdgpu_vce_ring_parse_cs(struct amdgpu_cs_parser *p, uint32_t ib_idx)
634 uint32_t allocated = 0; 634 uint32_t allocated = 0;
635 uint32_t tmp, handle = 0; 635 uint32_t tmp, handle = 0;
636 uint32_t *size = &tmp; 636 uint32_t *size = &tmp;
637 int i, r = 0, idx = 0; 637 int i, r, idx = 0;
638
639 r = amdgpu_cs_sysvm_access_required(p);
640 if (r)
641 return r;
638 642
639 while (idx < ib->length_dw) { 643 while (idx < ib->length_dw) {
640 uint32_t len = amdgpu_get_ib_value(p, ib_idx, idx); 644 uint32_t len = amdgpu_get_ib_value(p, ib_idx, idx);