4.18 regression: I/O error on external icybox disk enclosures
Subsystems (2)
Hello,
Quoted 21 lines · Alan Stern
Quoted 19 lines · Klaus Kusche
Hello,
Quoted 4 lines · Alan Stern
However, the USB layer does set certain quirk bits which can cause those other parts to avoid sending certain commands. Perhaps your controller needs the
BROKEN_FUAflag (see the existing entries indrivers/usb/storage/unusual_devs.hwith that flag).The following seems to fix the problem (I don't know if I did it right):
unusual_uas.h 2018-09-09 10:32:30.491381466 +0200 renamed from unusual_uas.h.orig 2018-09-09 10:31:20.440751625 +0200 +1
-1@@ -95,7 +95,7 @@ "JMicron", "JMS566", USB_SC_DEVICE, USB_PR_DEVICE, NULL, - US_FL_NO_REPORT_OPCODES | US_FL_IGNORE_UAS), + US_FL_NO_REPORT_OPCODES | US_FL_IGNORE_UAS | US_FL_BROKEN_FUA),
Quoted 6 lines
unusual_uas.h 2018-09-09 10:32:30.491381466 +0200 line 101
Quoted 2 lines
unusual_uas.h 2018-09-09 10:32:30.491381466 +0200 renamed from unusual_uas.h.orig 2018-09-09 10:31:20.440751625 +0200 +0
-0/* Reported-by: Hans de Goede <[email protected]> */ UNUSUAL_DEV(0x4971, 0x1012, 0x0000, 0x9999,Okay. You should submit this in the proper format for inclusion in the kernel. Follow the instructions in
Documentation/process/submitting-patches.rst.
Sorry for the long delay, I was not able to spare some time earlier (winter semester has started...).
I just wanted to submit the patch as advised above, but noticed that it does not apply to the current usb git tree:
Both the usb tree and linus's tree do not have US_FL_IGNORE_UAS set for device JMS566 (357d:7788).
So I checked where my version came from and found a patch which gentoo applies to all its kernels, but which is not mainline:
So is my patch still relevant or is it obsolete?
Shall I add only US_FL_BROKEN_FUA even without US_FL_IGNORE_UAS, or shall I add both flags?
(I noticed that US_FL_BROKEN_FUA without US_FL_IGNORE_UAS is set for two entries for "JMS567").
drivers/usb/storage/unusual_uas.h +5 -2
@@ -141,12 +141,15 @@ UNUSUAL_DEV(0x2109, 0x0711, 0x0000, 0x9999, USB_SC_DEVICE, USB_PR_DEVICE, NULL, US_FL_NO_ATA_1X), -/* Reported-by: Takeo Nakayama <[email protected]> */ +/* +* Initially Reported-by: Takeo Nakayama <[email protected]> +* UAS Ignore Reported by Steven Ellis <[email protected]> +*/ UNUSUAL_DEV (0x357d ,0x7788 ,0x0000 ,0x9999 ,"JMicron" ,"JMS566" ,USB_SC_DEVICE ,USB_PR_DEVICE ,NULL , -US_FL_NO_REPORT_OPCODES ), +US_FL_NO_REPORT_OPCODES |US_FL_IGNORE_UAS ),/* Reported-by: Hans de Goede <[email protected]> */ UNUSUAL_DEV(0x4971, 0x1012, 0x0000, 0x9999,