--- Alan Cox <[EMAIL PROTECTED]> wrote:
> Certain ACPI things need video setup too, and btw I for one agree with
> you about something - for some cards the video reset being handled via
> hotplug actually may make sense.

I'm just trying to get a first pass at this code checked in the new drm tree. I
would hope that everyone will download it and make it work on all the various
hardware. 

Overall the best solution is for the device driver to reset the card using
protected mode code from the driver itself. For cards that we have the code we
should definitely do it this way. Doing the reset in driver does need to take
into account other video devices and not leave more than one VGA device enabled.

For cards where we don't have the protected mode code I have provided a vm86
solution. This solution works by jumping to C000:3 in the BIOS image. Right now
this scheme does not work on non-X86 machines (you need emu86). It also does not
work on a OpenFirmware BIOS.  But it does work for the x86 ROM on an X86
machine.

There is also no intention for this code to be triggered on a laptop primary
display. I need the kernel PCI quirk implemented that records the boot video
device to ensure this. benh was talking about doing this but I might try coding
one up tonight; it's fairly simple to do. The kernel just needs to record the
pdev of the active PCI video device before any other video drivers get loaded.
Once multiple video drivers are loaded it is impossible to tell which video card
the ROM copy at at C000:0 physical belongs too. The quirk will provide the right
answer.

An even better solution would be for the kernel itself to call the VBIOS ROMs
during very early boot before entering protected mode. But someone with more
experience in the early kernel boot process needs to trying implementing it that
way. You would need to get a copy of the secondary ROM into RAM, save the INT
vectors, run the ROM, then restore the vectors. You also need the code
controlling VGA routing and ensuring that a single VGA device is left enabled. I
also think something needs to be patched up with the BIOS VGA font pointer.

=====
Jon Smirl
[EMAIL PROTECTED]

__________________________________
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam
http://mail.yahoo.com


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
--
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to