From: Douglas Gilbert <dougg@torque.net>
To: Quat Le <Quat.Le@dothill.com>
Cc: linux-scsi@vger.kernel.org
Subject: Re: ATA Pass-Through support
Date: Sat, 03 Jun 2006 15:32:13 -0400 [thread overview]
Message-ID: <4481E3BD.9090006@torque.net> (raw)
In-Reply-To: <DF9C50EF9E8CDA45A06FE8735C68F85E568F0D@earthex2.power.com>
Quat Le wrote:
> Sorry if this is not the right place to ask this question.
>
> I wrote some application code to send ATA Pass-Through SCSI commands via
> SG_IO ioctl to SATA drives connected to a LSI Logic SAS HBA. What I got
> was ILLEGAL REQUEST (INVALID COMAND OPERATION CODE) for both SCSI
> OPCODE's A1H and 85H. I tried some other SCSI commands and saw that they
> were translated to ATA commands correctly. I am running Linux kernel
> 2.6.15 and am under the impression that it supports ATA Pass-Through.
Quat,
I just did some testing in lk 2.6.17-rc5 and the ATA
PASS THROUGH (16) SCSI command in libata (defined by SAT)
worked in my tests.
At http://www.torque.net/sg in the news sections the
sg3_utils-1.21 beta has in its examples subdirectory:
sg_sat_identify and sg_sat_chk_power. The latter one
is interesting because it needs to read back the sector
count register after the command is complete. That
involves decoding the extended ATA status return
(sense data) descriptor.
Doug Gilbert
next prev parent reply other threads:[~2006-06-03 19:32 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-01 17:08 ATA Pass-Through support Quat Le
2006-03-01 23:31 ` Douglas Gilbert
2006-06-03 19:32 ` Douglas Gilbert [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-03-01 23:51 Quat Le
2006-03-02 6:14 ` Moore, Eric
2006-03-02 15:46 ` Douglas Gilbert
2006-03-02 17:02 Moore, Eric
2006-03-02 17:51 Quat Le
2006-03-02 18:17 ` Jeff Garzik
2006-03-03 16:50 ` Brian King
2006-03-03 18:39 ` Tejun Heo
2006-03-02 18:00 Quat Le
2006-03-02 18:41 Quat Le
2006-03-03 16:38 ` Brian King
2006-06-07 17:15 Quat Le
2006-06-07 18:22 ` Douglas Gilbert
2006-06-07 18:26 ` Jeff Garzik
2006-06-07 18:48 Quat Le
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=4481E3BD.9090006@torque.net \
--to=dougg@torque.net \
--cc=Quat.Le@dothill.com \
--cc=linux-scsi@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;
as well as URLs for NNTP newsgroup(s).