* Re: Bug in APIC on 2.4.20 kernel
@ 2003-03-01 0:32 Mikael Pettersson
2003-03-01 22:42 ` JP Pozzi izzop.org
0 siblings, 1 reply; 4+ messages in thread
From: Mikael Pettersson @ 2003-03-01 0:32 UTC (permalink / raw)
To: jp.pozzi; +Cc: linux-kernel
On 01 Mar 2003 00:18:46 +0100, "JP Pozzi izzop.org" wrote:
>I found a problem with the APIC management in the 2.4.20 kernel.
>
>My system is (was) a bi-processor one :
>
>MSI K7D Master (BIOS V 1.1) with 2 ATHLON MP 1800+
>
>The facts :
>
>1) The 2.4.20 kernel was OK on my system with the 2 processors and a
>home made SMP kernel.
>
>2) One processor was broken/defective.
>
>3) No boot was possible with only on processor on the card with a loop
>while booting saying endlessly : "APIC 04(04)"
>
>I try to recompile the 2.4.20 kernel with no SMP support the problem was
>the same, I try gcc2.95 and gcc3 without any success.
Known problem. It has been discussed extensively on LKML recently.
Apply the patch below.
/Mikael
diff -ruN linux-2.4.21-pre5/arch/i386/kernel/apic.c linux-2.4.21-pre5.apic-fixes/arch/i386/kernel/apic.c
--- linux-2.4.21-pre5/arch/i386/kernel/apic.c 2003-02-27 12:58:55.000000000 +0100
+++ linux-2.4.21-pre5.apic-fixes/arch/i386/kernel/apic.c 2003-02-27 13:05:28.000000000 +0100
@@ -649,7 +649,6 @@
}
set_bit(X86_FEATURE_APIC, &boot_cpu_data.x86_capability);
mp_lapic_addr = APIC_DEFAULT_PHYS_BASE;
- boot_cpu_physical_apicid = 0;
if (nmi_watchdog != NMI_NONE)
nmi_watchdog = NMI_LOCAL_APIC;
@@ -1169,8 +1168,7 @@
connect_bsp_APIC();
- phys_cpu_present_map = 1;
- apic_write_around(APIC_ID, boot_cpu_physical_apicid);
+ phys_cpu_present_map = 1 << boot_cpu_physical_apicid;
apic_pm_init2();
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Bug in APIC on 2.4.20 kernel
2003-03-01 0:32 Bug in APIC on 2.4.20 kernel Mikael Pettersson
@ 2003-03-01 22:42 ` JP Pozzi izzop.org
2003-03-02 22:30 ` Ion Badulescu
0 siblings, 1 reply; 4+ messages in thread
From: JP Pozzi izzop.org @ 2003-03-01 22:42 UTC (permalink / raw)
To: Mikael Pettersson; +Cc: linux-kernel
Hello,
I try the patch with no success, the kernel seems to be ok, but the
message at boot loops always "APIC CPU0 O4(04)".
Regards
JP Pozzi
> On 01 Mar 2003 00:18:46 +0100, "JP Pozzi izzop.org" wrote:
> >I found a problem with the APIC management in the 2.4.20 kernel.
> >
> >My system is (was) a bi-processor one :
> >
> >MSI K7D Master (BIOS V 1.1) with 2 ATHLON MP 1800+
> >
> >The facts :
> >
> >1) The 2.4.20 kernel was OK on my system with the 2 processors and a
> >home made SMP kernel.
> >
> >2) One processor was broken/defective.
> >
> >3) No boot was possible with only on processor on the card with a loop
> >while booting saying endlessly : "APIC 04(04)"
> >
> >I try to recompile the 2.4.20 kernel with no SMP support the problem was
> >the same, I try gcc2.95 and gcc3 without any success.
>
> Known problem. It has been discussed extensively on LKML recently.
> Apply the patch below.
>
> /Mikael
>
> diff -ruN linux-2.4.21-pre5/arch/i386/kernel/apic.c linux-2.4.21-pre5.apic-fixes/arch/i386/kernel/apic.c
> --- linux-2.4.21-pre5/arch/i386/kernel/apic.c 2003-02-27 12:58:55.000000000 +0100
> +++ linux-2.4.21-pre5.apic-fixes/arch/i386/kernel/apic.c 2003-02-27 13:05:28.000000000 +0100
> @@ -649,7 +649,6 @@
> }
> set_bit(X86_FEATURE_APIC, &boot_cpu_data.x86_capability);
> mp_lapic_addr = APIC_DEFAULT_PHYS_BASE;
> - boot_cpu_physical_apicid = 0;
> if (nmi_watchdog != NMI_NONE)
> nmi_watchdog = NMI_LOCAL_APIC;
>
> @@ -1169,8 +1168,7 @@
>
> connect_bsp_APIC();
>
> - phys_cpu_present_map = 1;
> - apic_write_around(APIC_ID, boot_cpu_physical_apicid);
> + phys_cpu_present_map = 1 << boot_cpu_physical_apicid;
>
> apic_pm_init2();
>
--
JP Pozzi izzop.org <jp.pozzi@izzop.org>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Bug in APIC on 2.4.20 kernel
2003-03-01 22:42 ` JP Pozzi izzop.org
@ 2003-03-02 22:30 ` Ion Badulescu
0 siblings, 0 replies; 4+ messages in thread
From: Ion Badulescu @ 2003-03-02 22:30 UTC (permalink / raw)
To: jp.pozzi; +Cc: linux-kernel, Mikael Pettersson
On 01 Mar 2003 23:42:18 +0100, JP Pozzi izzop.org <jp.pozzi@izzop.org> wrote:
> Hello,
>
> I try the patch with no success, the kernel seems to be ok, but the
> message at boot loops always "APIC CPU0 O4(04)".
The patch only affects a UP kernel. If you compiled your kernel as SMP,
try again as UP and report back.
Ion
--
It is better to keep your mouth shut and be thought a fool,
than to open it and remove all doubt.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Bug in APIC on 2.4.20 kernel
@ 2003-02-28 23:18 JP Pozzi izzop.org
0 siblings, 0 replies; 4+ messages in thread
From: JP Pozzi izzop.org @ 2003-02-28 23:18 UTC (permalink / raw)
To: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 910 bytes --]
Hello,
I found a problem with the APIC management in the 2.4.20 kernel.
My system is (was) a bi-processor one :
MSI K7D Master (BIOS V 1.1) with 2 ATHLON MP 1800+
The facts :
1) The 2.4.20 kernel was OK on my system with the 2 processors and a
home made SMP kernel.
2) One processor was broken/defective.
3) No boot was possible with only on processor on the card with a loop
while booting saying endlessly : "APIC 04(04)"
I try to recompile the 2.4.20 kernel with no SMP support the problem was
the same, I try gcc2.95 and gcc3 without any success.
4) The system runs fine with a 2.2.22 home made kernel, the APIC works
well with my lonely processor ... (cf attachment dmesg.2.2.22).
As the system does not run with 2.4.20 kernel I made "ver_linux" under
the current (2.2.22) kernel (cf attachment ver_linux.txt).
Regards
linux-kernel@vger.kernel.org
--
JP Pozzi izzop.org <jp.pozzi@izzop.org>
[-- Attachment #2: dmesg.2.2.22 --]
[-- Type: text/plain, Size: 7437 bytes --]
Linux version 2.2.22 (root@k400.jpp.fr) (gcc version 2.95.4 20011002 (Debian prerelease)) #14 SMP Wed Feb 19 12:28:42 CET 2003
BIOS-provided physical RAM map:
BIOS-e820: 0009f000 @ 00000000 (usable)
BIOS-e820: 1fef0000 @ 00100000 (usable)
Intel MultiProcessor Specification v1.4
Virtual Wire compatibility mode.
OEM ID: OEM00000 Product ID: PROD00000000 APIC at: 0xFEE00000
Processor #0 Pentium(tm) Pro APIC version 17
I/O APIC #2 Version 17 at 0xFEC00000.
Processors: 1
mapped APIC to ffffe000 (fee00000)
mapped IOAPIC to ffffd000 (fec00000)
Detected 1533403 kHz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 3060.53 BogoMIPS
Memory: 517168k/524224k available (1076k kernel code, 424k reserved, 5468k data, 88k init)
Dentry hash table entries: 65536 (order 7, 512k)
Buffer cache hash table entries: 524288 (order 9, 2048k)
Page cache hash table entries: 131072 (order 7, 512k)
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 256K (64 bytes/line)
Checking 386/387 coupling... OK, FPU using exception 16 error reporting.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 256K (64 bytes/line)
per-CPU timeslice cutoff: 49.99 usecs.
CPU0: AMD Athlon(tm) MP 1800+ stepping 02
calibrating APIC timer ...
..... CPU clock speed is 1533.4236 MHz.
..... system bus clock speed is 266.6824 MHz.
Error: only one processor found.
enabling symmetric IO mode... ...done.
ENABLING IO-APIC IRQs
init IO_APIC IRQs
IO-APIC (apicid-pin) 2-0, 2-5, 2-11, 2-14, 2-20, 2-21, 2-22, 2-23 not connected.
number of MP IRQ sources: 18.
number of IO-APIC #2 registers: 24.
testing the IO APIC.......................
IO APIC #2......
.... register #00: 02000000
....... : physical APIC id: 02
.... register #01: 00170011
....... : max redirection entries: 0017
....... : IO APIC version: 0011
.... register #02: 00000000
....... : arbitration: 00
.... IRQ redirection table:
NR Log Phy Mask Trig IRR Pol Stat Dest Deli Vect:
00 000 00 1 0 0 0 0 0 0 00
01 0FF 0F 1 0 0 0 0 1 1 59
02 0FF 0F 0 0 0 0 0 1 1 51
03 0FF 0F 1 0 0 0 0 1 1 61
04 0FF 0F 1 0 0 0 0 1 1 69
05 000 00 1 0 0 0 0 0 0 00
06 0FF 0F 1 0 0 0 0 1 1 71
07 0FF 0F 1 0 0 0 0 1 1 79
08 0FF 0F 1 0 0 0 0 1 1 81
09 0FF 0F 1 0 0 0 0 1 1 89
0a 0FF 0F 1 0 0 0 0 1 1 91
0b 000 00 1 0 0 0 0 0 0 00
0c 0FF 0F 1 0 0 0 0 1 1 99
0d 000 00 1 0 0 0 0 0 0 00
0e 000 00 1 0 0 0 0 0 0 00
0f 0FF 0F 1 0 0 0 0 1 1 A1
10 0FF 0F 1 1 0 1 0 1 1 A9
11 0FF 0F 1 1 0 1 0 1 1 B1
12 0FF 0F 1 1 0 1 0 1 1 B9
13 0FF 0F 1 1 0 1 0 1 1 C1
14 000 00 1 0 0 0 0 0 0 00
15 000 00 1 0 0 0 0 0 0 00
16 000 00 1 0 0 0 0 0 0 00
17 000 00 1 0 0 0 0 0 0 00
IRQ to pin mappings:
IRQ0 -> 2
IRQ1 -> 1
IRQ3 -> 3
IRQ4 -> 4
IRQ6 -> 6
IRQ7 -> 7
IRQ8 -> 8
IRQ9 -> 9
IRQ10 -> 10
IRQ12 -> 12
IRQ13 -> 13
IRQ15 -> 15
IRQ16 -> 16
IRQ17 -> 17
IRQ18 -> 18
IRQ19 -> 19
.................................... done.
PCI: PCI BIOS revision 2.10 entry at 0xfb130
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: Enabling I/O for device 00:00
PCI->APIC IRQ transform: (B0,I7,P1) -> 17
PCI->APIC IRQ transform: (B1,I5,P0) -> 17
PCI->APIC IRQ transform: (B2,I0,P3) -> 19
PCI->APIC IRQ transform: (B2,I4,P0) -> 16
PCI->APIC IRQ transform: (B2,I6,P0) -> 18
Linux NET4.0 for Linux 2.2
Based upon Swansea University Computer Society NET3.039
NET4: Unix domain sockets 1.0 for Linux NET4.0.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
TCP: Hash tables configured (ehash 524288 bhash 65536)
Initializing RT netlink socket
Starting kswapd v 1.5
Serial driver version 4.27 with no serial options enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
ttyS01 at 0x02f8 (irq = 3) is a 16550A
pty: 256 Unix98 ptys configured
PCI_IDE: unknown IDE controller on PCI bus 00 device 39, VID=1022, DID=7441
PCI_IDE: not 100% native mode: will probe irqs later
PCI_IDE: simplex device: DMA disabled
ide0: PCI_IDE Bus-Master DMA disabled (BIOS)
PCI_IDE: simplex device: DMA disabled
ide1: PCI_IDE Bus-Master DMA disabled (BIOS)
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
sym53c8xx: at PCI bus 2, device 4, function 0
sym53c8xx: setting PCI_COMMAND_PARITY...(fix-up)
sym53c8xx: 53c875 detected with Tekram NVRAM
sym53c875-0: rev 0x3 on pci bus 2 device 4 function 0 irq 16
sym53c875-0: Tekram format NVRAM, ID 7, Fast-20, NO Parity
scsi0 : sym53c8xx-1.7.1-20000726
scsi : 1 host.
Vendor: IBM Model: DDRS-34560W Rev: S97B
Type: Direct-Access ANSI SCSI revision: 02
Detected scsi disk sda at scsi0, channel 0, id 0, lun 0
Vendor: YAMAHA Model: CRW8424S Rev: 1.0d
Type: CD-ROM ANSI SCSI revision: 02
Vendor: PLEXTOR Model: CD-ROM PX-40TS Rev: 1.10
Type: CD-ROM ANSI SCSI revision: 02
Vendor: QUANTUM Model: ATLAS_V__9_WLS Rev: 0230
Type: Direct-Access ANSI SCSI revision: 03
Detected scsi disk sdb at scsi0, channel 0, id 4, lun 0
Vendor: IBM Model: DDRS-34560D Rev: DC1B
Type: Direct-Access ANSI SCSI revision: 02
Detected scsi disk sdc at scsi0, channel 0, id 8, lun 0
Vendor: IBM Model: DDRS-34560D Rev: DC1B
Type: Direct-Access ANSI SCSI revision: 02
Detected scsi disk sdd at scsi0, channel 0, id 9, lun 0
scsi : detected 4 SCSI disks total.
sym53c875-0-<0,*>: FAST-20 WIDE SCSI 40.0 MB/s (50 ns, offset 15)
SCSI device sda: hdwr sector= 512 bytes. Sectors= 8925000 [4357 MB] [4.4 GB]
sym53c875-0-<4,*>: FAST-20 WIDE SCSI 40.0 MB/s (50 ns, offset 16)
SCSI device sdb: hdwr sector= 512 bytes. Sectors= 17930694 [8755 MB] [8.8 GB]
sym53c875-0-<8,*>: FAST-20 WIDE SCSI 40.0 MB/s (50 ns, offset 15)
SCSI device sdc: hdwr sector= 512 bytes. Sectors= 8925000 [4357 MB] [4.4 GB]
sym53c875-0-<9,*>: FAST-20 WIDE SCSI 40.0 MB/s (50 ns, offset 15)
SCSI device sdd: hdwr sector= 512 bytes. Sectors= 8925000 [4357 MB] [4.4 GB]
tulip.c:v0.91g-ppc 7/16/99 becker@cesdis.gsfc.nasa.gov
eth0: Lite-On 82c168 PNIC rev 32 at 0xd400, 00:A0:CC:5B:E9:63, IRQ 18.
eth0: MII transceiver #1 config 3000 status 7829 advertising 01e1.
Partition check:
sda: sda1 sda2 sda3 sda4
sdb: sdb1 sdb2
sdc: sdc1
sdd: sdd1
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 88k freed
Adding Swap: 358412k swap-space (priority -1)
Coda Kernel/Venus communications (module), v5.3.8, coda@cs.cmu.edu.
parport0: PC-style at 0x378 [SPP,PS2]
lp0: using parport0 (polling).
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb.c: registered new driver usbscanner
scanner.c: USB Scanner support registered.
scanner.c: open_scanner(0): Unable to access minor data
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
nvidia: loading NVIDIA NVdriver Kernel Module 1.0-2960 Tue May 14 07:41:42 PDT 2002
[-- Attachment #3: ver_linux.txt --]
[-- Type: text/plain, Size: 701 bytes --]
If some fields are empty or look unusual you may have an old version.
Compare to the current minimal requirements in Documentation/Changes.
Linux k400.jpp.fr 2.2.22 #14 SMP Wed Feb 19 12:28:42 CET 2003 i686 unknown unknown GNU/Linux
Gnu C 2.95.4
Gnu make 3.80
util-linux 2.11y
mount 2.11y
modutils 2.4.21
e2fsprogs 1.32
PPP 2.4.1
Linux C Library 2.3.1
Dynamic linker (ldd) 2.3.1
Procps 3.1.6
Net-tools 1.60
Console-tools 0.2.3
Sh-utils 2.0.15
Modules Loaded NVdriver usb-storage scanner usbcore parport_pc lp parport coda
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-03-02 22:20 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-01 0:32 Bug in APIC on 2.4.20 kernel Mikael Pettersson
2003-03-01 22:42 ` JP Pozzi izzop.org
2003-03-02 22:30 ` Ion Badulescu
-- strict thread matches above, loose matches on Subject: below --
2003-02-28 23:18 JP Pozzi izzop.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).