Skip to contentSkip to conversation

2.4.11 APIC problems

DISCUSSION Roman Kagan 2 participants 2 messages Oct 11, 2001

lore
Share & tools
lore
#0 lore raw

I had exactly the same problem on my HP e800. I've tried to identify what had changed between 2.4.10 and 2.4.11 in IO-APIC code, and I've found out that probably the only change relevant to my uniprocessor case is the change of the initial value of dest_mode field in struct IO_APIC_route_entry in setup_IO_APIC_irqs() and setup_ExtINT_IRQ0_pin() in arch/i386/kernel/io_apic.c from 1 to macro INT_DELIVERY_MODE, which for uniprocessors was defined to be 0.

I don't claim I understand whether it is right or wrong, but the following patch can fix _my_ problem:

include/asm-i386/smp.h renamed from include/asm-i386/smp.h.int_delivery +1 -1
@@ -31,7 +31,7 @@
 #  define INT_DELIVERY_MODE 1     /* logical delivery broadcast to all procs */
 # endif
 #else
-# define INT_DELIVERY_MODE 0     /* physical delivery on LOCAL quad */
+# define INT_DELIVERY_MODE 1     /* logical delivery */
 # define TARGET_CPUS 0x01
 #endif
 

Cheers,
Roman.

#1 lore raw

Re: 2.4.11 APIC problems - please apply patch

Quoted 2 lines

I don't claim I understand whether it is right or wrong, but the following patch can fix _my_ problem:

This is right ... mea culpa. I tried to fix things too fast.

On the other hand, I don't see why it wouldn't work ... and indeed it did work for people who originally tested it, but it's not what I intended to do, and it's an unnecesary change from previous kernels.

include/asm-i386/smp.h line 36

Quoted 10 lines
include/asm-i386/smp.h renamed from include/asm-i386/smp.h.int_delivery +1 -1
@@ -31,7 +31,7 @@
 #  define INT_DELIVERY_MODE 1     /* logical delivery broadcast to all procs */
 # endif
 #else
-# define INT_DELIVERY_MODE 0     /* physical delivery on LOCAL quad */
+# define INT_DELIVERY_MODE 1     /* logical delivery */
 # define TARGET_CPUS 0x01
 #endif

Linus - can you add this fix? I intended to keep the UP+IO_APIC setup as before.

Sorry,

Martin.