Skip to contentSkip to conversation

2.6.10-rc1-mm5

DISCUSSION Stas Sergeev 5 participants 21 messages Nov 13, 2004 – Nov 18, 2004 Documentation

lore
Share & tools
lore
#0 lore raw

Hi.

Quoted 1 line · Andrew Morton

ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.10-rc1/2.6.10-rc1-mm5/

Here are the few new problems that
I've got:

1. Local APIC stopped working. I know
I have to add "lapic" to the command-line,
but now this doesn't help (in -mm4 either
I think). dmesg says:
---
Kernel command line: ro root=/dev/hdc2 apm=power-off lapic nmi_watchdog=1
...
Local APIC not detected. Using dummy APIC emulation.
---
Is this known? Any other command-line option
to enable it again?

2. Radeon DRM driver stopped working.
dmesg says:
---
Linux agpgart interface v0.100 (c) Dave Jones
agpgart: Detected AMD Irongate chipset
agpgart: Maximum main memory to use for agp memory: 439M
agpgart: AGP aperture is 64M @ 0xe8000000
[drm] Initialized radeon 1.11.0 20020828 on minor 0: ATI Technologies Inc Radeon RV200 QW [Radeon 7500] [drm:radeon_cp_init] *ERROR* radeon_cp_init called without lock held
[drm:drm_unlock] *ERROR* Process 3124 using kernel context 0
---

There are also the older problems to mention,
like an Oops in kprobes:
http://www.uwsg.iu.edu/hypermail/linux/kernel/0411.1/0895.html
(there is also a test-case)
and the memory corruption in smbfs:
http://marc.free.net.ph/message/20041027.000343.74f4a932.html

If either of these problems can be resolved,
I'd be very happy:)

My /proc/config.gz is attached, just in case.

#1 lore raw
Quoted 8 lines · Stas Sergeev

Hi.

Quoted 1 line · Andrew Morton

ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.10-rc1/2.6.10-rc1-mm5/

Here are the few new problems that
I've got:

Quoted 6 lines

1. Local APIC stopped working. I know
...
2. Radeon DRM driver stopped working.
...
like an Oops in kprobes:
http://www.uwsg.iu.edu/hypermail/linux/kernel/0411.1/0895.html

OK, I've passed these over to people who might be able to fix them.

Quoted 4 lines

(there is also a test-case)
and the memory corruption in smbfs:
http://marc.free.net.ph/message/20041027.000343.74f4a932.html

Here's a random hack for smbfs. Does it help?

fs/smbfs/request.c renamed from fs/smbfs/request.c~smbfs-hack +4 -1
diff -puN fs/smbfs/request.c~smbfs-hack fs/smbfs/request.c
@@ -279,6 +279,7 @@ int smb_add_request(struct smb_request *
 	long timeleft;
 	struct smb_sb_info *server = req->rq_server;
 	int result = 0;
+	int need_put = 0;
 
 	smb_setup_request(req);
 	if (req->rq_trans2_command) {
@@ -343,7 +344,7 @@ int smb_add_request(struct smb_request *
 		smb_lock_server(server);
 		if (!(req->rq_flags & SMB_REQ_RECEIVED)) {
 			list_del_init(&req->rq_queue);
-			smb_rput(req);
+			need_put = 1;
 		}
 		smb_unlock_server(server);
 	}
@@ -372,6 +373,8 @@ int smb_add_request(struct smb_request *
 		req->rq_errno = smb_errno(req);
 	if (signal_pending(current))
 		req->rq_errno = -ERESTARTSYS;
+	if (need_put)
+		smb_rput(req);
 	return req->rq_errno;
 }
 

_

#3 lore raw
In reply to Stas Sergeev
Quoted 5 lines · Stas Sergeev
Quoted 1 line · Andrew Morton

ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.10-rc1/2.6.10-rc1-mm5/

Here are the few new problems that I've got:

Quoted 11 lines

1. Local APIC stopped working. I know
I have to add "lapic" to the command-line,
but now this doesn't help (in -mm4 either
I think). dmesg says:
---
Kernel command line: ro root=/dev/hdc2 apm=power-off lapic nmi_watchdog=1
...
Local APIC not detected. Using dummy APIC emulation.
---
Is this known? Any other command-line option
to enable it again?

Could you please apply the following patch and supply full dmesg?

Thanks.

Index: linux-2.6.10-rc1-mm5/arch/i386/kernel/apic.c
===================================================================
RCS file: /home/cvsroot/linux-2.6.10-rc1-mm5/arch/i386/kernel/apic.c,v retrieving revision 1.1.1.1

arch/i386/kernel/apic.c +4 -1
diff -u -p -B -r1.1.1.1 apic.c
@@ -733,8 +733,10 @@ static int __init detect_init_APIC (void
 	extern void get_cpu_vendor(struct cpuinfo_x86*);
 
 	/* Disabled by kernel option? */
-	if (enable_local_apic < 0)
+	if (enable_local_apic < 0) {
+		printk("%s:%d\n", __FILE__, __LINE__);
 		return -1;
+	}
 
 	/* Workaround for us being called before identify_cpu(). */
 	get_cpu_vendor(&boot_cpu_data);
@@ -760,6 +762,7 @@ static int __init detect_init_APIC (void
 		 * APIC only if "lapic" specified.
 		 */
 		if (enable_local_apic <= 0) {
+	                printk("%s:%d\n", __FILE__, __LINE__);
 			apic_printk(APIC_VERBOSE,
 				    "Local APIC disabled by BIOS -- "
 				    "you can enable it with \"lapic\"\n");
#4 lore raw

Hi.

Quoted 2 lines · Zwane Mwaikambo
Quoted 1 line

1. Local APIC stopped working. I know

Could you please apply the following patch and supply full dmesg?

Done.
Does this help?

Linux version 2.6.10-rc1-mm5-stsp1 (root@lin) (gcc version 3.4.0 (Red Hat Linux 3.4.0-1)) #2 SMP Sun Nov 14 01:35:31 MSK 2004 BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000dc000 - 00000000000e0000 (reserved)
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000001fff0000 (usable)
BIOS-e820: 000000001fff0000 - 000000001fff8000 (ACPI data)
BIOS-e820: 000000001fff8000 - 0000000020000000 (ACPI NVS)
BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
511MB LOWMEM available.
On node 0 totalpages: 131056
DMA zone: 4096 pages, LIFO batch:1
Normal zone: 126960 pages, LIFO batch:16
HighMem zone: 0 pages, LIFO batch:1
DMI 2.3 present.
ACPI: RSDP (v000 AMI ) @ 0x000faf50
ACPI: RSDT (v001 AMIINT 0x00000010 MSFT 0x00000097) @ 0x1fff0000
ACPI: FADT (v001 AMIINT 0x00000010 MSFT 0x00000097) @ 0x1fff0030
ACPI: DSDT (v001 ASUS K7M 0x00001000 MSFT 0x0100000b) @ 0x00000000
Built 1 zonelists
arch/i386/kernel/apic.c:765
Initializing CPU#0
Kernel command line: ro root=/dev/hdc2 apm=power-off lapic nmi_watchdog=1
CPU 0 irqstacks, hard=c03ae000 soft=c03ac000
PID hash table entries: 2048 (order: 11, 32768 bytes)
Detected 704.943 MHz processor.
Using tsc for high-res timesource
Console: colour VGA+ 80x25
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 515712k/524224k available (1784k kernel code, 8028k reserved, 746k data, 180k init, 0k highmem) Checking if this processor honours the WP bit even in supervisor mode... Ok.
Calibrating delay loop... 1388.54 BogoMIPS (lpj=694272)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
CPU: After generic identify, caps: 0183f9ff c1c7f9ff 00000000 00000000
CPU: After vendor identify, caps: 0183f9ff c1c7f9ff 00000000 00000000
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 256K (64 bytes/line)
CPU: After all inits, caps: 0183f9ff c1c7f9ff 00000000 00000020
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
Enabling fast FPU save and restore... done.
Checking 'hlt' instruction... OK.
CPU0: AMD Athlon(tm) Processor stepping 02
per-CPU timeslice cutoff: 731.96 usecs.
task migration cache decay timeout: 1 msecs.
SMP motherboard not detected.
Local APIC not detected. Using dummy APIC emulation.
Brought up 1 CPUs
CPU0:
domain 0: span 1
groups: 1
NET: Registered protocol family 16
PCI: PCI BIOS revision 2.10 entry at 0xfd9e1, last bus=1
PCI: Using configuration type 1
mtrr: v2.0 (20020519)
Linux Plug and Play Support v0.97 (c) Adam Belay
PnPBIOS: Scanning system for PnP BIOS support...
PnPBIOS: Found PnP BIOS installation structure at 0xc00f7a30
PnPBIOS: PnP BIOS version 1.0, entry 0xf0000:0x6944, dseg 0xf0000
PnPBIOS: Missing SMALL_TAG_ENDDEP tag
PnPBIOS: Missing SMALL_TAG_ENDDEP tag
PnPBIOS: Missing SMALL_TAG_ENDDEP tag
PnPBIOS: Missing SMALL_TAG_ENDDEP tag
PnPBIOS: 13 nodes reported by PnP BIOS; 13 recorded by driver
usbcore: registered new driver usbfs
usbcore: registered new driver hub
PCI: Probing PCI hardware
PCI: Probing PCI hardware (bus 00)
PCI: Using IRQ router VIA [1106/0686] at 0000:00:04.0
Machine check exception polling timer started.
apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16ac)
audit: initializing netlink socket (disabled)
audit(1100396440.284:0): initialized
Total HugeTLB memory allocated, 0
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
Initializing Cryptographic API
PCI: Disabling Via external APIC routing
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
Real Time Clock Driver v1.12
[drm] Initialized drm 1.0.0 20040925
Hangcheck: starting hangcheck timer 0.5.0 (tick is 180 seconds, margin is 60 seconds).
serio: i8042 AUX port at 0x60,0x64 irq 12
serio: i8042 KBD port at 0x60,0x64 irq 1
Serial: 8250/16550 driver $Revision: 1.90 $ 8 ports, IRQ sharing enabled
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered
elevator: using anticipatory as default io scheduler
Floppy drive(s): fd0 is 1.44M, fd1 is 1.2M
FDC 0 is a post-1991 82077
divert: not allocating divert_blk for non-ethernet device lo
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
VP_IDE: IDE controller at PCI slot 0000:00:04.1
VP_IDE: chipset revision 6
VP_IDE: not 100% native mode: will probe irqs later
VP_IDE: VIA vt82c686a (rev 1b) IDE UDMA66 controller on pci0000:00:04.1

    ide0: BM-DMA at 0xffa0-0xffa7, BIOS settings: hda:DMA, hdb:DMA
    ide1: BM-DMA at 0xffa8-0xffaf, BIOS settings: hdc:DMA, hdd:DMA

Probing IDE interface ide0...
hda: FUJITSU MPG3409AT E, ATA DISK drive
hdb: FUJITSU MPE3102AT, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
Probing IDE interface ide1...
hdc: Maxtor 6Y080L0, ATA DISK drive
hdd: CD-S500/A, ATAPI CD/DVD-ROM drive
ide1 at 0x170-0x177,0x376 on irq 15
Probing IDE interface ide2...
ide2: Wait for ready failed before probe !
Probing IDE interface ide3...
ide3: Wait for ready failed before probe !
Probing IDE interface ide4...
ide4: Wait for ready failed before probe !
Probing IDE interface ide5...
ide5: Wait for ready failed before probe !
hda: max request size: 128KiB
hda: 80063424 sectors (40992 MB) w/2048KiB Cache, CHS=65535/16/63, UDMA(66)
hda: cache flushes not supported
hda: hda1 hda2 hda3 < hda5 hda6 hda7 hda8 hda9 hda10 hda11 hda12 hda13 hda14 hda15 >
hdb: max request size: 128KiB
hdb: 20016348 sectors (10248 MB) w/512KiB Cache, CHS=19857/16/63
hdb: cache flushes not supported
hdb: hdb1 hdb2 hdb3 hdb4 < hdb5 hdb6 >
hdc: max request size: 128KiB
hdc: 160086528 sectors (81964 MB) w/2048KiB Cache, CHS=65535/16/63, UDMA(66)
hdc: cache flushes supported
hdc: hdc1 hdc2 hdc3 hdc4 < hdc5 hdc6 hdc7 hdc8 hdc9 hdc10 hdc11 hdc12 hdc13 hdc14 >
hdd: ATAPI 50X CD-ROM drive, 128kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.20
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard on isa0060/serio0
logibm.c: Didn't find Logitech busmouse at 0x23c
NET: Registered protocol family 2
IP: routing cache hash table of 2048 buckets, 32Kbytes
TCP: Hash tables configured (established 16384 bind 16384)
NET: Registered protocol family 1
NET: Registered protocol family 17
BIOS EDD facility v0.16 2004-Jun-25, 3 devices found
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Freeing unused kernel memory: 180k freed
kjournald starting. Commit interval 5 seconds
USB Universal Host Controller Interface driver v2.2
PCI: Found IRQ 10 for device 0000:00:04.2
PCI: Sharing IRQ 10 with 0000:00:04.3
PCI: Sharing IRQ 10 with 0000:00:10.0
uhci_hcd 0000:00:04.2: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller uhci_hcd 0000:00:04.2: irq 10, io base 0xd400
uhci_hcd 0000:00:04.2: new USB bus registered, assigned bus number 1
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
PCI: Found IRQ 10 for device 0000:00:04.3
PCI: Sharing IRQ 10 with 0000:00:04.2
PCI: Sharing IRQ 10 with 0000:00:10.0
uhci_hcd 0000:00:04.3: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (#2) uhci_hcd 0000:00:04.3: irq 10, io base 0xd800
uhci_hcd 0000:00:04.3: new USB bus registered, assigned bus number 2
usb 1-1: new low speed USB device using uhci_hcd and address 2
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
usb 1-2: new full speed USB device using uhci_hcd and address 3
usbcore: registered new driver hiddev
input: USB HID v1.00 Mouse [1241:1111] on usb-0000:00:04.2-1
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.0:USB HID core driver
SCSI subsystem initialized
Initializing USB Mass Storage driver...
scsi0 : SCSI emulation for USB Mass Storage devices
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
usb-storage: device found at 3
usb-storage: waiting for device to settle before scanning
EXT3 FS on hdc2, internal journal
Adding 530104k swap on /dev/hda9. Priority:-1 extents:1
kjournald starting. Commit interval 5 seconds
EXT3 FS on hdc13, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting. Commit interval 5 seconds
EXT3 FS on hdc11, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting. Commit interval 5 seconds
EXT3 FS on hdc7, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting. Commit interval 5 seconds
EXT3 FS on hdc8, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting. Commit interval 5 seconds
EXT3 FS on hdc14, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive! NTFS driver 2.1.22 [Flags: R/W MODULE].
NTFS volume version 3.1.
NTFS volume version 3.1.
Vendor: JetFlash Model: TS256MJF2A Rev: 1.00
Type: Direct-Access ANSI SCSI revision: 02
SCSI device sda: 512000 512-byte hdwr sectors (262 MB)
sda: Write Protect is off
sda: Mode Sense: 0b 00 00 08
sda: assuming drive cache: write through
sda: sda1
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
usb-storage: device scan complete
ip_tables: (C) 2000-2002 Netfilter core team
ne2k-pci.c:v1.03 9/22/2003 D. Becker/P. Gortmaker
http://www.scyld.com/network/ne2k-pci.html
PCI: Found IRQ 10 for device 0000:00:10.0
PCI: Sharing IRQ 10 with 0000:00:04.3
PCI: Sharing IRQ 10 with 0000:00:04.2
divert: allocating divert_blk for eth0
eth0: RealTek RTL-8029 found at 0xc800, IRQ 10, 00:C0:26:EF:74:E6.
FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
parport_pc: Unknown parameter `io'
parport_pc: Ignoring new-style parameters in presence of obsolete ones
parport_pc: VIA 686A/8231 detected
parport_pc: probing current configuration
parport_pc: Current parallel port base: 0x378
parport0: PC-style at 0x378 (0x778), irq 7, using FIFO [PCSPP,TRISTATE,COMPAT,ECP]
parport0: Legacy device
parport_pc: VIA parallel port: io=0x378, irq=7
lp0: using parport0 (interrupt-driven).
lp0: console ready
NET: Registered protocol family 10
Disabled Privacy Extensions on device c0346ee0(lo)
IPv6 over IPv4 tunneling driver
divert: not allocating divert_blk for non-ethernet device sit0
eth0: no IPv6 routers present
Linux agpgart interface v0.100 (c) Dave Jones
agpgart: Detected AMD Irongate chipset
agpgart: Maximum main memory to use for agp memory: 439M
agpgart: AGP aperture is 64M @ 0xe8000000
[drm] Initialized radeon 1.11.0 20020828 on minor 0: ATI Technologies Inc Radeon RV200 QW [Radeon 7500] [drm:radeon_cp_init] *ERROR* radeon_cp_init called without lock held
[drm:drm_unlock] *ERROR* Process 2726 using kernel context 0

#8 lore raw
In reply to Stas Sergeev
Quoted 13 lines

2. Radeon DRM driver stopped working.
dmesg says:
---
Linux agpgart interface v0.100 (c) Dave Jones
agpgart: Detected AMD Irongate chipset
agpgart: Maximum main memory to use for agp memory: 439M
agpgart: AGP aperture is 64M @ 0xe8000000
[drm] Initialized radeon 1.11.0 20020828 on minor 0: ATI Technologies Inc Radeon RV200 QW [Radeon 7500] [drm:radeon_cp_init] *ERROR* radeon_cp_init called without lock held
[drm:drm_unlock] *ERROR* Process 3124 using kernel context 0
---

You are building AGP as a module with DRM as a built-in ,the DRM cannot use the AGP if it is not built in also, I think the latest DRM bk tree should enforce this I'm not sure if -mm5 has the patches in it or not...

I'm going to add something in the DRM debug to state whether AGP is in use or not ..

Dave.

#9 lore raw

Hi.

Quoted 3 lines · Dave Airlie
Quoted 2 lines

[drm:radeon_cp_init] *ERROR* radeon_cp_init called without lock held [drm:drm_unlock] *ERROR* Process 3124 using kernel context 0

You are building AGP as a module with DRM as a built-in ,the DRM

Yes. Building everything as module fixes
the problem. Thanks.
One of those rare cases where you take the
.config from the functional kernel of another
version, and it produces the non-functional one.

Quoted 3 lines

cannot use the AGP if it is not built in also, I think the latest DRM bk tree should enforce this I'm not sure if -mm5 has the patches in it or not...

I bet it doesnt.

#10 lore raw
In reply to Stas Sergeev
Quoted 4 lines · Stas Sergeev

1. Local APIC stopped working. I know
I have to add "lapic" to the command-line,
but now this doesn't help (in -mm4 either
I think). dmesg says:

Here's a fix. The problem is detect_init_APIC() is called early, before
the command line have been processed. Therefore "lapic" (and "nolapic") have not been seen, yet.

This has been verified to work correctly with your configuration.
Andrew, please apply.

Maciej

patch-2.6.10-rc1-mm5-i386-lapic-0

arch/i386/kernel/apic.c +5 -20
diff -up --recursive --new-file linux-2.6.10-rc1-mm5.macro/arch/i386/kernel/apic.c linux-2.6.10-rc1-mm5/arch/i386/kernel/apic.c
@@ -41,6 +41,11 @@
 #include "io_ports.h"
 
 /*
+ * Knob to control our willingness to enable the local APIC.
+ */
+int enable_local_apic __initdata = 0; /* -1=force-disable, +1=force-enable */
+
+/*
  * Debug level
  */
 int apic_verbosity;
@@ -692,26 +697,6 @@ static void apic_pm_activate(void) { }
  * Original code written by Keir Fraser.
  */
 
-/*
- * Knob to control our willingness to enable the local APIC.
- */
-int enable_local_apic __initdata = 0; /* -1=force-disable, +1=force-enable */
-
-static int __init lapic_disable(char *str)
-{
-	enable_local_apic = -1;
-	clear_bit(X86_FEATURE_APIC, boot_cpu_data.x86_capability);
-	return 0;
-}
-__setup("nolapic", lapic_disable);
-
-static int __init lapic_enable(char *str)
-{
-	enable_local_apic = 1;
-	return 0;
-}
-__setup("lapic", lapic_enable);
-
 static int __init apic_set_verbosity(char *str)
 {
 	if (strcmp("debug", str) == 0)
arch/i386/kernel/setup.c +11 -0
diff -up --recursive --new-file linux-2.6.10-rc1-mm5.macro/arch/i386/kernel/setup.c linux-2.6.10-rc1-mm5/arch/i386/kernel/setup.c
@@ -40,6 +40,7 @@
 #include <linux/init.h>
 #include <linux/edd.h>
 #include <video/edid.h>
+#include <asm/apic.h>
 #include <asm/e820.h>
 #include <asm/mpspec.h>
 #include <asm/setup.h>
@@ -814,6 +815,16 @@ static void __init parse_cmdline_early (
 #endif /* CONFIG_X86_LOCAL_APIC */
 #endif /* CONFIG_ACPI_BOOT */
 
+#ifdef CONFIG_X86_LOCAL_APIC
+		/* enable local APIC */
+		else if (!memcmp(from, "lapic", 5))
+			lapic_enable();
+
+		/* disable local APIC */
+		else if (!memcmp(from, "nolapic", 6))
+			lapic_disable();
+#endif /* CONFIG_X86_LOCAL_APIC */
+
 		/*
 		 * highmem=size forces highmem to be exactly 'size' bytes.
 		 * This works even on boxes that have no highmem otherwise.
include/asm-i386/apic.h +13 -0
diff -up --recursive --new-file linux-2.6.10-rc1-mm5.macro/include/asm-i386/apic.h linux-2.6.10-rc1-mm5/include/asm-i386/apic.h
@@ -5,6 +5,7 @@
 #include <linux/pm.h>
 #include <asm/fixmap.h>
 #include <asm/apicdef.h>
+#include <asm/processor.h>
 #include <asm/system.h>
 
 #define Dprintk(x...)
@@ -16,8 +17,20 @@
 #define APIC_VERBOSE 1
 #define APIC_DEBUG   2
 
+extern int enable_local_apic;
 extern int apic_verbosity;
 
+static inline void lapic_disable(void)
+{
+	enable_local_apic = -1;
+	clear_bit(X86_FEATURE_APIC, boot_cpu_data.x86_capability);
+}
+
+static inline void lapic_enable(void)
+{
+	enable_local_apic = 1;
+}
+
 /*
  * Define the default level of output to be very little
  * This can be turned up by using apic=verbose for more
#5 lore raw
In reply to Stas Sergeev
Quoted 5 lines · Stas Sergeev
Quoted 2 lines · Zwane Mwaikambo
Quoted 1 line

1. Local APIC stopped working. I know

Could you please apply the following patch and supply full dmesg?

Done.
Does this help?

Yep it does help, we setup the Local APIC earlier than the parameter parsing code. Please test the following;

Thanks,
Zwane

Index: linux-2.6.10-rc1-mm5/init/main.c
===================================================================
RCS file: /home/cvsroot/linux-2.6.10-rc1-mm5/init/main.c,v retrieving revision 1.1.1.1

init/main.c +1 -1
diff -u -p -B -r1.1.1.1 main.c
@@ -453,12 +453,12 @@ asmlinkage void __init start_kernel(void
 	preempt_disable();
 	build_all_zonelists();
 	page_alloc_init();
-	trap_init();
 	printk("Kernel command line: %s\n", saved_command_line);
 	parse_early_param();
 	parse_args("Booting kernel", command_line, __start___param,
 		   __stop___param - __start___param,
 		   &unknown_bootoption);
+	trap_init();
 	sort_main_extable();
 	rcu_init();
 	init_IRQ();
#6 lore raw
Quoted 4 lines · Zwane Mwaikambo
init/main.c +0 -0
@@ -453,12 +453,12 @@ asmlinkage void __init start_kernel(void
 	preempt_disable();
 	build_all_zonelists();
 	page_alloc_init();

init/main.c asmlinkage void __init start_kernel(void · line 464

Quoted 10 lines
init/main.c +1 -1
-	trap_init();
 	printk("Kernel command line: %s\n", saved_command_line);
 	parse_early_param();
 	parse_args("Booting kernel", command_line, __start___param,
 		   __stop___param - __start___param,
 		   &unknown_bootoption);
+	trap_init();
 	sort_main_extable();
 	rcu_init();
 	init_IRQ();

Are you sure you want to make exception handling not to be set up as soon
as possible? Please note this also includes stuff in cpu_init().

Maciej

#7 lore raw
Quoted 11 lines · Maciej W. Rozycki
Quoted 9 lines · Zwane Mwaikambo
init/main.c +0 -1
@@ -453,12 +453,12 @@ asmlinkage void __init start_kernel(void
 	preempt_disable();
 	build_all_zonelists();
 	page_alloc_init();
-	trap_init();
 	printk("Kernel command line: %s\n", saved_command_line);
 	parse_early_param();
 	parse_args("Booting kernel", command_line, __start___param,
 		   __stop___param - __start___param,
Quoted 8 lines

init/main.c asmlinkage void __init start_kernel(void · line 464

Quoted 5 lines
init/main.c +1 -0
 		   &unknown_bootoption);
+	trap_init();
 	sort_main_extable();
 	rcu_init();
 	init_IRQ();

Are you sure you want to make exception handling not to be set up as soon
as possible? Please note this also includes stuff in cpu_init().

As long as we don't end up having to shuffle around more stuff so that parameters take effect. Anyway, i prefer your patch, this was a testing hack.

Thanks,
Zwane

#11 lore raw
In reply to Maciej W. Rozycki

Hi.

Quoted 1 line · Maciej W. Rozycki

This has been verified to work correctly with your configuration.

Thanks, it works indeed.
But there is still something strange. Previously, in 2.6.10-rc1 (and in -mm2 either I think) the NMI watchdog was working in both LAPIC and IO-APIC modes. Now - only in LAPIC mode. nmi_watchdog=1 still doesn't work. Any ideas about this?
Just trying to make sure that everything is correct.
And btw, dmesg is still silent about a LAPIC. This makes me nervous when I am trying to figure out whether it works or not:) Would be nice to get those prominent messages back, as per 2.6.8.

#2 lore raw
In reply to Andrew Morton

Hi Andrew.

Quoted 1 line · Andrew Morton

Here's a random hack for smbfs. Does it help?

Unfortunately this (and the updated)
patch is very far from any help :(
I did some investigations myself.
At first I checked up the callers and
found that they do smb_rput() themselves
if smb_add_request() returns error. So
we have double-free. Then I found that
smb_rput() does list_del_init() itself,
so this is being done 3 times instead
of one. So all that piece of code you
were trying to correct, was actually
completely useless. I removed it (patch
attached). That made the smbfs to work
for me (for the first time in 2.6!), but
after about 5 minutes I've got the attached
Oops and Slab corruption again. A quick
glance to the code pointed by Oops, revealed
that there are plenty of use-after-rput
instances. Then I've found much more of
them all around the code.
I don't suppose this can ever work.
Now I am just scared to even load the smbfs
module.
I asked our admin to enable the NTLM auth
and mounted everything as cifs instead.
That works like a charm!
If there are any other patches to try -
I'll test them, but what is the current
official status of smbfs? Is it deprecated?
Or broken? Or undergoing some redesign?
Very strange...

Nov 15 15:23:31 stas kernel: Unable to handle kernel paging request at virtual address 6b6b6b6b
Nov 15 15:23:31 stas kernel:  printing eip:
Nov 15 15:23:31 stas kernel: c011d4d7
Nov 15 15:23:31 stas kernel: *pde = 00000000
Nov 15 15:23:31 stas kernel: Oops: 0000 [#1]
Nov 15 15:23:31 stas kernel: PREEMPT SMP 
Nov 15 15:23:31 stas kernel: Modules linked in: snd_mixer_oss snd_cmipci snd_pcm snd_page_alloc snd_opl3_lib snd_timer snd_hwdep snd_mpu401_uart snd_rawmidi snd_seq_device snd soundcore intel_agp agpgart md5 ipv6 smbfs 3c59x mii sd_mod ntfs nls_cp866 usb_storage scsi_mod uhci_hcd usbcore video thinkpad_acpi
Nov 15 15:23:31 stas kernel: CPU:    0
Nov 15 15:23:31 stas kernel: EIP:    0060:[<c011d4d7>]    Not tainted VLI
Nov 15 15:23:31 stas kernel: EFLAGS: 00010897   (2.6.10-rc1-mm5) 
Nov 15 15:23:31 stas kernel: EIP is at __wake_up_common+0x17/0x70
Nov 15 15:23:31 stas kernel: eax: d1007efc   ebx: d1007ef0   ecx: 00000001   edx: 6b6b6b6b
Nov 15 15:23:31 stas kernel: esi: 00000000   edi: 00000001   ebp: de9caf44   esp: de9caf28
Nov 15 15:23:31 stas kernel: ds: 007b   es: 007b   ss: 0068
Nov 15 15:23:31 stas kernel: Process smbiod (pid: 2567, threadinfo=de9ca000 task=deab5550)
Nov 15 15:23:31 stas kernel: Stack: c014c65f 00000000 00000001 00000001 d1007ef0 00000000 00000001 de9caf68 
Nov 15 15:23:31 stas kernel:        c011d568 00000000 00000000 00000286 00000001 deabcd74 d1007ee4 00000000 
Nov 15 15:23:31 stas kernel:        de9caf80 e0920d35 00000000 00000000 deabcd74 00000007 de9caf94 e091fc97 
Nov 15 15:23:31 stas kernel: Call Trace:
Nov 15 15:23:31 stas kernel:  [<c010600a>] show_stack+0x7a/0x90
Nov 15 15:23:31 stas kernel:  [<c0106196>] show_registers+0x156/0x1c0
Nov 15 15:23:31 stas kernel:  [<c01063a4>] die+0xf4/0x180
Nov 15 15:23:31 stas kernel:  [<c0119c9a>] do_page_fault+0x36a/0x69f
Nov 15 15:23:31 stas kernel:  [<c0105c8f>] error_code+0x2b/0x30
Nov 15 15:23:31 stas kernel:  [<c011d568>] __wake_up+0x38/0x50
Nov 15 15:23:31 stas kernel:  [<e0920d35>] smb_request_recv+0x115/0x1ed [smbfs]
Nov 15 15:23:31 stas kernel:  [<e091fc97>] smbiod_doio+0x27/0xa0 [smbfs]
Nov 15 15:23:31 stas kernel:  [<e091fe4b>] smbiod+0x13b/0x178 [smbfs]
Nov 15 15:23:31 stas kernel:  [<c01032e5>] kernel_thread_helper+0x5/0x10
Nov 15 15:23:31 stas kernel: Code: c0 eb d2 90 55 89 e5 8b 40 04 5d e9 84 e3 ff ff 8d 74 26 00 55 89 e5 57 56 53 83 ec 10 89 55 f0 89 4d ec 8b 50 0c 83 c0 0c 39 c2 <8b> 3a 89 45 e8 74 3b 89 f6 8b 45 0c 8d 5a f4 8b 72 f4 8b 4d 08 
Nov 15 15:23:31 stas kernel:  <3>Debug: sleeping function called from invalid context at include/linux/rwsem.h:43
Nov 15 15:23:31 stas kernel: in_atomic():1, irqs_disabled():0
Nov 15 15:23:31 stas kernel:  [<c0106037>] dump_stack+0x17/0x20
Nov 15 15:23:31 stas kernel:  [<c011f102>] __might_sleep+0xa2/0xb0
Nov 15 15:23:31 stas kernel:  [<c0122c73>] profile_task_exit+0x23/0x60
Nov 15 15:23:31 stas kernel:  [<c0124d3c>] do_exit+0x1c/0x580
Nov 15 15:23:32 stas kernel:  [<c0106428>] die+0x178/0x180
Nov 15 15:23:32 stas kernel:  [<c0119c9a>] do_page_fault+0x36a/0x69f
Nov 15 15:23:32 stas kernel:  [<c0105c8f>] error_code+0x2b/0x30
Nov 15 15:23:32 stas kernel:  [<c011d568>] __wake_up+0x38/0x50
Nov 15 15:23:32 stas kernel:  [<e0920d35>] smb_request_recv+0x115/0x1ed [smbfs]
Nov 15 15:23:32 stas kernel:  [<e091fc97>] smbiod_doio+0x27/0xa0 [smbfs]
Nov 15 15:23:32 stas kernel:  [<e091fe4b>] smbiod+0x13b/0x178 [smbfs]
Nov 15 15:23:32 stas kernel:  [<c01032e5>] kernel_thread_helper+0x5/0x10
Nov 15 15:23:32 stas kernel: note: smbiod[2567] exited with preempt_count 1
Nov 15 15:23:38 stas kernel: Slab corruption: start=d1007ee4, len=256
Nov 15 15:23:38 stas kernel: Redzone: 0x5a2cf071/0x5a2cf071.
Nov 15 15:23:38 stas kernel: Last user: [<e0920d1c>](smb_request_recv+0xfc/0x1ed [smbfs])
Nov 15 15:23:38 stas kernel: 000: 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 00 6b 6b 6b
Nov 15 15:23:38 stas kernel: Prev obj: start=d1007dd8, len=256
Nov 15 15:23:38 stas kernel: Redzone: 0x5a2cf071/0x5a2cf071.
Nov 15 15:23:38 stas kernel: Last user: [<00000000>](0x0)
Nov 15 15:23:38 stas kernel: 000: 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b
Nov 15 15:23:38 stas kernel: 010: 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b
fs/smbfs/request.c +0 -12
@@ -335,18 +335,6 @@
 
 	timeleft = wait_event_interruptible_timeout(req->rq_wait,
 				    req->rq_flags & SMB_REQ_RECEIVED, 30*HZ);
-	if (!timeleft || signal_pending(current)) {
-		/*
-		 * On timeout or on interrupt we want to try and remove the
-		 * request from the recvq/xmitq.
-		 */
-		smb_lock_server(server);
-		if (!(req->rq_flags & SMB_REQ_RECEIVED)) {
-			list_del_init(&req->rq_queue);
-			smb_rput(req);
-		}
-		smb_unlock_server(server);
-	}
 
 	if (!timeleft) {
 		PARANOIA("request [%p, mid=%d] timed out!\n",
#12 lore raw
In reply to Stas Sergeev
Quoted 7 lines · Stas Sergeev

But there is still something strange. Previously, in 2.6.10-rc1 (and in -mm2 either I think) the NMI watchdog was working in both LAPIC and IO-APIC modes. Now - only in LAPIC mode. nmi_watchdog=1 still doesn't work. Any ideas about this?

Interesting -- your local APIC seems to be disabled by the firmware
(otherwise it would work even without my fix), so how can an I/O APIC work? Bringing it up requires a set of tables in memory describing its configuration to have been prepared by the firmware by means of either the MPS or the ACPI standard. Disabling the local APIC likely implies no explicit support for APICs is present in the firmware, so such tables should be absent.

Quoted 2 lines

Just trying to make sure that everything is correct.

With no APIC messages at all it's hard to decide whether it's correct or
not.

Quoted 5 lines

And btw, dmesg is still silent about a LAPIC. This makes me nervous when I am trying to figure out whether it works or not:) Would be nice to get those prominent messages back, as per 2.6.8.

Someone wasn't as much fond of them as you are and they were removed by
default. I'm pissed off, too, but my opinion doesn't matter -- others seem to have better skills with their crystal balls. Please try "debug apic=debug" on your command line together with the following patch (the "apic=" parameter suffers from the same problem "lapic" and "nolapic" do, but IMO it would be an overkill to move it to parse_cmdline_early()).

If you send me the bootstrap log back I may have a look to see what's
wrong about the I/O APIC.

Maciej

patch-2.6.10-rc1-mm5-i386-apic_printk-0

arch/i386/kernel/apic.c +14 -14
diff -up --recursive --new-file linux-2.6.10-rc1-mm5.macro/arch/i386/kernel/apic.c linux-2.6.10-rc1-mm5/arch/i386/kernel/apic.c
@@ -760,9 +760,8 @@ static int __init detect_init_APIC (void
 		 * APIC only if "lapic" specified.
 		 */
 		if (enable_local_apic <= 0) {
-			apic_printk(APIC_VERBOSE,
-				    "Local APIC disabled by BIOS -- "
-				    "you can enable it with \"lapic\"\n");
+			printk("Local APIC disabled by BIOS -- "
+			       "you can enable it with \"lapic\"\n");
 			return -1;
 		}
 		/*
@@ -773,8 +772,7 @@ static int __init detect_init_APIC (void
 		 */
 		rdmsr(MSR_IA32_APICBASE, l, h);
 		if (!(l & MSR_IA32_APICBASE_ENABLE)) {
-			apic_printk(APIC_VERBOSE, "Local APIC disabled "
-					"by BIOS -- reenabling.\n");
+			printk("Local APIC disabled by BIOS -- reenabling.\n");
 			l &= ~MSR_IA32_APICBASE_BASE;
 			l |= MSR_IA32_APICBASE_ENABLE | APIC_DEFAULT_PHYS_BASE;
 			wrmsr(MSR_IA32_APICBASE, l, h);
@@ -801,7 +799,7 @@ static int __init detect_init_APIC (void
 	if (nmi_watchdog != NMI_NONE)
 		nmi_watchdog = NMI_LOCAL_APIC;
 
-	apic_printk(APIC_VERBOSE, "Found and enabled local APIC!\n");
+	printk("Found and enabled local APIC!\n");
 
 	apic_pm_activate();
 
@@ -828,8 +826,8 @@ void __init init_apic_mappings(void)
 		apic_phys = mp_lapic_addr;
 
 	set_fixmap_nocache(FIX_APIC_BASE, apic_phys);
-	apic_printk(APIC_DEBUG, "mapped APIC to %08lx (%08lx)\n", APIC_BASE,
-			apic_phys);
+	printk(KERN_DEBUG "mapped APIC to %08lx (%08lx)\n", APIC_BASE,
+	       apic_phys);
 
 	/*
 	 * Fetch the APIC ID of the BSP in case we have a
@@ -847,21 +845,23 @@ void __init init_apic_mappings(void)
 			if (smp_found_config) {
 				ioapic_phys = mp_ioapics[i].mpc_apicaddr;
 				if (!ioapic_phys) {
-					printk(KERN_ERR "WARNING: bogus zero IO-APIC address found in MPTABLE, disabling IO/APIC support!\n");
-
+					printk(KERN_ERR
+					       "WARNING: bogus zero IO-APIC "
+					       "address found in MPTABLE, "
+					       "disabling IO/APIC support!\n");
 					smp_found_config = 0;
 					skip_ioapic_setup = 1;
 					goto fake_ioapic_page;
 				}
 			} else {
 fake_ioapic_page:
-				ioapic_phys = (unsigned long) alloc_bootmem_pages(PAGE_SIZE);
+				ioapic_phys = (unsigned long)
+					      alloc_bootmem_pages(PAGE_SIZE);
 				ioapic_phys = __pa(ioapic_phys);
 			}
 			set_fixmap_nocache(idx, ioapic_phys);
-			apic_printk(APIC_DEBUG, "mapped IOAPIC to "
-					"%08lx (%08lx)\n",
-					__fix_to_virt(idx), ioapic_phys);
+			printk(KERN_DEBUG "mapped IOAPIC to %08lx (%08lx)\n",
+			       __fix_to_virt(idx), ioapic_phys);
 			idx++;
 		}
 	}
#13 lore raw
Quoted 9 lines · Maciej W. Rozycki

And btw, dmesg is still silent about a

Quoted 4 lines

LAPIC. This makes me nervous when I am trying to figure out whether it works or not:) Would be nice to get those prominent messages back, as per 2.6.8.

Someone wasn't as much fond of them as you are and they were removed by
default. I'm pissed off, too

Don't be pissed off - please send a patch which puts in whatever debugging you think we need to have to be able to properly support the APIC code.

Stuff happens.

#14 lore raw
Quoted 2 lines · Andrew Morton

Don't be pissed off - please send a patch which puts in whatever debugging you think we need to have to be able to properly support the APIC code.

OK, I'll have a look at it. Lots of these messages are real crap and
hardly useful anymore now that the code works pretty well, but some bits that are more dependent on hardware quirks rather than code quality are still worth being output unconditionally at some reasonable loglevel.

Maciej

#15 lore raw
In reply to Maciej W. Rozycki

Hi.

Quoted 5 lines · Maciej W. Rozycki
Quoted 2 lines

nmi_watchdog=1 still doesn't work.
Any ideas about this?

Interesting -- your local APIC seems to be disabled by the firmware
(otherwise it would work even without my fix), so how can an I/O APIC work?

I don't think it worked. I do not even
claim there is still some bug to that.
But I know that nmi_watchdog=1 worked -
thats for sure. I think there was some
fallback, which is now either broken or
disabled intentionally, and that's what
I wanted to find out to make sure that
everything works as expected.

Quoted 2 lines

If you send me the bootstrap log back I may have a look to see what's
wrong about the I/O APIC.

I applied your patch and here are 2 logs -
one from older kernel, one with -mm5 with
patch. Both have nmi_watchdog=1, but the
NMI works only with the old one.
Does this shed some light?

Linux version 2.6.10-rc1-mm5 (root@stas) (gcc version 3.3.3 20040412 (Red Hat Linux 3.3.3-7)) #6 SMP Tue Nov 16 16:47:03 MSK 2004 BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000001fff0000 (usable)
BIOS-e820: 000000001fff0000 - 000000001fff3000 (ACPI NVS)
BIOS-e820: 000000001fff3000 - 0000000020000000 (ACPI data)
BIOS-e820: 00000000ffb00000 - 0000000100000000 (reserved)
511MB LOWMEM available.
On node 0 totalpages: 131056
DMA zone: 4096 pages, LIFO batch:1
Normal zone: 126960 pages, LIFO batch:16
HighMem zone: 0 pages, LIFO batch:1
DMI 2.3 present.
ACPI: RSDP (v000 IntelR ) @ 0x000f75d0
ACPI: RSDT (v001 IntelR AWRDACPI 0x42302e31 AWRD 0x00000000) @ 0x1fff3000
ACPI: FADT (v001 IntelR AWRDACPI 0x42302e31 AWRD 0x00000000) @ 0x1fff3040
ACPI: DSDT (v001 INTELR AWRDACPI 0x00001000 MSFT 0x0100000c) @ 0x00000000
ACPI: PM-Timer IO Port: 0x4008
Built 1 zonelists
Local APIC disabled by BIOS -- reenabling.
Found and enabled local APIC!
mapped APIC to ffffd000 (fee00000)
Initializing CPU#0
Kernel command line: ro root=/dev/hda12 lapic nmi_watchdog=1 debug apic=debug
CPU 0 irqstacks, hard=c0428000 soft=c0426000
PID hash table entries: 2048 (order: 11, 32768 bytes)
Detected 1133.740 MHz processor.
Using pmtmr for high-res timesource
Console: colour VGA+ 80x25
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 515200k/524224k available (2141k kernel code, 8536k reserved, 848k data, 208k init, 0k highmem) Checking if this processor honours the WP bit even in supervisor mode... Ok.
Calibrating delay loop... 2244.60 BogoMIPS (lpj=1122304)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
CPU: After generic identify, caps: 0383fbff 00000000 00000000 00000000
CPU: After vendor identify, caps: 0383fbff 00000000 00000000 00000000
CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 256K
CPU: After all inits, caps: 0383fbff 00000000 00000000 00000040
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
ACPI: IRQ9 SCI: Level Trigger.
CPU0: Intel(R) Pentium(R) III CPU 1133MHz stepping 01
per-CPU timeslice cutoff: 731.79 usecs.
task migration cache decay timeout: 1 msecs.
SMP motherboard not detected.
Getting VERSION: 40011
Getting VERSION: 40011
Getting ID: 0
Getting LVT0: 700
Getting LVT1: 400
enabled ExtINT on CPU#0
Using local APIC timer interrupts.
calibrating APIC timer ...
..... CPU clock speed is 1133.0167 MHz.
..... host bus clock speed is 133.0313 MHz.
Brought up 1 CPUs
CPU0:
domain 0: span 1
groups: 1
NET: Registered protocol family 16
PCI: PCI BIOS revision 2.10 entry at 0xfafc0, last bus=2
PCI: Using configuration type 1
mtrr: v2.0 (20020519)
ACPI: Subsystem revision 20041105
ACPI: Interpreter enabled
ACPI: Using PIC for interrupt routing
ACPI: PCI Root Bridge [PCI0] (00:00)
PCI: Probing PCI hardware (bus 00)
PCI: Transparent bridge - 0000:00:1e.0
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.HUB0._PRT]
ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 10 11 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 *5 6 7 10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 7 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 6 7 10 11 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 6 7 *10 11 12 14 15)
ACPI: PCI Interrupt Link [LNK0] (IRQs 3 4 5 6 7 10 11 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNK1] (IRQs 3 4 5 6 7 10 11 12 14 15) *9
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: PnP ACPI init
pnp: PnP ACPI: found 12 devices
PnPBIOS: Disabled by ACPI
PCI: Using ACPI for IRQ routing
** PCI interrupts are no longer routed automatically. If this
** causes a device to stop working, it is probably because the
** driver failed to call pci_enable_device(). As a temporary
** workaround, the "pci=routeirq" argument restores the old
** behavior. If this argument makes the device work again,
** please email the output of "lspci" to [email protected]
** so I can fix the driver.
fscache: general fs caching registered
CacheFS: general fs caching v0.1 registered
Machine check exception polling timer started.
apm: BIOS version 1.2 Flags 0x07 (Driver version 1.16ac)
apm: overridden by ACPI.
audit: initializing netlink socket (disabled)
audit(1100624010.649:0): initialized
Total HugeTLB memory allocated, 0
Initializing Cryptographic API
ACPI: Power Button (FF) [PWRF]
ACPI: Sleep Button (CM) [SLPB]
ACPI: Fan [FAN] (on)
ACPI: Processor [CPU0] (supports C1 C2)
ACPI: Processor [CPU0] (supports 2 throttling states)
ACPI: Thermal Zone [THRM] (34 C)
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
lp: driver loaded but no devices found
Real Time Clock Driver v1.12
Hangcheck: starting hangcheck timer 0.5.0 (tick is 180 seconds, margin is 60 seconds).
ACPI: PS/2 Keyboard Controller [PS2K] at I/O 0x60, 0x64, irq 1
ACPI: PS/2 Mouse Controller [PS2M] at irq 12
serio: i8042 AUX port at 0x60,0x64 irq 12
serio: i8042 KBD port at 0x60,0x64 irq 1
Serial: 8250/16550 driver $Revision: 1.90 $ 8 ports, IRQ sharing disabled
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 11
PCI: setting IRQ 11 as level-triggered
ACPI: PCI interrupt 0000:02:00.0[A] -> GSI 11 (level, low) -> IRQ 11
ttyS4: detected caps 00000700 should be 00000100
ttyS4 at I/O 0xa000 (irq = 11) is a 16C950/954
ttyS5: detected caps 00000700 should be 00000100
ttyS5 at I/O 0xa400 (irq = 11) is a 16C950/954
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
parport: PnPBIOS parport detected.
parport0: PC-style at 0x378 (0x778), irq 7, dma 3 [PCSPP,TRISTATE,COMPAT,ECP,DMA]
lp0: using parport0 (interrupt-driven).
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered
ACPI: Floppy Controller [FDC0] at I/O 0x3f0-0x3f5, 0x3f7 irq 6 dma channel 2
elevator: using anticipatory as default io scheduler
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
loop: loaded (max 8 devices)
nbd: registered device at major 43
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
ICH2: IDE controller at PCI slot 0000:00:1f.1
ICH2: chipset revision 17
ICH2: not 100% native mode: will probe irqs later

    ide0: BM-DMA at 0xf000-0xf007, BIOS settings: hda:DMA, hdb:pio
    ide1: BM-DMA at 0xf008-0xf00f, BIOS settings: hdc:DMA, hdd:pio

Probing IDE interface ide0...
hda: MAXTOR 6L040J2, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
Probing IDE interface ide1...
hdc: ASUS CD-S500/A, ATAPI CD/DVD-ROM drive
ide1 at 0x170-0x177,0x376 on irq 15
Probing IDE interface ide2...
ide2: Wait for ready failed before probe !
Probing IDE interface ide3...
ide3: Wait for ready failed before probe !
Probing IDE interface ide4...
ide4: Wait for ready failed before probe !
Probing IDE interface ide5...
ide5: Wait for ready failed before probe !
hda: max request size: 128KiB
hda: 78177792 sectors (40027 MB) w/1819KiB Cache, CHS=65535/16/63, UDMA(100)
hda: cache flushes supported
hda: hda1 hda2 hda3 hda4 < hda5 hda6 hda7 hda8 hda9 hda10 hda11 hda12 hda13 hda14 hda15 >
hdc: ATAPI 50X CD-ROM drive, 128kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.20
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard on isa0060/serio0
input: ImPS/2 Generic Wheel Mouse on isa0060/serio1
Please email the following PERFCTR INIT lines to [email protected]
To remove this message, rebuild the driver with CONFIG_PERFCTR_INIT_TESTS=n
PERFCTR INIT: vendor 0, family 6, model 11, stepping 1, clock 1133740 kHz
PERFCTR INIT: NITER == 64
PERFCTR INIT: loop overhead is 228 cycles
PERFCTR INIT: rdtsc cost is 35.2 cycles (2484 total)
PERFCTR INIT: rdpmc cost is 35.9 cycles (2528 total)
PERFCTR INIT: rdmsr (counter) cost is 90.3 cycles (6008 total)
PERFCTR INIT: rdmsr (evntsel) cost is 71.6 cycles (4816 total)
PERFCTR INIT: wrmsr (counter) cost is 100.6 cycles (6669 total)
PERFCTR INIT: wrmsr (evntsel) cost is 96.0 cycles (6375 total)
PERFCTR INIT: read cr4 cost is 1.8 cycles (346 total)
PERFCTR INIT: write cr4 cost is 42.1 cycles (2928 total)
PERFCTR INIT: write LVTPC cost is 50.7 cycles (3479 total)
PERFCTR INIT: sync_core cost is 129.2 cycles (8500 total)
perfctr: driver 2.7.6, cpu type Intel P6 at 1133740 kHz
NET: Registered protocol family 2
IP: routing cache hash table of 2048 buckets, 32Kbytes
TCP: Hash tables configured (established 16384 bind 16384)
ip_conntrack version 2.1 (4095 buckets, 32760 max) - 312 bytes per conntrack
ip_tables: (C) 2000-2002 Netfilter core team
ipt_recent v0.3.1: Stephen Frost <[email protected]>. http://snowman.net/projects/ipt_recent/
arp_tables: (C) 2002 David S. Miller
NET: Registered protocol family 1
NET: Registered protocol family 17
ACPI: (supports S0 S1 S4 S5)
ACPI wakeup devices:
SLPB PCI0 HUB0 USB0 USB1 UAR1 UAR2
BIOS EDD facility v0.16 2004-Jun-25, 1 devices found
CacheFS: Wrong magic number on cache
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Freeing unused kernel memory: 208k freed
kjournald starting. Commit interval 5 seconds
ibm_acpi: ec object not found
thinkpad_acpi: ACPI IBM Thinkpad Fn+Fx key driver version 1.1
usbcore: registered new driver usbfs
usbcore: registered new driver hub
USB Universal Host Controller Interface driver v2.2
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 11
ACPI: PCI interrupt 0000:00:1f.2[D] -> GSI 11 (level, low) -> IRQ 11
uhci_hcd 0000:00:1f.2: Intel Corp. 82801BA/BAM USB (Hub #1)
PCI: Setting latency timer of device 0000:00:1f.2 to 64
uhci_hcd 0000:00:1f.2: irq 11, io base 0xd000
uhci_hcd 0000:00:1f.2: new USB bus registered, assigned bus number 1
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
ACPI: PCI Interrupt Link [LNK1] enabled at IRQ 15
PCI: setting IRQ 15 as level-triggered
ACPI: PCI interrupt 0000:00:1f.4[C] -> GSI 15 (level, low) -> IRQ 15
uhci_hcd 0000:00:1f.4: Intel Corp. 82801BA/BAM USB (Hub #2)
PCI: Setting latency timer of device 0000:00:1f.4 to 64
uhci_hcd 0000:00:1f.4: irq 15, io base 0xd400
uhci_hcd 0000:00:1f.4: new USB bus registered, assigned bus number 2
usb 1-1: new full speed USB device using uhci_hcd and address 2
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
SCSI subsystem initialized
Initializing USB Mass Storage driver...
scsi0 : SCSI emulation for USB Mass Storage devices
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
EXT3 FS on hda12, internal journal
Adding 530104k swap on /dev/hda5. Priority:-1 extents:1
kjournald starting. Commit interval 5 seconds
EXT3 FS on hda6, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting. Commit interval 5 seconds
EXT3 FS on hda14, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting. Commit interval 5 seconds
EXT3 FS on hda3, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting. Commit interval 5 seconds
EXT3 FS on hda11, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting. Commit interval 5 seconds
EXT3 FS on hda7, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting. Commit interval 5 seconds
EXT3 FS on hda10, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting. Commit interval 5 seconds
EXT3 FS on hda13, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting. Commit interval 5 seconds
EXT3 FS on hda9, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive! NTFS driver 2.1.22 [Flags: R/W MODULE].
NTFS volume version 3.1.
NTFS-fs error (device hda2): load_system_files(): Volume is dirty. Mounting read-only. Run chkdsk and mount in Windows.
Vendor: JetFlash Model: TS256MJF2A Rev: 1.00
Type: Direct-Access ANSI SCSI revision: 02
usb-storage: device scan complete
SCSI device sda: 512000 512-byte hdwr sectors (262 MB)
sda: Write Protect is off
sda: Mode Sense: 0b 00 00 08
sda: assuming drive cache: write through
sda: sda1
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
ACPI: PCI interrupt 0000:02:04.0[A] -> GSI 11 (level, low) -> IRQ 11
3c59x: Donald Becker and others. www.scyld.com/network/vortex.html
0000:02:04.0: 3Com PCI 3c905C Tornado at 0xc000. Vers LK1.1.19
ACPI: PCI interrupt 0000:02:04.0[A] -> GSI 11 (level, low) -> IRQ 11
NET: Registered protocol family 10
Disabled Privacy Extensions on device c03b1c00(lo)
IPv6 over IPv4 tunneling driver
eth0: no IPv6 routers present

Linux version 2.6.10-rc1 (root@stas) (gcc version 3.3.3 20040412 (Red Hat Linux 3.3.3-7)) #1 SMP Thu Nov 4 09:39:47 MSK 2004 BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000001fff0000 (usable)
BIOS-e820: 000000001fff0000 - 000000001fff3000 (ACPI NVS)
BIOS-e820: 000000001fff3000 - 0000000020000000 (ACPI data)
BIOS-e820: 00000000ffb00000 - 0000000100000000 (reserved)
0MB HIGHMEM available.
511MB LOWMEM available.
On node 0 totalpages: 131056
DMA zone: 4096 pages, LIFO batch:1
Normal zone: 126960 pages, LIFO batch:16
HighMem zone: 0 pages, LIFO batch:1
DMI 2.3 present.
ACPI: RSDP (v000 IntelR ) @ 0x000f75d0
ACPI: RSDT (v001 IntelR AWRDACPI 0x42302e31 AWRD 0x00000000) @ 0x1fff3000
ACPI: FADT (v001 IntelR AWRDACPI 0x42302e31 AWRD 0x00000000) @ 0x1fff3040
ACPI: DSDT (v001 INTELR AWRDACPI 0x00001000 MSFT 0x0100000c) @ 0x00000000
ACPI: PM-Timer IO Port: 0x4008
Built 1 zonelists
Kernel command line: ro root=/dev/hda12 lapic nmi_watchdog=1 debug apic=debug
Local APIC disabled by BIOS -- reenabling.
Found and enabled local APIC!
mapped APIC to ffffd000 (fee00000)
Initializing CPU#0
CPU 0 irqstacks, hard=c040d000 soft=c040b000
PID hash table entries: 2048 (order: 11, 32768 bytes)
Detected 1133.740 MHz processor.
Using pmtmr for high-res timesource
Console: colour VGA+ 80x25
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 515152k/524224k available (2061k kernel code, 8472k reserved, 830k data, 200k init, 0k highmem) Checking if this processor honours the WP bit even in supervisor mode... Ok.
Calibrating delay loop... 2244.60 BogoMIPS (lpj=1122304)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
CPU: After generic identify, caps: 0383fbff 00000000 00000000 00000000
CPU: After vendor identify, caps: 0383fbff 00000000 00000000 00000000
CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 256K
CPU: After all inits, caps: 0383fbff 00000000 00000000 00000040
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
ACPI: IRQ9 SCI: Level Trigger.
CPU0: Intel(R) Pentium(R) III CPU 1133MHz stepping 01
per-CPU timeslice cutoff: 731.79 usecs.
task migration cache decay timeout: 1 msecs.
SMP motherboard not detected.
Getting VERSION: 40011
Getting VERSION: 40011
Getting ID: 0
Getting LVT0: 700
Getting LVT1: 400
enabled ExtINT on CPU#0
testing NMI watchdog ... OK.
Using local APIC timer interrupts.
calibrating APIC timer ...
..... CPU clock speed is 1133.0175 MHz.
..... host bus clock speed is 133.0314 MHz.
Brought up 1 CPUs
CPU0:
domain 0: span 1
groups: 1
NET: Registered protocol family 16
PCI: PCI BIOS revision 2.10 entry at 0xfafc0, last bus=2
PCI: Using configuration type 1
mtrr: v2.0 (20020519)
ACPI: Subsystem revision 20040816
ACPI: Interpreter enabled
ACPI: Using PIC for interrupt routing
ACPI: PCI Root Bridge [PCI0] (00:00)
PCI: Probing PCI hardware (bus 00)
PCI: Transparent bridge - 0000:00:1e.0
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.HUB0._PRT]
ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 10 11 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 *5 6 7 10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 7 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 6 7 10 11 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 6 7 *10 11 12 14 15)
ACPI: PCI Interrupt Link [LNK0] (IRQs 3 4 5 6 7 10 11 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNK1] (IRQs 3 4 5 6 7 10 11 12 14 15) *9
Linux Plug and Play Support v0.97 (c) Adam Belay
PnPBIOS: Scanning system for PnP BIOS support...
PnPBIOS: Found PnP BIOS installation structure at 0xc00fb9a0
PnPBIOS: PnP BIOS version 1.0, entry 0xf0000:0xb9d0, dseg 0xf0000
PnPBIOS: 16 nodes reported by PnP BIOS; 16 recorded by driver
SCSI subsystem initialized
PCI: Using ACPI for IRQ routing
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 11
ACPI: PCI interrupt 0000:00:1f.2[D] -> GSI 11 (level, low) -> IRQ 11
ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 10
ACPI: PCI interrupt 0000:00:1f.3[B] -> GSI 10 (level, low) -> IRQ 10
ACPI: PCI Interrupt Link [LNK1] enabled at IRQ 11
ACPI: PCI interrupt 0000:00:1f.4[C] -> GSI 11 (level, low) -> IRQ 11
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 11
ACPI: PCI interrupt 0000:01:00.0[A] -> GSI 11 (level, low) -> IRQ 11
ACPI: PCI interrupt 0000:02:00.0[A] -> GSI 11 (level, low) -> IRQ 11
ACPI: PCI interrupt 0000:02:00.1[A] -> GSI 11 (level, low) -> IRQ 11
ACPI: PCI Interrupt Link [LNKF] enabled at IRQ 10
ACPI: PCI interrupt 0000:02:02.0[A] -> GSI 10 (level, low) -> IRQ 10
ACPI: PCI interrupt 0000:02:04.0[A] -> GSI 11 (level, low) -> IRQ 11
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 5
ACPI: PCI interrupt 0000:02:09.0[A] -> GSI 5 (level, low) -> IRQ 5
Machine check exception polling timer started.
apm: BIOS version 1.2 Flags 0x07 (Driver version 1.16ac)
apm: overridden by ACPI.
audit: initializing netlink socket (disabled)
audit(1100624518.455:0): initialized
Total HugeTLB memory allocated, 0
Initializing Cryptographic API
ACPI: Power Button (FF) [PWRF]
ACPI: Sleep Button (CM) [SLPB]
ACPI: Fan [FAN] (on)
ACPI: Processor [CPU0] (supports C1 C2, 2 throttling states)
ACPI: Thermal Zone [THRM] (34 C)
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
lp: driver loaded but no devices found
Real Time Clock Driver v1.12
Hangcheck: starting hangcheck timer 0.5.0 (tick is 180 seconds, margin is 60 seconds).
serio: i8042 AUX port at 0x60,0x64 irq 12
serio: i8042 KBD port at 0x60,0x64 irq 1
Serial: 8250/16550 driver $Revision: 1.90 $ 8 ports, IRQ sharing disabled
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
ACPI: PCI interrupt 0000:02:00.0[A] -> GSI 11 (level, low) -> IRQ 11
ttyS4: detected caps 00000700 should be 00000100
ttyS4 at I/O 0xa000 (irq = 11) is a 16C950/954
ttyS5: detected caps 00000700 should be 00000100
ttyS5 at I/O 0xa400 (irq = 11) is a 16C950/954
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
parport: PnPBIOS parport detected.
parport0: PC-style at 0x378 (0x778), irq 7, dma 3 [PCSPP,TRISTATE,COMPAT,ECP,DMA]
lp0: using parport0 (interrupt-driven).
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered
elevator: using anticipatory as default io scheduler
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
loop: loaded (max 8 devices)
nbd: registered device at major 43
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
ICH2: IDE controller at PCI slot 0000:00:1f.1
ICH2: chipset revision 17
ICH2: not 100% native mode: will probe irqs later

    ide0: BM-DMA at 0xf000-0xf007, BIOS settings: hda:DMA, hdb:pio
    ide1: BM-DMA at 0xf008-0xf00f, BIOS settings: hdc:DMA, hdd:pio

Probing IDE interface ide0...
hda: MAXTOR 6L040J2, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
Probing IDE interface ide1...
hdc: ASUS CD-S500/A, ATAPI CD/DVD-ROM drive
ide1 at 0x170-0x177,0x376 on irq 15
Probing IDE interface ide2...
ide2: Wait for ready failed before probe !
Probing IDE interface ide3...
ide3: Wait for ready failed before probe !
Probing IDE interface ide4...
ide4: Wait for ready failed before probe !
Probing IDE interface ide5...
ide5: Wait for ready failed before probe !
hda: max request size: 128KiB
hda: 78177792 sectors (40027 MB) w/1819KiB Cache, CHS=65535/16/63, UDMA(100)
hda: cache flushes supported
hda: hda1 hda2 hda3 hda4 < hda5 hda6 hda7 hda8 hda9 hda10 hda11 hda12 hda13 hda14 hda15 >
hdc: ATAPI 50X CD-ROM drive, 128kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.20
libata version 1.02 loaded.
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard on isa0060/serio0
input: ImPS/2 Generic Wheel Mouse on isa0060/serio1
NET: Registered protocol family 2
IP: routing cache hash table of 2048 buckets, 32Kbytes
TCP: Hash tables configured (established 16384 bind 21845)
ip_conntrack version 2.1 (4095 buckets, 32760 max) - 308 bytes per conntrack
ip_tables: (C) 2000-2002 Netfilter core team
ipt_recent v0.3.1: Stephen Frost <[email protected]>. http://snowman.net/projects/ipt_recent/
arp_tables: (C) 2002 David S. Miller
NET: Registered protocol family 1
NET: Registered protocol family 17
ACPI: (supports S0 S1 S4 S5)
ACPI wakeup devices:
SLPB PCI0 HUB0 USB0 USB1 UAR1 UAR2
BIOS EDD facility v0.16 2004-Jun-25, 1 devices found
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Freeing unused kernel memory: 200k freed
kjournald starting. Commit interval 5 seconds
usbcore: registered new driver usbfs
usbcore: registered new driver hub
USB Universal Host Controller Interface driver v2.2
ACPI: PCI interrupt 0000:00:1f.2[D] -> GSI 11 (level, low) -> IRQ 11
uhci_hcd 0000:00:1f.2: Intel Corp. 82801BA/BAM USB (Hub #1)
PCI: Setting latency timer of device 0000:00:1f.2 to 64
uhci_hcd 0000:00:1f.2: irq 11, io base 0xd000
uhci_hcd 0000:00:1f.2: new USB bus registered, assigned bus number 1
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
ACPI: PCI interrupt 0000:00:1f.4[C] -> GSI 11 (level, low) -> IRQ 11
uhci_hcd 0000:00:1f.4: Intel Corp. 82801BA/BAM USB (Hub #2)
PCI: Setting latency timer of device 0000:00:1f.4 to 64
uhci_hcd 0000:00:1f.4: irq 11, io base 0xd400
uhci_hcd 0000:00:1f.4: new USB bus registered, assigned bus number 2
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
usb 1-1: new full speed USB device using address 2
Initializing USB Mass Storage driver...
scsi0 : SCSI emulation for USB Mass Storage devices
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
EXT3 FS on hda12, internal journal
Adding 530104k swap on /dev/hda5. Priority:-1 extents:1
kjournald starting. Commit interval 5 seconds
EXT3 FS on hda6, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting. Commit interval 5 seconds
EXT3 FS on hda14, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting. Commit interval 5 seconds
EXT3 FS on hda3, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting. Commit interval 5 seconds
EXT3 FS on hda11, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting. Commit interval 5 seconds
EXT3 FS on hda7, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting. Commit interval 5 seconds
EXT3 FS on hda10, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting. Commit interval 5 seconds
EXT3 FS on hda13, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting. Commit interval 5 seconds
EXT3 FS on hda9, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive! NTFS driver 2.1.21 [Flags: R/W MODULE].
NTFS volume version 3.1.
NTFS-fs error (device hda2): load_system_files(): Volume is dirty. Mounting read-only. Run chkdsk and mount in Windows.
Vendor: JetFlash Model: TS256MJF2A Rev: 1.00
Type: Direct-Access ANSI SCSI revision: 02
usb-storage: device scan complete
ACPI: PCI interrupt 0000:02:04.0[A] -> GSI 11 (level, low) -> IRQ 11
3c59x: Donald Becker and others. www.scyld.com/network/vortex.html
0000:02:04.0: 3Com PCI 3c905C Tornado at 0xc000. Vers LK1.1.19
SCSI device sda: 512000 512-byte hdwr sectors (262 MB)
sda: Write Protect is off
sda: Mode Sense: 0b 00 00 08
sda: assuming drive cache: write through
sda: sda1
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
NET: Registered protocol family 10
Disabled Privacy Extensions on device c039c000(lo)
IPv6 over IPv4 tunneling driver
eth0: no IPv6 routers present

#16 lore raw
Quoted 5 lines · Stas Sergeev

I don't think it worked. I do not even claim there is still some bug to that. But I know that nmi_watchdog=1 worked - thats for sure. I think there was some fallback, which is now either broken or

Indeed there was and it still is there, namely the following code:

	if (nmi_watchdog != NMI_NONE)
		nmi_watchdog = NMI_LOCAL_APIC;

in detect_init_APIC().

Quoted 3 lines

disabled intentionally, and that's what I wanted to find out to make sure that everything works as expected.

Thanks for your insistence -- it helps. We probably want to rewrite the
fallback differently.

Quoted 5 lines

I applied your patch and here are 2 logs - one from older kernel, one with -mm5 with patch. Both have nmi_watchdog=1, but the NMI works only with the old one. Does this shed some light?

Thanks -- they prove you have no I/O APIC and the quoted fallback should
indeed be in effect.

Maciej

#17 lore raw

Hi.

Quoted 3 lines · Maciej W. Rozycki
Quoted 2 lines

thats for sure. I think there was some
fallback, which is now either broken or

Indeed there was and it still is there, namely the following code:

OK.
Another thing I am wondering about, is why the lapic produces the NMI on my Athlon so slowly. It is something like 1 NMI in 20 seconds or so. And it looks like the frequency changes from one boot to another.
It didn't work properly with any kernel, so maybe the lapic itself is buggy, but maybe this is a kernel's bug that can be debugged out somehow? Or is there anywhere something that allows me to specify the frequency? The rate I currently have, is really pretty much useless for anything.

#18 lore raw
Quoted 6 lines · Stas Sergeev

Another thing I am wondering about, is why the lapic produces the NMI on my Athlon so slowly. It is something like 1 NMI in 20 seconds or so. And it looks like the frequency changes from one boot to another.

The local APIC NMI watchdog, lacking a better source, uses the "cycles
unhalted" event. As you may guess it doesn't tick when the CPU is in the halted state (which happens when the system is idle) and thus the NMI counter's progress depends on the system's activity. Thy running something CPU-intensive, like:

int main(void)

{
	while (1);
	return 0;
}

and observe the NMI counter ticking every second.

Quoted 8 lines

It didn't work properly with any kernel, so maybe the lapic itself is buggy, but maybe this is a kernel's bug that can be debugged out somehow? Or is there anywhere something that allows me to specify the frequency? The rate I currently have, is really pretty much useless for anything.

Don't worry -- if your system locks up on anything but the "hlt"
processor instruction, the watchdog will trigger very soon as the "cycles unhalted" event will happen every clock tick. If it locks up on "hlt", then you are out of luck -- the event will not happen at all and the watchdog won't trigger. This is a shortcoming of the local APIC watchdog -- unfortunately there is no "clock ticks" event that would work all the time.

The I/O APIC watchdog is driven externally and has no such shortcoming.
But its NMI frequency is much higher, resulting in a more significant hit to the overall system performance.

Maciej

#19 lore raw

Hi,

Quoted 2 lines · Maciej W. Rozycki

something CPU-intensive, like:
and observe the NMI counter ticking every second.

Ah, thanks for explanations! Indeed it works as you say. Very usefull info, perhaps worth being added to documentation? So if you ACK the attached patch, I ask Andrew to please apply it.

Andrew, the attached patch adds the information about the NMI watchdog frequency caveats to the Documentation/nmi_watchdog.txt Unless there are any objections, please apply.

Documentation/nmi_watchdog.txt renamed from Documentation/nmi_watchdog.txt.old +14 -0
@@ -54,6 +54,20 @@
 cannot even accept NMI interrupts, or the crash has made the kernel
 unable to print messages.
 
+Be aware that when using local APIC, the frequency of NMI interrupts
+it generates, depends on the system load. The local APIC NMI watchdog,
+lacking a better source, uses the "cycles unhalted" event. As you may
+guess it doesn't tick when the CPU is in the halted state (which happens
+when the system is idle), but if your system locks up on anything but the
+"hlt" processor instruction, the watchdog will trigger very soon as the
+"cycles unhalted" event will happen every clock tick. If it locks up on
+"hlt", then you are out of luck -- the event will not happen at all and the
+watchdog won't trigger. This is a shortcoming of the local APIC watchdog
+-- unfortunately there is no "clock ticks" event that would work all the
+time. The I/O APIC watchdog is driven externally and has no such shortcoming.  
+But its NMI frequency is much higher, resulting in a more significant hit
+to the overall system performance.
+
 NOTE: starting with 2.4.2-ac18 the NMI-oopser is disabled by default,
 you have to enable it with a boot time parameter.  Prior to 2.4.2-ac18
 the NMI-oopser is enabled unconditionally on x86 SMP boxes.
#20 lore raw
Quoted 6 lines · Stas Sergeev

Ah, thanks for explanations! Indeed it works as you say. Very usefull info, perhaps worth being added to documentation? So if you ACK the attached patch, I ask Andrew to please apply it.

Sure, no problem with that.

Quoted 6 lines

Andrew, the attached patch adds the information about the NMI watchdog frequency caveats to the Documentation/nmi_watchdog.txt Unless there are any objections, please apply.

Documentation/nmi_watchdog.txt renamed from Documentation/nmi_watchdog.txt.old +14 -0
@@ -54,6 +54,20 @@
 cannot even accept NMI interrupts, or the crash has made the kernel
 unable to print messages.
 
+Be aware that when using local APIC, the frequency of NMI interrupts
+it generates, depends on the system load. The local APIC NMI watchdog,
+lacking a better source, uses the "cycles unhalted" event. As you may
+guess it doesn't tick when the CPU is in the halted state (which happens
+when the system is idle), but if your system locks up on anything but the
+"hlt" processor instruction, the watchdog will trigger very soon as the
+"cycles unhalted" event will happen every clock tick. If it locks up on
+"hlt", then you are out of luck -- the event will not happen at all and the
+watchdog won't trigger. This is a shortcoming of the local APIC watchdog
+-- unfortunately there is no "clock ticks" event that would work all the
+time. The I/O APIC watchdog is driven externally and has no such shortcoming.  
+But its NMI frequency is much higher, resulting in a more significant hit
+to the overall system performance.
+
 NOTE: starting with 2.4.2-ac18 the NMI-oopser is disabled by default,
 you have to enable it with a boot time parameter.  Prior to 2.4.2-ac18
 the NMI-oopser is enabled unconditionally on x86 SMP boxes.