From: Douglas Gilbert <dougg@torque.net>
To: linux-ide@vger.kernel.org
Subject: Re: libata for SATA HDs.
Date: Fri, 12 Aug 2005 11:04:02 +1000 [thread overview]
Message-ID: <42FBF582.1070205@torque.net> (raw)
Mark Lord wrote:
> James Courtier-Dutton wrote:
>
>> Google did not help me.
>>
>> Can I use the kernel libata and do commands like this now? :
>> hdparm -S60 /dev/sda
>
>
> Yes, but only if you manually apply the "libata-passthru" patch.
<snip>
For those occasions when libata is one box removed
(e.g. sitting in an enclosure) there is a SCSI way
to do "hdparm -S60" (i.e. set standby timer to 300
seconds). That is via the Power Condition mode page.
Changing the relevant fields in that mode page requires
libata to implement the SCSI MODE SELECT command.
Once that command is implemented the Writeback Cache
Enable (WCE) bit in the Caching mode page could also
be controlled.
With MODE SELECT implemented in libata, the equivalent
to "hdparm -S60" would be more longwinded:
sdparm -s STANDBY=1,SCT=3000 /dev/sda
Jeff has just accepted a patch into libata to implement
the START STOP UNIT SCSI command. So soon it will be
possible to place a SATA disk in standby mode immediately
with:
sdparm -C stop /dev/sda
Any media access command (or "sdparm -C start") will spin
it up again.
Also the SCSI-ATA Translation draft (SAT) defines two
SCSI commands to pass-through ATA commands. smartmontools
could be made to use these (with an option similar to
"-d ata").
A while back Jeff had some patches for those SCSI
pass-through ATA commands but they don't seem to have
made it into the mainline libata.
Doug Gilbert
next reply other threads:[~2005-08-12 1:04 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-12 1:04 Douglas Gilbert [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-08-10 18:42 libata for SATA HDs Timothy Thelin
2005-08-11 3:21 ` Jeff Garzik
[not found] <42EEA9D5.5080304@superbug.demon.co.uk>
2005-08-09 13:40 ` Mark Lord
2005-08-09 17:01 ` Erik Slagter
2005-08-09 17:55 ` James Courtier-Dutton
2005-08-09 18:04 ` Jeff Garzik
2005-08-09 22:27 ` James Courtier-Dutton
2005-08-10 2:28 ` Mark Lord
2005-08-09 18:18 ` Erik Slagter
2005-08-09 20:04 ` Mark Lord
2005-08-10 7:41 ` Erik Slagter
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=42FBF582.1070205@torque.net \
--to=dougg@torque.net \
--cc=linux-ide@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).