Re: IDE problems with rmmod ide-cd

From: Alan Cox
Date: Thu Apr 28 2005 - 16:53:56 EST


On Iau, 2005-04-28 at 21:46, Bartlomiej Zolnierkiewicz wrote:
> > The problem you are thinking of was also an ATAPI cache flush command,
> > so I'm not so sure I would call it harmless... I haven't changed
> > anything in there recently, Bart?
>
> I don't remember changing anything there recently.
> Alan, please give more details of the issue.

Torvalds tree - head

Hardware is as follows
Promise IDE controller on ide0/1 - no drives
VIA IDE controller on ide2/3 - hdd is a DVD-ROM
and hdg is a disk.

hdd: TOSHIBA DVD-ROM SD-M1212

I had some code logging the commands issued and I did rmmod ide-cd. At
that point it sent a cache flush to the drive which then errorred it.

The actual log entry is

hdd: packet command error
Gives status=0x51, error=0x50

Dumping the error in detail its

Error;Illegal Request (Sense 0x05)
Invalid command operation code (0x20, 0x00)
The failed "Flush cache" packet command was
"35 00 00 00 00 00 ... 00"


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