[ltp] Re: Hotswap driver (supports DMA, etc etc)

Obi linux-thinkpad@linux-thinkpad.org
Tue, 21 Feb 2006 15:28:04 -0800


Thanks for trying to give us a working bay!!

I just tried it on my T41: ejected the DVD-RW and reinserted. If I used
the auto-eject=1 options, the drive is not recognized upon reinsertion.
Without it the drive seems to be recognized, but I got kernel ops ...

Feb 21 15:24:09 localhost kernel: Unable to handle kernel NULL pointer
dereference at virtual address 000004bd
Feb 21 15:24:09 localhost kernel:  printing eip:
Feb 21 15:24:09 localhost kernel: 000004bd
Feb 21 15:24:09 localhost kernel: *pde = 00000000
Feb 21 15:24:09 localhost kernel: Oops: 0000 [#4]
Feb 21 15:24:09 localhost kernel: Modules linked in: lt_hotswap jfs xfs
exportfs reiserfs ext2 hfs hfsplus ntfs ipw2200 ieee80211 nls_iso8859_1
nls_cp437 vfat fat isofs udf sd_mod usb_storage scsi_mod nvram
michael_mic arc4 ieee80211_crypt_tkip aes ieee80211_crypt_ccmp usbhid
radeon drm cpufreq_ondemand ibm_acpi lp thermal fan button processor ac
battery ipv6 dummy pcmcia irtty_sir sir_dev irda crc_ccitt
ieee80211_crypt firmware_class psmouse e1000 serio_raw parport_pc parport
evdev yenta_socket rsrc_nonstatic pcmcia_core snd_intel8x0 snd_pcm_oss
snd_mixer_oss snd_intel8x0m snd_ac97_codec snd_ac97_bus ehci_hcd uhci_hcd
ide_cd snd_pcm snd_timer snd hw_random rtc intel_agp agpgart usbcore
cdrom shpchp pci_hotplug soundcore snd_page_alloc unix
Feb 21 15:24:09 localhost kernel: CPU:    0
Feb 21 15:24:09 localhost kernel: EIP:    0060:[<000004bd>]    Not tainted VLI
Feb 21 15:24:09 localhost kernel: EFLAGS: 00010206   (2.6.15)
Feb 21 15:24:09 localhost kernel: EIP is at 0x4bd
Feb 21 15:24:09 localhost kernel: eax: efceaec0   ebx: efceaec0   ecx: 00000000
  edx: 000004bd
Feb 21 15:24:09 localhost kernel: esi: efcfbbf4   edi: ffffffe7   ebp: 08055828
  esp: d4055e10
Feb 21 15:24:09 localhost kernel: ds: 007b   es: 007b   ss: 0068
Feb 21 15:24:09 localhost kernel: Process hdparm (pid: 24316, threadinfo=d4054000 task=d6ca3a70)
Feb 21 15:24:09 localhost kernel: Stack: c018c8cf efcfbbe4 c018e659 08055828 efcfbbe4 c0191d9a efcd9480 cb7a4740
Feb 21 15:24:09 localhost kernel:        c01de5a2 c01de5aa 00000001 d4055efc c01de5aa 00000009 e4e69800 d6a13000
Feb 21 15:24:09 localhost kernel:        d6a13110 ffffffff 00200246 00000000 00000004 c14af4a0 c16e4900 f18c44e0
Feb 21 15:24:09 localhost kernel: Call Trace:
Feb 21 15:24:09 localhost kernel:  [elevator_exit+16/39] elevator_exit+0x10/0x27Feb 21 15:24:09 localhost kernel:  [blk_cleanup_queue+32/93] blk_cleanup_queue+0x20/0x5d
Feb 21 15:24:09 localhost kernel:  [scsi_cmd_ioctl+774/796] scsi_cmd_ioctl+0x306/0x31c
Feb 21 15:24:09 localhost kernel:  [n_tty_receive_buf+2528/2583] n_tty_receive_buf+0x9e0/0xa17
Feb 21 15:24:09 localhost kernel:  [n_tty_receive_buf+2536/2583] n_tty_receive_buf+0x9e8/0xa17
Feb 21 15:24:09 localhost kernel:  [n_tty_receive_buf+2536/2583] n_tty_receive_buf+0x9e8/0xa17
Feb 21 15:24:09 localhost kernel:  [pg0+827876395/1070355456] idecd_revalidate_disk+0x10/0x16 [ide_cd]
Feb 21 15:24:09 localhost kernel:  [printk+18/22] printk+0x12/0x16
Feb 21 15:24:09 localhost kernel:  [pg0+810681314/1070355456] cdrom_ioctl+0x25/0x9e5 [cdrom]
Feb 21 15:24:09 localhost kernel:  [pty_write+49/61] pty_write+0x31/0x3d
Feb 21 15:24:09 localhost kernel:  [filemap_nopage+358/683] filemap_nopage+0x166/0x2ab
Feb 21 15:24:09 localhost kernel:  [pg0+827876359/1070355456] idecd_ioctl+0x3e/0x45 [ide_cd]
Feb 21 15:24:09 localhost kernel:  [pg0+827876297/1070355456] idecd_ioctl+0x0/0x45 [ide_cd]
Feb 21 15:24:09 localhost kernel:  [blkdev_driver_ioctl+57/63] blkdev_driver_ioctl+0x39/0x3f
Feb 21 15:24:09 localhost kernel:  [blkdev_ioctl+259/279] blkdev_ioctl+0x103/0x117
Feb 21 15:24:09 localhost kernel:  [block_ioctl+0/22] block_ioctl+0x0/0x16
Feb 21 15:24:09 localhost kernel:  [block_ioctl+19/22] block_ioctl+0x13/0x16
Feb 21 15:24:09 localhost kernel:  [do_ioctl+22/72] do_ioctl+0x16/0x48
Feb 21 15:24:09 localhost kernel:  [vfs_ioctl+336/350] vfs_ioctl+0x150/0x15e
Feb 21 15:24:09 localhost kernel:  [sys_ioctl+42/64] sys_ioctl+0x2a/0x40
Feb 21 15:24:09 localhost kernel:  [syscall_call+7/11] syscall_call+0x7/0xb
Feb 21 15:24:09 localhost kernel: Code:  Bad EIP value.


graziano