[PATCH] supporting MMCONFIG over 4GB on x86_64

From: Takayoshi Kochi
Date: Fri Mar 02 2007 - 06:08:22 EST


Hi,

Currently MMCONFIG is ignored if it is located over 4G, but I see no reason
to reject it on x86_64 platform.

This patch is against 2.6.21-rc2 and was tested on
such a machine (MMCONFIG is located at 0xfe10000000)
without any problem.

Any comments?

--
Takayoshi Kochi

Signed-off-by: Takayoshi Kochi <takayoshi.kochi@xxxxxxxxx>
---
boot.c | 2 ++
1 files changed, 2 insertions(+)

--- linux-2.6.20/arch/i386/kernel/acpi/boot.c.orig 2007-03-02
14:34:02.000000000 +0900
+++ linux-2.6.20/arch/i386/kernel/acpi/boot.c 2007-03-02
19:38:10.000000000 +0900
@@ -198,6 +198,7 @@ int __init acpi_parse_mcfg(struct acpi_t

memcpy(pci_mmcfg_config, &mcfg[1], config_size);
for (i = 0; i < pci_mmcfg_config_num; ++i) {
+#ifndef CONFIG_X86_64
if (pci_mmcfg_config[i].address > 0xFFFFFFFF) {
printk(KERN_ERR PREFIX
"MMCONFIG not in low 4GB of memory\n");
@@ -205,6 +206,7 @@ int __init acpi_parse_mcfg(struct acpi_t
pci_mmcfg_config_num = 0;
return -ENODEV;
}
+#endif
}

return 0;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/