From: Tejun Heo <tj@kernel.org>
To: Chuck Ebbert <cebbert@redhat.com>
Cc: linux-ide@vger.kernel.org
Subject: Re: ahci fails with SATA DVD drive, IDE mode works
Date: Sun, 01 Mar 2009 21:26:33 +0900 [thread overview]
Message-ID: <49AA7EF9.7000306@kernel.org> (raw)
In-Reply-To: <20090227175746.44acdbfa@dhcp-100-2-144.bos.redhat.com>
Hello, Chuck.
Chuck Ebbert wrote:
> The other machine has what seems to be a "real" SATA DVD writer in it.
> It reports udma5 as the connect speed. This one seems to be a PATA drive
> with an internal SATA bridge and is connecting as mwdma2.
Ah... that makes sense. libata has problem with ATAPI devices
connected over a SATA-PATA bridge. Albert Lee tried to track it down
a while ago but it never got resolved. :-(
Tracking things like this can be quite difficult. Eh... having SATA
tracer would be nice. Oh well...
>>> ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
>>> ata2.00: cmd a0/01:00:00:00:02/00:00:00:00:00/a0 tag 0 dma 512 in
>>> cdb a1 08 2e 00 00 00 00 00 40 ec 00 00 00 00 00 00
>>> res 40/00:02:00:08:00/00:00:00:00:00/a0 Emask 0x4 (timeout)
>>> ata2.00: status: { DRDY }
>>> ata2: hard resetting link
>>> ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
>>> ata2.00: configured for MWDMA2
>>> ata2: EH complete
>> Here, BLANK has timed out but the device was recovered okay.
>>
>
> I ran 'hdparm -I' here. Why would it send BLANK to the drive??
> (There was a 1.4 GB DVD-RW in the drive when I did that.)
CDB 0xa1 is BLANK alright. Is the problem reproducible?
> Also there is no "applying bridge limits" message here when it resets
> like there is when the system boots.
>
>>> sr 1:0:0:0: [sr0] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE,SUGGEST_OK
>>> sr 1:0:0:0: [sr0] Sense Key : Illegal Request [current]
>>> sr 1:0:0:0: [sr0] Add. Sense: Logical block address out of range
>>> end_request: I/O error, dev sr0, sector 0
>> And after that, the media can't be read, so this one seems normal.
>>
>
> The media wasn't blanked -- rebooting lets me read it again.
>
> Also, running 'hdparm -I' with no disk in the drive outputs:
>
> /dev/sr0:
> HDIO_DRIVE_CMD(identify) failed: Invalid exchange
>
> And strangely enough, I get the same message with a normal DVD disk in
> the drive too...
:-(
--
tejun
next prev parent reply other threads:[~2009-03-01 12:26 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-11 22:45 ahci fails with SATA DVD drive, IDE mode works Chuck Ebbert
2009-02-19 9:10 ` Tejun Heo
2009-02-21 23:17 ` Chuck Ebbert
2009-02-25 6:06 ` Tejun Heo
2009-02-25 23:15 ` Chuck Ebbert
2009-02-26 1:07 ` Tejun Heo
2009-02-27 22:57 ` Chuck Ebbert
2009-03-01 12:26 ` Tejun Heo [this message]
2009-03-02 13:02 ` Mark Lord
2009-03-03 21:23 ` Chuck Ebbert
2009-03-04 1:30 ` Tejun Heo
2009-03-04 15:51 ` Mark Lord
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=49AA7EF9.7000306@kernel.org \
--to=tj@kernel.org \
--cc=cebbert@redhat.com \
--cc=linux-ide@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.