linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Douglas Gilbert <dougg@torque.net>
To: Luben Tuikov <luben_tuikov@adaptec.com>
Cc: Richard Bollinger <rabollinger@gmail.com>,
	linux-scsi@vger.kernel.org, linux-ide@vger.kernel.org
Subject: Re: SATA Drive Information (vs hdparm -i)?
Date: Sat, 24 Sep 2005 13:18:07 +1000	[thread overview]
Message-ID: <4334C56F.8010208@torque.net> (raw)
In-Reply-To: <43340FB7.3080708@adaptec.com>

Luben Tuikov wrote:
> On 09/22/05 20:23, Douglas Gilbert wrote:
> 
>>However an improved "sdparm -i" is not what you seem to be
>>asking for. Most of the above information is derived from
>>the response to the IDENTIFY [PACKET] DEVICE ATA command.
>>There seems to be two options for providing this:
>>  1) libata to implement ioctls like HDIO_GET_IDENTITY
>>  2) libata to implement SCSI ATA Translation [SAT]
>>     facilities such as:
>>       a) the ATA Information VPD page
>>       b) SCSI ATA pass through commands
>>       c) MODE SELECT SCSI command
>>
>>Option 1) is the simplest but it requires that the SAT layer
>>is on the host computer [as it is in the case of libata].
>>Hopefully external USB and Firewire storage enclosures will
>>be enhanced to support the [draft] SAT standard and in
>>that case the SAT layer will be in the enclosure. SATA
>>disks [and S-ATAPI devices] in a SAS fabric may either
>>tunnel through the SAS fabric [via SAS Tunnelling Protocol
>>[STP]] or have a SAT layer in the fabric [typically in the
>>enclosure holding the disks].
> 
> 
> There will be no SAT layer in a SAS fabric.  STP is just
> that, a _tunneling_ protocol.  Thus, either in Option 1,
> or Option 2 if you want to present the device to
> SCSI Core as a SCSI Device you need SAT somewhere below
> SCSI Core (on the host).

Luben,
The folks at HP, Intel and WDC seemingly driving the
SAT draft write in the overview [in sat-r06 section 5.1]
of the SAT layer (SATL):

"Examples of SATL implemented in accordance to this
standard include:
   a) a SATL contained within a SCSI target ...
   b) An ATA/ATAPI Host Bus Adapter (HBA) directly
      connected to ATA/ATAPI devices ...
   c) A SAS STP initiator port to connect ATA/ATAPI
      devices ...
"

There are figures (diagrams) of these three later in
the draft: figure 7 (page 81), figure 5 (page 79) and
figure 6 (page 80) respectively.

For point a) they give as examples FCP, SPI and SBP-3
(but not SAS). One reason for putting a SAT layer in
a SAS target is multi-initiator and mult-port command
queuing support (sat-r05 section 6.2.4). Converting
port multipliers to luns may also be useful. [Perhaps
you could confirm this: a 1.5 GB SATA disk chews up
3 GB of SAS bandwidth when doing STP data transfers
(thanks to ALIGNs inserted every other word).] A RAID
of SATA disks in a SAS target (enclosure) would be
another candidate for a SAT layer (with luns > 0 to
access the individual disks (e.g. for SMART diagnostics)).

> In general, lower (hardware) layers want to do the
> _absolute_ minimum as far as their function is concerned.

Some folks have reported beta testing disks that, via
firmware download, can change between having a SATA and
a SAS interface. So I think that what you say is
basically true, but intelligence is being distributed
as well. "Nice to have" features like SMART in disks
must consume a lot of firmware (and flash) but support
(and standard's compliance) seems to be improving.

> Thus, for example, you can expect an incomplete
> USB/IEEE1394 SAT layer on the device.

Yep. Judging from my mail, lots of these users would
be happy with START STOP UNIT (well, at least as a
start).

>>Only the STP route allows for option 1) .
> 
> 
> Option 2 as well: you'll just treat the device as
> SCSI and SAT will emulate as much as possible.

True; point c) from the SAT overview.

Doug Gilbert



  reply	other threads:[~2005-09-24  3:18 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <7744a2840509221206254d2109@mail.gmail.com>
2005-09-23  0:23 ` SATA Drive Information (vs hdparm -i)? Douglas Gilbert
2005-09-23  0:31   ` Randy.Dunlap
2005-09-23  1:01     ` Richard Bollinger
2005-09-23  1:14       ` Douglas Gilbert
2005-09-23  1:18         ` Richard Bollinger
2005-09-23  1:16       ` Ric Wheeler
2005-09-23  1:20         ` Randy.Dunlap
2005-09-23  1:33           ` Ric Wheeler
2005-09-23  1:06     ` Douglas Gilbert
2005-09-23  1:50   ` Mark Lord
2005-09-23 14:22   ` Luben Tuikov
2005-09-24  3:18     ` Douglas Gilbert [this message]
2005-09-25 14:56       ` Luben Tuikov

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=4334C56F.8010208@torque.net \
    --to=dougg@torque.net \
    --cc=linux-ide@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=luben_tuikov@adaptec.com \
    --cc=rabollinger@gmail.com \
    /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).