linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
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, 01 Mar 2006 18:31:01 -0500	[thread overview]
Message-ID: <44062EB5.7010901@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.

This is the right place to ask.

> 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.

I thought support for those two opcodes went into libata
for lk 2.6.15 as well but haven't written discrete code
to test it. Does the lsi SAS HBA use libata on its STP
(or direct connect) path? Eyeballing the libata code,
those opcodes are used internally. I know that
"smartctl -a -d ata /dev/sda" works when /dev/sda is a
SATA disk using libata on a regular SATA HBA. At present I
do not have any hardware nearby to test it. If you can direct
connect a SATA disk to a SATA controller on your motherboard
(i.e. bypassing the SAS HBA) does that make any difference?

Doug Gilbert

  reply	other threads:[~2006-03-01 23: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 [this message]
2006-06-03 19:32 ` Douglas Gilbert
  -- 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=44062EB5.7010901@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).