[PATCH v2] Setting the IORESOURCE_ROM_SHADOW flag on a VGA card other than the primary prevents it from reading it's own rom. It will get the content of the shadowrom at C000 instead, which is of the primary VGA card and the driver of the secondary card will bail out.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Bjorn Helgaas <bhelgaas@xxxxxxxxxx>, Tony Luck <tony.luck@xxxxxxxxx>, Dave Airlie <airlied@xxxxxxxxxx>, Eiichiro Oiwa <eiichiro.oiwa.nm@xxxxxxxxxxx>, Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
- Subject: [PATCH v2] Setting the IORESOURCE_ROM_SHADOW flag on a VGA card other than the primary prevents it from reading it's own rom. It will get the content of the shadowrom at C000 instead, which is of the primary VGA card and the driver of the secondary card will bail out.
- From: Sander Eikelenboom <linux@xxxxxxxxxxxxxx>
- Date: Fri, 31 Jan 2014 10:28:22 +0100
- Cc: Sander Eikelenboom <linux@xxxxxxxxxxxxxx>, Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>, "linux-kernel @ vger . kernel . org" <linux-kernel@xxxxxxxxxxxxxxx>, "linux-pci @ vger . kernel . org" <linux-pci@xxxxxxxxxxxxxxx>, linux-ia64@xxxxxxxxxxxxxxx
- In-reply-to: <20140130000831.GJ16825@google.com>
- List-id: <linux-ia64.vger.kernel.org>
- References: <20140130000831.GJ16825@google.com>
Hi Bjorn / Tony,
I fixed up ia64 as well and brought it inline again with the x86 code,
but i don't have a ia64 machine, so that part is untested.
Perhaps Tony is able to review/test it ?
Sander
Setting the IORESOURCE_ROM_SHADOW flag on a VGA card other than the primary
prevents it from reading it's own rom. It will get the content of the shadowrom
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.
v2:
- Fix pci_fixup_video both in x86 and ia64
Sander Eikelenboom (1):
Setting the IORESOURCE_ROM_SHADOW flag on a VGA card other than the
primary prevents it from reading it's own rom. It will get the
content of the shadowrom at C000 instead, which is of the
primary VGA card and the driver of the secondary card will bail
out.
arch/ia64/pci/fixup.c | 24 +++++++++++++-----------
arch/x86/pci/fixup.c | 18 ++++++++++--------
2 files changed, 23 insertions(+), 19 deletions(-)
--
1.7.10.4
--
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]