lkml.org 
[lkml]   [2015]   [Jul]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.1 092/267] libata: force disable trim for SuperSSpeed S238
    Date
    4.1-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Arne Fitzenreiter <arne_f@ipfire.org>

    commit cda57b1b05cf7b8b99ab4b732bea0b05b6c015cc upstream.

    This device loses blocks, often the partition table area, on trim.
    Disable TRIM.
    http://pcengines.ch/msata16a.htm

    Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
    Signed-off-by: Tejun Heo <tj@kernel.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    drivers/ata/libata-core.c | 3 +++
    1 file changed, 3 insertions(+)

    --- a/drivers/ata/libata-core.c
    +++ b/drivers/ata/libata-core.c
    @@ -4249,6 +4249,9 @@ static const struct ata_blacklist_entry
    { "Samsung SSD 8*", NULL, ATA_HORKAGE_NO_NCQ_TRIM |
    ATA_HORKAGE_ZERO_AFTER_TRIM, },

    + /* devices that don't properly handle TRIM commands */
    + { "SuperSSpeed S238*", NULL, ATA_HORKAGE_NOTRIM, },
    +
    /*
    * As defined, the DRAT (Deterministic Read After Trim) and RZAT
    * (Return Zero After Trim) flags in the ATA Command Set are



    \
     
     \ /
      Last update: 2015-08-01 00:01    [W:2.807 / U:0.256 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site