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
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=DRIVER_ERROR
[ 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=DRIVER_ERROR
[ 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=DRIVER_ERROR
[ 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?
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:/ /github. com/torvalds/ linux/commit/ 1a6dd3fea131276 a4fc44ae77b0f47 1b0b473577
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 DRIVER_ ERROR DRIVER_ ERROR DRIVER_ ERROR
[ 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?