SDXC card reader not working properly

Bug #1909840 reported by Bruno Luis dos Santos Costa
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I have tried to use a 8GB flash and it works without any flaw in ubuntu 20.04, kernel 5.4.0-58-generic (machine: Ideapad 130s-11IGM), but i need to use my 128GB SDXC card and it only works in my windows system in the same machine. I am "able" to copy files to it in ubuntu (to the 128GB SDXC card) but most of the copies appear as corrupted files, which does not happen in windows. The 8GB card had been tested by f3 in ubuntu and h2testw in windows, and the SDXC had been tested by h2testw in windows (testing the SDXC with f3 in ubuntu causes input/output error), so i assume there are no problems in the sd cards.

I think that this problem is related to (or almost the same as)

https://bugzilla.kernel.org/show_bug.cgi?id=202473

by lspci i get

00:00.0 Host bridge: Intel Corporation Gemini Lake Host Bridge (rev 03)
00:00.1 Signal processing controller: Intel Corporation Celeron/Pentium Silver Processor Dynamic Platform and Thermal Framework Processor Participant (rev 03)
00:00.3 System peripheral: Intel Corporation Device 3190 (rev 03)
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 605 (rev 03)
00:0e.0 Audio device: Intel Corporation Device 3198 (rev 03)
00:0f.0 Communication controller: Intel Corporation Celeron/Pentium Silver Processor Trusted Execution Engine Interface (rev 03)
00:12.0 SATA controller: Intel Corporation Device 31e3 (rev 03)
00:13.0 PCI bridge: Intel Corporation Gemini Lake PCI Express Root Port (rev f3)
00:14.0 PCI bridge: Intel Corporation Gemini Lake PCI Express Root Port (rev f3)
00:14.1 PCI bridge: Intel Corporation Gemini Lake PCI Express Root Port (rev f3)
00:15.0 USB controller: Intel Corporation Device 31a8 (rev 03)
00:17.0 Signal processing controller: Intel Corporation Device 31b4 (rev 03)
00:1c.0 SD Host controller: Intel Corporation Celeron/Pentium Silver Processor SDA Standard Compliant SD Host Controller (rev 03)
00:1f.0 ISA bridge: Intel Corporation Device 31e8 (rev 03)
00:1f.1 SMBus: Intel Corporation Celeron/Pentium Silver Processor Gaussian Mixture Model (rev 03)
-----------------
02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5229 PCI Express Card Reader (rev 01)
-----------------
03:00.0 Network controller: Intel Corporation Dual Band Wireless-AC 3165 Plus Bluetooth (rev 99)

booting up and putting the SDXC card and removing it gives

by dmesg

[ 119.612298] mmc1: cannot verify signal voltage switch
[ 119.737024] mmc1: new ultra high speed SDR104 SDXC card at address aaaa
[ 119.737955] mmcblk1: mmc1:aaaa SB128 119 GiB
[ 119.755488] mmcblk1: p1
[ 208.417246] mmc1: card aaaa removed

The module used is rtsx_pci.

by lspci -nnk|grep -A2 RTS5229

02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5229 PCI Express Card Reader [10ec:5229] (rev 01)
 Subsystem: Realtek Semiconductor Co., Ltd. RTS5229 PCI Express Card Reader [10ec:5229]
 Kernel driver in use: rtsx_pci
 Kernel modules: rtsx_pci

Sorry for the lack of information, i tried to use ubuntu-bug.
---
ProblemType: Bug
ApportVersion: 2.20.11-0ubuntu27.14
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: bruno 1008 F.... pulseaudio
CasperMD5CheckResult: skip
CurrentDesktop: Budgie:GNOME
DistroRelease: Ubuntu 20.04
InstallationDate: Installed on 2020-12-01 (33 days ago)
InstallationMedia: Ubuntu-Budgie 20.04.1 LTS "Focal Fossa" - Release amd64 (20200731)
Lsusb:
 Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
 Bus 001 Device 003: ID 04f2:b5fa Chicony Electronics Co., Ltd EasyCamera
 Bus 001 Device 002: ID 8087:0a2a Intel Corp.
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
MachineType: LENOVO 81KT
Package: linux (not installed)
ProcFB: 0 i915drmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.4.0-58-generic root=UUID=8afb288b-f3c1-45ee-9f28-513f989c2945 ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 5.4.0-58.64-generic 5.4.73
RelatedPackageVersions:
 linux-restricted-modules-5.4.0-58-generic N/A
 linux-backports-modules-5.4.0-58-generic N/A
 linux-firmware 1.187.6
Tags: focal
Uname: Linux 5.4.0-58-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 02/21/2019
dmi.bios.vendor: LENOVO
dmi.bios.version: 9HCN22WW X64
dmi.board.asset.tag: No Asset Tag
dmi.board.name: LNVNB161216
dmi.board.vendor: LENOVO
dmi.board.version: SDK0R32891WIN
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Lenovo ideapad 130S-11IGM
dmi.modalias: dmi:bvnLENOVO:bvr9HCN22WWX64:bd02/21/2019:svnLENOVO:pn81KT:pvrLenovoideapad130S-11IGM:rvnLENOVO:rnLNVNB161216:rvrSDK0R32891WIN:cvnLENOVO:ct10:cvrLenovoideapad130S-11IGM:
dmi.product.family: ideapad 130S-11IGM
dmi.product.name: 81KT
dmi.product.sku: LENOVO_MT_81KT_BU_idea_FM_ideapad 130S-11IGM
dmi.product.version: Lenovo ideapad 130S-11IGM
dmi.sys.vendor: LENOVO
---
ProblemType: Bug
ApportVersion: 2.20.11-0ubuntu27.14
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: bruno 1008 F.... pulseaudio
CasperMD5CheckResult: skip
CurrentDesktop: Budgie:GNOME
DistroRelease: Ubuntu 20.04
InstallationDate: Installed on 2020-12-01 (33 days ago)
InstallationMedia: Ubuntu-Budgie 20.04.1 LTS "Focal Fossa" - Release amd64 (20200731)
Lsusb:
 Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
 Bus 001 Device 003: ID 04f2:b5fa Chicony Electronics Co., Ltd EasyCamera
 Bus 001 Device 002: ID 8087:0a2a Intel Corp.
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
MachineType: LENOVO 81KT
Package: linux (not installed)
ProcFB: 0 i915drmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.4.0-58-generic root=UUID=8afb288b-f3c1-45ee-9f28-513f989c2945 ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 5.4.0-58.64-generic 5.4.73
RelatedPackageVersions:
 linux-restricted-modules-5.4.0-58-generic N/A
 linux-backports-modules-5.4.0-58-generic N/A
 linux-firmware 1.187.6
Tags: focal
Uname: Linux 5.4.0-58-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 02/21/2019
dmi.bios.vendor: LENOVO
dmi.bios.version: 9HCN22WW X64
dmi.board.asset.tag: No Asset Tag
dmi.board.name: LNVNB161216
dmi.board.vendor: LENOVO
dmi.board.version: SDK0R32891WIN
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Lenovo ideapad 130S-11IGM
dmi.modalias: dmi:bvnLENOVO:bvr9HCN22WWX64:bd02/21/2019:svnLENOVO:pn81KT:pvrLenovoideapad130S-11IGM:rvnLENOVO:rnLNVNB161216:rvrSDK0R32891WIN:cvnLENOVO:ct10:cvrLenovoideapad130S-11IGM:
dmi.product.family: ideapad 130S-11IGM
dmi.product.name: 81KT
dmi.product.sku: LENOVO_MT_81KT_BU_idea_FM_ideapad 130S-11IGM
dmi.product.version: Lenovo ideapad 130S-11IGM
dmi.sys.vendor: LENOVO

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1909840/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
Paul White (paulw2u)
affects: ubuntu → linux (Ubuntu)
tags: added: focal
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

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 1909840

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.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Bruno Luis dos Santos Costa (anlinuxuser) wrote : AlsaInfo.txt

apport information

tags: added: apport-collected
description: updated
Revision history for this message
Bruno Luis dos Santos Costa (anlinuxuser) wrote : CRDA.txt

apport information

Revision history for this message
Bruno Luis dos Santos Costa (anlinuxuser) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Bruno Luis dos Santos Costa (anlinuxuser) wrote : IwConfig.txt

apport information

Revision history for this message
Bruno Luis dos Santos Costa (anlinuxuser) wrote : Lspci.txt

apport information

Revision history for this message
Bruno Luis dos Santos Costa (anlinuxuser) wrote : Lspci-vt.txt

apport information

Revision history for this message
Bruno Luis dos Santos Costa (anlinuxuser) wrote : Lsusb-t.txt

apport information

Revision history for this message
Bruno Luis dos Santos Costa (anlinuxuser) wrote : Lsusb-v.txt

apport information

Revision history for this message
Bruno Luis dos Santos Costa (anlinuxuser) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Bruno Luis dos Santos Costa (anlinuxuser) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Bruno Luis dos Santos Costa (anlinuxuser) wrote : ProcEnviron.txt

apport information

Revision history for this message
Bruno Luis dos Santos Costa (anlinuxuser) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Bruno Luis dos Santos Costa (anlinuxuser) wrote : ProcModules.txt

apport information

Revision history for this message
Bruno Luis dos Santos Costa (anlinuxuser) wrote : PulseList.txt

apport information

Revision history for this message
Bruno Luis dos Santos Costa (anlinuxuser) wrote : RfKill.txt

apport information

Revision history for this message
Bruno Luis dos Santos Costa (anlinuxuser) wrote : UdevDb.txt

apport information

Revision history for this message
Bruno Luis dos Santos Costa (anlinuxuser) wrote : WifiSyslog.txt

apport information

Revision history for this message
Bruno Luis dos Santos Costa (anlinuxuser) wrote : acpidump.txt

apport information

Revision history for this message
Bruno Luis dos Santos Costa (anlinuxuser) wrote :

the information given above was obtained without the sdxc in the card reader, the next ones were obtained with the sdxc in the card reader.

description: updated
Revision history for this message
Bruno Luis dos Santos Costa (anlinuxuser) wrote : AlsaInfo.txt

apport information

Revision history for this message
Bruno Luis dos Santos Costa (anlinuxuser) wrote : CRDA.txt

apport information

Revision history for this message
Bruno Luis dos Santos Costa (anlinuxuser) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Bruno Luis dos Santos Costa (anlinuxuser) wrote : IwConfig.txt

apport information

Revision history for this message
Bruno Luis dos Santos Costa (anlinuxuser) wrote : Lspci.txt

apport information

Revision history for this message
Bruno Luis dos Santos Costa (anlinuxuser) wrote : Lspci-vt.txt

apport information

Revision history for this message
Bruno Luis dos Santos Costa (anlinuxuser) wrote : Lsusb-t.txt

apport information

Revision history for this message
Bruno Luis dos Santos Costa (anlinuxuser) wrote : Lsusb-v.txt

apport information

Revision history for this message
Bruno Luis dos Santos Costa (anlinuxuser) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Bruno Luis dos Santos Costa (anlinuxuser) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Bruno Luis dos Santos Costa (anlinuxuser) wrote : ProcEnviron.txt

apport information

Revision history for this message
Bruno Luis dos Santos Costa (anlinuxuser) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Bruno Luis dos Santos Costa (anlinuxuser) wrote : ProcModules.txt

apport information

Revision history for this message
Bruno Luis dos Santos Costa (anlinuxuser) wrote : PulseList.txt

apport information

Revision history for this message
Bruno Luis dos Santos Costa (anlinuxuser) wrote : RfKill.txt

apport information

Revision history for this message
Bruno Luis dos Santos Costa (anlinuxuser) wrote : UdevDb.txt

apport information

Revision history for this message
Bruno Luis dos Santos Costa (anlinuxuser) wrote : WifiSyslog.txt

apport information

Revision history for this message
Bruno Luis dos Santos Costa (anlinuxuser) wrote : acpidump.txt

apport information

Revision history for this message
Bruno Luis dos Santos Costa (anlinuxuser) wrote :

thanks in advance

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

What filesystem does the card use?

Revision history for this message
Bruno Luis dos Santos Costa (anlinuxuser) wrote :

it uses exFAT and in gnome-disks the Partition Type is NTFS/exFAT/HPFS and the contents are exFAT. i found weird that partition type shows NTFS/exFAT/HPFS and the contents exFAT. But who knows? (i am not very proficient in computing).

obs: i did format it as exFAT in windows 10 in another machine with default setting in allocation unit size. I was able to use it normally with any windows machine i tested.

Revision history for this message
Bruno Luis dos Santos Costa (anlinuxuser) wrote :

Tested my 8GB Micro SDHC recently formatted with exFAT. All files transfered flawlessly, even with the Partition Type NTFS/exFAT/HPFS and exFAT content description in gnome-disks, and, most important (at least i think so), no "cannot verify signal voltage switch" in dmesg. By dmesg i got:

[ 101.565119] mmc1: new high speed SDHC card at address e624
[ 101.570865] mmcblk1: mmc1:e624 SU08G 7.40 GiB
[ 101.587376] mmcblk1: p1

but the problem persists with the SDXC card reader.

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

Which driver provides the exFAT functionality? FUSE driver or in-kernel driver?

Revision history for this message
Bruno Luis dos Santos Costa (anlinuxuser) wrote :
Download full text (6.9 KiB)

Sorry for taking so much time to answer. I did uninstall Ubuntu Budgie 20.04 and installed Xubuntu 20.04 so i do not even use the exact same system anymore. Unfortunately i cannot test my 128GB sdxc card now, and i do not know how to answer your question properly.

All i can say for now is that i do not see anything with fuse in the name when i run lsmod. I think the module that is working now (with 8gb card exFAT) is rtsx_pci or sdhci, but i am not sure anyway.

I can send any new info after getting my sdxc. again, i do not even know how to answer your question properly, any help would be appreciated.

by lsmod

Module Size Used by
ccm 20480 3
rfcomm 81920 16
cmac 16384 2
algif_hash 16384 1
algif_skcipher 16384 1
af_alg 24576 6 algif_hash,algif_skcipher
bnep 24576 2
nls_iso8859_1 16384 1
snd_sof_pci 20480 0
snd_sof_intel_hda_common 69632 1 snd_sof_pci
snd_soc_hdac_hda 24576 1 snd_sof_intel_hda_common
snd_sof_intel_hda 20480 1 snd_sof_intel_hda_common
snd_sof_intel_byt 20480 1 snd_sof_pci
snd_sof_intel_ipc 20480 1 snd_sof_intel_byt
snd_sof 106496 4 snd_sof_pci,snd_sof_intel_hda_common,snd_sof_intel_byt,snd_sof_intel_ipc
snd_sof_xtensa_dsp 16384 1 snd_sof_pci
snd_hda_ext_core 28672 3 snd_sof_intel_hda_common,snd_soc_hdac_hda,snd_sof_intel_hda
snd_soc_acpi_intel_match 32768 2 snd_sof_pci,snd_sof_intel_hda_common
snd_soc_acpi 16384 2 snd_sof_pci,snd_soc_acpi_intel_match
snd_soc_core 245760 3 snd_sof,snd_sof_intel_hda_common,snd_soc_hdac_hda
snd_compress 24576 1 snd_soc_core
ac97_bus 16384 1 snd_soc_core
snd_pcm_dmaengine 16384 1 snd_soc_core
snd_hda_codec_hdmi 61440 1
snd_hda_codec_realtek 126976 1
snd_hda_codec_generic 81920 1 snd_hda_codec_realtek
ledtrig_audio 16384 3 snd_hda_codec_generic,snd_hda_codec_realtek,snd_sof
snd_hda_intel 53248 3
snd_intel_dspcfg 24576 3 snd_hda_intel,snd_sof_pci,snd_sof_intel_hda_common
snd_hda_codec 135168 5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek,snd_soc_hdac_hda
snd_hda_core 90112 9 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_ext_core,snd_hda_codec,snd_hda_codec_realtek,snd_sof_intel_hda_common,snd_soc_hdac_hda,snd_sof_intel_hda
snd_hwdep 20480 1 snd_hda_codec
mei_hdcp 24576 0
intel_rapl_msr 20480 0
snd_pcm 106496 8 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_sof,snd_sof_intel_hda_common,snd_soc_core,snd_hda_core,snd_pcm_dmaengine
intel_telemetry_pltdrv 20480 0
intel_punit_ipc 16384 1 intel_telemetry_pltdrv
intel_telemetry_core 16384 1 intel_telemetry_pltdrv
intel_pmc_ipc 20480 1 intel_telemetry_pltdrv
x86_pkg_temp_thermal 20480 0
intel_powerclamp 20480 0
snd_seq_midi 20480 0
coretemp 20480 0
kvm_intel 282624 0
snd_seq_midi_event 16384 1 snd_seq_midi
kvm 663552 1 kvm_intel
crct1...

Read more...

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :
Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :
Revision history for this message
Bruno Luis dos Santos Costa (anlinuxuser) wrote :

Installed the mainline kernel 5.11-rc5 and the "cannot verify signal voltage" persists. Also now i have the new message "Deprecated parameter 'namecase'".

by dmesg i got

[ 102.774340] mmc1: card e624 removed
[ 151.977592] mmc1: cannot verify signal voltage switch
[ 152.103194] mmc1: new ultra high speed SDR104 SDXC card at address aaaa
[ 152.111605] mmcblk1: mmc1:aaaa SB128 119 GiB
[ 152.131962] mmcblk1: p1
[ 157.293946] exfat: Deprecated parameter 'namecase'
[ 258.519565] mmc1: card aaaa removed
[ 321.168230] mmc1: cannot verify signal voltage switch
[ 321.293643] mmc1: new ultra high speed SDR104 SDXC card at address aaaa
[ 321.302028] mmcblk1: mmc1:aaaa SB128 119 GiB
[ 321.306774] mmcblk1: p1
[ 327.189197] exfat: Deprecated parameter 'namecase'

Again, i can "use" the card but, as soon as large data or any data is put inside some directories in the sdxc card the data get corrupted.

if i use a sdhc card (8GB) everything works fine and, by dmesg

[ 2041.881666] mmc1: new high speed SDHC card at address e624
[ 2041.887000] mmcblk1: mmc1:e624 SU08G 7.40 GiB
[ 2041.920884] mmcblk1: p1
[ 2048.181250] exfat: Deprecated parameter 'namecase'

should i use apport-collect with that kernel too?

thanks in advance

To post a comment you must log in.