Re: kernel BUG at arch/x86/kernel/io_apic_64.c:357!

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Eric W. Biederman
Date: Tuesday, July 29, 2008 - 1:14 pm

"Yinghai Lu" <yhlu.kernel@gmail.com> writes:


Ugh. Yuck bleh nasty gag.

Yes please try the YH's patch that should fix the worst of the
problem.

YH I think you have hit the root cause of the bug with NR_IRQS being
defined a ridiculously low value on x86_64.  At first glance your
patch looks reasonable, I had to stop and look why it was needed.  At
second glance it looks like it doesn't go far enough.

The commit that unified interrupt vector defines appears substantially
fumbled.  YH your description of why your patch is needed is not
especially useful.

To be perfectly clear.  The maximum number of interrupts we can handle is:
NR_CPUS*NR_VECTORS.  Defining NR_IRQS to a lower value is essentially a
hack to allows us to use less memory as we seldom push that limit.

Further the only valid definition of NR_IRQ_VECTORS is NR_IRQS
as we index it by irq.  Which really means now that we are unifying
the code we should simply kill NR_IRQ_VECTORS.

I expect there is a lot more in that mess that can be cleaned up.
Right now irq_vectors.h reads like nonsense to me.  I will see if
I can find some time soon to look into what we should be doing.

Increasing the size of the next field in the irq_pin_list is a good
idea.  Frankly I think we never use the next field (especially on
x86_64 and should just remove it) but I have not been brave enough
to try.

commit 9b7dc567d03d74a1fbae84e88949b6a60d922d82
Author: Thomas Gleixner <tglx@linutronix.de>
Date:   Fri May 2 20:10:09 2008 +0200

    x86: unify interrupt vector defines
    
    The interrupt vector defines are copied 4 times around with minimal
    differences. Move them all into asm-x86/irq_vectors.h
    
    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
    Signed-off-by: Ingo Molnar <mingo@elte.hu>

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

Messages in current thread:
kernel BUG at arch/x86/kernel/io_apic_64.c:357!, Dhaval Giani, (Tue Jul 29, 9:09 am)
Re: kernel BUG at arch/x86/kernel/io_apic_64.c:357!, Yinghai Lu, (Tue Jul 29, 11:35 am)
Re: kernel BUG at arch/x86/kernel/io_apic_64.c:357!, Yinghai Lu, (Tue Jul 29, 12:20 pm)
Re: kernel BUG at arch/x86/kernel/io_apic_64.c:357!, Eric W. Biederman, (Tue Jul 29, 1:14 pm)
Re: kernel BUG at arch/x86/kernel/io_apic_64.c:357!, Dhaval Giani, (Tue Jul 29, 1:21 pm)
Re: kernel BUG at arch/x86/kernel/io_apic_64.c:357!, Yinghai Lu, (Tue Jul 29, 1:37 pm)
Re: kernel BUG at arch/x86/kernel/io_apic_64.c:357!, Mike Travis, (Tue Jul 29, 3:17 pm)
Re: kernel BUG at arch/x86/kernel/io_apic_64.c:357!, Yinghai Lu, (Tue Jul 29, 3:21 pm)
Re: kernel BUG at arch/x86/kernel/io_apic_64.c:357!, Eric W. Biederman, (Tue Jul 29, 4:12 pm)
Re: kernel BUG at arch/x86/kernel/io_apic_64.c:357!, Eric W. Biederman, (Tue Jul 29, 4:12 pm)
Re: kernel BUG at arch/x86/kernel/io_apic_64.c:357!, Jeremy Fitzhardinge, (Tue Jul 29, 4:42 pm)
Re: kernel BUG at arch/x86/kernel/io_apic_64.c:357!, Eric W. Biederman, (Tue Jul 29, 5:01 pm)
Re: kernel BUG at arch/x86/kernel/io_apic_64.c:357!, Jeremy Fitzhardinge, (Tue Jul 29, 5:50 pm)
Re: kernel BUG at arch/x86/kernel/io_apic_64.c:357!, Eric W. Biederman, (Tue Jul 29, 6:29 pm)
Re: kernel BUG at arch/x86/kernel/io_apic_64.c:357!, Eric W. Biederman, (Tue Jul 29, 6:36 pm)
Re: kernel BUG at arch/x86/kernel/io_apic_64.c:357!, Jeremy Fitzhardinge, (Fri Aug 1, 10:48 am)