aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian König <deathsimple@vodafone.de>2013-04-08 06:41:27 -0400
committerAlex Deucher <alexander.deucher@amd.com>2013-04-09 10:31:32 -0400
commit574490401d8fd553ac4baa33ea22fa315a2b4294 (patch)
treecb4605e818703c7b0f240faa52b62a101f00cb1d
parenta0a53aa8c7b491a43e2ef66786f9511bae8cbc35 (diff)
drm/radeon: UVD doesn't needs VM on SI v2
v2: update error message and comment Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Jerome Glisse <jglisse@redhat.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/radeon/radeon_cs.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_cs.c b/drivers/gpu/drm/radeon/radeon_cs.c
index 70d38241b083..a3dd04d038fe 100644
--- a/drivers/gpu/drm/radeon/radeon_cs.c
+++ b/drivers/gpu/drm/radeon/radeon_cs.c
@@ -241,15 +241,15 @@ int radeon_cs_parser_init(struct radeon_cs_parser *p, void *data)
241 return -EINVAL; 241 return -EINVAL;
242 } 242 }
243 243
244 /* we only support VM on SI+ */ 244 if (radeon_cs_get_ring(p, ring, priority))
245 if ((p->rdev->family >= CHIP_TAHITI) &&
246 ((p->cs_flags & RADEON_CS_USE_VM) == 0)) {
247 DRM_ERROR("VM required on SI+!\n");
248 return -EINVAL; 245 return -EINVAL;
249 }
250 246
251 if (radeon_cs_get_ring(p, ring, priority)) 247 /* we only support VM on some SI+ rings */
248 if ((p->rdev->asic->ring[p->ring].cs_parse == NULL) &&
249 ((p->cs_flags & RADEON_CS_USE_VM) == 0)) {
250 DRM_ERROR("Ring %d requires VM!\n", p->ring);
252 return -EINVAL; 251 return -EINVAL;
252 }
253 } 253 }
254 254
255 /* deal with non-vm */ 255 /* deal with non-vm */