Shaun Tancheff ef2d7392c4 libata: SCT Write Same / DSM Trim
Correct handling of devices with sector_size other that 512 bytes.

In the case of a 4Kn device sector_size it is possible to describe a much
larger DSM Trim than the current fixed default of 512 bytes.

This patch assumes the minimum descriptor is sector_size and fills out
the descriptor accordingly.

The ACS-2 specification is quite clear that the DSM command payload is
sized as number of 512 byte transfers so a 4Kn device will operate
correctly without this patch.

Signed-off-by: Shaun Tancheff <shaun.tancheff@seagate.com>
Acked-by: Tejun Heo <tj@kernel.org>
2016-08-25 11:26:48 -04:00
..
2016-02-19 10:52:46 -05:00
2016-07-27 14:03:52 -07:00
2014-03-11 08:30:53 -04:00
2015-09-10 17:02:04 -04:00
2008-01-23 05:24:15 -05:00
2015-11-30 10:02:49 -05:00
2015-04-16 13:53:32 -05:00
2007-07-02 10:17:42 -04:00