1) Set I/O APIC ID according to BKDG recommendation
authorScott Duplichan <scott@notabs.org>
Sun, 15 May 2011 21:07:43 +0000 (21:07 +0000)
committerMarc Jones <marc.jones@amd.com>
Sun, 15 May 2011 21:07:43 +0000 (21:07 +0000)
2) Correct I/O APIC ID reported by mptable

Signed-off-by: Scott Duplichan <scott@notabs.org>
Acked-by: Marc Jones <marcj303@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6572 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

src/mainboard/amd/persimmon/acpi_tables.c
src/mainboard/amd/persimmon/get_bus_conf.c
src/mainboard/amd/persimmon/mptable.c

index 292aaadf1cd130264bd7cd3e38580a859b61ef22..20b0dc2f60eff1560c66f972c195da2151986d52 100644 (file)
@@ -64,7 +64,7 @@ unsigned long acpi_fill_madt(unsigned long current)
   current = acpi_create_madt_lapics(current);
 
   /* Write SB800 IOAPIC, only one */
-  current += acpi_create_madt_ioapic((acpi_madt_ioapic_t *) current, 2,
+  current += acpi_create_madt_ioapic((acpi_madt_ioapic_t *) current, CONFIG_MAX_CPUS,
              IO_APIC_ADDR, 0);
 
   current += acpi_create_madt_irqoverride((acpi_madt_irqoverride_t *)
index 9e148d078361b58f7dbf9515aa176cb8d40459b5..5f48498bce0b28e82c0db702043b6eacbf67cb4d 100644 (file)
@@ -138,7 +138,7 @@ void get_bus_conf(void)
 
   /* I/O APICs:   APIC ID Version State   Address */
   bus_isa = 10;
-  apicid_base = CONFIG_MAX_PHYSICAL_CPUS;
+  apicid_base = CONFIG_MAX_CPUS;
 //#if CONFIG_LOGICAL_CPUS==1
 //  apicid_base = get_apicid_base(1);
 //#endif
index 0296cebff81350f21f6b94d4590eb47802be5c9f..9c27c0edb2abafbc482ea5c10c8198507ba87f7a 100644 (file)
@@ -69,7 +69,7 @@ static void *smp_write_config_table(void *v)
   dword |= (pm_ioread(0x35) & 0xFF) << 8;
   dword |= (pm_ioread(0x36) & 0xFF) << 16;
   dword |= (pm_ioread(0x37) & 0xFF) << 24;
-  smp_write_ioapic(mc, apicid_sb800, 0x11, dword);
+  smp_write_ioapic(mc, apicid_sb800, 0x21, dword);
 
   for (byte = 0x0; byte < sizeof(intr_data); byte ++) {
     outb(byte | 0x80, 0xC00);