From 7fa842ff34f4eeac2d36fef3aff7fa7e2f600a32 Mon Sep 17 00:00:00 2001 From: Josh Boyer Date: Tue, 5 May 2015 09:59:22 -0400 Subject: [PATCH] Backport patch to blacklist TRIM on all Samsung 8xx series SSDs (rhbz 1218662) --- kernel.spec | 9 +++++ ...-queued-TRIM-on-all-Samsung-800-seri.patch | 39 +++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 libata-Blacklist-queued-TRIM-on-all-Samsung-800-seri.patch diff --git a/kernel.spec b/kernel.spec index 8720f0a77..038228e2e 100644 --- a/kernel.spec +++ b/kernel.spec @@ -615,6 +615,9 @@ Patch26176: Input-synaptics-pin-3-touches-when-the-firmware-repo.patch #rhbz 1210857 Patch26192: blk-loop-avoid-too-many-pending-per-work-IO.patch +#rhbz 1218662 +Patch26199: libata-Blacklist-queued-TRIM-on-all-Samsung-800-seri.patch + # END OF PATCH DEFINITIONS %endif @@ -1345,6 +1348,9 @@ ApplyPatch Input-synaptics-pin-3-touches-when-the-firmware-repo.patch #rhbz 1210857 ApplyPatch blk-loop-avoid-too-many-pending-per-work-IO.patch +#rhbz 1218662 +ApplyPatch libata-Blacklist-queued-TRIM-on-all-Samsung-800-seri.patch + # END OF PATCH APPLICATIONS %endif @@ -2195,6 +2201,9 @@ fi # # %changelog +* Tue May 05 2015 Josh Boyer +- Backport patch to blacklist TRIM on all Samsung 8xx series SSDs (rhbz 1218662) + * Mon May 04 2015 Josh Boyer - 4.1.0-0.rc2.git0.1 - Linux v4.1-rc2 - Disable debugging options. diff --git a/libata-Blacklist-queued-TRIM-on-all-Samsung-800-seri.patch b/libata-Blacklist-queued-TRIM-on-all-Samsung-800-seri.patch new file mode 100644 index 000000000..4123f23e0 --- /dev/null +++ b/libata-Blacklist-queued-TRIM-on-all-Samsung-800-seri.patch @@ -0,0 +1,39 @@ +From: "Martin K. Petersen" +Date: Mon, 4 May 2015 12:20:29 -0400 +Subject: [PATCH] libata: Blacklist queued TRIM on all Samsung 800-series +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +The queued TRIM problems appear to be generic to Samsung's firmware and +not tied to a particular model. A recent update to the 840 EVO firmware +introduced the same issue as we saw on 850 Pro. + +Blacklist queued TRIM on all 800-series drives while we work this issue +with Samsung. + +Reported-by: Günter Waller +Reported-by: Sven Köhler +Signed-off-by: Martin K. Petersen +Cc: stable@vger.kernel.org +Signed-off-by: Tejun Heo +--- + drivers/ata/libata-core.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c +index f6cb1f1b30b7..4476fb590733 100644 +--- a/drivers/ata/libata-core.c ++++ b/drivers/ata/libata-core.c +@@ -4235,7 +4235,7 @@ static const struct ata_blacklist_entry ata_device_blacklist [] = { + ATA_HORKAGE_ZERO_AFTER_TRIM, }, + { "Crucial_CT*MX100*", "MU01", ATA_HORKAGE_NO_NCQ_TRIM | + ATA_HORKAGE_ZERO_AFTER_TRIM, }, +- { "Samsung SSD 850 PRO*", NULL, ATA_HORKAGE_NO_NCQ_TRIM | ++ { "Samsung SSD 8*", NULL, ATA_HORKAGE_NO_NCQ_TRIM | + ATA_HORKAGE_ZERO_AFTER_TRIM, }, + + /* +-- +2.3.6 +