panic during IO-APIC detection
Begin forwarded message:
Date: Wed, 16 Feb 2005 17:26:22 +0100 (CET)
From: Andreas Deresch <[email protected]>
To: [email protected]
Subject: panic during IO-APIC detection
Hi lkml,
my notebook (Acer Aspire 1691WLMi, chipset: Intel 915PM) hangs during IO-APIC detection. I am currently using 2.6.11-rc4-bk1, but this should be the same for other versions.
Reason:
ACPI MADT contains info on 2 IO-APICs.io_apic_get_unique_id panics due to being unable to assign an id to the second one (the memory location reads as all ones). The chipset spec (specifically: ICH6-M) is only talking about one IO-APIC, so most likely the MADT is in error.
The question is, should io_apic_get_unique_id be more fault tolerant, or where else should this be fixed?
TIA,
ad
For the moment I did the following:
arch/i386/kernel/io_apic.c +4 -2
@@ -2449,8 +2449,10 @@spin_unlock_irqrestore (&ioapic_lock, flags);/* Sanity check */ -if (reg_00.bits.ID != apic_id) -panic ("IOAPIC[%d]: Unable change apic_id!\n" , ioapic); +if (reg_00.bits.ID != apic_id) { +printk ("IOAPIC[%d]: Unable change apic_id!\n" , ioapic); +return -1 ; + } } apic_printk(APIC_VERBOSE, KERN_INFO
arch/i386/kernel/mpparse.c +6 -1
@@ -895,6 +895,7 @@ u32 gsi_base) {int idx =0 ; +int tmpid =0 ;if (nr_ioapics >=MAX_IO_APICS ) { printk(KERN_ERR "ERROR: Max # of I/O APICs (%d) exceeded "
@@ -914,7 +915,11 @@ mp_ioapics[idx].mpc_apicaddr = address;set_fixmap_nocache (FIX_IO_APIC_BASE_0 + idx, address); - mp_ioapics[idx].mpc_apicid =io_apic_get_unique_id (idx, id); +if ((tmpid =io_apic_get_unique_id (idx, id)) ==-1 ) { + nr_ioapics--; +return ; + } + mp_ioapics[idx].mpc_apicid = (u8)(tmpid); mp_ioapics[idx].mpc_apicver =io_apic_get_version (idx);/*
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click