Linux-2.6.18 fails to boot on AMD64 machine
Quoted 7 lines · Chuck Ebbert
Quoted 2 lines
So an external interrupt occurred, the system tried to use interrupt descriptor #39 decimal (irq 7), but the descriptor was invalid.
but the irq is disabled at that time.
can you use attached diff to verify if the irq is enable somehow?
But it seems interrupts are on--look at the flags:
RSP: 0018:ffffffff803cdf68 EFLAGS: 00010246
Signature · 1 line
MBTI: IXTP
Quoted 3 lines · Chuck Ebbert
But it seems interrupts are on--look at the flags:
RSP: 0018:ffffffff803cdf68 EFLAGS: 00010246
Yes, the IF bit is set.
maybe someone (reporters) could add !irq_disabled() and printk in start_kernel init/main.c to see which function cause the irq get enabled.
YH
Quoted 4 lines · On Wed, 20 Dec 2006 04:59:19 -0500 Chuck Ebbert <[email protected]>…
Quoted 4 lines · Chuck Ebbert
Quoted 2 lines
So an external interrupt occurred, the system tried to use interrupt descriptor #39 decimal (irq 7), but the descriptor was invalid.
Quoted 8 lines
Quoted 3 lines
but the irq is disabled at that time.
can you use attached diff to verify if the irq is enable somehow?
But it seems interrupts are on--look at the flags:
RSP: 0018:ffffffff803cdf68 EFLAGS: 00010246
down_write()->__down_write()->__down_write_nested()->spin_unlock_irq()->dead
Could someone please test this?
lib/rwsem-spinlock.c renamed from lib/rwsem-spinlock.c~a +4 -3
@@ -195,13 +195,14 @@ void fastcall __sched __down_write_neste {struct rwsem_waiter waiter;struct task_struct *tsk; +unsigned long flags; -spin_lock_irq (&sem->wait_lock); +spin_lock_irqsave (&sem->wait_lock, flags);if (sem->activity ==0 &&list_empty (&sem->wait_list)) {/* granted */ sem->activity =-1 ; -spin_unlock_irq (&sem->wait_lock); +spin_unlock_irqrestore (&sem->wait_lock, flags); goto out; }
@@ -216,7 +217,7 @@ void fastcall __sched __down_write_nestelist_add_tail (&waiter.list, &sem->wait_list);/* we don't need to touch the semaphore struct anymore */ -spin_unlock_irq (&sem->wait_lock); +spin_unlock_irqrestore (&sem->wait_lock, flags);/* wait to be given the lock */ for (;;) {
_
Quoted 9 lines · Andrew Morton
Quoted 6 lines · On Wed, 20 Dec 2006 04:59:19 -0500 Chuck Ebbert <[email protected]>…
Quoted 6 lines · Chuck Ebbert
Quoted 2 lines
So an external interrupt occurred, the system tried to use interrupt descriptor #39 decimal (irq 7), but the descriptor was invalid.
but the irq is disabled at that time.
Quoted 8 lines
Quoted 6 lines
Quoted 1 line
can you use attached diff to verify if the irq is enable somehow?
But it seems interrupts are on--look at the flags:
RSP: 0018:ffffffff803cdf68 EFLAGS: 00010246down_write()->__down_write() -> __down_write_nested()->spin_unlock_irq()->dead
since down_write() sleeps..... what?