From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bruno =?UTF-8?B?UHLDqW1vbnQ=?= Subject: Re: [PATCH 1/2 v2] vgaarb: Don't default exclusively to first video device with mem+io Date: Fri, 12 Sep 2014 13:19:19 +0200 Message-ID: <20140912131919.35c777e5@pluto> References: <20140514224339.7f8be3a9@neptune.home> <20140810112654.1bf684d6@neptune.home> <20140810183411.19370721@neptune.home> <20140816192135.34260115@neptune.home> <20140820075508.74f5b622@pluto> <20140820091152.76cd4e1a@pluto> <20140821233435.19a9cffa@neptune.home> <20140822082324.12cb6e93@pluto> <20140823130624.06ecc057@neptune.home> <20140824230953.7c04890f@neptune.home> <20140828224750.23148125@neptune.home> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <20140828224750.23148125@neptune.home> Sender: linux-pci-owner@vger.kernel.org To: Bjorn Helgaas Cc: Andreas Noever , dri-devel@lists.freedesktop.org, Matthew Garrett , Greg Kroah-Hartman , Linux PCI List-Id: dri-devel@lists.freedesktop.org Bjorn, What is missing to get these two patches pushed to Linus? Bruno On Thu, 28 Aug 2014 22:47:50 +0200 Bruno Pr=C3=A9mont wrote: > On Tue, 26 August 2014 Andreas Noever wrot= e: > > On Sun, Aug 24, 2014 at 11:09 PM, Bruno Pr=C3=A9mont wrote: > > > With commit 20cde694027e boot video device detection was moved fr= om > > > efifb to x86 and ia64 pci/fixup.c. > > > > > > For dual-GPU Apple computers above change represents a regression= as > > > code in efifb did forcefully override vga_default_device while th= e > > > merge did not (vgaarb happens prior to PCI fixup). > > > > > > To improve on initial device selection by vgaarb (it cannot know = if > > > PCI device not behind bridges see/decode legacy VGA I/O or not), = move > > > the screen_info based check from pci_video_fixup to vgaarb's init > > > function and use it to refine/override decision taken while addin= g > > > the individual PCI VGA devices. > > > This way PCI fixup has no reason to adjust vga_default_device > > > anymore but can depend on its value for flagging shadowed VBIOS. > > > > > > This has the nice benefit of removing duplicated code but does > > > introduce a #if defined() block in vgaarb. > > > Not all architectures have screen_info and would cause compile to > > > fail without it. > > > > > > Reported-By: Andreas Noever > > > CC: Matthew Garrett > > > CC: stable@vger.kernel.org # v3.5+ > > > Signed-off-by: Bruno Pr=C3=A9mont > > > --- > > > Andreas, does this work properly for you, including the improveme= nt > > > on i915 complaint about VBIOS going from KERN_ERR to KERN_INFO? > > Yep, thanks! > >=20 > > > > > > Other arches using PCI and vgaarb that have screen_info may want > > > to be added to the #if defined() block or even introduce a new > > > CONFIG_HAVE_SCREEN_INFO or similar... >=20 > Bjorn, can you queue these two patches, probably going through -next > for a week and passing them to Linus for -rc4, adding Andreas's Teste= d-by > to Patch 1/2 v2? >=20 > Thanks, > Bruno