]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
x86/PCI: Set IORESOURCE_ROM_SHADOW only for the default VGA device
authorSander Eikelenboom <linux@eikelenboom.it>
Fri, 31 Jan 2014 09:28:23 +0000 (10:28 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 14 Feb 2014 19:35:19 +0000 (12:35 -0700)
commitd8801e4df91ee788486a11b36f45aa04784f7b4a
treef9fb24d9800ada65df6e6bac0d33d492c2217847
parent5ee09efe5406ad983e98d07ac17ad27819c0dc5b
x86/PCI: Set IORESOURCE_ROM_SHADOW only for the default VGA device

Setting the IORESOURCE_ROM_SHADOW flag on a VGA card other than the primary
prevents it from reading its own ROM.  It will get the content of the
shadow ROM at C000 instead, which is of the primary VGA card and the driver
of the secondary card will bail out.

Fix this by checking if the arch code or vga-arbitration has already
determined the vga_default_device, if so only apply the fix to this primary
video device and let the comment reflect this.

[bhelgaas: add subject, split x86 & ia64 into separate patches]
Signed-off-by: Sander Eikelenboom <linux@eikelenboom.it>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
arch/x86/pci/fixup.c