From ddd5c68e843d2a001ea8e2dea8a1df60e8b9c96f Mon Sep 17 00:00:00 2001 From: rnoland Date: Sat, 28 Feb 2009 02:37:55 +0000 Subject: Initialize the vblank structures at load time. Previously we did this at irq install/uninstall time, but when we vt switch, we uninstall the irq handler. When the irq handler is reinstalled, the modeset ioctl happens first. The modeset ioctl is supposed to tell us that we can disable vblank interrupts if there are no active consumers. This will fail after a vt switch until another modeset ioctl is called via dpms or xrandr. Leading to cases where either interrupts are on and can't be disabled, or worse, no interrupts at all. MFC after: 2 weeks --- sys/dev/drm/i915_drv.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/dev/drm/i915_drv.h') diff --git a/sys/dev/drm/i915_drv.h b/sys/dev/drm/i915_drv.h index b67eff8..0935a70 100644 --- a/sys/dev/drm/i915_drv.h +++ b/sys/dev/drm/i915_drv.h @@ -49,6 +49,8 @@ enum pipe { PIPE_B, }; +#define I915_NUM_PIPE 2 + /* Interface history: * * 1.1: Original. -- cgit v1.1