From: Hannes Reinecke <hare@suse.de>
To: "Martin K. Petersen" <martin.petersen@oracle.com>, tj@kernel.org
Cc: linux-ide@vger.kernel.org
Subject: Re: [PATCH 1/4] libata: Allow NCQ TRIM to be enabled or disabled with a module parameter
Date: Tue, 05 May 2015 07:51:40 +0200 [thread overview]
Message-ID: <55485A6C.6040800@suse.de> (raw)
In-Reply-To: <1430790861-30066-1-git-send-email-martin.petersen@oracle.com>
On 05/05/2015 03:54 AM, Martin K. Petersen wrote:
> We have started seeing SSD firmware updates introduce support for queued
> TRIM. Sadly, in most cases this support is completely untested and can
> lead to either errors or data corruption.
>
> Add two libata force flags that can be used to either enable or disable
> queued TRIM support.
>
> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
> ---
> Documentation/kernel-parameters.txt | 2 ++
> drivers/ata/libata-core.c | 2 ++
> 2 files changed, 4 insertions(+)
>
> diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt
> index 61ab1628a057..a2e4891a714f 100644
> --- a/Documentation/kernel-parameters.txt
> +++ b/Documentation/kernel-parameters.txt
> @@ -1774,6 +1774,8 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
>
> * [no]ncq: Turn on or off NCQ.
>
> + * [no]ncqtrim: Turn off queued DSM TRIM.
> +
> * nohrst, nosrst, norst: suppress hard, soft
> and both resets.
>
> diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
> index 4476fb590733..9cebd7872ac6 100644
> --- a/drivers/ata/libata-core.c
> +++ b/drivers/ata/libata-core.c
> @@ -6472,6 +6472,8 @@ static int __init ata_parse_force_one(char **cur,
> { "3.0Gbps", .spd_limit = 2 },
> { "noncq", .horkage_on = ATA_HORKAGE_NONCQ },
> { "ncq", .horkage_off = ATA_HORKAGE_NONCQ },
> + { "noncqtrim", .horkage_on = ATA_HORKAGE_NO_NCQ_TRIM },
> + { "ncqtrim", .horkage_off = ATA_HORKAGE_NO_NCQ_TRIM },
> { "dump_id", .horkage_on = ATA_HORKAGE_DUMP_ID },
> { "pio0", .xfer_mask = 1 << (ATA_SHIFT_PIO + 0) },
> { "pio1", .xfer_mask = 1 << (ATA_SHIFT_PIO + 1) },
>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Cheers,
Hannes
--
Dr. Hannes Reinecke zSeries & Storage
hare@suse.de +49 911 74053 688
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton
HRB 21284 (AG Nürnberg)
next prev parent reply other threads:[~2015-05-05 5:51 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-05 1:54 [PATCH 1/4] libata: Allow NCQ TRIM to be enabled or disabled with a module parameter Martin K. Petersen
2015-05-05 1:54 ` [PATCH 2/4] libata: Expose TRIM capability in sysfs Martin K. Petersen
2015-05-05 5:54 ` Hannes Reinecke
2015-05-05 17:50 ` Christoph Hellwig
2015-05-05 21:54 ` Martin K. Petersen
2015-05-05 1:54 ` [PATCH 3/4] libata: READ LOG DMA EXT support can be in either page 119 or 120 Martin K. Petersen
2015-05-05 6:00 ` Hannes Reinecke
2015-05-05 1:54 ` [PATCH 4/4] libata: Fall back to unqueued READ LOG EXT if the DMA variant fails Martin K. Petersen
2015-05-05 6:00 ` Hannes Reinecke
2015-06-12 19:58 ` David Milburn
2015-06-14 23:45 ` Martin K. Petersen
2015-06-15 15:24 ` David Milburn
2015-06-16 16:43 ` Martin K. Petersen
2015-05-05 5:51 ` Hannes Reinecke [this message]
2015-05-05 13:31 ` [PATCH 1/4] libata: Allow NCQ TRIM to be enabled or disabled with a module parameter Tejun Heo
2015-05-05 14:07 ` Hannes Reinecke
2015-05-05 21:57 ` Martin K. Petersen
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=55485A6C.6040800@suse.de \
--to=hare@suse.de \
--cc=linux-ide@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=tj@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.