2002-11-02 15:16:30

by Luca

[permalink] [raw]
Subject: [2.5.45] CDRW not working

Hi,
I can't even mount a cd using my CDRW drive (CD-ROM drive is ok).

I see the following messages:

hdd: packet command error: status=0x51 { DriveReady SeekComplete Error }
hdd: packet command error: error=0x50
end_request: I/O error, dev 16:40, sector 0
end_request: I/O error, dev 16:40, sector 0
hdd: request sense failure: status=0x51 { DriveReady SeekComplete Error }
hdd: request sense failure: error=0x50LastFailedSense 0x05
hdd: packet command error: status=0x51 { DriveReady SeekComplete Error }
hdd: packet command error: error=0x50
end_request: I/O error, dev 16:40, sector 0
end_request: I/O error, dev 16:40, sector 0
hdd: request sense failure: status=0x51 { DriveReady SeekComplete Error }
hdd: request sense failure: error=0x50LastFailedSense 0x05
cdrom: open failed.
hdd: packet command error: status=0x51 { DriveReady SeekComplete Error }
hdd: packet command error: error=0x50
end_request: I/O error, dev 16:40, sector 0
end_request: I/O error, dev 16:40, sector 0
hdd: request sense failure: status=0x51 { DriveReady SeekComplete Error }
hdd: request sense failure: error=0x50LastFailedSense 0x05
hdd: packet command error: status=0x51 { DriveReady SeekComplete Error }
hdd: packet command error: error=0x50
end_request: I/O error, dev 16:40, sector 0
end_request: I/O error, dev 16:40, sector 0
hdd: request sense failure: status=0x51 { DriveReady SeekComplete Error }
hdd: request sense failure: error=0x50LastFailedSense 0x05
hdd: packet command error: status=0x51 { DriveReady SeekComplete Error }
hdd: packet command error: error=0x50
end_request: I/O error, dev 16:40, sector 0
end_request: I/O error, dev 16:40, sector 0
hdd: request sense failure: status=0x51 { DriveReady SeekComplete Error }
hdd: request sense failure: error=0x50LastFailedSense 0x05
cdrom: open failed.
hdd: packet command error: status=0x51 { DriveReady SeekComplete Error }
hdd: packet command error: error=0x50
end_request: I/O error, dev 16:40, sector 0
end_request: I/O error, dev 16:40, sector 0
hdd: request sense failure: status=0x51 { DriveReady SeekComplete Error }
hdd: request sense failure: error=0x50LastFailedSense 0x05
hdd: packet command error: status=0x51 { DriveReady SeekComplete Error }
hdd: packet command error: error=0x50
end_request: I/O error, dev 16:40, sector 0
end_request: I/O error, dev 16:40, sector 0
hdd: request sense failure: status=0x51 { DriveReady SeekComplete Error }
hdd: request sense failure: error=0x50LastFailedSense 0x05
hdd: packet command error: status=0x51 { DriveReady SeekComplete Error }
hdd: packet command error: error=0x50
end_request: I/O error, dev 16:40, sector 0
end_request: I/O error, dev 16:40, sector 0
hdd: request sense failure: status=0x51 { DriveReady SeekComplete Error }
hdd: request sense failure: error=0x50LastFailedSense 0x05
cdrom: open failed.
hdd: packet command error: status=0x51 { DriveReady SeekComplete Error }
hdd: packet command error: error=0x50
end_request: I/O error, dev 16:40, sector 0
end_request: I/O error, dev 16:40, sector 0
hdd: request sense failure: status=0x51 { DriveReady SeekComplete Error }
hdd: request sense failure: error=0x50LastFailedSense 0x05
hdd: packet command error: status=0x51 { DriveReady SeekComplete Error }
hdd: packet command error: error=0x50
end_request: I/O error, dev 16:40, sector 0
end_request: I/O error, dev 16:40, sector 0
hdd: request sense failure: status=0x51 { DriveReady SeekComplete Error }
hdd: request sense failure: error=0x50LastFailedSense 0x05


>From bootlog:
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
VP_IDE: IDE controller at PCI slot 00:11.1
VP_IDE: chipset revision 6
VP_IDE: not 100% native mode: will probe irqs later
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
VP_IDE: VIA vt8233a (rev 00) IDE UDMA133 controller on pci00:11.1
ide0: BM-DMA at 0xe000-0xe007, BIOS settings: hda:DMA, hdb:pio
ide1: BM-DMA at 0xe008-0xe00f, BIOS settings: hdc:DMA, hdd:DMA
hda: QUANTUM FIREBALLlct10 10, ATA DISK drive
hda: DMA disabled
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hdc: CRD-8520B, ATAPI CD/DVD-ROM drive
hdd: CRW6206A, ATAPI CD/DVD-ROM drive
hdc: DMA disabled
hdd: DMA disabled
ide1 at 0x170-0x177,0x376 on irq 15
hda: host protected area => 1
hda: 20044080 sectors (10263 MB) w/418KiB Cache, CHS=1247/255/63
/dev/ide/host0/bus0/target0/lun0: p1 p2 < p5 p6 p7 p8 p9 p10 > p3 p4
hdc: ATAPI 52X CD-ROM drive, 128kB Cache, DMA
Uniform CD-ROM driver Revision: 3.12
hdd: ATAPI 6X CD-ROM CD-R/RW drive, 512kB Cache, DMA

ciao,
Luca
--
Reply-To: [email protected]
Home: http://kronoz.cjb.net
"La mia teoria scientifica preferita e` quella secondo la quale gli
anelli di Saturno sarebbero interamente composti dai bagagli andati
persi nei viaggi aerei." -- Mark Russel


2002-11-02 15:21:21

by Jens Axboe

[permalink] [raw]
Subject: Re: [2.5.45] CDRW not working

On Sat, Nov 02 2002, Kronos wrote:
> Hi,
> I can't even mount a cd using my CDRW drive (CD-ROM drive is ok).
>
> I see the following messages:

Does 2.5.42 work?

--
Jens Axboe

2002-11-02 17:41:44

by Luca

[permalink] [raw]
Subject: Re: [2.5.45] CDRW not working

Il Sat, Nov 02, 2002 at 04:27:25PM +0100, Jens Axboe ha scritto:
> > I can't even mount a cd using my CDRW drive (CD-ROM drive is ok).
>
> Does 2.5.42 work?

I can reproduce it using hdparm -i /dev/hdd:

hdd: drive_cmd: status=0x51 { DriveReady SeekComplete Error }
hdd: drive_cmd: error=0x04Aborted Command
hdd: irq timeout: status=0xd0 { Busy }
hdd: irq timeout: error=0xd0LastFailedSense 0x0d
hdd: status timeout: status=0xd0 { Busy }
hdd: status timeout: error=0xd0LastFailedSense 0x0d
hdd: DMA disabled
hdd: drive not ready for command
hdd: ATAPI reset complete
hdd: packet command error: status=0x51 { DriveReady SeekComplete Error }
hdd: packet command error: error=0x50
end_request: I/O error, dev 16:40, sector 0
end_request: I/O error, dev 16:40, sector 0
hdd: request sense failure: status=0x51 { DriveReady SeekComplete Error }
hdd: request sense failure: error=0x50LastFailedSense 0x05

>From now on I can't use the drive. The same happens on 2.5.45.

Luca
--
Reply-To: [email protected]
Home: http://kronoz.cjb.net
La differenza fra l'intelligenza e la stupidita`?
All'intelligenza c'e` un limite.

2002-11-02 21:29:47

by Jens Axboe

[permalink] [raw]
Subject: Re: [2.5.45] CDRW not working

On Sat, Nov 02 2002, Kronos wrote:
> Il Sat, Nov 02, 2002 at 04:27:25PM +0100, Jens Axboe ha scritto:
> > > I can't even mount a cd using my CDRW drive (CD-ROM drive is ok).
> >
> > Does 2.5.42 work?
>
> I can reproduce it using hdparm -i /dev/hdd:
>
> hdd: drive_cmd: status=0x51 { DriveReady SeekComplete Error }
> hdd: drive_cmd: error=0x04Aborted Command
> hdd: irq timeout: status=0xd0 { Busy }
> hdd: irq timeout: error=0xd0LastFailedSense 0x0d
> hdd: status timeout: status=0xd0 { Busy }
> hdd: status timeout: error=0xd0LastFailedSense 0x0d
> hdd: DMA disabled
> hdd: drive not ready for command
> hdd: ATAPI reset complete
> hdd: packet command error: status=0x51 { DriveReady SeekComplete Error }
> hdd: packet command error: error=0x50
> end_request: I/O error, dev 16:40, sector 0
> end_request: I/O error, dev 16:40, sector 0
> hdd: request sense failure: status=0x51 { DriveReady SeekComplete Error }
> hdd: request sense failure: error=0x50LastFailedSense 0x05

What is this, 2.5.42 or 2.5.45? Does 2.5.42 work or not? You haven't
answered my question at all.

--
Jens Axboe

2002-11-03 14:48:02

by Luca

[permalink] [raw]
Subject: Re: [2.5.45] CDRW not working

Il Sat, Nov 02, 2002 at 10:35:29PM +0100, Jens Axboe ha scritto:
> On Sat, Nov 02 2002, Kronos wrote:
> > Il Sat, Nov 02, 2002 at 04:27:25PM +0100, Jens Axboe ha scritto:
> > > > I can't even mount a cd using my CDRW drive (CD-ROM drive is ok).
> > >
> > > Does 2.5.42 work?
> >
> > I can reproduce it using hdparm -i /dev/hdd:

[cut]

> What is this, 2.5.42 or 2.5.45?

Both.

> Does 2.5.42 work or not?

If I don't use hdparm 2.5.42 works. On 2.5.45 it's random.

Luca
--
Reply-To: [email protected]
Home: http://kronoz.cjb.net
Mi piace avere amici rispettabili;
Mi piace essere il peggiore della compagnia.

2002-11-03 14:55:45

by Jens Axboe

[permalink] [raw]
Subject: Re: [2.5.45] CDRW not working

On Sun, Nov 03 2002, Kronos wrote:
> Il Sat, Nov 02, 2002 at 10:35:29PM +0100, Jens Axboe ha scritto:
> > On Sat, Nov 02 2002, Kronos wrote:
> > > Il Sat, Nov 02, 2002 at 04:27:25PM +0100, Jens Axboe ha scritto:
> > > > > I can't even mount a cd using my CDRW drive (CD-ROM drive is ok).
> > > >
> > > > Does 2.5.42 work?
> > >
> > > I can reproduce it using hdparm -i /dev/hdd:
>
> [cut]
>
> > What is this, 2.5.42 or 2.5.45?
>
> Both.
>
> > Does 2.5.42 work or not?
>
> If I don't use hdparm 2.5.42 works. On 2.5.45 it's random.

2.5.45 with attached patch, how does that compare?

--
Jens Axboe


Attachments:
(No filename) (611.00 B)
idecd-cdb-size-3 (2.24 kB)
Download all attachments

2002-11-03 15:32:59

by Luca

[permalink] [raw]
Subject: Re: [2.5.45] CDRW not working

Il Sun, Nov 03, 2002 at 04:01:50PM +0100, Jens Axboe ha scritto:
> > > Does 2.5.42 work or not?
> >
> > If I don't use hdparm 2.5.42 works. On 2.5.45 it's random.
>
> 2.5.45 with attached patch, how does that compare?

The first patch doesn't apply to 2.5.45. cmd_len was removed in 2.5.45.
This one should be ok, right?

--- ide-cd.c.orig Sun Nov 3 16:34:38 2002
+++ ide-cd.c Sun Nov 3 16:36:52 2002
@@ -884,6 +884,7 @@
{
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
@@ -905,8 +906,12 @@
/* Arm the interrupt handler. */
ide_set_handler(drive, handler, rq->timeout, cdrom_timer_expiry);

+ cmd_len = COMMAND_SIZE(rq->cmd[0]);
+ if (cmd_len < ATAPI_MIN_CDB_BYTES)
+ cmd_len = ATAPI_MIN_CDB_BYTES;
+
/* 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, cmd_len);

/* Start the DMA if need be */
if (info->dma)


Luca
--
Reply-To: [email protected]
Home: http://kronoz.cjb.net
Carpe diem, quam minimum credula postero. (Q. Horatius Flaccus)

2002-11-04 17:54:14

by Luca

[permalink] [raw]
Subject: Re: [2.5.45] CDRW not working

Il Sun, Nov 03, 2002 at 04:01:50PM +0100, Jens Axboe ha scritto:
> > If I don't use hdparm 2.5.42 works. On 2.5.45 it's random.
>
> 2.5.45 with attached patch, how does that compare?

Ok, I tested you patch. Now I can mount, read, etc. without errors, but
I can still hang the drive usign hdparm -I.

Luca
--
Reply-To: [email protected]
Home: http://kronoz.cjb.net