Received: from eggs.gnu.org ([208.118.235.92]:55493) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBSu2-0007Oe-J1 for qemu-devel@nongnu.org; Fri, 01 Mar 2013 11:33:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UBSu1-00036K-GN for qemu-devel@nongnu.org; Fri, 01 Mar 2013 11:33:46 -0500 Received: from mx1.redhat.com ([209.132.183.28]:28311) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBSu1-00036E-7O for qemu-devel@nongnu.org; Fri, 01 Mar 2013 11:33:45 -0500 Message-ID: <1362155622.2532.287.camel@bling.home> From: Alex Williamson Date: Fri, 01 Mar 2013 09:33:42 -0700 In-Reply-To: <20130301040332.GA31112@morn.localdomain> References: <20130228175222.21912.94067.stgit@bling.home> <20130301040332.GA31112@morn.localdomain> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] pci vga: Support VGA behind bridges List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin O'Connor Cc: seabios@seabios.org, qemu-devel@nongnu.org On Thu, 2013-02-28 at 23:03 -0500, Kevin O'Connor wrote: > On Thu, Feb 28, 2013 at 10:52:49AM -0700, Alex Williamson wrote: > > We currently expect to find VGA devices on the root bus but we will > > also support them below bridges iff the VGA routing across the bridges > > is pre-configured. This patch maintains that behavior, but also > > enables SeaBIOS to enable VGA routing to the first VGA class device it > > finds when there is no preconfigured device. This allows us to > > support VGA devices behind root ports and bridges without special > > setup from QEMU. > [...] > > --- a/src/optionroms.c > > +++ b/src/optionroms.c > > @@ -439,13 +439,47 @@ vgarom_setup(void) > > I don't think that optionroms.c is the right place for this logic. On > coreboot, Xen, and CSM, SeaBIOS shouldn't be touching the PCI config. > It's only QEMU that would need this logic, so something like pciinit.c > is where this logic should go. Ok, I can look at finding a spot for it in pciinit. Note though that there's nothing QEMU specific about this, if other platforms are already enabling a route to a VGA device, there's no change. If something sneaks through without a VGA device enabled, this should generically enable the first device. Thanks, Alex