Displaying 2 results from an estimated 2 matches for "fam10h_pci_mmconf_base".
2011 Mar 31
0
[PATCH 7/7] x86: cleanup bogus CONFIG_ACPI_PCI uses
...10H_MMIO_CONF_ENABLE) {
- unsigned busnbits;
- busnbits = (val >> FAM10H_MMIO_CONF_BUSRANGE_SHIFT) &
- FAM10H_MMIO_CONF_BUSRANGE_MASK;
-
- /* only trust the one handle 256 buses, if acpi=off */
- if (!acpi_pci_disabled || busnbits >= 8) {
- u64 base = val & MASK;
-
- if (!fam10h_pci_mmconf_base) {
- fam10h_pci_mmconf_base = base;
- return;
- }
- if (fam10h_pci_mmconf_base == base)
- return;
+ u64 base = val & MASK;
+
+ if (!fam10h_pci_mmconf_base) {
+ fam10h_pci_mmconf_base = base;
+ return;
}
+ if (fam10h_pci_mmconf_base == base)
+ return;
}
/*
--- a/xe...
2011 Jul 19
0
[PATCH 2/3] x86-64/MMCFG: finally make Fam10 enabling work
...6/x86_64/mmconf-fam10h.c
@@ -9,6 +9,7 @@
#include <xen/init.h>
#include <xen/dmi.h>
#include <asm/amd.h>
+#include <asm/e820.h>
#include <asm/msr.h>
#include <asm/processor.h>
@@ -131,7 +132,8 @@ static void __init get_fam10h_pci_mmconf
return;
out:
- fam10h_pci_mmconf_base = start;
+ if (e820_add_range(&e820, start, start + SIZE, E820_RESERVED))
+ fam10h_pci_mmconf_base = start;
}
void __cpuinit fam10h_check_enable_mmcfg(void)
--- a/xen/include/asm-x86/e820.h
+++ b/xen/include/asm-x86/e820.h
@@ -28,6 +28,8 @@ extern int reserve_e820_ram(struct e820m
extern...