Re: oops when using ide-cd with 2.5.45 and cdrecord

Jens Axboe (axboe@suse.de)
Sun, 3 Nov 2002 10:40:52 +0100


On Sun, Nov 03 2002, Luc Saillard wrote:
> On Sat, Nov 02, 2002 at 10:34:48PM +0100, Jens Axboe wrote:
> > On Sat, Nov 02 2002, Luc Saillard wrote:
> > > Hi,
> > > I'm a using the last cdrecord version (1.11a39) when this oops occurs.
> > > I can't sync my disks with alt-sys-request because we are in interrupt
> > > :(
> >
> > How are you invoking cdrecord? Using ide-scsi?
> >
> Like this:
>
> ./cdrecord dev=/dev/hdc fs=32m speed=24 -v -eject driveropts=burnfree dump.001

ok

please reproduce with this debug patch and send me the output:

--- /opt/kernel/linux-2.5.45/drivers/ide/ide-cd.c 2002-11-01 11:31:53.000000000 +0100
+++ drivers/ide/ide-cd.c 2002-11-03 10:40:35.000000000 +0100
@@ -906,7 +906,7 @@
ide_set_handler(drive, handler, rq->timeout, cdrom_timer_expiry);

/* Send the command to the device. */
- HWIF(drive)->atapi_output_bytes(drive, rq->cmd, sizeof(rq->cmd));
+ HWIF(drive)->atapi_output_bytes(drive, rq->cmd, 12);

/* Start the DMA if need be */
if (info->dma)
@@ -1718,6 +1718,8 @@
if (blen > thislen)
blen = thislen;

+ printk("%s: %x, ptr=%p,len=%d,bio=%p\n", drive->name, rq->cmd[0], ptr, blen, rq->bio);
+
xferfunc(drive, ptr, blen);

thislen -= blen;

-- 
Jens Axboe

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/