-Make 1, 2, 4, 6 installed cpu works.
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1898 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
6a2798d28b
commit
898061220b
|
@ -91,9 +91,7 @@ typedef uint32_t u32;
|
|||
|
||||
static inline void print_linkn (const char *strval, uint8_t byteval)
|
||||
{
|
||||
#if 1
|
||||
print_debug(strval); print_debug_hex8(byteval); print_debug("\r\n");
|
||||
#endif
|
||||
}
|
||||
|
||||
static void disable_probes(void)
|
||||
|
@ -133,6 +131,7 @@ static void disable_probes(void)
|
|||
|
||||
}
|
||||
|
||||
|
||||
#ifndef ENABLE_APIC_EXT_ID
|
||||
#define ENABLE_APIC_EXT_ID 0
|
||||
#endif
|
||||
|
@ -150,6 +149,8 @@ static void enable_apic_ext_id(u8 node)
|
|||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
||||
static void enable_routing(u8 node)
|
||||
{
|
||||
u32 val;
|
||||
|
@ -180,6 +181,8 @@ static void enable_routing(u8 node)
|
|||
print_spew("Enabling routing table for node ");
|
||||
print_spew_hex8(node);
|
||||
|
||||
// enable_apic_ext_id(node);
|
||||
|
||||
val=pci_read_config32(NODE_HT(node), 0x6c);
|
||||
val &= ~((1<<1)|(1<<0));
|
||||
pci_write_config32(NODE_HT(node), 0x6c, val);
|
||||
|
@ -683,7 +686,6 @@ static struct setup_smp_result setup_smp2(void)
|
|||
NODE_HT(0), 0x80 + link_to_register(link_connection(0,1)),
|
||||
NODE_HT(1), 0x80 + link_to_register(link_connection(1,0)) );
|
||||
|
||||
|
||||
return result;
|
||||
}
|
||||
#endif /*CONFIG_MAX_CPUS > 1 */
|
||||
|
@ -1390,15 +1392,18 @@ static struct setup_smp_result setup_smp(void)
|
|||
|
||||
result = setup_smp2();
|
||||
#if CONFIG_MAX_CPUS > 2
|
||||
if(result.nodes == 2 )
|
||||
result = setup_smp4(result.needs_reset);
|
||||
#endif
|
||||
|
||||
#if CONFIG_MAX_CPUS > 4
|
||||
if(result.nodes == 4)
|
||||
result = setup_smp6(result.needs_reset);
|
||||
#endif
|
||||
|
||||
#if CONFIG_MAX_CPUS > 6
|
||||
result = setup_smp6(result.needs_reset);
|
||||
if(result.nodes == 6)
|
||||
result = setup_smp8(result.needs_reset);
|
||||
#endif
|
||||
|
||||
print_debug_hex8(result.nodes);
|
||||
|
@ -1552,7 +1557,7 @@ static int apply_cpu_errata_fixes(unsigned nodes, int needs_reset)
|
|||
}
|
||||
|
||||
}
|
||||
else {
|
||||
else if(is_cpu_pre_d0()) { // d0 later don't need it
|
||||
uint32_t cmd_ref;
|
||||
/* Errata 98
|
||||
* Set Clk Ramp Hystersis to 7
|
||||
|
@ -1585,7 +1590,7 @@ static int optimize_link_read_pointers(unsigned nodes, int needs_reset)
|
|||
/* This works on an Athlon64 because unimplemented links return 0 */
|
||||
reg = 0x98 + (link * 0x20);
|
||||
link_type = pci_read_config32(f0_dev, reg);
|
||||
if ((link_type & 7) == 3) {
|
||||
if ((link_type & 7) == 3) { /* only handle coherent link here*/
|
||||
cmd &= ~(0xff << (link *8));
|
||||
cmd |= 0x25 << (link *8);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue