Bug 152075 - [usb8] [ehci] [request] Add quirk for CS5536 USB
Summary: [usb8] [ehci] [request] Add quirk for CS5536 USB
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: usb (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: Oleksandr Tymoshenko
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-09 12:50 UTC by amsibamsi
Modified: 2019-01-20 20:32 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description amsibamsi 2010-11-09 12:50:05 UTC
The USB chip included in CS5536 needs hw.usb.ehci.lostintrbug set to 1
in sysctl. Otherwise it will run into timeouts e.g. on disk I/O and abort
with failed I/O operations. The corresponding conversation is on the FreeBSD
USB mailing list:

http://lists.freebsd.org/pipermail/freebsd-usb/2010-October/009367.html

Fix: 

The sysctl setting should be set automatically. The bug and the connection
to the sysctl workaround is not easy to find. Maybe someone knows how to
add a quirk to sys/dev/usb/controller/ehci_pci.c. With my limited knowledge
of the code I could not figure out how to properly patch the code.

Thanks.
How-To-Repeat: Connect a USB disk, read the whole disk with dd.
Comment 1 Gavin Atkinson freebsd_committer freebsd_triage 2010-11-20 21:42:33 UTC
Responsible Changed
From-To: freebsd-i386->freebsd-usb

Over to maintainer(s)
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2018-05-28 19:44:26 UTC
batch change:

For bugs that match the following
-  Status Is In progress 
AND
- Untouched since 2018-01-01.
AND
- Affects Base System OR Documentation

DO:

Reset to open status.


Note:
I did a quick pass but if you are getting this email it might be worthwhile to double check to see if this bug ought to be closed.
Comment 3 Oleksandr Tymoshenko freebsd_committer freebsd_triage 2019-01-18 04:39:26 UTC
Sorry this PR was left unattended. Is this bug still valid? Do you have hardware to verify the fix?
Comment 4 Hans Petter Selasky freebsd_committer freebsd_triage 2019-01-18 14:52:27 UTC
ehci0 at pci0:0:15:5:	class=0x0c0320 card=0x20951022 chip=0x20951022
rev=0x02 hdr=0x00
    vendor     = 'Advanced Micro Devices (AMD)'
    device     = 'CS5536 EHCI USB Host Controller (CS5536)'
    class      = serial bus
    subclass   = USB

ehci_pci_match()
        case 0x20951022:
                return ("AMD CS5536 (Geode) USB 2.0 controller");

Please try to reproduce this issue with the latest -stable FreeBSD code.

Thank you!

--HPS
Comment 5 amsibamsi 2019-01-20 09:52:04 UTC
Sorry, don't have the hardware anymore.
Comment 6 Oleksandr Tymoshenko freebsd_committer freebsd_triage 2019-01-20 20:32:23 UTC
Since the issue can't be verified on -stable and there is a good chance it has been fixed over the years I'm closing this bug as "Overcome by Events".

Feel free to re-open if it's reproducible on recent versions of FreeBSD.