OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
CVS: cvs.openbsd.org: xenocara

From: Owain Ainsworth (ogacvs.openbsd.org)
Date: Wed Apr 07 2010 - 13:22:01 CDT


CVSROOT: /cvs
Module name: xenocara
Changes by: ogacvs.openbsd.org 2010/04/07 12:22:00

Modified files:
        driver/xf86-video-intel/src: i830_driver.c

Log message:
Here's a really good idea: when preparing for a vt switch the intel
driver idles the ringbuffer, stops it, unbinds all memory, then hands
back off.

Now here's the clever bit: just before we call to idle the ringbuffer
(which sleeps waiting for an interrupt) let's TURN OFF THE FUCKING
INTERRUPT. That's a great idea, really, isn't it?

Move the interrupt disable to *after* stop_ring. Theo's T61 VT switches
again. everyone elses' intel stuff worked by magic (or shared
interrupts) before now.

Fixed after discussion with deraadt, thanks to miod for suggestions.