Commit d4c4d094 authored by Yinghai Lu's avatar Yinghai Lu Committed by Ingo Molnar

x86: if acpi=off, force setting the mmconf for fam10h

some BIOS only let AMD fam 10h handle bus0, and nvidia mcp55/ck804
to handle other buses. at that case MCFG will cover all over them.

but with acpi=off, we can not use MCFG. this patch will double check
the busnbits, and if it is less handling 256 bues, and acpi=off
will forcely reset the mmconf in msr, so we still use mmconf in above case.
Signed-off-by: default avatarYinghai Lu <yinghai.lu@sun.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 7fd0da40
...@@ -751,14 +751,21 @@ static void __cpuinit fam10h_check_enable_mmcfg(struct cpuinfo_x86 *c) ...@@ -751,14 +751,21 @@ static void __cpuinit fam10h_check_enable_mmcfg(struct cpuinfo_x86 *c)
/* try to make sure that AP's setting is identical to BSP setting */ /* try to make sure that AP's setting is identical to BSP setting */
if (val & FAM10H_MMIO_CONF_ENABLE) { if (val & FAM10H_MMIO_CONF_ENABLE) {
u64 base; unsigned busnbits;
base = val & (0xffffULL << 32); busnbits = (val >> FAM10H_MMIO_CONF_BUSRANGE_SHIFT) &
if (fam10h_pci_mmconf_base_status <= 0) { FAM10H_MMIO_CONF_BUSRANGE_MASK;
fam10h_pci_mmconf_base = base;
fam10h_pci_mmconf_base_status = 1; /* only trust the one handle 256 buses, if acpi=off */
return; if (!acpi_pci_disabled || busnbits >= 8) {
} else if (fam10h_pci_mmconf_base == base) u64 base;
return; base = val & (0xffffULL << 32);
if (fam10h_pci_mmconf_base_status <= 0) {
fam10h_pci_mmconf_base = base;
fam10h_pci_mmconf_base_status = 1;
return;
} else if (fam10h_pci_mmconf_base == base)
return;
}
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment