[coreboot-gerrit] New patch to review for coreboot: ec2e26f amd/model_10xxx: Fix MMCONF_SUPPORT_DEFAULT
Kyösti Mälkki (kyosti.malkki@gmail.com)
gerrit at coreboot.org
Wed Dec 18 22:47:08 CET 2013
Kyösti Mälkki (kyosti.malkki at gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/4541
-gerrit
commit ec2e26f160f1e75719b7e87dc560666803d3df4b
Author: Kyösti Mälkki <kyosti.malkki at gmail.com>
Date: Wed Dec 18 23:47:42 2013 +0200
amd/model_10xxx: Fix MMCONF_SUPPORT_DEFAULT
Some PCI devices need to use IO style access for PCI configuration.
Change-Id: Idff19d20ec6c50ee6388af61d2b4738b7ed39acc
Signed-off-by: Kyösti Mälkki <kyosti.malkki at gmail.com>
---
src/device/pci_ops.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/device/pci_ops.c b/src/device/pci_ops.c
index 5b633c8..d50c367 100644
--- a/src/device/pci_ops.c
+++ b/src/device/pci_ops.c
@@ -41,6 +41,12 @@ static const struct pci_bus_operations *pci_bus_ops(struct bus *bus, device_t de
if (bus && bus->dev && bus->dev->ops && bus->dev->ops->ops_pci_bus) {
bops = bus->dev->ops->ops_pci_bus(dev);
}
+#if CONFIG_CPU_AMD_MODEL_10XXX
+ if (!bops) {
+ bops = &pci_cf8_conf1;
+ printk(BIOS_DEBUG, "Switched MMCONF to IO on %s\n", dev_path(dev));
+ }
+#endif
if (!bops)
bops = pci_bus_default_ops(dev);
return bops;
More information about the coreboot-gerrit
mailing list