SD Card not working on Sony Vaio S Series SVS1511BFXB

Bug #1863481 reported by Fernando C Jeronymo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux-signed-hwe (Ubuntu)
New
Undecided
Unassigned

Bug Description

1) lsb_release -rd
Description: Ubuntu 18.04.4 LTS
Release: 18.04

2) Realtek RTS5209 PCI Express Card Reader SD Card Storage

3) When I plug the SD card, it should be automatically mounted and available
4) With lspci, I see the device is unassigned:

    03:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5209 PCI Express Card Reader [10ec:5209] (rev 01)

I tried many different options, tried installing different versions of the driver. E.g.:
a) https://github.com/chrisnew/rts_pstor
b) https://pclinuxoshelp.com/index.php/Compiling_drivers_for_Realtek_card_reader
c) https://dainaccio.wordpress.com/2013/07/14/realtek-sd-reader-mounting-problems-under-linux-mintubuntu/
d) https://forums.gentoo.org/viewtopic-t-1075906-start-0.html
e) https://abhinavgupta2812.wordpress.com/2014/01/28/getting-a-realtek-sd-card-reader-to-work-on-linux-tried-and-tested-on-debian/
f) https://bbs.archlinux.org/viewtopic.php?id=150134
etc

all without success.

4.1) # sudo lspci -nn
00:00.0 Host bridge [0600]: Intel Corporation 3rd Gen Core processor DRAM Controller [8086:0154] (rev 09)
00:01.0 PCI bridge [0604]: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor PCI Express Root Port [8086:0151] (rev 09)
00:02.0 VGA compatible controller [0300]: Intel Corporation 3rd Gen Core processor Graphics Controller [8086:0166] (rev 09)
00:14.0 USB controller [0c03]: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller [8086:1e31] (rev 04)
00:16.0 Communication controller [0780]: Intel Corporation 7 Series/C216 Chipset Family MEI Controller #1 [8086:1e3a] (rev 04)
00:1a.0 USB controller [0c03]: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #2 [8086:1e2d] (rev 04)
00:1b.0 Audio device [0403]: Intel Corporation 7 Series/C216 Chipset Family High Definition Audio Controller [8086:1e20] (rev 04)
00:1c.0 PCI bridge [0604]: Intel Corporation 7 Series/C216 Chipset Family PCI Express Root Port 1 [8086:1e10] (rev c4)
00:1c.1 PCI bridge [0604]: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 2 [8086:1e12] (rev c4)
00:1c.2 PCI bridge [0604]: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 3 [8086:1e14] (rev c4)
00:1d.0 USB controller [0c03]: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #1 [8086:1e26] (rev 04)
00:1f.0 ISA bridge [0601]: Intel Corporation HM77 Express Chipset LPC Controller [8086:1e57] (rev 04)
00:1f.2 SATA controller [0106]: Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode] [8086:1e03] (rev 04)
00:1f.3 SMBus [0c05]: Intel Corporation 7 Series/C216 Chipset Family SMBus Controller [8086:1e22] (rev 04)
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK107M [GeForce GT 640M LE] [10de:0fd3] (rev a1)
02:00.0 Network controller [0280]: Intel Corporation Centrino Advanced-N 6235 [8086:088e] (rev 24)
03:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5209 PCI Express Card Reader [10ec:5209] (rev 01)
04:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 07)

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: linux-image-5.3.0-28-generic 5.3.0-28.30~18.04.1
ProcVersionSignature: Ubuntu 5.3.0-28.30~18.04.1-generic 5.3.13
Uname: Linux 5.3.0-28-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.9-0ubuntu7.9
Architecture: amd64
Date: Sun Feb 16 10:35:16 2020
GvfsMonitorError:
 This tool has been deprecated, use 'gio mount' instead.
 See 'gio help mount' for more info.
GvfsMonitorLog: Monitoring events. Press Ctrl+C to quit.
HotplugNewDevices:

HotplugNewMounts:

InstallationDate: Installed on 2019-12-20 (58 days ago)
InstallationMedia: Ubuntu 18.04.3 LTS "Bionic Beaver" - Release amd64 (20190805)
SourcePackage: linux-signed-hwe
Symptom: storage
UdevMonitorLog:
 monitor will print the received events for:
 UDEV - the event which udev sends out after rule processing
UdisksMonitorLog:
 Monitoring the udisks daemon. Press Ctrl+C to exit.
 10:35:29.422: The udisks-daemon is running (name-owner :1.7).
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Fernando C Jeronymo (fjeronymo) wrote :
Revision history for this message
Fernando C Jeronymo (fjeronymo) wrote :
Download full text (4.8 KiB)

# lsmod

Module Size Used by
msr 16384 0
rfcomm 81920 4
ccm 20480 9
cmac 16384 1
bnep 24576 2
binfmt_misc 24576 1
nls_iso8859_1 16384 1
uvcvideo 94208 0
snd_hda_codec_hdmi 57344 1
videobuf2_vmalloc 20480 1 uvcvideo
videobuf2_memops 20480 1 videobuf2_vmalloc
videobuf2_v4l2 24576 1 uvcvideo
videobuf2_common 49152 2 videobuf2_v4l2,uvcvideo
videodev 208896 3 videobuf2_v4l2,uvcvideo,videobuf2_common
snd_hda_codec_realtek 118784 1
snd_hda_codec_generic 81920 1 snd_hda_codec_realtek
mc 53248 4 videodev,videobuf2_v4l2,uvcvideo,videobuf2_common
intel_rapl_msr 20480 0
intel_rapl_common 24576 1 intel_rapl_msr
x86_pkg_temp_thermal 20480 0
ledtrig_audio 16384 2 snd_hda_codec_generic,snd_hda_codec_realtek
nvidia_uvm 761856 0
iwldvm 233472 0
intel_powerclamp 20480 0
nvidia_drm 45056 2
nvidia_modeset 1048576 5 nvidia_drm
i915 1937408 3
mac80211 847872 1 iwldvm
nvidia 14417920 553 nvidia_uvm,nvidia_modeset
libarc4 16384 1 mac80211
coretemp 20480 0
mei_hdcp 24576 0
snd_hda_intel 49152 3
snd_hda_codec 131072 4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
kvm_intel 241664 0
snd_hda_core 90112 5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
drm_kms_helper 180224 2 nvidia_drm,i915
kvm 651264 1 kvm_intel
drm 483328 6 drm_kms_helper,nvidia_drm,i915
snd_hwdep 20480 1 snd_hda_codec
snd_pcm 102400 4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core
i2c_algo_bit 16384 1 i915
snd_seq_midi 20480 0
irqbypass 16384 1 kvm
snd_seq_midi_event 16384 1 snd_seq_midi
ipmi_devintf 20480 0
ipmi_msghandler 102400 2 ipmi_devintf,nvidia
fb_sys_fops 16384 1 drm_kms_helper
crct10dif_pclmul 16384 1
crc32_pclmul 16384 0
ghash_clmulni_intel 16384 0
aesni_intel 372736 8
btusb 57344 0
snd_rawmidi 36864 1 snd_seq_midi
aes_x86_64 20480 1 aesni_intel
snd_seq 69632 2 snd_seq_midi,snd_seq_midi_event
btrtl 20480 1 btusb
snd_seq_device 16384 3 snd_seq,snd_seq_midi,snd_rawmidi
crypto_simd 16384 1 aesni_intel
btbcm 16384 1 btusb
snd_timer 36864 2 snd_seq,snd_pcm
btintel 24576 1 btusb
cryptd 24576 2 crypto_simd,ghash_clmulni_intel
bluetooth 573440 33 btrtl,btintel,btbcm,bnep,btusb,rfcomm
snd 86016 17 snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_pcm,snd_rawmidi
glue_helper 16384 1 aesni_intel
mei_me ...

Read more...

Revision history for this message
Fernando C Jeronymo (fjeronymo) wrote :

# lsusb

Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 0489:d601 Foxconn / Hon Hai
Bus 001 Device 003: ID 8087:07da Intel Corp.
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 002: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Revision history for this message
Fernando C Jeronymo (fjeronymo) wrote :
Download full text (4.8 KiB)

# sudo lsdisk -l
Disk /dev/loop0: 8.5 MiB, 8945664 bytes, 17472 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/loop1: 156.7 MiB, 164290560 bytes, 320880 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/loop2: 3.7 MiB, 3825664 bytes, 7472 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/loop3: 54.7 MiB, 57294848 bytes, 111904 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/loop4: 956 KiB, 978944 bytes, 1912 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/loop5: 73.8 MiB, 77344768 bytes, 151064 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/loop6: 132 KiB, 135168 bytes, 264 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/loop7: 42.8 MiB, 44879872 bytes, 87656 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/sda: 596.2 GiB, 640135028736 bytes, 1250263728 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 70D18FDC-86BF-4EB5-BD68-9D2801EE8BCA

Device Start End Sectors Size Type
/dev/sda1 2048 1050623 1048576 512M EFI System
/dev/sda2 1050624 1250263039 1249212416 595.7G Linux filesystem

Disk /dev/loop8: 89.1 MiB, 93417472 bytes, 182456 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/loop9: 54.7 MiB, 57294848 bytes, 111904 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/loop10: 137.9 MiB, 144527360 bytes, 282280 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/loop11: 181.1 MiB, 189870080 bytes, 370840 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/loop12: 91.3 MiB, 95748096 bytes, 187008 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/loop13: 4 MiB, 4218880 bytes, 8240 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (...

Read more...

Revision history for this message
Fernando C Jeronymo (fjeronymo) wrote :

sorry, sudo fdisk -l for previous comment

Revision history for this message
Fernando C Jeronymo (fjeronymo) wrote :

# lspci -nnk

03:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5209 PCI Express Card Reader [10ec:5209] (rev 01)
        Subsystem: Sony Corporation RTS5209 PCI Express Card Reader [104d:909b]
        Kernel driver in use: rtsx_pci
        Kernel modules: rtsx_pci, rts_pstor

Revision history for this message
Fernando C Jeronymo (fjeronymo) wrote :
Download full text (7.3 KiB)

=====> modinfo rts_pstor
filename: /lib/modules/5.3.0-28-generic/updates/dkms/rts_pstor.ko
version: v1.10
license: GPL
description: Realtek PCI-Express card reader driver
srcversion: AD5DF9C15EEE1C6AACEDA9E
alias: pci:v000010ECd00005288sv*sd*bcFFsc*i*
alias: pci:v000010ECd00005209sv*sd*bcFFsc*i*
alias: pci:v000010ECd00005208sv*sd*bcFFsc*i*
depends:
retpoline: Y
name: rts_pstor ...

Read more...

Revision history for this message
Fernando C Jeronymo (fjeronymo) wrote :

So I tried to unload and load rts_pstor again, I show the output of /var/log/syslog below for each command:
# sudo rmmod rts_pstor
Feb 16 11:29:15 BABY-YODA kernel: [72056.799678] rtsx_exit() called
Feb 16 11:29:15 BABY-YODA kernel: [72056.799752] rts_pstor module exit

# sudo modprobe rts_pstor
Feb 16 11:31:35 BABY-YODA kernel: [72197.513993] Initializing Realtek PCIE storage driver...
Feb 16 11:31:35 BABY-YODA kernel: [72197.514018] --- 20.02.08.20.28 ---
Feb 16 11:31:35 BABY-YODA kernel: [72197.514262] Resource length: 0x1000
Feb 16 11:31:35 BABY-YODA kernel: [72197.514279] Original address: 0xb6000000, remapped address: 0xffffbf8b0001c000
Feb 16 11:31:35 BABY-YODA kernel: [72197.514283] pci->irq = 17
Feb 16 11:31:35 BABY-YODA kernel: [72197.514284] rtsx_acquire_irq: chip->msi_en = 0, pci->irq = 17
Feb 16 11:31:35 BABY-YODA kernel: [72197.514314] scsi host6: SCSI emulation for PCI-Express Mass Storage devices
Feb 16 11:31:36 BABY-YODA kernel: [72197.721995] rts_pstor: waiting for device to settle before scanning
Feb 16 11:31:36 BABY-YODA systemd-resolved[793]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP.
Feb 16 11:31:37 BABY-YODA kernel: [72198.753284] rts_pstor: device scan complete
Feb 16 11:31:37 BABY-YODA kernel: [72198.753469] scsi 6:0:0:0: Direct-Access Generic- xD/SD/M.S. 1.00 PQ: 0 ANSI: 0 CCS
Feb 16 11:31:37 BABY-YODA kernel: [72198.753559] Bad LUN (0:1)
Feb 16 11:31:37 BABY-YODA kernel: [72198.753692] Bad target number (1:0)
Feb 16 11:31:37 BABY-YODA kernel: [72198.753810] Bad target number (2:0)
Feb 16 11:31:37 BABY-YODA kernel: [72198.753926] Bad target number (3:0)
Feb 16 11:31:37 BABY-YODA kernel: [72198.754042] Bad target number (4:0)
Feb 16 11:31:37 BABY-YODA kernel: [72198.754125] Bad target number (5:0)
Feb 16 11:31:37 BABY-YODA kernel: [72198.754238] Bad target number (6:0)
Feb 16 11:31:37 BABY-YODA kernel: [72198.754347] Bad target number (7:0)
Feb 16 11:31:37 BABY-YODA kernel: [72198.754681] sd 6:0:0:0: Attached scsi generic sg2 type 0
Feb 16 11:31:37 BABY-YODA kernel: [72198.754933] sd 6:0:0:0: [sdb] Attached SCSI removable disk

Revision history for this message
Fernando C Jeronymo (fjeronymo) wrote :

It seems that worked! But I don't understand what is going on... I pushed in the SD card, and I get this output on /var/sys/log:

Feb 16 11:35:01 BABY-YODA CRON[31645]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)

Revision history for this message
Fernando C Jeronymo (fjeronymo) wrote :

actually scratch that.. it didn't work. Any help?

Revision history for this message
Fernando C Jeronymo (fjeronymo) wrote :

lspci -nnkvv -s 0000:03:00.0
03:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5209 PCI Express Card Reader [10ec:5209] (rev 01)
        Subsystem: Sony Corporation RTS5209 PCI Express Card Reader [104d:909b]
        Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx+
        Interrupt: pin A routed to IRQ 17
        Region 0: Memory at b6000000 (32-bit, non-prefetchable) [size=4K]
        Capabilities: <access denied>
        Kernel modules: rtsx_pci, rts_pstor

Revision history for this message
Fernando C Jeronymo (fjeronymo) wrote :
Download full text (3.2 KiB)

With sudo now :)

# ✘ fcavalcanti@BABY-YODA  ~  sudo lspci -nnkvv -s 0000:03:00.0
03:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5209 PCI Express Card Reader [10ec:5209] (rev 01)
        Subsystem: Sony Corporation RTS5209 PCI Express Card Reader [104d:909b]
        Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx+
        Interrupt: pin A routed to IRQ 17
        Region 0: Memory at b6000000 (32-bit, non-prefetchable) [size=4K]
        Capabilities: [40] Power Management version 3
                Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=375mA PME(D0-,D1+,D2+,D3hot+,D3cold-)
                Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
                Address: 0000000000000000 Data: 0000
        Capabilities: [70] Express (v2) Endpoint, MSI 00
                DevCap: MaxPayload 128 bytes, PhantFunc 0, Latency L0s <1us, L1 <8us
                        ExtTag- AttnBtn- AttnInd- PwrInd- RBE+ FLReset- SlotPowerLimit 10.000W
                DevCtl: Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
                        RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop-
                        MaxPayload 128 bytes, MaxReadReq 512 bytes
                DevSta: CorrErr+ UncorrErr- FatalErr- UnsuppReq- AuxPwr- TransPend-
                LnkCap: Port #0, Speed 2.5GT/s, Width x1, ASPM L0s L1, Exit Latency L0s unlimited, L1 <64us
                        ClockPM+ Surprise- LLActRep- BwNot- ASPMOptComp-
                LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- CommClk-
                        ExtSynch- ClockPM+ AutWidDis- BWInt- AutBWInt-
                LnkSta: Speed 2.5GT/s, Width x1, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
                DevCap2: Completion Timeout: Not Supported, TimeoutDis+, LTR-, OBFF Not Supported
                DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-, LTR-, OBFF Disabled
                LnkCtl2: Target Link Speed: 2.5GT/s, EnterCompliance- SpeedDis-
                         Transmit Margin: Normal Operating Range, EnterModifiedCompliance- ComplianceSOS-
                         Compliance De-emphasis: -6dB
                LnkSta2: Current De-emphasis Level: -6dB, EqualizationComplete-, EqualizationPhase1-
                         EqualizationPhase2-, EqualizationPhase3-, LinkEqualizationRequest-
        Capabilities: [100 v1] Advanced Error Reporting
                UESta: DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
                UEMsk: DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
                UESvrt: DLP+ SDES+ TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+ ECRC- UnsupReq- ACSViol-
                CESta: RxErr- BadTLP- BadDLLP- Rollover- Timeout+ NonFatalErr-
                CEMsk: RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr+
                AERCap: First Error Pointer: 00, GenCap+ CGenEn- ChkCap+ ChkEn-
        Capabilit...

Read more...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.