oops with 2.6.0 on IBM 600X
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): 1072795322.5759.438.camel@pc
[I added lkml as it is seems to be of general interest]
Quoted 4 lines · Brian J. Murrell
[ Nicolas, I added you to this thread as this issue prevents your Mandrake 2.6.0 kernel from booting IBM 600* laptops. Until it's fixed, perhaps it should be disabled?
Quoted 9 lines
Lonnie, I added you as you are also a Mandrake user experiencing the same problem. ]
Quoted 2 lines · Andrew Morton
Don't know. Brian, does the crash happen if
CONFIG_BLK_DEV_IDEPNP
is disabled?Nope. Not at all. Good job Andrew and Andrey.
looking more closely: apparently we have IDE (PCI?) chipset; additionally BIOS export PnP information about IDE controller. Brian, could you do lspnp to verify and dmesg of system boot?
First chipset is initialized; next (last one) IDE PnP is called. It goes idepnp_probe -> ide_register_hw which finds matching (already registered) interface and calls ide_unregister on it:
for (index = 0; index < MAX_HWIFS; ++index) {
hwif = &ide_hwifs[index];
if (hwif->hw.io_ports[IDE_DATA_OFFSET] ==
hw->io_ports[IDE_DATA_OFFSET])
goto found;
[...]
found:
if (hwif->present)
ide_unregister(index);the devfs warning results from the fact that devfs path is first created in device-specific driver (in block layer for block devices) but is removed in ide_unregister. It is annoying but relatively harmless. The oops is likely to have the same reason, it attempts to remove structures that have not yet been setup at this point. It is likely to be this:
void ide_unregister (unsigned int index)
{
[...] first warning
for (i = 0; i < MAX_DRIVES; ++i) {
drive = &hwif->drives[i];
if (drive->devfs_name[0] != '\0') {
devfs_remove(drive->devfs_name);
drive->devfs_name[0] = '\0';
}
[...] second oops
drive->present = 0;
/* Messed up locking ... */
spin_unlock_irq(&ide_lock);
blk_cleanup_queue(drive->queue);
device_unregister(&drive->gendev);may be testing for drive->driver != idedefault_driver would stop the second oops but I am not sure which steps should be skipped.
Anyway the whole is rather absurd. IMHO PnP should not attempt to take over existing interface for which chipset-specific driver exists. Adding
if (hwif->chipset != ide_unknown)
return -1;
looks like possible solution but I must admit rather surface knowledge of IDE subsystem here.
-andrey
Quoted 147 lines
Now, _the_ question... is this issue resolvable other than disabling
CONFIG_BLK_DEV_IDEPNP? i.e. is this something that can/will be fixed any time soon?I don't think I particularly need
CONFIG_BLK_DEV_IDEPNP, however it would seem that my distro (Mandrake) are enabling it and I would like to continue using their kernel rather than having to build my own all the time. Life is too short to maintain kernels when somebody else is (usually) doing a satisfactory job of it.b.
Quoted 135 lines
Quoted 134 lines · Andrey Borzenkov
Quoted 1 line · Andrew Morton
Andrey, are you still interested in devfs things??
yes. sorry for silence but I have been busy with "real" work recently.
Quoted 11 lines
Begin forwarded message:
Date: Fri, 19 Dec 2003 08:22:09 -0500
From: "Brian J. Murrell" <[email protected]>
To: [email protected]
Subject: oops with 2.6.0 on IBM 600XTrying to boot 2.6.0 on an IBM 600X (I have seen a report of the same with a 600E as well) I get the following 100% reproducable error and stack trace:
I do not think it directly relates to devfs, rather it relates to IDE PNP driver. I do not understand what it does and how it is supposed to work. But several problems with IDE I have seen all had IDE PNP driver in common.
Does it happen without IDE PNP driver (
CONFIG_BLK_DEV_IDEPNP)?-regards
Quoted 108 lines
devfs_remove: ide/host0/bus0/target0/lun0 not found, cannot removeCall Trace: [<c01916b8>] devfs_remove+0x78/0x80 [<c02235ff>] ide_hwif_release_regions+0x3f/0xc0 [<c0223d4c>] ide_unregister+0x6cc/0x840 [<c011dbd9>] recalc_task_prio+0xf9/0x200 [<c011dd88>] try_to_wake_up+0xa8/0x140 [<c011eb36>] __wake_up_common+0x26/0x50 [<c0128a7c>] update_process_times+0x2c/0x40 [<c0122473>] profile_hook+0x13/0x18 [<c0119e1d>] smp_local_timer_interrupt+0xd/0xb0 [<c0128a7c>] update_process_times+0x2c/0x40 [<c0122473>] profile_hook+0x13/0x18 [<c0119e1d>] smp_local_timer_interrupt+0xd/0xb0 [<c0110f36>] timer_interrupt+0xb6/0xe0 [<c013d1aa>] __rmqueue+0xda/0x140 [<c013d243>] rmqueue_bulk+0x33/0x60 [<c013d54d>] buffered_rmqueue+0xad/0x120 [<c013d652>] __alloc_pages+0x92/0x320 [<c014022b>] cache_init_objs+0x4b/0x80 [<c013d54d>] buffered_rmqueue+0xad/0x120 [<c013d652>] __alloc_pages+0x92/0x320 [<c014022b>] cache_init_objs+0x4b/0x80 [<c01403f9>] cache_grow+0x169/0x260 [<c022406a>] ide_register_hw+0x14a/0x170 [<c022ae41>] idepnp_probe+0x61/0x90 [<c0185125>] sysfs_new_inode+0x55/0x90 [<c01df316>] compare_pnp_id+0x86/0xa0 [<c01df35d>] match_device+0x2d/0x50 [<c01df452>] pnp_device_probe+0x72/0x90 [<c02013df>] bus_match+0x2f/0x70 [<c02014ff>] driver_attach+0x3f/0x90 [<c020174e>] bus_add_driver+0x5e/0xa0 [<c0201b4f>] driver_register+0x2f/0x40 [<c01df50a>] pnp_register_driver+0x2a/0x60 [<c039eada>] probe_for_hwifs+0x1a/0x20 [<c039eae8>] ide_init_builtin_drivers+0x8/0x20 [<c039eb3f>] ide_init+0x3f/0x50 [<c0384742>] do_initcalls+0x22/0x90 [<c0105089>] init+0x29/0xe0 [<c0105060>] init+0x0/0xe0 [<c0109275>] kernel_thread_helper+0x5/0x10Followed by the following oops:
Unable to handle kernel NULL pointer dereference at virtual address 00000008 printing eip: c0185278 *pde = 00000000 Oops: 0000 [#1] CPU: 0 EIP: 0060:[<c0185278>] Not tainted EFLAGS: 00010286EIP is at
sysfs_hash_and_remove+0x8/0x69
eax: 00000000 ebx:c03f993cecx:c03f9968edx: 00000000
esi: 00000000 edi:c03f97a0ebp:cbf997d0esp:cbf997c8
ds: 007b es: 007b ss: 0068
Process swapper (pid: 1, threadinfo=cbf98000 task=cbe2b8c0)Stack: c03f993c c034bb18 cbf997e8 c020156c 00000000 c03f9968 c03f993c c03f9ce8 cbf997fc c02016b4 c03f993c c03f993c c03f9ce8 cbf99810 c0200734 c03f993c c03f993c c03f984c cbf99820 c020078d c03f993c c03f97a0 cbf99e58 c0223d1c Call Trace: [<c020156c>] device_release_driver+0x1c/0x60 [<c02016b4>] bus_remove_device+0x44/0x80 [<c0200734>] device_del+0x54/0xa0 [<c020078d>] device_unregister+0xd/0x20 [<c0223d1c>] ide_unregister+0x69c/0x840 [<c011dbd9>] recalc_task_prio+0xf9/0x200 [<c011dd88>] try_to_wake_up+0xa8/0x140 [<c011eb36>] __wake_up_common+0x26/0x50 [<c0128a7c>] update_process_times+0x2c/0x40 [<c0122473>] profile_hook+0x13/0x18 [<c0119e1d>] smp_local_timer_interrupt+0xd/0xb0 [<c0128a7c>] update_process_times+0x2c/0x40 [<c0122473>] profile_hook+0x13/0x18 [<c0119e1d>] smp_local_timer_interrupt+0xd/0xb0 [<c0110f36>] timer_interrupt+0xb6/0xe0 [<c013d1aa>] __rmqueue+0xda/0x140 [<c013d243>] rmqueue_bulk+0x33/0x60 [<c013d54d>] buffered_rmqueue+0xad/0x120 [<c013d652>] __alloc_pages+0x92/0x320 [<c014022b>] cache_init_objs+0x4b/0x80 [<c013d54d>] buffered_rmqueue+0xad/0x120 [<c013d652>] __alloc_pages+0x92/0x320 [<c014022b>] cache_init_objs+0x4b/0x80 [<c01403f9>] cache_grow+0x169/0x260 [<c022406a>] ide_register_hw+0x14a/0x170 [<c022ae41>] idepnp_probe+0x61/0x90 [<c0185125>] sysfs_new_inode+0x55/0x90 [<c01df316>] compare_pnp_id+0x86/0xa0 [<c01df35d>] match_device+0x2d/0x50 [<c01df452>] pnp_device_probe+0x72/0x90 [<c02013df>] bus_match+0x2f/0x70 [<c02014ff>] driver_attach+0x3f/0x90 [<c020174e>] bus_add_driver+0x5e/0xa0 [<c0201b4f>] driver_register+0x2f/0x40 [<c01df50a>] pnp_register_driver+0x2a/0x60 [<c039eada>] probe_for_hwifs+0x1a/0x20 [<c039eae8>] ide_init_builtin_drivers+0x8/0x20 [<c039eb3f>] ide_init+0x3f/0x50 [<c0384742>] do_initcalls+0x22/0x90 [<c0105089>] init+0x29/0xe0 [<c0105060>] init+0x0/0xe0 [<c0109275>] kernel_thread_helper+0x5/0x10 Code: 8b 46 08 8d 48 68 ff 48 68 78 56 8b 4d 0c 51 56 e8 83 ff ff <0>Kernel panic: Attempted to kill init!
Quoted 3 lines · Andrey Borzenkov
looking more closely: apparently we have IDE (PCI?) chipset; additionally BIOS export PnP information about IDE controller. Brian, could you do lspnp to verify and dmesg of system boot?
# lspnp 00 PNP0000 system peripheral: programmable interrupt controller 01 PNP0200 system peripheral: DMA controller 02 PNP0100 system peripheral: system timer 03 PNP0b00 system peripheral: real time clock 04 PNP0800 system peripheral: other 05 PNP0303 input device: keyboard 06 IBM3780 input device: mouse 07 PNP0c04 system peripheral: other 08 PNP0700 mass storage device: floppy 09 PNP0a03 bridge controller: PCI 0a PNP0c02 system peripheral: other 0b PNP0400 communications device: AT parallel port 0d PNP0501 communications device: RS-232 0e IBM0071 communications device: other 0f PNP0e03 bridge controller: PCMCIA 12 PNP0680 mass storage device: IDE 14 PNP0680 mass storage device: IDE 16 PNP0c02 system peripheral: other
# dmesg Linux version 2.6.0 (brian@pc) (gcc version 3.3.1 (Mandrake Linux 9.2 3.3.1-4mdk)) #4 Tue Dec 30 08:24:43 EST 2003 BIOS-provided physical RAM map: BIOS-e820: 0000000000000000 - 000000000009fc00 (usable) BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved) BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved) BIOS-e820: 0000000000100000 - 000000000bfd0000 (usable) BIOS-e820: 000000000bfd0000 - 000000000bfdf000 (ACPI data) BIOS-e820: 000000000bfdf000 - 000000000bfe0000 (ACPI NVS) BIOS-e820: 000000000bfe0000 - 000000000c000000 (reserved) BIOS-e820: 00000000fffe0000 - 0000000100000000 (reserved) 191MB LOWMEM available. On node 0 totalpages: 49104 DMA zone: 4096 pages, LIFO batch:1 Normal zone: 45008 pages, LIFO batch:10 HighMem zone: 0 pages, LIFO batch:1 DMI 2.2 present. ACPI disabled because your bios is from 1999 and too old You can enable it with acpi=force IBM machine detected. Enabling interrupts during APM calls. IBM machine detected. Disabling SMBus accesses. ACPI: RSDP (v000 IBM ) @ 0x000fd6e0 ACPI: RSDT (v001 IBM TP600X 0x00000001 0x00000000) @ 0x0bfd0000 ACPI: FADT (v001 IBM TP600X 0x00000001 0x00000000) @ 0x0bfd0100 ACPI: BOOT (v001 IBM TP600X 0x00000001 0x00000000) @ 0x0bfd0040 ACPI: DSDT (v001 IBM TP600X 0x00000106 MSFT 0x0100000c) @ 0x00000000 Building zonelist for node : 0 Kernel command line: BOOT_IMAGE=260-linus ro root=3a00 devfs=mount acpi=ht splash=silent Local APIC disabled by BIOS -- reenabling. Could not enable APIC! Initializing CPU#0 PID hash table entries: 1024 (order 10: 8192 bytes) Detected 124.507 MHz processor. Console: colour dummy device 80x25 Memory: 190152k/196416k available (1747k kernel code, 5640k reserved, 814k data, 260k init, 0k highmem) Calibrating delay loop... 589.82 BogoMIPS Dentry cache hash table entries: 32768 (order: 5, 131072 bytes) Inode-cache hash table entries: 16384 (order: 4, 65536 bytes) Mount-cache hash table entries: 512 (order: 0, 4096 bytes) checking if image is initramfs...it isn't (no cpio magic); looks like an initrd Freeing initrd memory: 530k freed CPU: After generic identify, caps: 0383f9ff 00000000 00000000 00000000 CPU: After vendor identify, caps: 0383f9ff 00000000 00000000 00000000 CPU: L1 I cache: 16K, L1 D cache: 16K CPU: L2 cache: 256K CPU: After all inits, caps: 0383f9ff 00000000 00000000 00000040 Intel machine check architecture supported. Intel machine check reporting enabled on CPU#0. CPU: Intel Pentium III (Coppermine) stepping 01 Enabling fast FPU save and restore... done. Enabling unmasked SIMD FPU exception support... done. Checking 'hlt' instruction... OK. POSIX conformance testing by UNIFIX NET: Registered protocol family 16 EISA bus registered PCI: PCI BIOS revision 2.10 entry at 0xfd880, last bus=7 PCI: Using configuration type 1 mtrr: v2.0 (20020519) ACPI: Subsystem revision 20031002 ACPI: Interpreter disabled. Linux Plug and Play Support v0.97 (c) Adam Belay PnPBIOS: Scanning system for PnP BIOS support... PnPBIOS: Found PnP BIOS installation structure at 0xc00fe700 PnPBIOS: PnP BIOS version 1.0, entry 0xf0000:0xe724, dseg 0xf0000 pnp: 00:0a: ioport range 0x4d0-0x4d1 has been reserved pnp: 00:0a: ioport range 0x15e0-0x15ef has been reserved pnp: 00:0a: ioport range 0xef00-0xefaf has been reserved PnPBIOS: 18 nodes reported by PnP BIOS; 18 recorded by driver ACPI: ACPI tables contain no PCI IRQ routing entries PCI: Invalid ACPI-PCI IRQ routing table PCI: Probing PCI hardware PCI: Probing PCI hardware (bus 00) PCI: Address space collision on region 7 of bridge 0000:00:07.3 [ef00:ef3f] PCI: Address space collision on region 8 of bridge 0000:00:07.3 [efa0:efbf] PCI: Using IRQ router PIIX/ICH [8086/7110] at 0000:00:07.0 vesafb: framebuffer at 0xe0000000, mapped to 0xcc800000, size 4032k vesafb: mode is 1024x768x16, linelength=2048, pages=1 vesafb: protected mode interface info at c000:ac10 vesafb: scrolling: redraw vesafb: directcolor: size=0:5:6:5, shift=0:11:5:0 fb0: VESA VGA frame buffer device SBF: Simple Boot Flag extension found and enabled. SBF: Setting boot flags 0x1 apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16ac) ikconfig 0.7 with /proc/config* VFS: Disk quotas dquot_6.5.1 devfs: v1.22 (20021013) Richard Gooch ([email protected]) devfs: boot_options: 0x1 Initializing Cryptographic API Limiting direct PCI/PCI transfers. isapnp: Scanning for PnP cards... isapnp: No Plug & Play device found Console: switching to colour frame buffer device 128x48 Losing too many ticks! TSC cannot be used as a timesource. (Are you running with SpeedStep?) Falling back to a sane timesource. pty: 1024 Unix98 ptys configured Serial: 8250/16550 driver $Revision: 1.90 $ 8 ports, IRQ sharing enabled ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A RAMDISK driver initialized: 16 RAM disks of 32000K size 1024 blocksize Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2 ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx PIIX4: IDE controller at PCI slot 0000:00:07.1 PIIX4: chipset revision 1 PIIX4: not 100% native mode: will probe irqs later ide0: BM-DMA at 0xfcf0-0xfcf7, BIOS settings: hda:DMA, hdb:pio ide1: BM-DMA at 0xfcf8-0xfcff, BIOS settings: hdc:DMA, hdd:pio hda: HITACHI_DK23AA-60B, ATA DISK drive Using anticipatory io scheduler ide0 at 0x1f0-0x1f7,0x3f6 on irq 14 hdc: CRN-8241B, ATAPI CD/DVD-ROM drive ide1 at 0x170-0x177,0x376 on irq 15 hda: max request size: 128KiB hda: 11733120 sectors (6007 MB) w/512KiB Cache, CHS=12416/15/63, UDMA(33) /dev/ide/host0/bus0/target0/lun0: p1 p2 < p5 > Console: switching to colour frame buffer device 128x48 input: PS/2 Generic Mouse on isa0060/serio1 serio: i8042 AUX port at 0x60,0x64 irq 12 input: AT Translated Set 2 keyboard on isa0060/serio0 serio: i8042 KBD port at 0x60,0x64 irq 1 md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27 EISA: Probing bus 0 at eisa0 NET: Registered protocol family 2 IP: routing cache hash table of 1024 buckets, 8Kbytes TCP: Hash tables configured (established 16384 bind 32768) NET: Registered protocol family 1 BIOS EDD facility v0.10 2003-Oct-11, 1 devices found Please report your BIOS at http://domsch.com/linux/edd30/results.html PM: Reading pmdisk image. PM: Resume from disk failed. md: Autodetecting RAID arrays. md: autorun ... md: ... autorun DONE. RAMDISK: Compressed image found at block 0 VFS: Mounted root (ext2 filesystem). Mounted devfs on /dev device-mapper: 4.0.0-ioctl (2003-06-04) initialised: [email protected] kjournald starting. Commit interval 5 seconds EXT3-fs: mounted filesystem with ordered data mode. Mounted devfs on /dev Freeing unused kernel memory: 260k freed Real Time Clock Driver v1.12 EXT3 FS on dm-0, internal journal Adding 524280k swap on /dev/rootvol/swap. Priority:-1 extents:1 kjournald starting. Commit interval 5 seconds EXT3 FS on dm-2, internal journal EXT3-fs: mounted filesystem with ordered data mode. kjournald starting. Commit interval 5 seconds EXT3 FS on dm-3, internal journal EXT3-fs: mounted filesystem with ordered data mode. kjournald starting. Commit interval 5 seconds EXT3 FS on dm-4, internal journal EXT3-fs: mounted filesystem with ordered data mode. inserting floppy driver for 2.6.0 Floppy drive(s): fd0 is 1.44M FDC 0 is a National Semiconductor PC87306 hdc: ATAPI 24X CD-ROM drive, 128kB Cache, DMA Uniform CD-ROM driver Revision: 3.12 ide-floppy driver 0.99.newide NET: Registered protocol family 17 Linux Kernel Card Services options: [pci] [cardbus] [pm] PCI: Found IRQ 11 for device 0000:00:02.0 PCI: Sharing IRQ 11 with 0000:00:06.0 PCI: Sharing IRQ 11 with 0000:01:00.0 Yenta: CardBus bridge found at 0000:00:02.0 [1014:0130] Yenta: Enabling burst memory read transactions Yenta: Using INTVAL to route CSC interrupts to PCI Yenta: Routing CardBus interrupts to PCI Yenta: ISA IRQ list 06b8, PCI irq11 Socket status: 30000006 PCI: Found IRQ 11 for device 0000:00:02.1 Yenta: CardBus bridge found at 0000:00:02.1 [1014:0130] Yenta: Using INTVAL to route CSC interrupts to PCI Yenta: Routing CardBus interrupts to PCI Yenta: ISA IRQ list 06b8, PCI irq11 Socket status: 30000020 cs: IO port probe 0x0c00-0x0cff: clean. cs: IO port probe 0x0100-0x04ff: clean. cs: IO port probe 0x0a00-0x0aff: clean. xircom_tulip_cb.c derived from tulip.c:v0.91 4/14/99 [email protected] unofficial 2.4.x kernel port, version 0.91+LK1.1, October 11, 2001 PCI: Enabling device 0000:06:00.0 (0000 -> 0003) PCI: Setting latency timer of device 0000:06:00.0 to 64 eth0: Xircom Cardbus Adapter rev 3 at 0x5000, 00:06:29:52:5E:57, IRQ 11. eth0: MII transceiver #0 config 3100 status 7809 advertising 01e1. spurious 8259A interrupt: IRQ7. eth0: Link is up, running at 100Mbit half-duplex mtrr: 0xe0000000,0x400000 overlaps existing 0xe0000000,0x200000 NET: Registered protocol family 10 Disabled Privacy Extensions on device c0347c40(lo) IPv6 over IPv4 tunneling driver pnp: Device 00:0b activated. parport0: PC-style at 0x3bc [PCSPP] parport0: cpp_daisy: aa5500ff(38) parport0: assign_addrs: aa5500ff(38) parport0: cpp_daisy: aa5500ff(38) parport0: assign_addrs: aa5500ff(38) lp0: using parport0 (polling). lp0: console ready eth0: no IPv6 routers present
Cheers,
b.
Signature · 3 lines
My other computer is your Microsoft Windows server. Brian J. Murrell