Re: Panic on boot for x86_64

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Zhao Yakui
Date: Tuesday, August 12, 2008 - 7:05 pm

On Tue, 2008-08-12 at 16:47 -0700, Martin Bligh wrote:

    >ACPI: PCI Interrupt 0000:2b:01.0[A] -> GSI 240 (level, low) -> IRQ
66
    ACPI: PCI Interrupt 0000:2b:01.1[B] -> GSI 244 (level, low) -> IRQ
74
   The GSI number for 0000:2b.01.0 pci device is 240.
   The GSI number for 0000:2b.01.1 pci device is 244.   

   In the function of add_pin_to_irq (in io_apic_64.c) there exists the
following checks.
         > BUG_ON(irq >= NR_IRQS);
   
   On the 2.6.16 kernel OS will map a GSI number to a different IRQ
below NR_IRQS(this macro definition is 224). So there is no problem.
  
But on the x86_64 platform of 2.6.26 kernel OS will treat the GSI number
as the IRQ number. As the GSI number for 00:2b.01.0 pci device is above
224, it will print the kernel panic info. 
   
   From the test log it seems that this issue is related with the GSI
mapping mechanism. Maybe it will be OK to use the same GSI mapping
mechanism as x86_32 platform. 

Thanks.
   Yakui


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Panic on boot for x86_64, Martin Bligh, (Tue Aug 12, 12:51 pm)
Re: Panic on boot for x86_64, Andrew Morton, (Tue Aug 12, 1:10 pm)
Re: Panic on boot for x86_64, Yinghai Lu, (Tue Aug 12, 1:13 pm)
Re: Panic on boot for x86_64, Rafael J. Wysocki, (Tue Aug 12, 1:14 pm)
Re: Panic on boot for x86_64, Rafael J. Wysocki, (Tue Aug 12, 1:23 pm)
Re: Panic on boot for x86_64, Martin Bligh, (Tue Aug 12, 4:47 pm)
Re: Panic on boot for x86_64, Zhao Yakui, (Tue Aug 12, 7:05 pm)
Re: Panic on boot for x86_64, Ingo Molnar, (Wed Aug 13, 7:12 am)
Re: Panic on boot for x86_64, Martin Bligh, (Wed Aug 13, 2:11 pm)