Hi there,

A month or so ago I added hotplug support to the i915 driver based on
the modesetting branch.
The patches currently reside in the modesetting-101-hotplug branch in
the main fd.o drm repo.
http://cgit.freedesktop.org/mesa/drm/log/?h=modesetting-101-hotplug

So how does it work.
First we receive the interrupt from the hardware, the intel HW has
pretty good hotplug support. In the interrupt handler I tried to do as
little as possible. Which is to tell a waiting worker thread that a
hotplug event has happened and which output was affected.
The worker thread then does all of the actual probing and EDID
parsing, since this takes far to long to be handled in a interrupt.

Now I didn't implement a way for userspace to get these events, since
it was just me going at it and that interface need some more thought
to it. What it does do, is detect the status. On disconnect it turns
the output and corresponding crtc off. On connect we turn the output
on again along with updating the information in the intel_fb code.

A few notes on the branch: I had to change the interrupt handling a
bit, because the code treats the interrupt registers as 16bit due to
the i8XX legacy. But i9XX interrupt registers are 32bit, but those
bits weren't used until now that is. And because I don't have any i8XX
I was a bit reluctant to push these patch straight to the
modesetting-101 branch.

I would now like, after discussion, merge the branch into modesetting-101.

Cheers Jakob.

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to