linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] How to fix MPS 1.4 + ACPI behaviour ?
@ 2003-05-12 19:35 Jos Hulzink
  2003-05-12 20:40 ` STK
  2003-05-13  5:01 ` Jurriaan
  0 siblings, 2 replies; 8+ messages in thread
From: Jos Hulzink @ 2003-05-12 19:35 UTC (permalink / raw)
  To: linux-kernel; +Cc: Zwane Mwaikambo

Hi,

(kernel: 2.5.69)

The conclusion of bug 699 is that some / all i386 SMP systems that use MPS 1.4 
(and higher ? or all MPS versions ?), should boot with the "pci=noacpi" 
parameter to prevent IRQ problems.

What exactly happens: The MPS 1.4 interpreter causes PCI IRQs to be remapped 
to IRQ 16 and higher, which is the desired behaviour. The ACPI interpreter 
comes in and finds no MADT table, for the Multiprocessor info is stored as 
MPS table. No MADT table, so ACPI sets up the APIC in PIC mode (which I 
wonder wether correct, but ok). As a result, the kernels pci_dev table tells 
us that the IRQs have not been remapped (i.e. all values less than 16), while 
the IRQs are actually mapped above 16. 

All drivers of PCI cards claim the wrong IRQ line, and the end of story is 
timeouts while waiting for an IRQ that never comes.

Remark: I think it is strange, that the kernel actually says: "ACPI: Using PIC 
for interrupt routing", but it doesn't set up the PIC correctly (otherwise 
the APIC rerouting table would be reset or something).

Now, my big question his: how to fix this. It is possible to have some code in 
the kernel that does the same as "pci=noacpi", but what and where do I have 
to do the check, with what condition ?

1) In the ACPI code, when MADT is not present ? Problem here is that the MPS 
parser comes after the ACPI parser, so it isn't known yet that the MPS table 
is present.

2) In the MPS parser ? As soon as an I/O APIC is detected by MPS, tell ACPI 
not to touch the APIC ? You get acpi related code in non-acpi procedures 
then...

3) Somewhere else ? How early in the kernel boot process should this option be 
set ?

And an additional question: is "pci=noapic" the correct way to fix this ? It 
runs fine here, but maybe we should only touch the IRQ related part ? If so, 
how to do that ?

Please shoot... I found the problem, but this doesn't mean I understand the 
kernel :)

Jos

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2003-05-13  8:37 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-12 19:35 [RFC] How to fix MPS 1.4 + ACPI behaviour ? Jos Hulzink
2003-05-12 20:40 ` STK
2003-05-12 20:50   ` Jos Hulzink
2003-05-12 21:29     ` STK
2003-05-13  7:50       ` Zwane Mwaikambo
2003-05-13  8:54       ` Jos Hulzink
2003-05-13  5:01 ` Jurriaan
2003-05-13  7:15   ` Jos Hulzink

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).