Re: Add a "enable" sysfs attribute to the pci devices to allow userspace (Xorg) to enable devices without doing foul direct access

From: Matthew Garrett
Date: Thu May 04 2006 - 15:46:21 EST


Bjorn Helgaas <bjorn.helgaas@xxxxxx> wrote:

> There's already a "rom" file in sysfs. Could vbetool and friends
> use that?

Not if you have multiple graphics cards.

> How do vbetool and X coordinate their usage of "enable"?

vbetool won't run at anything other than a text console, and X won't
mess with the graphics card if it's not on the current VT. You can mess
this up if you try hard enough (multihead, for instance) but by and
large it's a situation that you can avoid.

> What if we throw an in-kernel VGA driver into the mix? But I guess
> Jon has asked all these questions before; I just didn't get warm
> fuzzies that there were safe, maintainable answers.

This probably isn't the right long-term answer, but the right long-term
answer is going to be a very long time away. It's an improvement over
what we have now. I certainly don't intend to leave vbetool relying on
it - of course, the "right" answer is for graphics drivers to know how
to program cards from scratch so we can get rid of vbetool altogether,
but I'll probably be more concerned about getting my flying car to meet
new emission standards than I will be by graphics cards at that stage.

--
Matthew Garrett | mjg59-chiark.mail.linux-rutgers.kernel@xxxxxxxxxxxxx
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/