Re: [SMP patch] io-apic-patch-2.1.101-I

Harald Hoyer (HarryH@Royal.Net)
Thu, 14 May 1998 10:43:41 +0200


MOLNAR Ingo wrote:
>
> io-apic-patch-2.1.101-I fixes some problems introduced by -F, and fixes
> one specific MPTABLE parsing bug. Until now we always assumed that

But not this one, if this is a typo:

--- arch/i386/kernel/irq.c~ Thu May 14 07:43:11 1998
+++ arch/i386/kernel/irq.c Thu May 14 07:49:36 1998
@@ -1183,7 +1183,7 @@
if (IO_APIC_irq_trigger(i))
irq_desc[i].handler = &ioapic_level_irq_type;
else /* edge */
- irq_desc[i].handler = &ioapic_level_irq_type;
+ irq_desc[i].handler = &ioapic_edge_irq_type;
/*
* disable it in the 8259A:
*/

Besides that the -F and -I patch break serial interrupts, after switching
console from
svga-apps or X-Server on my computer. Only one interrupt is served in 2 seconds.
pre-2.1.102 works fine...

vanilla 2.1.102-pre1:
# cat /proc/interrupts
CPU0 CPU1
0: 78773 165097 IO-APIC-level timer
1: 3280 8107 IO-APIC-edge keyboard
2: 0 0 XT-PIC cascade
4: 7140 9305 IO-APIC-edge serial
5: 0 0 IO-APIC-edge soundblaster
10: 98 99 IO-APIC-edge ide3
13: 4 0 XT-PIC fpu
14: 179 259 IO-APIC-edge ide0
15: 3483 7689 IO-APIC-edge ide1
NMI: 0
IPI: 0

io-apic-patch-I:
# cat /proc/interrupts
CPU0 CPU1
0: 2802 5257 IO-APIC-level timer
1: 16 83 IO-APIC-level keyboard
2: 0 0 XT-PIC cascade
4: 3 25 IO-APIC-level serial
7: 2 2 IO-APIC-level lp
10: 2 2 IO-APIC-level ide3
13: 4 0 XT-PIC fpu
14: 138 111 IO-APIC-level ide0
15: 1264 2296 IO-APIC-level ide1
NMI: 0
IPI: 0

io-apic-patch-I + edge-patch(below) -- every IRQ is changing to edge ???:
# cat /proc/interrupts
CPU0 CPU1
0: 2802 5257 IO-APIC-edge timer
1: 16 83 IO-APIC-edge keyboard
2: 0 0 XT-PIC cascade
4: 3 25 IO-APIC-edge serial
7: 2 2 IO-APIC-edge lp
10: 2 2 IO-APIC-edge ide3
13: 4 0 XT-PIC fpu
14: 138 111 IO-APIC-edge ide0
15: 1264 2296 IO-APIC-edge ide1
NMI: 0
IPI: 0

/var/log/messages with -I patch:

May 14 11:44:48 HarryH kernel: Intel MultiProcessor Specification v1.4
May 14 11:44:48 HarryH kernel: Virtual Wire compatibility mode.
May 14 11:44:48 HarryH kernel: OEM ID: OEM00000 Product ID: PROD00000000 APIC
at: 0xFEE00000
May 14 11:44:48 HarryH kernel: Processor #0 Pentium(tm) APIC version 17
May 14 11:44:48 HarryH kernel: Processor #1 Pentium(tm) APIC version 17
May 14 11:44:48 HarryH kernel: I/O APIC #2 Version 17 at 0xFEC00000.
May 14 11:44:48 HarryH kernel: Processors: 2
...
<snip>
...
May 14 11:44:48 HarryH kernel: IO-APIC pin 0, 20, 21, 22, 23 not connected.
May 14 11:44:48 HarryH kernel: nr of MP irq sources: 21.
May 14 11:44:48 HarryH kernel: nr of IO-APIC registers: 24.
May 14 11:44:48 HarryH kernel: testing the IO APIC.......................
May 14 11:44:48 HarryH kernel: .... register #00: 02000000
May 14 11:44:48 HarryH kernel: ....... : physical APIC id: 02
May 14 11:44:48 HarryH kernel: .... register #01: 00170011
May 14 11:44:48 HarryH kernel: ....... : max redirection entries: 0017
May 14 11:44:48 HarryH kernel: ....... : IO APIC version: 0011
May 14 11:44:48 HarryH kernel: .... register #02: 00000000
May 14 11:44:48 HarryH kernel: ....... : arbitration: 00
May 14 11:44:48 HarryH kernel: .... IRQ redirection table:
May 14 11:44:48 HarryH kernel: NR Log Phy Mask Trig IRR Pol Stat Dest Deli
Vect:
May 14 11:44:48 HarryH kernel: 00 000 00 1 0 0 0 0 0 0 00
May 14 11:44:48 HarryH kernel: 01 0FF 0F 0 0 0 0 0 1 1 59
May 14 11:44:48 HarryH kernel: 02 0FF 0F 0 0 0 0 0 1 1 51
May 14 11:44:48 HarryH kernel: 03 0FF 0F 0 0 0 0 0 1 1 69
May 14 11:44:48 HarryH kernel: 04 0FF 0F 0 0 0 0 0 1 1 71
May 14 11:44:48 HarryH kernel: 05 0FF 0F 0 0 0 0 0 1 1 79
May 14 11:44:48 HarryH kernel: 06 0FF 0F 0 0 0 0 0 1 1 81
May 14 11:44:48 HarryH kernel: 07 0FF 0F 0 0 0 0 0 1 1 89
May 14 11:44:48 HarryH kernel: 08 0FF 0F 0 0 0 0 0 1 1 91
May 14 11:44:48 HarryH kernel: 09 0FF 0F 0 0 0 0 0 1 1 99
May 14 11:44:48 HarryH kernel: 0a 0FF 0F 0 0 0 0 0 1 1 A1
May 14 11:44:48 HarryH kernel: 0b 0FF 0F 0 0 0 0 0 1 1 A9
May 14 11:44:48 HarryH kernel: 0c 0FF 0F 0 0 0 0 0 1 1 B1
May 14 11:44:48 HarryH kernel: 0d 000 00 1 0 0 0 0 0 0 00
May 14 11:44:48 HarryH kernel: 0e 0FF 0F 0 0 0 0 0 1 1 C1
May 14 11:44:48 HarryH kernel: 0f 0FF 0F 0 0 0 0 0 1 1 C9
May 14 11:44:48 HarryH kernel: 10 0FF 0F 0 1 0 1 0 1 1 D1
May 14 11:44:48 HarryH kernel: 11 0FF 0F 0 1 0 1 0 1 1 D9
May 14 11:44:48 HarryH kernel: 12 0FF 0F 0 1 0 1 0 1 1 E1
May 14 11:44:48 HarryH kernel: 13 0FF 0F 0 1 0 1 0 1 1 E9
May 14 11:44:48 HarryH kernel: 14 000 00 1 0 0 0 0 0 0 00
May 14 11:44:48 HarryH kernel: 15 000 00 1 0 0 0 0 0 0 00
May 14 11:44:48 HarryH kernel: 16 000 00 1 0 0 0 0 0 0 00
May 14 11:44:48 HarryH kernel: 17 000 00 1 0 0 0 0 0 0 00
May 14 11:44:48 HarryH kernel: IRQ to pin mappings:
May 14 11:44:48 HarryH kernel: 0->2 1->1 2->-1 3->3 4->4 5->5 6->6 7->7 8->8
9->9 10->10 11->11 12->12 13->13 14->14 15->15 16->16 17->17 18->18 19->19
20->-1 21->-1 22->-1 23->-1
...
<snip>
...
May 14 11:44:48 HarryH kernel: hdh: FX400E, ATAPI CDROM drive
May 14 11:44:48 HarryH kernel: hdh: IRQ probe failed (0)
^^^^^^^^^^^^^^^^^^^^^^^^^
Strange thing is only appearing with io-apic-patches

Hope this is informative,

Harald

-- 
╗╗╗╗ Harald Hoyer ФФ╗╗ mailto:HarryH@Royal.Net ФФ╗╗ http://hot.spotline.de ФФФФ
иииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииииии
Hackers of the world, unite!

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu