public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2/2] mtip32xx: mtip32xx: Disable TRIM support
@ 2013-04-12 18:28 Asai Thambi S P
  2013-04-14  8:25 ` Jens Axboe
  0 siblings, 1 reply; 4+ messages in thread
From: Asai Thambi S P @ 2013-04-12 18:28 UTC (permalink / raw)
  To: Jens Axboe; +Cc: linux-kernel@vger.kernel.org, Sam Bradshaw


Temporarily disabling TRIM support until TRIM related issues
are addressed in the firmware.

Signed-off-by: Asai Thambi S P <asamymuthupa@micron.com>
---
 drivers/block/mtip32xx/mtip32xx.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/block/mtip32xx/mtip32xx.c b/drivers/block/mtip32xx/mtip32xx.c
index d11ea92..53bad62 100644
--- a/drivers/block/mtip32xx/mtip32xx.c
+++ b/drivers/block/mtip32xx/mtip32xx.c
@@ -1560,10 +1560,12 @@ static int mtip_get_identify(struct mtip_port *port, void __user *user_buffer)
 	}
 #endif
 
+#ifdef MTIP_TRIM /* Disabling TRIM support temporarily */
 	/* Demux ID.DRAT & ID.RZAT to determine trim support */
 	if (port->identify[69] & (1 << 14) && port->identify[69] & (1 << 5))
 		port->dd->trim_supp = true;
 	else
+#endif
 		port->dd->trim_supp = false;
 
 	/* Set the identify buffer as valid. */
-- 
1.7.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 2/2] mtip32xx: mtip32xx: Disable TRIM support
  2013-04-12 18:28 [PATCH 2/2] mtip32xx: mtip32xx: Disable TRIM support Asai Thambi S P
@ 2013-04-14  8:25 ` Jens Axboe
  2013-04-15 16:41   ` Sam Bradshaw (sbradshaw)
  2013-04-15 19:05   ` Asai Thambi S P
  0 siblings, 2 replies; 4+ messages in thread
From: Jens Axboe @ 2013-04-14  8:25 UTC (permalink / raw)
  To: Asai Thambi S P; +Cc: linux-kernel@vger.kernel.org, Sam Bradshaw

On Fri, Apr 12 2013, Asai Thambi S P wrote:
> 
> Temporarily disabling TRIM support until TRIM related issues
> are addressed in the firmware.

How serious is this? We do have released kernels out there with the
driver, you might want to consider a stable backport too.

Anyway, applied for 3.10.

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: [PATCH 2/2] mtip32xx: mtip32xx: Disable TRIM support
  2013-04-14  8:25 ` Jens Axboe
@ 2013-04-15 16:41   ` Sam Bradshaw (sbradshaw)
  2013-04-15 19:05   ` Asai Thambi S P
  1 sibling, 0 replies; 4+ messages in thread
From: Sam Bradshaw (sbradshaw) @ 2013-04-15 16:41 UTC (permalink / raw)
  To: Jens Axboe
  Cc: linux-kernel@vger.kernel.org,
	Asai Thambi Samymuthu Pattrayasamy (asamymuthupa) [CONT - Type 2]


> On Fri, Apr 12 2013, Asai Thambi S P wrote:
> >
> > Temporarily disabling TRIM support until TRIM related issues
> > are addressed in the firmware.
> 
> How serious is this? We do have released kernels out there with the
> driver, you might want to consider a stable backport too.

It's a performance issue, not data integrity.  Since the ATA trim command
is non-queueable, IO traffic must halt while the trim is outstanding.  A 
filesystem that is actively trimming sectors is effectively duty cycling 
the IO path on this part.  We are working to shrink the trim command 
latency while also investigating whether some sort of offline trim is more
appropriate.

Given the incremental endurance gain for trim on 34nm SLC vs the severe 
throughput degradation under some workloads, it seemed prudent to disable
the feature.

If you think that warrants a stable backport, just let me or Asai know.

-Sam



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 2/2] mtip32xx: mtip32xx: Disable TRIM support
  2013-04-14  8:25 ` Jens Axboe
  2013-04-15 16:41   ` Sam Bradshaw (sbradshaw)
@ 2013-04-15 19:05   ` Asai Thambi S P
  1 sibling, 0 replies; 4+ messages in thread
From: Asai Thambi S P @ 2013-04-15 19:05 UTC (permalink / raw)
  To: Jens Axboe; +Cc: linux-kernel@vger.kernel.org, Sam Bradshaw

On 4/14/2013 1:55 PM, Jens Axboe wrote:

> On Fri, Apr 12 2013, Asai Thambi S P wrote:
>>
>> Temporarily disabling TRIM support until TRIM related issues
>> are addressed in the firmware.
> 
> How serious is this? We do have released kernels out there with the
> driver, you might want to consider a stable backport too.
> 
> Anyway, applied for 3.10.
> 

Added TRIM support in 3.9 merge window. If this trivial change could be
pushed, it would be good. Otherwise, I can backport to stable 3.9 when released.

--
regards,
asai

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-04-15 19:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-12 18:28 [PATCH 2/2] mtip32xx: mtip32xx: Disable TRIM support Asai Thambi S P
2013-04-14  8:25 ` Jens Axboe
2013-04-15 16:41   ` Sam Bradshaw (sbradshaw)
2013-04-15 19:05   ` Asai Thambi S P

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox