You are not logged in.

#1 2021-01-27 01:29:21

Joedang
Member
From: Cascadia
Registered: 2020-05-17
Posts: 16

[SOLVED] SD card reader stops working after system upgrade

Sometimes, after a system upgrade, the built-in SD card reader on my laptop (ThinkPad x230 with Coreboot) stops working. When I reboot, it starts working again.

When I insert an SD card, I get the following in dmesg. (sbd1 was the USB stick I plugged in to check if that was affected too. Then, I removed the SD card, switched to root, inserted the SD card, and ran dmesg.)

[428104.416416]  sdb: sdb1                                                                                                              
[428104.417404] sd 6:0:0:0: [sdb] Attached SCSI removable disk                                                                          
[428114.539819] FAT-fs (sdb1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.                            
[428123.804540] usb 4-2: USB disconnect, device number 4                                                                                
[428757.153581] mmc0: card e624 removed                                                                                                 
[428765.643765] audit: type=1100 audit(1611708627.518:3922): pid=491742 uid=1000 auid=1000 ses=2 msg='op=PAM:authentication grantors=pam
_unix acct="root" exe="/usr/bin/su" hostname=arxgus addr=? terminal=pts/11 res=success'                                                 
[428765.643823] audit: type=1101 audit(1611708627.518:3923): pid=491742 uid=1000 auid=1000 ses=2 msg='op=PAM:accounting grantors=pam_uni
x acct="root" exe="/usr/bin/su" hostname=arxgus addr=? terminal=pts/11 res=success'                                                     
[428765.644211] audit: type=1103 audit(1611708627.518:3924): pid=491742 uid=1000 auid=1000 ses=2 msg='op=PAM:setcred grantors=pam_unix a
cct="root" exe="/usr/bin/su" hostname=arxgus addr=? terminal=pts/11 res=success'                                                        
[428765.644337] audit: type=1105 audit(1611708627.518:3925): pid=491742 uid=1000 auid=1000 ses=2 msg='op=PAM:session_open grantors=pam_u
nix acct="root" exe="/usr/bin/su" hostname=arxgus addr=? terminal=pts/11 res=success'                                                   
[428780.242296] mmc0: new SD card at address e624 

Nothing shows up in lsblk.

NAME                MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
sda                   8:0    0 167.7G  0 disk  
├─sda1                8:1    0   500M  0 part  /boot
└─sda2                8:2    0 167.2G  0 part  
  └─cryptlvm        254:0    0 167.2G  0 crypt 
    ├─volgroup-swap 254:1    0     8G  0 lvm   [SWAP]
    ├─volgroup-root 254:2    0    32G  0 lvm   /
    └─volgroup-home 254:3    0 127.2G  0 lvm   /home

lspci shows that the SD card reader is there:

00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM Controller (rev 09)                                                  
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
00:04.0 Signal processing controller: Intel Corporation 3rd Gen Core Processor Thermal Subsystem (rev 09)
00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04)
00:16.0 Communication controller: Intel Corporation 7 Series/C216 Chipset Family MEI Controller #1 (rev ff)
00:19.0 Ethernet controller: Intel Corporation 82579LM Gigabit Network Connection (Lewisville) (rev 04)
00:1a.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 7 Series/C216 Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 7 Series/C216 Chipset Family PCI Express Root Port 1 (rev c4)
00:1c.1 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 2 (rev c4)
00:1c.2 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 3 (rev c4)
00:1d.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation QM77 Express Chipset LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 7 Series/C216 Chipset Family SMBus Controller (rev 04)
00:1f.6 Signal processing controller: Intel Corporation 7 Series/C210 Series Chipset Family Thermal Management Controller (rev 04)
01:00.0 SD Host controller: Ricoh Co Ltd PCIe SDXC/MMC Host Controller (rev 07)
02:00.0 Network controller: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] (rev 34)

Here's the log from the system upgrade: https://pastebin.com/riVcp4Sr

I'm guessing this has something to do with kernel/systemd modules or gvfs being upgraded, but I have no idea how to investigate. Has anyone had a similar problem? Does anyone know how I might solve this? It would be nice to have the new packages not step on the toes of the already-running stuff.

Last edited by Joedang (2021-01-30 23:28:33)

Offline

#2 2021-01-27 08:28:46

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,351

Re: [SOLVED] SD card reader stops working after system upgrade

This is normal when the kernel is updated. An update removes all of the old modules, so if your running kernel needs a not yet loaded module, it can't load it and thus you need to reboot after a kernel update.  If you want to preempt this you'd need to load all the modules of relevancy before the update (... diff an lsmod from before adding an sd card/the reader with after, add the relevant modules to /etc/modules.load.d) or alternatively set up something like https://aur.archlinux.org/packages/kernel-modules-hook

Offline

#3 2021-01-30 23:27:55

Joedang
Member
From: Cascadia
Registered: 2020-05-17
Posts: 16

Re: [SOLVED] SD card reader stops working after system upgrade

Ah, that makes sense. That's slightly surprising that it doesn't leave the old modules behind, similar to cached packages. Thanks for the answer. smile

Offline

Board footer

Powered by FluxBB