You are not logged in.

#1 2019-12-22 17:15:37

Enculiste
Member
From: France
Registered: 2019-12-22
Posts: 3

Built-in SD reader driver issue

Hello everyone,while this is my first post here on this forum, I would consider myself a not-such-a-noob arch-user as I spent some time through the forum and wiki but this issue is still bugging me as I still can't figure it out. Note that I will gladly perform any presentation post elsewhere if necessary.

In short, I have an HP stream computer and its built-in SD card reader stopped working after 5.x kernel update. As I don't use the SD card often I did not noticed at first (shame) and let this issue for some time now so I've no changelogs to diff from.

Yet you can see some previous investigation on this reddit post ,

I think the culprit is my card-reader driver as the card reader is unaffected. lspci -vvv gives:

01:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5229 PCI Express Card Reader (rev 01)
        DeviceName: Realtek One-LUN PCIe Card Reader Controller
        Subsystem: Hewlett-Packard Company RTS5229 PCI Express Card Reader
        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-
        Latency: 0, Cache Line Size: 64 bytes
        Interrupt: pin A routed to IRQ 119
        Region 0: Memory at 91100000 (32-bit, non-prefetchable) [size=4K]
        Capabilities: <access denied>
        Kernel driver in use: rtsx_pci
        Kernel modules: rtsx_pci, rts5229

From where I am now in my investigations, it seems that rtsx_pci driver is not able to launch the device and that installing this package solves the issue (or even more this version forked on git).

However when installing using either yay or manually from a git clone I get the following:

DKMS make.log for rts_bpp-10 for kernel 5.4.6-arch1-1 (x86_64)
dim. déc. 22 18:04:09 CET 2019
cp -f ./define.release ./define.h
make -C /lib/modules/5.4.6-arch1-1/build/ SUBDIRS=/var/lib/dkms/rts_bpp/10/build modules
make[1] : on entre dans le répertoire « /usr/lib/modules/5.4.6-arch1-1/build »
scripts/Makefile.build:42: arch/x86/entry/syscalls/Makefile: Aucun fichier ou dossier de ce type
make[2]: *** Aucune règle pour fabriquer la cible « arch/x86/entry/syscalls/Makefile ». Arrêt.
make[1]: *** [arch/x86/Makefile:238: archheaders] Error 2
make[1]: *** Attente des tâches non terminées....
make[1] : on quitte le répertoire « /usr/lib/modules/5.4.6-arch1-1/build »
make: *** [Makefile:38: default] Error 2

And I'm starting to loose hope here as the other solution I found was basically recompiling Linux with changes (a highly inefficient ans stupid workaround).

Any help and comments would be appreciated.

Regards,

G.C


Vim wizard wannabe, physics lover, soon to be hacker. smile

Offline

#2 2019-12-22 17:56:42

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,684

Re: Built-in SD reader driver issue

I don't know if it amounts to anything but I noticed:

 déc. 15 13:43:06 archHP systemd[1]: Dependency failed for /home/myname/SD

is expected instead of:

UUID=1F69-22FD /home/geclavier/SD

Offline

#3 2019-12-22 18:25:08

Enculiste
Member
From: France
Registered: 2019-12-22
Posts: 3

Re: Built-in SD reader driver issue

d_fajardo wrote:

I don't know if it amounts to anything but I noticed:

 déc. 15 13:43:06 archHP systemd[1]: Dependency failed for /home/myname/SD

is expected instead of:

UUID=1F69-22FD /home/geclavier/SD

Thanks for your reply but this one is on me. I actually edited the reddit post to change my name on the 1st time I posted and added fstab info later edition without the modification (Paranoid but also scatterbrain x) ). In the actual journalctl -b output the right dependency is set because I used to load the card with my fstab file.

As I finally don't care much about my privacy because this issue if making me more and more upset here are my fstab file and journalctl -b outputs that might be relevant for you here:
journalctl -b

déc. 22 17:44:17 archHP systemd[1]: Started udev Kernel Device Manager.
déc. 22 17:44:17 archHP systemd[1]: dev-disk-by\x2duuid-1F69\x2d22FD.device: Job dev-disk-by\x2duuid-1F69\x2d22FD.d>
déc. 22 17:44:17 archHP systemd[1]: Timed out waiting for device /dev/disk/by-uuid/1F69-22FD.
déc. 22 17:44:17 archHP systemd[1]: Dependency failed for File System Check on /dev/disk/by-uuid/1F69-22FD.
déc. 22 17:44:17 archHP systemd[1]: Dependency failed for /home/geclavier/SD.
déc. 22 17:44:17 archHP systemd[1]: home-geclavier-SD.mount: Job home-geclavier-SD.mount/start failed with result '>
déc. 22 17:44:17 archHP systemd[1]: systemd-fsck@dev-disk-by\x2duuid-1F69\x2d22FD.service: Job systemd-fsck@dev-dis>
déc. 22 17:44:17 archHP systemd[1]: dev-disk-by\x2duuid-1F69\x2d22FD.device: Job dev-disk-by\x2duuid-1F69\x2d22FD.d>

fstab:

# Static information about the filesystems.
# See fstab(5) for details.

# <file system> <dir> <type> <options> <dump> <pass>
# /dev/mmcblk1p3
UUID=180b2c79-7073-4321-aabc-2d17df69267c   /           ext4        rw,relatime 0 1

# /dev/mmcblk1p1
UUID=EE4D-7311          /boot/efi   vfat        rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859 -1,shortname=mixed,utf8,errors=remount-ro   0 2

# /dev/mmcblk1p4
UUID=2075af31-3c9d-4daf-9c45-1b31d6a18d1f   /home       ext4        rw,relatime 0 2

# /dev/mmcblk1p2
UUID=c03ecc1a-94a3-4b86-ac01-337443ef78d8   none        swap        defaults    0 0

# /dev/mmcblk0p1
UUID=1F69-22FD /home/geclavier/SD      vfat     user,rw,exec,dev,uid=1000,gid=998,nofail,x-systemd.device-timeout=1,umask=022 0 2

Oddly, on fdisk or lsblk outputs the mmcblk1 partition of above are assigned on /dev/mmcblk0 but I guess that's because the SD reader isn't detected.


Vim wizard wannabe, physics lover, soon to be hacker. smile

Offline

#4 2019-12-22 22:06:16

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,684

Re: Built-in SD reader driver issue

Have you tried commenting out the fstab entry, reboot, plugging-in and out the SD card and see what udev gives you?
https://wiki.archlinux.org/index.php/Udev

Offline

#5 2019-12-22 22:31:09

Enculiste
Member
From: France
Registered: 2019-12-22
Posts: 3

Re: Built-in SD reader driver issue

d_fajardo wrote:

Have you tried commenting out the fstab entry, reboot, plugging-in and out the SD card and see what udev gives you?
https://wiki.archlinux.org/index.php/Udev

Commenting out first makes a mouting error appear after logging :

mount: /home/geclavier/SD: impossible à trouver dans /etc/fstab. # (can't find in /etc/fstab)

and udev monitor tells nothing when plugging in and out the SD card (to anyone asking, the SD card is working fine on my debian and ubuntu work stations).

Edit: When uncommenting the fstab entry, udev monitor tells me the following when plugging the Sd card

KERNEL[37.393545] change   /devices/platform/regulatory.0 (platform)
UDEV  [37.399845] change   /devices/platform/regulatory.0 (platform)

Edit 2:
Okay so this finally seems to be a kernel issue : https://bugzilla.kernel.org/show_bug.cgi?id=204003
Too bad HP streams have a too small drive to keep huge cache and downgrade kernel. Guess we'll have to wait for a fix.

Last edited by Enculiste (2019-12-22 23:25:51)


Vim wizard wannabe, physics lover, soon to be hacker. smile

Offline

#6 2019-12-23 10:19:41

thePanz
Member
Registered: 2017-05-08
Posts: 9

Re: Built-in SD reader driver issue

Offline

Board footer

Powered by FluxBB