Skip to contentSkip to conversation

SMP lockup with 2.4.12 on VIA chipset (still does it)

DISCUSSION Sam Varshavchik 1 participant 1 message Oct 22, 2001 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 5 lines · PinkFreud

Please note that this lockup does *NOT* happen with 2.2.19 with SMP, nor does it happen with 2.4.x WITHOUT SMP. Therefore, I would think whatever's causing this has to do with something that changed in SMP between 2.2.x and 2.4.x. Please feel free to yell at me if I should post this elsewhere.

Try the following patch, and see if it works. It fixes one potential source of SMP hard lockups for 2.4.7+. I'm not sure if its fixed yet in 2.4.12.

Signature · 1 line
Sam

*** linux/arch/i386/kernel/io_apic.c.orig Tue Oct 9 21:11:10 2001
--- linux/arch/i386/kernel/io_apic.c Tue Oct 9 21:13:03 2001
***************
*** 1248,1261 ****
ack_APIC_irq();

if (!(v & (1 << (i & 0x1f)))) {
#ifdef APIC_MISMATCH_DEBUG
atomic_inc(&irq_mis_count);
#endif
spin_lock(&ioapic_lock);
__mask_and_edge_IO_APIC_irq(irq);
#ifdef APIC_LOCKUP_DEBUG
! for (;;) {
! struct irq_pin_list *entry = irq_2_pin + irq;
unsigned int reg;

if (entry->pin == -1)
--- 1248,1264 ----
ack_APIC_irq();

if (!(v & (1 << (i & 0x1f)))) {
+ #ifdef APIC_LOCKUP_DEBUG
+ struct irq_pin_list *entry;
+ #endif
+
#ifdef APIC_MISMATCH_DEBUG
atomic_inc(&irq_mis_count);
#endif
spin_lock(&ioapic_lock);
__mask_and_edge_IO_APIC_irq(irq);
#ifdef APIC_LOCKUP_DEBUG
! for (entry = irq_2_pin + irq;;) {
unsigned int reg;

if (entry->pin == -1)