From patchwork Wed Jul 15 11:54:37 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arne Fitzenreiter X-Patchwork-Id: 495798 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 0AB4C1400A0 for ; Wed, 15 Jul 2015 21:54:50 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751738AbbGOLys (ORCPT ); Wed, 15 Jul 2015 07:54:48 -0400 Received: from mail01.ipfire.org ([178.63.73.247]:35112 "EHLO mail01.ipfire.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751895AbbGOLyr (ORCPT ); Wed, 15 Jul 2015 07:54:47 -0400 Received: from SuperSSpeed.localdomain (p5B25D3E7.dip0.t-ipconnect.de [91.37.211.231]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id B199D24C5; Wed, 15 Jul 2015 13:54:45 +0200 (CEST) From: Arne Fitzenreiter To: tj@kernel.org Cc: linux-ide@vger.kernel.org, stable@vger.kernel.org, arne_f@ipfire.org Subject: [PATCH 2/2] libata: force disable trim for SuperSSpeed S238 Date: Wed, 15 Jul 2015 13:54:37 +0200 Message-Id: <1436961277-4069-3-git-send-email-arne_f@ipfire.org> X-Mailer: git-send-email 2.4.4 In-Reply-To: <1436961277-4069-1-git-send-email-arne_f@ipfire.org> References: <1436961277-4069-1-git-send-email-arne_f@ipfire.org> Sender: linux-ide-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ide@vger.kernel.org This device loses blocks, often the partition table area, on trim. Disable TRIM. http://pcengines.ch/msata16a.htm Signed-off-by: Arne Fitzenreiter --- drivers/ata/libata-core.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index e83fc3d..d2d3b21 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c @@ -4238,6 +4238,9 @@ static const struct ata_blacklist_entry ata_device_blacklist [] = { { "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