Bug 1164945

Summary: UAS driver crashes system with Seagate USB 3.0 drive and Fresco Logic FL1000G controller
Product: [Fedora] Fedora Reporter: Marcin Zajaczkowski <mszpak>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 21CC: gansalmon, hdegoede, itamar, jonathan, jwboyer, kernel-maint, madhu.chinakonda, mchehab
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: kernel-3.17.7-300.fc21 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-12-21 06:36:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
System log
none
3 patches adding uas / xhci quirks resolving this bug none

Description Marcin Zajaczkowski 2014-11-17 22:39:40 UTC
Created attachment 958375 [details]
System log

Description of problem:
USB 3.0 drive (Seagate Backup+ 1TB) stopped working when plugged into USB 3.0 port after upgrade to Fedora 21 Beta RC2 (3.17.2-300.fc21.x86_64?) and still apply with 3.17.3-300.fc21.x86_64.

kernel: xhci_hcd 0000:04:00.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
kernel: xhci_hcd 0000:04:00.0: @0000000241eec570 11979000 00000002 05000000 01078001

What is more after plug in a drive second time system crashes:

kernel: kernel BUG at block/blk-core.c:2565!
-- Reboot --

Full log as an attachment.

Version-Release number of selected component (if applicable):
kernel-3.17.3-300.fc21.x86_64

How reproducible:
Always

Steps to Reproduce (disk does not work):
1. Insert USB 3.0 drive into USB 3.0 port

Actual results:
A led on a drive is off. Errors in a system log.

Expected results:
A drive is enabled and partitions can be mounted.


Steps to Reproduce (system crash):
1. Insert USB 3.0 drive into USB 3.0 port (doesn't work)
2. Remove USB 3.0 drive/plug
3. Insert USB 3.0 drive into USB 3.0 port (crashes)

Actual results:
System crashes. Even Caps lock led doesn't work.

Expected results:
A drive is enabled and partitions can be mounted.


Additional info:
With the same computer everything worked fine on Fedora 19.
The same disk works fine (only slower) when connected through USB 2.0 port.

Comment 1 Marcin Zajaczkowski 2014-11-17 22:42:51 UTC
Asus N43SN.

$ lspci | grep USB
00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 05)
00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 05)
04:00.0 USB controller: Fresco Logic FL1000G USB 3.0 Host Controller (rev 04)

Comment 2 Marcin Zajaczkowski 2014-12-05 22:02:56 UTC
After discussion on the linux-usb mailing list [1] it seems there are problems with both Seagate Backup+ drive and Fresco Logic FL1000G controller when UAS driver is used.

As a workaround:
> options usb-storage quirks=vendorId:productId:u

can be added to (for example) /etc/modprobe.d/ignore_uas.conf to make the drive work again with USB 3.0 port.

Hans de Goede sent patches to disable UAS for them upstream.

[1] - http://thread.gmane.org/gmane.linux.usb.general/119107

Comment 3 Hans de Goede 2014-12-08 09:40:18 UTC
Hi all,

I'm about to attach the 2 quirk patches I've send upstream for this + a 3th quirk for another model uas enclosure while we're at it.

Josh all 3 patches have been sent upstream, can you add them to the Fedora kernels until they trickle down through upstream please ?

Thanks & Regards,

Hans

Comment 4 Hans de Goede 2014-12-08 09:41:41 UTC
Created attachment 965733 [details]
3 patches adding uas / xhci quirks resolving this bug

Comment 5 Josh Boyer 2014-12-10 19:14:03 UTC
(In reply to Hans de Goede from comment #3)
> Hi all,
> 
> I'm about to attach the 2 quirk patches I've send upstream for this + a 3th
> quirk for another model uas enclosure while we're at it.
> 
> Josh all 3 patches have been sent upstream, can you add them to the Fedora
> kernels until they trickle down through upstream please ?

Applied!  Thanks much.

Comment 6 Fedora Update System 2014-12-17 19:02:01 UTC
kernel-3.17.7-300.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/kernel-3.17.7-300.fc21

Comment 7 Fedora Update System 2014-12-17 19:03:56 UTC
kernel-3.17.7-200.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/kernel-3.17.7-200.fc20

Comment 8 Fedora Update System 2014-12-19 18:31:24 UTC
Package kernel-3.17.7-200.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing kernel-3.17.7-200.fc20'
as soon as you are able to, then reboot.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-17283/kernel-3.17.7-200.fc20
then log in and leave karma (feedback).

Comment 9 Fedora Update System 2014-12-21 06:36:18 UTC
kernel-3.17.7-200.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2014-12-22 02:32:32 UTC
kernel-3.17.7-300.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.