]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
x86/PCI: Mark Broadwell-EP Home Agent & PCU as having non-compliant BARs
authorBjorn Helgaas <bhelgaas@google.com>
Fri, 26 Feb 2016 15:15:11 +0000 (09:15 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 8 Mar 2016 18:13:57 +0000 (12:13 -0600)
The Home Agent and PCU PCI devices in Broadwell-EP have a non-BAR register
where a BAR should be.  We don't know what the side effects of sizing the
"BAR" would be, and we don't know what address space the "BAR" might appear
to describe.

Mark these devices as having non-compliant BARs so the PCI core doesn't
touch them.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Tested-by: Andi Kleen <ak@linux.intel.com>
CC: stable@vger.kernel.org
arch/x86/pci/fixup.c

index e58565556703bfc781e29f4e387cbd0e2ea1ced8..0ae7e9fa348dfaf04de014e4e5c17b13b8c8e0b1 100644 (file)
@@ -540,3 +540,10 @@ static void twinhead_reserve_killing_zone(struct pci_dev *dev)
         }
 }
 DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x27B9, twinhead_reserve_killing_zone);
+
+static void pci_bdwep_bar(struct pci_dev *dev)
+{
+       dev->non_compliant_bars = 1;
+}
+DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_INTEL, 0x6fa0, pci_bdwep_bar);
+DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_INTEL, 0x6fc0, pci_bdwep_bar);