summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@openbsd.org>2013-07-06 13:20:00 +0200
committerJonathan Gray <jsg@jsg.id.au>2013-08-12 10:44:43 +1000
commit7f1a7b57dec1d44e4060bfdcfcd5bcc69e150a37 (patch)
tree3b52faf2b52e92282ab9b68fa496e02141e18d53
parent5b643acc905d2463d205c021a5c18df25056feee (diff)
don't advertise "vm" support (RADEON_INFO_VA_START/IB_VM_MAX_SIZE) just yet
-rw-r--r--sys/dev/pci/drm/radeon/radeon_kms.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/radeon/radeon_kms.c b/sys/dev/pci/drm/radeon/radeon_kms.c
index bf0f2952c0c..b86fde8f1c1 100644
--- a/sys/dev/pci/drm/radeon/radeon_kms.c
+++ b/sys/dev/pci/drm/radeon/radeon_kms.c
@@ -1914,16 +1914,22 @@ int radeon_info_ioctl(struct drm_device *dev, void *data, struct drm_file *filp)
break;
case RADEON_INFO_VA_START:
/* this is where we report if vm is supported or not */
+ return -EINVAL;
+#ifdef notyet
if (rdev->family < CHIP_CAYMAN)
return -EINVAL;
value = RADEON_VA_RESERVED_SIZE;
break;
+#endif
case RADEON_INFO_IB_VM_MAX_SIZE:
/* this is where we report if vm is supported or not */
+ return -EINVAL;
+#ifdef notyet
if (rdev->family < CHIP_CAYMAN)
return -EINVAL;
value = RADEON_IB_VM_MAX_SIZE;
break;
+#endif
case RADEON_INFO_MAX_PIPES:
if (rdev->family >= CHIP_TAHITI)
value = rdev->config.si.max_cu_per_sh;