aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/pci/fixup.c
diff options
context:
space:
mode:
authorAlan Cox <alan@linux.intel.com>2012-05-15 13:44:15 -0400
committerIngo Molnar <mingo@kernel.org>2012-05-17 14:04:00 -0400
commit80b3e557371205566a71e569fbfcce5b11f92dbe (patch)
tree7c331cb5daf090bd6900e02d6e2e7d54b5bf7f37 /arch/x86/pci/fixup.c
parentc3709e6734daa4d9b37fe31592ebb0eb57bae1bb (diff)
x86: Fix boot on Twinhead H12Y
Despite lots of investigation into why this is needed we don't know or have an elegant cure. The only answer found on this laptop is to mark a problem region as used so that Linux doesn't put anything there. Currently all the users add reserve= command lines and anyone not knowing this needs to find the magic page that documents it. Automate it instead. Signed-off-by: Alan Cox <alan@linux.intel.com> Tested-and-bugfixed-by: Arne Fitzenreiter <arne@fitzenreiter.de> Resolves-bug: https://bugzilla.kernel.org/show_bug.cgi?id=10231 Link: http://lkml.kernel.org/r/20120515174347.5109.94551.stgit@bluebook Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/pci/fixup.c')
-rw-r--r--arch/x86/pci/fixup.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/x86/pci/fixup.c b/arch/x86/pci/fixup.c
index d0e6e403b4f6..5dd467bd6121 100644
--- a/arch/x86/pci/fixup.c
+++ b/arch/x86/pci/fixup.c
@@ -519,3 +519,20 @@ static void sb600_disable_hpet_bar(struct pci_dev *dev)
519 } 519 }
520} 520}
521DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_ATI, 0x4385, sb600_disable_hpet_bar); 521DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_ATI, 0x4385, sb600_disable_hpet_bar);
522
523/*
524 * Twinhead H12Y needs us to block out a region otherwise we map devices
525 * there and any access kills the box.
526 *
527 * See: https://bugzilla.kernel.org/show_bug.cgi?id=10231
528 *
529 * Match off the LPC and svid/sdid (older kernels lose the bridge subvendor)
530 */
531static void __devinit twinhead_reserve_killing_zone(struct pci_dev *dev)
532{
533 if (dev->subsystem_vendor == 0x14FF && dev->subsystem_device == 0xA003) {
534 pr_info("Reserving memory on Twinhead H12Y\n");
535 request_mem_region(0xFFB00000, 0x100000, "twinhead");
536 }
537}
538DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x27B9, twinhead_reserve_killing_zone);