[linux] 01/01: libata: LITE-ON CX1-JB256-HP needs lower max_sectors

debian-kernel at lists.debian.org debian-kernel at lists.debian.org
Fri Aug 5 13:42:41 UTC 2016


This is an automated email from the git hooks/post-receive script.

carnil pushed a commit to branch sid
in repository linux.

commit c0e269c0cd8a15f4610a3fb56558b5b82940a3ee
Author: Salvatore Bonaccorso <carnil at debian.org>
Date:   Fri Aug 5 15:39:22 2016 +0200

    libata: LITE-ON CX1-JB256-HP needs lower max_sectors
    
    Closes: #830971
---
 debian/changelog                                   |  1 +
 ...E-ON-CX1-JB256-HP-needs-lower-max_sectors.patch | 35 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 3 files changed, 37 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index eca0796..cf7aafa 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -212,6 +212,7 @@ linux (4.6.5-1) UNRELEASED; urgency=medium
 
   [ Salvatore Bonaccorso ]
   * vfs: ioctl: prevent double-fetch in dedupe ioctl (CVE-2016-6516)
+  * libata: LITE-ON CX1-JB256-HP needs lower max_sectors (Closes: #830971)
 
  -- Ben Hutchings <ben at decadent.org.uk>  Sat, 30 Jul 2016 14:23:58 +0100
 
diff --git a/debian/patches/bugfix/all/libata-LITE-ON-CX1-JB256-HP-needs-lower-max_sectors.patch b/debian/patches/bugfix/all/libata-LITE-ON-CX1-JB256-HP-needs-lower-max_sectors.patch
new file mode 100644
index 0000000..6fd9ca1
--- /dev/null
+++ b/debian/patches/bugfix/all/libata-LITE-ON-CX1-JB256-HP-needs-lower-max_sectors.patch
@@ -0,0 +1,35 @@
+From: Tejun Heo <tj at kernel.org>
+Date: Mon, 18 Jul 2016 18:40:00 -0400
+Subject: libata: LITE-ON CX1-JB256-HP needs lower max_sectors
+Origin: https://git.kernel.org/linus/1488a1e3828d60d74c9b802a05e24c0487babe4e
+
+Since 34b48db66e08 ("block: remove artifical max_hw_sectors cap"),
+max_sectors is no longer limited to BLK_DEF_MAX_SECTORS and LITE-ON
+CX1-JB256-HP keeps timing out with higher max_sectors.  Revert it to
+the previous value.
+
+Signed-off-by: Tejun Heo <tj at kernel.org>
+Reported-by: dgerasimov at gmail.com
+Link: https://bugzilla.kernel.org/show_bug.cgi?id=121671
+Cc: stable at vger.kernel.org # v3.19+
+Fixes: 34b48db66e08 ("block: remove artifical max_hw_sectors cap")
+Signed-off-by: Tejun Heo <tj at kernel.org>
+---
+ drivers/ata/libata-core.c | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+--- a/drivers/ata/libata-core.c
++++ b/drivers/ata/libata-core.c
+@@ -4141,6 +4141,12 @@ static const struct ata_blacklist_entry
+ 	 */
+ 	{ "ST380013AS",		"3.20",		ATA_HORKAGE_MAX_SEC_1024 },
+ 
++	/*
++	 * Device times out with higher max sects.
++	 * https://bugzilla.kernel.org/show_bug.cgi?id=121671
++	 */
++	{ "LITEON CX1-JB256-HP", NULL,		ATA_HORKAGE_MAX_SEC_1024 },
++
+ 	/* Devices we expect to fail diagnostics */
+ 
+ 	/* Devices where NCQ should be avoided */
diff --git a/debian/patches/series b/debian/patches/series
index 17ae971..2cf5f05 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -66,6 +66,7 @@ bugfix/all/rtsx_usb_ms-use-msleep_interruptible-in-polling-loop.patch
 bugfix/all/fs-add-module_softdep-declarations-for-hard-coded-cr.patch
 bugfix/all/module-invalidate-signatures-on-force-loaded-modules.patch
 bugfix/all/videobuf2-core-fix-crash-after-fixing-cve-2016-4568.patch
+bugfix/all/libata-LITE-ON-CX1-JB256-HP-needs-lower-max_sectors.patch
 
 # Miscellaneous features
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/kernel/linux.git



More information about the Kernel-svn-changes mailing list