From: Jens Axboe <axboe@suse.de>
To: Matt Reppert <arashi@arashi.yi.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Working ide-cd burn/rip, 2.5.44
Date: Sun, 3 Nov 2002 10:42:29 +0100 [thread overview]
Message-ID: <20021103094229.GJ3612@suse.de> (raw)
In-Reply-To: <20021102184357.7091fd4d.arashi@arashi.yi.org>
[-- Attachment #1: Type: text/plain, Size: 510 bytes --]
On Sat, Nov 02 2002, Matt Reppert wrote:
> Just FYI. I tested the ide-cd based CD burning and reading with the
> cdrtools alpha ... kernel 2.5.44-mm6, cdrtools-1.11a39. If I boot
> into a clean system, only load ide-cd (none of the ide-scsi-related
> bits), and "do it", it works well.
You definitely don't want anything _less_ than 2.5.45 at all, it's a
miracle it appears to work :-)
Please retest 2.5.45, thanks, and you should probably add this patch to
fix the cdb output length issue.
--
Jens Axboe
[-- Attachment #2: idecd-cdb-size-2 --]
[-- Type: text/plain, Size: 1094 bytes --]
===== drivers/ide/ide-cd.c 1.27 vs edited =====
--- 1.27/drivers/ide/ide-cd.c Fri Oct 18 20:02:55 2002
+++ edited/drivers/ide/ide-cd.c Sun Nov 3 10:33:17 2002
@@ -310,6 +310,7 @@
#include <linux/completion.h>
#include <scsi/scsi.h> /* For SCSI -> ATAPI command conversion */
+#include "../scsi/scsi.h"
#include <asm/irq.h>
#include <asm/io.h>
@@ -877,10 +878,10 @@
ide_handler_t *handler)
{
unsigned char *cmd_buf = rq->cmd;
- int cmd_len = sizeof(rq->cmd);
unsigned int timeout = rq->timeout;
struct cdrom_info *info = drive->driver_data;
ide_startstop_t startstop;
+ unsigned int cmd_len;
if (CDROM_CONFIG_FLAGS(drive)->drq_interrupt) {
/* Here we should have been called after receiving an interrupt
@@ -902,6 +903,11 @@
/* Arm the interrupt handler. */
ide_set_handler(drive, handler, timeout, cdrom_timer_expiry);
+
+ /* cdb length, pad upto the 12th byte if necessary */
+ cmd_len = COMMAND_SIZE(rq->cmd[0]);
+ if (cmd_len < 12)
+ cmd_len = 12;
/* Send the command to the device. */
HWIF(drive)->atapi_output_bytes(drive, cmd_buf, cmd_len);
next prev parent reply other threads:[~2002-11-03 9:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-03 0:43 Matt Reppert
2002-11-03 9:42 ` Jens Axboe [this message]
2002-11-03 16:29 ` Matt Reppert
2002-11-03 16:34 ` Jens Axboe
2002-11-03 17:10 ` Matt Reppert
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=20021103094229.GJ3612@suse.de \
--to=axboe@suse.de \
--cc=arashi@arashi.yi.org \
--cc=linux-kernel@vger.kernel.org \
/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
all inboxes | Powered by JetHome®