From: Niklas Cassel <Niklas.Cassel@wdc.com>
To: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Cc: Hannes Reinecke <hare@suse.de>,
"Maciej S. Szmigiero" <mail@maciej.szmigiero.name>,
"linux-ide@vger.kernel.org" <linux-ide@vger.kernel.org>,
Sergey Shtylyov <s.shtylyov@omp.ru>
Subject: Re: [PATCH v2 0/3] Improve libata support for FUA
Date: Tue, 25 Oct 2022 09:41:16 +0000 [thread overview]
Message-ID: <Y1evOwYFOIi/r1/y@x1-carbon> (raw)
In-Reply-To: <26def87e-6e44-17ae-f928-030c837c9dbe@opensource.wdc.com>
On Tue, Oct 25, 2022 at 05:59:07PM +0900, Damien Le Moal wrote:
> > Sure, that would be the way I would be going.
> > If the drive supports NCQ we should always be using the FPDMA variants,
> > irrespective of the queue depth.
> > Additionally we _might_ make FUA dependent on NCQ, and disallow FUA for
> > non-NCQ drives.
> > (Where it's questionable anyway; if you only have a single command
> > outstanding the pressure on any internal cache is far less as with NCQ.)
>
> Yes, that is my thinking too. Will try this and see how it looks.
When there are too many NCQ errors, flag ATA_DFLAG_NCQ_OFF will get set
(but queue depth will be left unchanged).
Currently, one way to re-enable NCQ is to change queue_depth to 1 in
sysfs, and then set it back to 32.
It would be nice if this method, or some other method to re-enable NCQ
after encountering too many NCQ errors, would still be available after
your suggested changes.
And if we change to always use NCQ commands regardless of queue depth
(for devices supporting it), because it provides us with additional
fields not available in the non-NCQ versions...
then I think that we should also consider always using WRITE DMA EXT
(on devices supporting 48-bit addresses), when NCQ is not supported
(or disabled because of too many errors), since it also has additional
fields not available in the regular WRITE DMA command (especially
considering that they should have the exact same performance).
Kind regards,
Niklas
next prev parent reply other threads:[~2022-10-25 9:41 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-24 7:26 [PATCH v2 0/3] Improve libata support for FUA Damien Le Moal
2022-10-24 7:26 ` [PATCH v2 1/3] ata: libata: cleanup fua handling Damien Le Moal
2022-10-24 7:26 ` [PATCH v2 2/3] ata: libata: blacklist FUA support for known buggy drives Damien Le Moal
2022-10-24 7:52 ` Hannes Reinecke
2022-10-24 7:26 ` [PATCH v2 3/3] ata: libata: Enable fua support by default Damien Le Moal
2022-10-24 10:16 ` Sergey Shtylyov
2022-10-24 11:15 ` Damien Le Moal
2022-10-24 18:48 ` [PATCH v2 0/3] Improve libata support for FUA Maciej S. Szmigiero
2022-10-24 22:09 ` Damien Le Moal
2022-10-24 23:26 ` Damien Le Moal
2022-10-25 0:22 ` Damien Le Moal
2022-10-25 7:05 ` Hannes Reinecke
2022-10-25 8:59 ` Damien Le Moal
2022-10-25 9:41 ` Niklas Cassel [this message]
2022-10-25 18:13 ` Maciej S. Szmigiero
2022-10-25 23:21 ` Damien Le Moal
2022-10-25 9:01 ` Niklas Cassel
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=Y1evOwYFOIi/r1/y@x1-carbon \
--to=niklas.cassel@wdc.com \
--cc=damien.lemoal@opensource.wdc.com \
--cc=hare@suse.de \
--cc=linux-ide@vger.kernel.org \
--cc=mail@maciej.szmigiero.name \
--cc=s.shtylyov@omp.ru \
/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