public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@suse.de>
To: Luc Saillard <luc.saillard@fr.alcove.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: oops when using ide-cd with 2.5.45 and cdrecord
Date: Sun, 3 Nov 2002 10:40:52 +0100	[thread overview]
Message-ID: <20021103094052.GI3612@suse.de> (raw)
In-Reply-To: <20021103002346.GA25842@cedar.alcove-fr>

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


  reply	other threads:[~2002-11-03  9:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-02 21:01 oops when using ide-cd with 2.5.45 and cdrecord Luc Saillard
2002-11-02 21:34 ` Jens Axboe
2002-11-03  0:23   ` Luc Saillard
2002-11-03  9:40     ` Jens Axboe [this message]
2002-11-03 14:42       ` Luc Saillard
2002-11-03 14:56         ` Jens Axboe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021103094052.GI3612@suse.de \
    --to=axboe@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luc.saillard@fr.alcove.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox