drm/radeon/kms: Only VM CS ioctl is supported on SI (v2)
[deliverable/linux.git] / drivers / gpu / drm / radeon / radeon_cs.c
index 087bd5053774960b8eb617681587205cab0a9801..5e459a3a872df9a195cc5180b116fe7985b217c3 100644 (file)
@@ -253,6 +253,13 @@ int radeon_cs_parser_init(struct radeon_cs_parser *p, void *data)
                return -EINVAL;
        }
 
+       /* we only support VM on SI+ */
+       if ((p->rdev->family >= CHIP_TAHITI) &&
+           ((p->cs_flags & RADEON_CS_USE_VM) == 0)) {
+               DRM_ERROR("VM required on SI+!\n");
+               return -EINVAL;
+       }
+
        if (radeon_cs_get_ring(p, ring, priority))
                return -EINVAL;
 
This page took 0.023691 seconds and 5 git commands to generate.