Enable the REG_READ ioctl. A whitelist is used to allow
authorjsg <jsg@openbsd.org>
Sun, 19 Apr 2015 02:55:52 +0000 (02:55 +0000)
committerjsg <jsg@openbsd.org>
Sun, 19 Apr 2015 02:55:52 +0000 (02:55 +0000)
reading a timestamp off the render ring for the Mesa i965 driver.
ok kettenis@

sys/dev/pci/drm/i915/i915_dma.c

index 03820d8..04307ad 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: i915_dma.c,v 1.21 2015/04/18 14:47:34 jsg Exp $       */
+/*     $OpenBSD: i915_dma.c,v 1.22 2015/04/19 02:55:52 jsg Exp $       */
 /* i915_dma.c -- DMA support for the I915 -*- linux-c -*-
  */
 /*
@@ -475,9 +475,7 @@ struct drm_ioctl_desc i915_ioctls[] = {
        DRM_IOCTL_DEF_DRV(I915_GEM_WAIT, i915_gem_wait_ioctl, DRM_AUTH|DRM_UNLOCKED),
        DRM_IOCTL_DEF_DRV(I915_GEM_CONTEXT_CREATE, i915_gem_context_create_ioctl, DRM_UNLOCKED),
        DRM_IOCTL_DEF_DRV(I915_GEM_CONTEXT_DESTROY, i915_gem_context_destroy_ioctl, DRM_UNLOCKED),
-#ifdef __linux__
        DRM_IOCTL_DEF_DRV(I915_REG_READ, i915_reg_read_ioctl, DRM_UNLOCKED),
-#endif
 };
 
 int i915_max_ioctl = DRM_ARRAY_SIZE(i915_ioctls);