ide-cd doesn't replace ide-scsi?

ide-cd doesn't replace ide-scsi?

Post by Luke-J » Tue, 29 Nov 2005 21:20:28



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to XXXX@XXXXX.COM
More majordomo info at http://www.yqcomputer.com/
Please read the FAQ at http://www.yqcomputer.com/
Note: results are with 2.6.13 (-gentoo-r4 + supermount) and 2.6.14 (-gentoo)
I've been struggling with burning DVD+R DL discs and upgrading the firmware on
my DVD burner, and just today decided to rmmod ide-cd and try using ide-scsi.
Turns out it works... so is ide-cd *supposed* to handle cases other than
simple reading and burning or is this a bug? If not a bug, should ide-scsi
really be marked as deprecated?
Also, two bugs with ide-scsi:
1. On loading the module, it detects and allocates 6 SCSI devices for a single
DVD burner (Toshiba ODD-DVD SD-R5272); kernel log for this event attached
2. On attempted unloading of the module, rmmod says 'Killed' and the module
stays put, corrupt. There was some kind of error in dmesg, but it appears to
have avoided syslog-- If I see it again, I'll save it.
--
Luke-Jr
Developer, Utopios
http://www.yqcomputer.com/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQBDivWJZl/BHdU+lYMRAsqbAJ4mfu9F1Whk6HAOPY3jLnfHGs2sswCfbmYa
CnHRthWyl+jJ2Kjjo8kW1jw=
=7CFg
-----END PGP SIGNATURE-----
 
 
 

ide-cd doesn't replace ide-scsi?

Post by Bill David » Wed, 30 Nov 2005 23:50:24


I think you may have the probe-all-LUNs set, and a CD burner which
responds to more than one. That's one possible cause for this.

Unfortunately using ide-cd still doesn't have the code set to allow all
burning features to work if you are not root. Even if you have
read+write there's one command you need to do multi-session which is
only allowed to root. Works fine for single sessions, I guess that's all
someone uses.

Haven't tried unloading the module, so I have no advice on that other
than "don't do that."
--
-bill davidsen ( XXXX@XXXXX.COM )
"The secret to procrastination is to put things off until the
last possible moment - but no longer" -me

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to XXXX@XXXXX.COM
More majordomo info at http://www.yqcomputer.com/
Please read the FAQ at http://www.yqcomputer.com/

 
 
 

ide-cd doesn't replace ide-scsi?

Post by Bartlomiej » Thu, 01 Dec 2005 00:00:53


That may be it.


Interesting because both drivers ide-cd and sr+ide-scsi use exactly
the same code (block/scsi_ioctl.c) to verify which commands don't
need root privileges. Care to give details?


Known problem with ide-scsi, reference counting for "virtual" SCSI host
is missing (it was always buggy but was exposed in 2.6.x something by
sr.c changes).

Bartlomiej
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to XXXX@XXXXX.COM
More majordomo info at http://www.yqcomputer.com/
Please read the FAQ at http://www.yqcomputer.com/
 
 
 

ide-cd doesn't replace ide-scsi?

Post by Jens Axbo » Thu, 01 Dec 2005 00:30:23


Not if he is using /dev/sgX with ide-scsi, only SG_IO through /dev/srX
will go through the block/scsi_ioctl.c path.

--
Jens Axboe

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to XXXX@XXXXX.COM
More majordomo info at http://www.yqcomputer.com/
Please read the FAQ at http://www.yqcomputer.com/
 
 
 

ide-cd doesn't replace ide-scsi?

Post by Luke-J » Thu, 01 Dec 2005 04:20:06


Yep, it was set. I'll try turning it off.


I'm pretty sure I tried doing everything as root days before I even considered
ide-scsi... In regards to firmware upgrades, I wouldn't expect non-root to be
allowed to, even with rw access.


Well, I had reasons... =p
The first time, I was going to switch back to ide-cd (for DMA), and the second
time was because the drive was stuck on Busy and I'm not sure of any (other?)
way to reset it without hotplugging the IDE power cable (which I'm sure isn't
a good idea and I don't want to risk).
--
Luke-Jr
Developer, Utopios
http://www.yqcomputer.com/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to XXXX@XXXXX.COM
More majordomo info at http://www.yqcomputer.com/
Please read the FAQ at http://www.yqcomputer.com/
 
 
 

ide-cd doesn't replace ide-scsi?

Post by Luke-J » Thu, 01 Dec 2005 11:50:06

n Tuesday 29 November 2005 14:58, you wrote:

In case it's helpful, here's the error:

Unable to handle kernel NULL pointer dereference at 0000000000000410 RIP:
<ffffffff881d42d2>{:ide_scsi:idescsi_queue+322}
PGD 31418067 PUD 31eb6067 PMD 0
Oops: 0000 [1] PREEMPT
CPU 0
Modules linked in: sr_mod cdrom ide_scsi ipv6 ohci_hcd analog 8250_pnp 8250
serial_core parport_pc parport floppy radeonfb snd_via82xx gameport
snd_ac97_codec snd_ac97_bus snd_pcm snd_timer snd_page_alloc snd_mpu401_uart
snd_rawmidi snd_seq_device snd i2c_viapro ehci_hcd cdc_ether usbnet usbhid
usblp uhci_hcd sata_via libata scsi_mod skge ohci1394 ieee1394 usbcore
supermount sk98lin
Pid: 13304, comm: rmmod Tainted: G M 2.6.14-gentoo-r2-ljr #3
RIP: 0010:[<ffffffff881d42d2>] <ffffffff881d42d2>{:ide_scsi:idescsi_queue+322}
RSP: 0018:ffff810031897908 EFLAGS: 00010016
RAX: 0000000000000000 RBX: ffff81003721f2c0 RCX: 0000000000000000
RDX: 00000000ffffda7e RSI: ffff81003c9038fa RDI: ffff81003721f2ca
RBP: ffff81003c903880 R08: 00000000000004e1 R09: ffff81003c903988
R10: ffff81003e1d2c80 R11: ffffffff80280700 R12: ffff810031fab800
R13: ffffffff80408910 R14: ffff81003c903880 R15: ffff81003721f2c0
FS: 00002aaaaadfeb00(0000) GS:ffffffff80420800(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b
CR2: 0000000000000410 CR3: 0000000032def000 CR4: 00000000000006e0
Process rmmod (pid: 13304, threadinfo ffff810031896000, task ffff810032c78180)
Stack: ffff81003c9038f0 0000000000000282 000000003f8ccb88 00000000000003e0
ffffffff8807d740 ffff81003bfecee0 ffff81003c903880 ffff81003b315800
0000000000000000 ffff81003ddd97f8
Call Trace:<ffffffff8807d740>{:scsi_mod:scsi_done+0}
<ffffffff8807d959>{:scsi_mod:scsi_dispatch_cmd+505}
<ffffffff88083500>{:scsi_mod:scsi_request_fn+768}
<ffffffff80277169>{generic_unplug_device+25}
<ffffffff80277e71>{blk_execute_rq+193}
<ffffffff80277a53>{blk_rq_bio_prep+51}
<ffffffff88081ef5>{:scsi_mod:scsi_execute+229}
<ffffffff881e418f>{:sr_mod:sr_do_ioctl+175}
<ffffffff881e3f9e>{:sr_mod:sr_packet+30}
<ffffffff881d8326>{:cdrom:cdrom_get_disc_info+86}
<ffffffff881d83a7>{:cdrom:cdrom_mrw_exit+39}
<ffffffff80190d53>{dput+35}
<ffffffff8019d37e>{simple_unlink+94}
<ffffffff881d8115>{:cdrom:unregister_cdrom+213}
<ffffffff881e400d>{:sr_mod:sr_kref_release+93}
<ffffffff881e3fb0>{:sr_mod:sr_kref_release+0}
<ffffffff801f68c0>{kref_put+96}
<ffffffff881e4076>{:sr_mod:sr_remove+70}
<ffffffff8027074b>{__device_release_driver+107}
<ffffffff802707c1>{device_release_driver+49}
<ffffffff8026ff1c>{bus_remove_device+172}
<ffffffff8026eea8>{device_del+56}
<ffffffff880865ba>{:scsi_mod:__scsi_remove_device+58}
<ffffffff88085808>{:scsi_mod:scsi_forget_host+120}
<ffffffff8807e504>{:scsi_mod:scsi_remove_host+212}
<ffffffff881d3ffa>{:ide_scsi:ide_scsi_remove+106}
<ffffffff8027074b>{__device_release_driver+107}
<ffffffff802708b3>{driver_detach+195}
<ffffffff80270154>{bus_remove_driver+148}
<ffffffff80270b8d>{driver_unregister+13}
<ffffffff8014dd14>{sys_delete_module+500}
<ffffffff8016ae25>{sys_munmap+85} <ffffffff8010ea86>{system_call+126}


Code: 8b
 
 
 

ide-cd doesn't replace ide-scsi?

Post by Luke-J » Thu, 01 Dec 2005 12:00:27


Is is possible to get a "IDE generic" device for ide-cdrom? ;)
--
Luke-Jr
Developer, Utopios
http://www.yqcomputer.com/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to XXXX@XXXXX.COM
More majordomo info at http://www.yqcomputer.com/
Please read the FAQ at http://www.yqcomputer.com/
 
 
 

ide-cd doesn't replace ide-scsi?

Post by Luke-J » Thu, 01 Dec 2005 18:00:15


Actually, growisofs refuses to work with anything but a block device-- so it's
using /dev/sr1. So apparently something else is up, since ide-cd errors, yet
ide-scsi does not.

Apparently, ide-scsi isn't working either though, just a different problem:
the burning *appears* to work (I get status info, and the drive seems to do
something), but the disc ends up unburned and empty. Has anyone successfully
burned a dual layer disc? I'm using a BenQ DW1620 drive.
--
Luke-Jr
Developer, Utopios
http://www.yqcomputer.com/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to XXXX@XXXXX.COM
More majordomo info at http://www.yqcomputer.com/
Please read the FAQ at http://www.yqcomputer.com/
 
 
 

ide-cd doesn't replace ide-scsi?

Post by Bill David » Sun, 04 Dec 2005 01:30:15


Actually, a single session burn seems to work (I'm doing tests as soon
as I get a compile of the latest kernel). What doesn't (or didn't) work
is multisession, even with r/w "cdrecord -msinfo" fails, which is how
you get the starting info for the next session.

I thought ide-scsi now did DMA, at least for data burns. Don't know
about audio, I occasionally do an audio burn, but my main machine for
burning uses ide-cd, so it's not an issue.

I saw a note somewhere about using capabilities on the cdrecord
executable to allow the realtime sched to be set, but I don't seem to
find it now. Maybe it was a question rather than an example :-(

--
bill davidsen < XXXX@XXXXX.COM >
CTO TMR Associates, Inc
Doing interesting things with small computers since 1979
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to XXXX@XXXXX.COM
More majordomo info at http://www.yqcomputer.com/
Please read the FAQ at http://www.yqcomputer.com/