New ID in ums-realtek module breaks cardreader
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Medium
|
Unassigned | ||
Disco |
Fix Released
|
Medium
|
Unassigned | ||
Eoan |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
=== SRU Justification ===
[Impact]
Some ums-realtek card readers may dropped from USB bus after using
ums-realtek driver instead of usb-storage generic driver.
[Fix]
Disable auto-delink on new ums-realtek devices, only whitelist three
oldest IDs.
[Test]
Affected user and myself confirmed disabling auto-delink works.
[Regression Potential]
Minimal. Limited to one specific driver and this also restore the old
behavior.
=== Original Bug Report ===
When installing the latest HWE stack (Linux 5.0) to Ubuntu 18.04, the Realtek cardreader in my ZOTAC ZBOX-CI323NANO stops working correctly.
Previously it accepted SD cards all the time. Now it looks like you have to insert the card on booting or shortly after booting to access it. If you wait longer, it no longer detects the card. The reason for this can be found in the kernel log (dmes). On boot it seems to detect a card in the reader, although there is none. After a while it says "Read capacity failed" and "scsi 2:0:0:0: rejecting I/O to dead device" and then resets the device. It tries this 3 times and then gives up completely. After that any real device plugged is no longer detected.
The device is: idVendor=0bda, idProduct=0153, bcdDevice=57.13
Support for this was added in mainline kernel: https:/
And this seems to be backported to 5.0 kernel in Ubuntu 18.04 HWE stack.
Full log on boot (no card inserted):
[ 3.689559] usb 1-5.1: new high-speed USB device number 4 using xhci_hcd
[ 3.898312] usb 1-5.1: New USB device found, idVendor=0bda, idProduct=0153, bcdDevice=57.13
[ 3.898316] usb 1-5.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 3.898319] usb 1-5.1: Product: USB2.0-CRW
[ 3.898322] usb 1-5.1: Manufacturer: Generic
[ 3.898324] usb 1-5.1: SerialNumber: 20120926571200000
[ 3.911571] usbcore: registered new interface driver usb-storage
[ 3.914796] usbcore: registered new interface driver uas
[ 3.917676] ums-realtek 1-5.1:1.0: USB Mass Storage device detected
[ 3.924478] scsi host2: usb-storage 1-5.1:1.0
[ 3.924649] usbcore: registered new interface driver ums-realtek
[...]
[ 13.477360] ums-realtek 1-5.1:1.0: USB Mass Storage device detected
[ 13.509592] scsi host2: usb-storage 1-5.1:1.0
[ 14.544213] scsi 2:0:0:0: Direct-Access Generic- SD/MMC/MS PRO 1.00 PQ: 0 ANSI: 4
[ 14.545237] sd 2:0:0:0: Attached scsi generic sg1 type 0
[ 14.549430] sd 2:0:0:0: [sdb] Attached SCSI removable disk
[ 170.961728] scsi 2:0:0:0: rejecting I/O to dead device
[ 170.962069] scsi 2:0:0:0: [sdb] Read Capacity(10) failed: Result: hostbyte=DID_OK driverbyte=
[ 170.962073] scsi 2:0:0:0: [sdb] Sense not available.
[ 171.985846] usb 1-5.1: new high-speed USB device number 8 using xhci_hcd
[ 172.194299] usb 1-5.1: New USB device found, idVendor=0bda, idProduct=0153, bcdDevice=57.13
[ 172.194317] usb 1-5.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 172.194327] usb 1-5.1: Product: USB2.0-CRW
[ 172.194338] usb 1-5.1: Manufacturer: Generic
[ 172.194346] usb 1-5.1: SerialNumber: 20120926571200000
[ 172.200625] ums-realtek 1-5.1:1.0: USB Mass Storage device detected
[ 172.212503] scsi host2: usb-storage 1-5.1:1.0
[ 173.233036] scsi 2:0:0:0: Direct-Access Generic- SD/MMC/MS PRO 1.00 PQ: 0 ANSI: 4
[ 173.233796] sd 2:0:0:0: Attached scsi generic sg1 type 0
[ 173.239620] sd 2:0:0:0: [sdb] Attached SCSI removable disk
[ 329.654468] usb 1-5.1: USB disconnect, device number 8
[ 329.665905] scsi 2:0:0:0: rejecting I/O to dead device
[ 329.665970] scsi 2:0:0:0: [sdb] Read Capacity(10) failed: Result: hostbyte=DID_OK driverbyte=
[ 329.665976] scsi 2:0:0:0: [sdb] Sense not available.
[ 330.701685] usb 1-5.1: new high-speed USB device number 9 using xhci_hcd
[ 330.910415] usb 1-5.1: New USB device found, idVendor=0bda, idProduct=0153, bcdDevice=57.13
[ 330.910433] usb 1-5.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 330.910444] usb 1-5.1: Product: USB2.0-CRW
[ 330.910455] usb 1-5.1: Manufacturer: Generic
[ 330.910463] usb 1-5.1: SerialNumber: 20120926571200000
[ 330.917013] ums-realtek 1-5.1:1.0: USB Mass Storage device detected
[ 330.932295] scsi host2: usb-storage 1-5.1:1.0
[ 331.952829] scsi 2:0:0:0: Direct-Access Generic- SD/MMC/MS PRO 1.00 PQ: 0 ANSI: 4
[ 331.953686] sd 2:0:0:0: Attached scsi generic sg1 type 0
[ 331.960126] sd 2:0:0:0: [sdb] Attached SCSI removable disk
[ 488.343981] usb 1-5.1: USB disconnect, device number 9
[ 488.354292] scsi 2:0:0:0: rejecting I/O to dead device
[ 488.356453] scsi 2:0:0:0: [sdb] Read Capacity(10) failed: Result: hostbyte=DID_OK driverbyte=
[ 488.356458] scsi 2:0:0:0: [sdb] Sense not available.
After time 488, any SD card inserted is no longer detected, because driver gave up.
Please revert adding the device with idVendor=0bda, idProduct=0153 to ums-realtek and let it be handled by default driver and please also report this bug upstream.
After this change it's unfortunately no longet possible to force the kernel to use the default driver, or is there a module option?
---
ProblemType: Bug
AlsaVersion: Advanced Linux Sound Architecture Driver Version k5.0.0-23-generic.
AplayDevices: Error: [Errno 2] No such file or directory: 'aplay': 'aplay'
ApportVersion: 2.20.9-0ubuntu7.7
Architecture: amd64
ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord': 'arecord'
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/by-path', '/dev/snd/
Card0.Amixer.info: Error: [Errno 2] No such file or directory: 'amixer': 'amixer'
Card0.Amixer.
DistroRelease: Ubuntu 18.04
InstallationDate: Installed on 2017-09-12 (690 days ago)
InstallationMedia: Ubuntu-Server 16.04.3 LTS "Xenial Xerus" - Release amd64 (20170801)
Lsusb:
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 006: ID 0bda:2838 Realtek Semiconductor Corp. RTL2838 DVB-T
Bus 001 Device 005: ID 8087:0a2a Intel Corp.
Bus 001 Device 003: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
MachineType: ZOTAC ZBOX-CI323NANO
Package: linux (not installed)
ProcEnviron:
TERM=cygwin
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=
ProcVersionSign
RelatedPackageV
linux-
linux-
linux-firmware 1.173.9
RfKill: Error: [Errno 2] No such file or directory: 'rfkill': 'rfkill'
Tags: bionic
Uname: Linux 5.0.0-23-generic x86_64
UpgradeStatus: Upgraded to bionic on 2018-08-15 (353 days ago)
UserGroups:
_MarkForUpload: True
dmi.bios.date: 03/07/2017
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: B301P021
dmi.board.
dmi.board.name: ZBOX-CI323NANO
dmi.board.vendor: ZOTAC
dmi.board.version: XX
dmi.chassis.
dmi.chassis.type: 2
dmi.chassis.vendor: Default string
dmi.chassis.
dmi.modalias: dmi:bvnAmerican
dmi.product.family: N/A
dmi.product.name: ZBOX-CI323NANO
dmi.product.sku: N/A
dmi.product.
dmi.sys.vendor: ZOTAC
CVE References
description: | updated |
Changed in linux (Ubuntu Eoan): | |
assignee: | Kai-Heng Feng (kaihengfeng) → nobody |
Changed in linux (Ubuntu Bionic): | |
importance: | Undecided → Medium |
Changed in linux (Ubuntu Disco): | |
importance: | Undecided → Medium |
tags: |
added: verification-done-xenial removed: verification-needed-xenial |
This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:
apport-collect 1838886
and then change the status of the bug to 'Confirmed'.
If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.
This change has been made by an automated script, maintained by the Ubuntu Kernel Team.