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: Wed, 07 Jun 2006 14:22:12 -0400 [thread overview]
Message-ID: <44871954.8060701@torque.net> (raw)
In-Reply-To: <DF9C50EF9E8CDA45A06FE8735C68F85EEB6319@earthex2.power.com>
Quat Le wrote:
> Doug,
> Thanks for the info. I thought LSI SAS HBA is not using libata. What
> SAS HBA were you using?
The interesting part of libata for this discussion is
its SCSI to ATA Translation Layer (SATL). Since about
lk 2.6.15 it has implemented the ATA PASS THROUGH SCSI
commands (see sat-r08.pdf at www.t10.org).
My example code only assumed a SCSI pass through
(SG_IO in this case) and a SATL ** that implements
the ATA PASS THROUGH SCSI commands. The MPT Fusion SAS
HBAs have their own SATL (not libata based) but unfortunately
don't implement the ATA pass through commands. My information
is that they will in the future. They do have a proprietary
ATA command passthrough.
I also use an adaptec 48300 SAS HBA. There are several Linux
drivers for the the 94xx chipset inside the 48300. At least
one supports a working SATL with an ATA pass through.
Others may follow soon (or my information may be a little
out of date).
** the SATL doesn't have to be in the OS proper (like libata),
it could be in the HBA firmware, a FC switch or even on
the device. Some aspects of a SATL are transport dependent
so there may be advantages of having it somewhere other than
in libata.
Doug Gilbert
> Best regards,
> Quat Le
>
> -----Original Message-----
> From: Douglas Gilbert [mailto:dougg@torque.net]
> Sent: Saturday, June 03, 2006 12:32 PM
> To: Quat Le
> Cc: linux-scsi@vger.kernel.org
> Subject: Re: ATA Pass-Through support
>
> 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-07 18:22 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-07 17:15 ATA Pass-Through support Quat Le
2006-06-07 18:22 ` Douglas Gilbert [this message]
2006-06-07 18:26 ` Jeff Garzik
-- strict thread matches above, loose matches on Subject: below --
2006-06-07 18:48 Quat Le
2006-03-02 18:41 Quat Le
2006-03-03 16:38 ` Brian King
2006-03-02 18:00 Quat Le
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 17:02 Moore, Eric
2006-03-01 23:51 Quat Le
2006-03-02 6:14 ` Moore, Eric
2006-03-02 15:46 ` Douglas Gilbert
2006-03-01 17:08 Quat Le
2006-03-01 23:31 ` Douglas Gilbert
2006-06-03 19:32 ` Douglas Gilbert
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=44871954.8060701@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 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.