Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750844AbWEDTm3 (ORCPT ); Thu, 4 May 2006 15:42:29 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750843AbWEDTm3 (ORCPT ); Thu, 4 May 2006 15:42:29 -0400 Received: from chiark.greenend.org.uk ([193.201.200.170]:62359 "EHLO chiark.greenend.org.uk") by vger.kernel.org with ESMTP id S1750732AbWEDTm2 (ORCPT ); Thu, 4 May 2006 15:42:28 -0400 To: Bjorn Helgaas Cc: linux-pci@atrey.karlin.mff.cuni.cz, Dave Airlie , Andrew Morton , greg@kroah.com, linux-kernel@vger.kernel.org, pjones@redhat.com, Arjan van de Ven Subject: Re: Add a "enable" sysfs attribute to the pci devices to allow userspace (Xorg) to enable devices without doing foul direct access In-Reply-To: <200605041326.36518.bjorn.helgaas@hp.com> References: <1146300385.3125.3.camel@laptopd505.fenrus.org> <200605041309.53910.bjorn.helgaas@hp.com> <445A51F1.9040500@linux.intel.com> <445A51F1.9040500@linux.intel.com> <200605041326.36518.bjorn.helgaas@hp.com> Date: Thu, 4 May 2006 20:42:17 +0100 Message-Id: From: Matthew Garrett Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1500 Lines: 33 Bjorn Helgaas 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@srcf.ucam.org - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/