On Wed, Nov 4, 2009 at 12:06 PM, Hugh Greenberg <[email protected]> wrote:
> Myles,
>
> It worked. Coreboot boots with SB_HT_CHAIN_ON_BUS_0 set to one and the
> previous patch. Seabios also detects the network devices without setting
> CONFIG_PCI_ROOT1 to 0x02. Attached is the output. Seabios was compiled
> with DEBUG_LEVEL set to 8.
>
ERROR - cound not find bus for node 0 chain 0, using defaults
ERROR - could not find PCI 1:01.0, using defaults
ERROR - could not find PCI 1:02.0, using defaults
Wrote the mp table end at: 000f0410 - 000f05e4
Adding CBMEM entry as no. 3
Looking for bad PCIX MHz input
Looking for bad Hot Swap Enable
OK 133MHz & Hot Swap is off
ERROR - cound not find bus for node 0 chain 0, using defaults
ERROR - could not find PCI 1:01.0, using defaults
ERROR - could not find PCI 1:02.0, using defaults
Wrote the mp table end at: 3fff1410 - 3fff15e4
It almost worked. Can you try the attached patch?
Is it actually booting into Linux?
Thanks,
Myles
Index: svn/src/mainboard/arima/hdama/mptable.c
===================================================================
--- svn.orig/src/mainboard/arima/hdama/mptable.c
+++ svn/src/mainboard/arima/hdama/mptable.c
@@ -65,7 +65,7 @@ static unsigned node_link_to_bus(unsigne
dev = dev_find_slot(0, PCI_DEVFN(0x18, 1));
if (!dev) {
- return 0;
+ return 0xff;
}
for(reg = 0xE0; reg < 0xF0; reg += 0x04) {
uint32_t config_map;
@@ -89,7 +89,7 @@ static unsigned node_link_to_bus(unsigne
return bus_base;
}
}
- return 0;
+ return 0xff;
}
unsigned max_apicid(void)
@@ -152,9 +152,9 @@ void *smp_write_config_table(void *v)
/* HT chain 0 */
bus_chain_0 = node_link_to_bus(0, 0);
- if (bus_chain_0 == 0) {
+ if (bus_chain_0 == 0xff) {
printk_debug("ERROR - cound not find bus for node 0 chain 0, using defaults\n");
- bus_chain_0 = 1;
+ bus_chain_0 = 0;
}
/* 8111 */
@@ -165,7 +165,7 @@ void *smp_write_config_table(void *v)
bus_isa++;
}
else {
- printk_debug("ERROR - could not find PCI 1:03.0, using defaults\n");
+ printk_debug("ERROR - could not find PCI %02x:03.0, using defaults\n", bus_chain_0);
bus_8111_1 = 4;
bus_isa = 5;
@@ -177,7 +177,7 @@ void *smp_write_config_table(void *v)
}
else {
- printk_debug("ERROR - could not find PCI 1:01.0, using defaults\n");
+ printk_debug("ERROR - could not find PCI %02x:01.0, using defaults\n", bus_chain_0);
bus_8131_1 = 2;
}
@@ -188,7 +188,7 @@ void *smp_write_config_table(void *v)
}
else {
- printk_debug("ERROR - could not find PCI 1:02.0, using defaults\n");
+ printk_debug("ERROR - could not find PCI %02x:02.0, using defaults\n", bus_chain_0);
bus_8131_2 = 3;
}
@@ -327,16 +327,21 @@ void reboot_if_hotswap(void)
int reset;
int i;
+ unsigned char bus_chain_0 = node_link_to_bus(0, 0);
reset = 0;
printk_debug("Looking for bad PCIX MHz input\n");
- dev = dev_find_slot(1, PCI_DEVFN(0x02,0));
+ dev = dev_find_slot(bus_chain_0, PCI_DEVFN(0x02,0));
+ if (!dev)
+ printk_debug("Couldn't find %02x:02.0 \n", bus_chain_0);
data = pci_read_config32(dev, 0xa0);
if(!(((data>>16)&0x03)==0x03)) {
reset=1;
printk_debug("Bad PCIX MHz - Reset\n");
}
printk_debug("Looking for bad Hot Swap Enable\n");
- dev = dev_find_slot(1, PCI_DEVFN(0x01,0));
+ dev = dev_find_slot(bus_chain_0, PCI_DEVFN(0x01,0));
+ if (!dev)
+ printk_debug("Couldn't find %02x:01.0 \n", bus_chain_0);
data = pci_read_config32(dev, 0x48);
if(data & 0x0c) {
reset=1;
--
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot