All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marc Carino <marc.ceeeee@gmail.com>
To: linux-ide@vger.kernel.org, tj@kernel.org
Cc: marc.ceeeee@gmail.com, mykola.dvornik@gmail.com
Subject: [PATCH 1/2] libata: add horkage flag to disable issuance of queued TRIM commands
Date: Mon, 16 Dec 2013 18:15:53 -0800	[thread overview]
Message-ID: <1387246554-7311-2-git-send-email-marc.ceeeee@gmail.com> (raw)
In-Reply-To: <1387246554-7311-1-git-send-email-marc.ceeeee@gmail.com>

Certain drives cannot handle queued TRIM commands properly, even though
support is indicated in the IDENTIFY DEVICE buffer. This patch allows
for disabling of the commands for the affected drives.

Signed-off-by: Marc Carino <marc.ceeeee@gmail.com>
---
 include/linux/libata.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/linux/libata.h b/include/linux/libata.h
index 0e23c26..59f8f97 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -418,6 +418,8 @@ enum {
 	ATA_HORKAGE_DUMP_ID	= (1 << 16),	/* dump IDENTIFY data */
 	ATA_HORKAGE_MAX_SEC_LBA48 = (1 << 17),	/* Set max sects to 65535 */
 	ATA_HORKAGE_ATAPI_DMADIR = (1 << 18),	/* device requires dmadir */
+	ATA_HORKAGE_BROKEN_QUEUED_TRIM = (1 << 19), /* device doesn't handle
+						       queued TRIMs correctly */
 
 	 /* DMA mask for user DMA control: User visible values; DO NOT
 	    renumber */
-- 
1.8.1.3


  reply	other threads:[~2013-12-17  2:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-17  2:15 [PATCH 0/2] libata: disable queued trim for Micron M500 SSDs Marc Carino
2013-12-17  2:15 ` Marc Carino [this message]
2013-12-17  2:15 ` [PATCH 2/2] libata: disable queued TRIMs " Marc Carino
2013-12-17 12:06 ` [PATCH] libata: implement ATA_HORKAGE_NO_NCQ_TRIM and apply it to Micro " Tejun Heo

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=1387246554-7311-2-git-send-email-marc.ceeeee@gmail.com \
    --to=marc.ceeeee@gmail.com \
    --cc=linux-ide@vger.kernel.org \
    --cc=mykola.dvornik@gmail.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.