Hi, I can confirm, if I add this parameter to /etc/modprobe.d/realtek.conf:
options ums-realtek auto_delink_en=0 ...and rebuild the initramfs, after a full shutdown with power coord removed, it works correctly - but only initially!!! FYI, just rebooting is not enough and brings crazy error messages about device errors (I think the device state was not sane; you mentioned this before). After reboot, I see the /dev/sdb device with no partitions: root@sirius:~# dd if=/dev/sdb of=/dev/null dd: failed to open '/dev/sdb': No medium found After that, I did some tests and all worked fine: After inserting a SD card, it recognizes the partiontions and I was able to mount: [ 67.620372] sd 2:0:0:0: [sdb] 31116288 512-byte logical blocks: (15.9 GB/14.8 GiB) [ 67.630565] sdb: sdb1 root@sirius:~# mount /dev/sdb1 /mnt root@sirius:~# ls -l /mnt/ total 8 drwxr-xr-x 2 root root 8192 Aug 4 19:22 'System Volume Information' root@sirius:~# umount /mnt After removing the card, the partition /dev/sdb1 disappeared. Reinserting the card directly after removal worked fine: I was able to see the card and do the same tests again. But now the problem: I waited 15 minutes and tried again: After inserting the card, no kernel messages about detected partitions. If I do the "dd" on /dev/sdb it hangs completely. You cannot even kill the dd process from another terminal. Kernel messages: [ 1209.490442] INFO: task kworker/u8:4:305 blocked for more than 120 seconds. [ 1209.490454] Not tainted 5.0.0-23-generic #24~18.04.1-Ubuntu [ 1209.490459] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. [ 1209.490467] kworker/u8:4 D 0 305 2 0x80000000 [ 1209.490502] Workqueue: scsi_tmf_2 scmd_eh_abort_handler [ 1209.490511] Call Trace: [ 1209.490543] __schedule+0x2bd/0x850 [ 1209.490561] schedule+0x2c/0x70 [ 1209.490572] schedule_timeout+0x1db/0x360 [ 1209.490584] ? __switch_to_asm+0x40/0x70 [ 1209.490593] ? __switch_to_asm+0x34/0x70 [ 1209.490602] ? __switch_to_asm+0x40/0x70 [ 1209.490611] ? __switch_to_asm+0x34/0x70 [ 1209.490620] ? __switch_to_asm+0x40/0x70 [ 1209.490629] ? __switch_to_asm+0x34/0x70 [ 1209.490638] ? __switch_to_asm+0x40/0x70 [ 1209.490647] ? __switch_to_asm+0x34/0x70 [ 1209.490658] wait_for_completion+0xba/0x140 [ 1209.490671] ? wake_up_q+0x80/0x80 [ 1209.490700] command_abort+0x60/0xa0 [usb_storage] [ 1209.490712] scmd_eh_abort_handler+0x5e/0x230 [ 1209.490726] process_one_work+0x1fd/0x400 [ 1209.490738] worker_thread+0x34/0x410 [ 1209.490753] kthread+0x121/0x140 [ 1209.490762] ? process_one_work+0x400/0x400 [ 1209.490773] ? kthread_park+0x90/0x90 [ 1209.490784] ret_from_fork+0x35/0x40 -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1838886 Title: New ID in ums-realtek module breaks cardreader Status in linux package in Ubuntu: Confirmed Bug description: 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/1a6dd3fea131276a4fc44ae77b0f471b0b473577 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? --- 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/controlC0', '/dev/snd/hwC0D2', '/dev/snd/hwC0D0', '/dev/snd/pcmC0D8p', '/dev/snd/pcmC0D7p', '/dev/snd/pcmC0D3p', '/dev/snd/pcmC0D1p', '/dev/snd/pcmC0D0c', '/dev/snd/pcmC0D0p', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1: Card0.Amixer.info: Error: [Errno 2] No such file or directory: 'amixer': 'amixer' Card0.Amixer.values: Error: [Errno 2] No such file or directory: 'amixer': '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_DIR=<set> LANG=en_US.UTF-8 SHELL=/bin/bash ProcFB: 0 inteldrmfb ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.0.0-23-generic root=UUID=e5aafb31-5d5d-4f35-bd44-b3965316331a ro net.ifnames=0 ProcVersionSignature: Ubuntu 5.0.0-23.24~18.04.1-generic 5.0.15 RelatedPackageVersions: linux-restricted-modules-5.0.0-23-generic N/A linux-backports-modules-5.0.0-23-generic N/A 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.asset.tag: N/A dmi.board.name: ZBOX-CI323NANO dmi.board.vendor: ZOTAC dmi.board.version: XX dmi.chassis.asset.tag: Default string dmi.chassis.type: 2 dmi.chassis.vendor: Default string dmi.chassis.version: Default string dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrB301P021:bd03/07/2017:svnZOTAC:pnZBOX-CI323NANO:pvrXX:rvnZOTAC:rnZBOX-CI323NANO:rvrXX:cvnDefaultstring:ct2:cvrDefaultstring: dmi.product.family: N/A dmi.product.name: ZBOX-CI323NANO dmi.product.sku: N/A dmi.product.version: XX dmi.sys.vendor: ZOTAC To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1838886/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp