linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tejun Heo <htejun@gmail.com>
To: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Cc: Michael Tokarev <mjt@tls.msk.ru>, linux-ide@vger.kernel.org
Subject: Re: SATA: Is "DPO and FUA" ever supported?
Date: Tue, 03 Jul 2007 16:10:15 +0900	[thread overview]
Message-ID: <4689F657.1010106@gmail.com> (raw)
In-Reply-To: <467BE360.7010805@ru.mvista.com>

Sergei Shtylyov wrote:
>>> scsi 0:0:0:0: Direct-Access     ATA      ST3250620NS      3.AE PQ: 0
>>> ANSI: 5
>>> SCSI device sda: 488397168 512-byte hdwr sectors (250059 MB)
>>> SCSI device sda: write cache: enabled, read cache: enabled, doesn't
>>> support DPO or FUA
> 
>>> for SATA disk drives.  And I wonder -- are those features
>>> supported at all by linux,
> 
>    FUA is surely supported by libata.

Yeah, all the code is there but it is disabled by default.  The problem
is that some controllers can't handle FUA opcodes properly (sata_sil or
sil24 was one of them, I think) and we need to white or black list
controllers which never happened.

>>> and whenever it can be used to support DPO and/or FUA...
> 
>>    DPO and FUA bits are a part of SCSI CDB and so only affect the
>> block range specified by the command in question while FLUSH CACHE
>> [EXT] operates on the whole cache -- so, it's not equivalent.
> 
>    And yet I didn't name the reason of the non-equivalency for DPO: this
> bit effectively prohibits drive cache replacement to occur as a result
> of a command in question -- this simply has nothing to do with flushing.

DPO doesn't really affect the meaning of the operation.  FUA saves one
command during barrier sequence.  Not a bit gain but might still be useful.

FUA being pretty new on ATA land, I'm worried about firmwares which have
screwed up the implementation and doesn't really do FUA when instructed
to, which contributed to FUA support being left disabled.

-- 
tejun

      reply	other threads:[~2007-07-03  7:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-21 13:30 SATA: Is "DPO and FUA" ever supported? Michael Tokarev
2007-06-22 14:15 ` Sergei Shtylyov
2007-06-22 14:57   ` Sergei Shtylyov
2007-07-03  7:10     ` Tejun Heo [this message]

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=4689F657.1010106@gmail.com \
    --to=htejun@gmail.com \
    --cc=linux-ide@vger.kernel.org \
    --cc=mjt@tls.msk.ru \
    --cc=sshtylyov@ru.mvista.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).