[Bug 1127616] New: Realtek RTS522A / rtsx_pci SD card reader does not work
http://bugzilla.opensuse.org/show_bug.cgi?id=1127616 Bug ID: 1127616 Summary: Realtek RTS522A / rtsx_pci SD card reader does not work Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: x86-64 OS: openSUSE Factory Status: NEW Severity: Normal Priority: P5 - None Component: Kernel Assignee: kernel-maintainers@forge.provo.novell.com Reporter: v@robolab.it QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Hello, I'm using openSUSE Leap 15 distribution but the latest stable kernel from Tumbleweed repository - version 4.20.10-1-default. The computer is Lenovo Thinkpad X260, and the cards tested are Sandisk SDXC "Extreme Pro" 64 GB and Kingston SDHC class 4, 8 GB. The required kernel module is loaded:
# lsmod|grep rts rtsx_pci_sdmmc 32768 0 rtsx_pci_ms 24576 0 rtsx_pci 77824 2 rtsx_pci_sdmmc,rtsx_pci_ms memstick 20480 1 rtsx_pci_ms mmc_core 172032 1 rtsx_pci_sdmmc
but the SD card (Sandisk) does not mount:
# dmesg -C ## inserted SD card # dmesg [12653.006313] mmc0: cannot verify signal voltage switch [12653.134624] mmc0: new ultra high speed SDR104 SDXC card at address e624
and that's it - no partitions detected and no more output, except when I remove the SD card one more line appears in dmesg: "mmc0: card e624 removed". The Kingston card creates a bit different output:
[12779.245891] mmc0: new high speed SDHC card at address 0007
- nothing about the voltage. The driver "rtsx_pci" was loaded automatically during boot:
# lspci -nnk |grep -A3 522 02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS522A PCI Express Card Reader [10ec:522a] (rev 01) Subsystem: Lenovo Device [17aa:504a] Kernel driver in use: rtsx_pci Kernel modules: rtsx_pci
I have tried the latest Leap 15 kernel version 4.12.14-lp150.12.48-default and SD card reader does not work there too. Also I saw in another bug report (https://bugzilla.opensuse.org/show_bug.cgi?id=927749) that it could work if I boot the computer with the SD card inserted, I have tried it with both kernels and it still does not work: 4.12.14-lp150.12.48-default
# dmesg|grep mmc [ 5.518009] mmc0: cannot verify signal voltage switch [ 5.652845] mmc0: new ultra high speed SDR104 SDXC card at address e624
4.20.10-1-default
# dmesg|grep mmc [ 6.105310] mmc0: cannot verify signal voltage switch [ 6.239035] mmc0: new ultra high speed SDR104 SDXC card at address e624
[BTW note that 4.20.10-1-default is half a second slower to boot :) ] -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1127616
http://bugzilla.opensuse.org/show_bug.cgi?id=1127616#c1
--- Comment #1 from V Robolab
http://bugzilla.opensuse.org/show_bug.cgi?id=1127616
http://bugzilla.opensuse.org/show_bug.cgi?id=1127616#c3
--- Comment #3 from V Robolab
[ 58.455181] mmc0: new high speed SDHC card at address 0007
5.0.0-2.gcfb8371-default - does not work too. Here I inserted and removed the card a few times:
# dmesg|grep mmc [ 5.602750] mmc0: new high speed SDHC card at address 0007 [ 73.756711] mmc0: card 0007 removed [ 77.289856] mmc0: new high speed SDHC card at address 0007 [ 79.352725] mmc0: card 0007 removed [ 81.612467] mmc0: new high speed SDHC card at address 0007
Yes, inserted SD cards do not mount - fdisk does not show anything about MMC and device "/dev/mmcblk0" does not appear. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1127616
Takashi Iwai
http://bugzilla.opensuse.org/show_bug.cgi?id=1127616
http://bugzilla.opensuse.org/show_bug.cgi?id=1127616#c4
--- Comment #4 from V Robolab
http://bugzilla.opensuse.org/show_bug.cgi?id=1127616
http://bugzilla.opensuse.org/show_bug.cgi?id=1127616#c5
--- Comment #5 from V Robolab
[ 255.586114] mmc0: cannot verify signal voltage switch [ 255.715226] mmc0: new ultra high speed SDR104 SDHC card at address aaaa [ 255.722704] mmcblk0: mmc0:aaaa AGGCD 29.7 GiB [ 255.725424] mmcblk0: p1
Removing the card:
[ 318.332412] mmc0: card aaaa removed [ 318.348368] ------------[ cut here ]------------ [ 318.348386] WARNING: CPU: 2 PID: 50 at ../block/blk-core.c:783 blk_cleanup_queue+0x186/0x190 [ 318.348389] Modules linked in: mmc_block tun vboxpci(O) vboxnetadp(O) vboxnetflt(O) vboxdrv(O) ccm nf_log_ipv6 xt_comment nf_log_ipv4 nf_log_common xt_LOG xt_limit af_packet ip6t_REJECT nf_conntrack_ipv6 nf_defrag_ipv6 ipt_REJECT xt_pkttype xt_tcpudp iptable_filter ip6table_mangle nf_conntrack_netbios_ns nf_conntrack_broadcast nf_conntrack_ipv4 nf_defrag_ipv4 ip_tables xt_conntrack nf_conntrack libcrc32c ip6table_filter ip6_tables x_tables i2c_dev cdc_mbim cdc_wdm cdc_ncm qcserial usbnet usb_wwan mii usbserial btusb btrtl btbcm btintel bluetooth uvcvideo ecdh_generic videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_core videodev nls_iso8859_1 nls_cp437 vfat fat msr arc4 snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic snd_hda_intel snd_hda_codec snd_hda_core snd_hwdep snd_pcm [ 318.348529] iwlmvm mac80211 snd_timer intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp iTCO_wdt iTCO_vendor_support thinkpad_acpi ledtrig_audio wmi_bmof snd kvm_intel iwlwifi rtsx_pci_ms kvm cfg80211 mei_me irqbypass pcspkr memstick joydev i2c_i801 intel_pch_thermal soundcore rfkill ac mei battery thermal wmi button dm_crypt algif_skcipher af_alg btrfs xor zstd_decompress zstd_compress xxhash raid6_pq rtsx_pci_sdmmc mmc_core crc32_pclmul crc32c_intel ghash_clmulni_intel aesni_intel aes_x86_64 crypto_simd glue_helper cryptd i915 i2c_algo_bit drm_kms_helper xhci_pci syscopyarea sysfillrect sysimgblt fb_sys_fops ahci libahci rtsx_pci serio_raw xhci_hcd usbcore drm drm_panel_orientation_quirks video dm_mirror dm_region_hash dm_log sg dm_multipath dm_mod scsi_dh_rdac scsi_dh_emc scsi_dh_alua [ 318.348679] efivarfs [ 318.348692] CPU: 2 PID: 50 Comm: kworker/2:1 Tainted: G O 4.12.14-lp151.27-default #1 openSUSE Leap 15.1 [ 318.348696] Hardware name: LENOVO 20F6006YUK/20F6006YUK, BIOS R02ET70W (1.43 ) 01/28/2019 [ 318.348722] Workqueue: events_freezable mmc_rescan [mmc_core] [ 318.348729] task: ffff8802199fc100 task.stack: ffffc90000e44000 [ 318.348738] RIP: 0010:blk_cleanup_queue+0x186/0x190 [ 318.348743] RSP: 0018:ffffc90000e47d10 EFLAGS: 00010202 [ 318.348749] RAX: ffffffff82055500 RBX: ffff8802132a2a48 RCX: 0000000000000001 [ 318.348753] RDX: 0000000000000001 RSI: 0000000000000001 RDI: ffff880222423d00 [ 318.348757] RBP: ffff880215e79c00 R08: ffff880187800000 R09: ffff880222423d00 [ 318.348761] R10: 0000000000000000 R11: 0000000000000040 R12: ffff8802132a3150 [ 318.348765] R13: ffff880215e79c00 R14: ffff8801df730008 R15: ffff8802199cd600 [ 318.348771] FS: 0000000000000000(0000) GS:ffff880222500000(0000) knlGS:0000000000000000 [ 318.348776] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 318.348781] CR2: 00007f265f477a78 CR3: 000000000200a002 CR4: 00000000003606e0 [ 318.348784] Call Trace: [ 318.348808] mmc_cleanup_queue+0x2f/0x50 [mmc_block] [ 318.348820] mmc_blk_remove_req.part.41+0x17/0x80 [mmc_block] [ 318.348832] mmc_blk_remove+0x107/0x1d0 [mmc_block] [ 318.348857] mmc_bus_remove+0x1f/0x30 [mmc_core] [ 318.348871] device_release_driver_internal+0x139/0x1f0 [ 318.348882] bus_remove_device+0xff/0x170 [ 318.348890] device_del+0x144/0x360 [ 318.348914] mmc_remove_card+0x6b/0xa0 [mmc_core] [ 318.348940] mmc_sd_detect+0x43/0x80 [mmc_core] [ 318.348962] mmc_rescan+0xcd/0x380 [mmc_core] [ 318.348976] process_one_work+0x1da/0x400 [ 318.348988] worker_thread+0x2b/0x3f0 [ 318.348998] ? process_one_work+0x400/0x400 [ 318.349006] kthread+0x113/0x130 [ 318.349014] ? kthread_create_worker_on_cpu+0x50/0x50 [ 318.349026] ret_from_fork+0x1f/0x40 [ 318.349037] Code: c6 07 00 0f 1f 40 00 fb 66 0f 1f 44 00 00 48 8d bb d0 01 00 00 5b 5d 41 5c e9 87 6b 04 00 48 89 df e8 3f a7 00 00 e9 31 ff ff ff <0f> 0b e9 57 ff ff ff 0f 1f 00 0f 1f 44 00 00 55 48 89 f0 53 89 [ 318.349164] ---[ end trace bdce1fe3d07db88a ]---
- seems that the bug is in the mmc_core module, not rtsx_pci. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1127616
http://bugzilla.opensuse.org/show_bug.cgi?id=1127616#c6
--- Comment #6 from Takashi Iwai
http://bugzilla.opensuse.org/show_bug.cgi?id=1127616
http://bugzilla.opensuse.org/show_bug.cgi?id=1127616#c7
Takashi Iwai
http://bugzilla.opensuse.org/show_bug.cgi?id=1127616
http://bugzilla.opensuse.org/show_bug.cgi?id=1127616#c8
V Robolab
A test kernel is being built on OBS home:tiwai:bsc1127616 repo. It'll be available later at http://download.opensuse.org/repositories/home:/tiwai:/bsc1127616/standard/
Please give it a try later.
Yes, your kernel build does not produce "tainted" message. Also I checked the latest Tumbleweed kernel (5.1.7-1-default) and it does not get tainted too:
# inserted Kingston 8 GB card: [ 53.845017] mmc0: new high speed SDHC card at address 0007 [ 53.861556] mmcblk0: mmc0:0007 SD8GB 7.21 GiB [ 53.862903] mmcblk0: p1 # clicked "open in file manager" in GUI: [ 64.391675] udisksd[3327]: Mounted /dev/mmcblk0p1 at /run/media/USER/disk on behalf of uid 1000 # clicked "eject card" in GUI: [ 72.070894] udisksd[3327]: Cleaning up mount point /run/media/USER/disk (device 179:1 is not mounted) [ 72.086946] udisksd[3327]: Unmounted /dev/mmcblk0p1 on behalf of uid 1000 [ 72.099052] mmcblk0: p1 # removed card from the slot: [ 82.226637] mmc0: card 0007 removed # inserted Sandisk 64 GB card: [ 101.762283] mmc0: cannot verify signal voltage switch [ 101.881964] mmc0: new ultra high speed SDR104 SDXC card at address e624 [ 101.882293] mmcblk0: mmc0:e624 SP64G 59.5 GiB [ 101.883228] mmcblk0: p1 # clicked "open in file manager" in GUI: [ 114.492038] fuse init (API version 7.29) [ 114.505658] udisksd[3327]: Mounted /dev/mmcblk0p1 at /run/media/USER/disk on behalf of uid 1000 # clicked "eject card" in GUI: [ 122.180309] udisksd[3327]: Cleaning up mount point /run/media/USER/disk (device 179:1 is not mounted) [ 122.197659] udisksd[3327]: Unmounted /dev/mmcblk0p1 on behalf of uid 1000 # removed card from the slot: [ 125.890892] mmc0: card e624 removed
So the bug is fixed in 5.1.7-1-default (or earlier - I did not test any 5.x versions except the latest). -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com