linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ATAPI question
@ 2009-02-27 23:50 Foster, Doug F
  2009-02-28  3:08 ` Robert Hancock
  0 siblings, 1 reply; 16+ messages in thread
From: Foster, Doug F @ 2009-02-27 23:50 UTC (permalink / raw)
  To: linux-ide@vger.kernel.org; +Cc: Foster, Doug F

I'm looking at the following Bugzilla sighting:  [Bug 429724] RHEL 5.4 periodic ATA error messages on Tolapai hardware.

I have reproduced the problem using these drives:  Plextor models PX-712 and PX-716 and Lite On model SHD-16S1S.
It occurs in AHCI mode only, not legacy mode.
Although I am working on an EP80579, it probably occurs on any AHCI controller.

This is a snippet from dmesg:
Jan 27 13:02:52 localhost kernel: ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
Jan 27 13:02:52 localhost kernel: ata2.00: cmd a0/00:00:00:08:00/00:00:00:00:00/a0 tag 0 pio 8 in
Jan 27 13:02:52 localhost kernel:          cdb 25 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
Jan 27 13:02:52 localhost kernel:          res 40/00:03:00:08:00/00:00:00:00:00/a0 Emask 0x4 (timeout)
Jan 27 13:02:52 localhost kernel: ata2.00: status: { DRDY }
Jan 27 13:02:53 localhost kernel: ata2: soft resetting link
Jan 27 13:02:53 localhost kernel: ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
Jan 27 13:02:53 localhost kernel: ata2.00: configured for UDMA/25
Jan 27 13:02:53 localhost kernel: ata2: EH complete

Using a SATA analyzer, I find that on an INQUIRY (12h) ATAPI packet command, the device sets bit-6 (DRDY) and bit-4 (SERV) in the status register, and bits 0 (CoD) and 1 (IO) are set in the ATAPI Interrupt Reason Register (ATA Sector Count Register).  After SERVICE is flagged by the ATAPI device (and not serviced), it doesn't respond properly from then on.

Sections 5.7, 5.7.1, and 5.17 (overlapped commands) in the ATA Packet Interface for CD-ROMs specification (ATAPI-SFF8020i.pdf) seem to apply.  This functionality seems to be missing.  I would like to get some guidance as to where this functionality should be added.  I could either work with the appropriate maintainer on the details or take a crack at the code changes myself.  It would be a good learning experience for me, but I would like to collaborate with the appropriate Linux expert.


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2009-03-12 21:02 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-27 23:50 ATAPI question Foster, Doug F
2009-02-28  3:08 ` Robert Hancock
2009-03-01 12:51   ` Tejun Heo
2009-03-02 15:58     ` Foster, Doug F
2009-03-02 21:50       ` Foster, Doug F
2009-03-03  0:35         ` Tejun Heo
2009-03-03 15:44           ` Foster, Doug F
2009-03-03 18:19         ` Foster, Doug F
2009-03-04  1:44           ` Tejun Heo
2009-03-04  2:09             ` Robert Hancock
2009-03-04 15:44             ` Foster, Doug F
2009-03-04 16:03               ` Tejun Heo
2009-03-09 21:35           ` Foster, Doug F
2009-03-11  9:31             ` Tejun Heo
2009-03-12 21:02               ` Foster, Doug F
2009-03-02 23:33       ` Robert Hancock

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).