You are not logged in.
Hello,
My SD card reader in my HP spectre laptop is unable to recognize my sd card and lspci gives:
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Host Bridge/DRAM Registers (rev 08)
00:02.0 VGA compatible controller: Intel Corporation Skylake GT2 [HD Graphics 520] (rev 07)
00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21)
00:14.2 Signal processing controller: Intel Corporation Sunrise Point-LP Thermal subsystem (rev 21)
00:16.0 Communication controller: Intel Corporation Sunrise Point-LP CSME HECI #1 (rev 21)
00:17.0 SATA controller: Intel Corporation Sunrise Point-LP SATA Controller [AHCI mode] (rev 21)
00:1c.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #1 (rev f1)
00:1c.1 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #2 (rev f1)
00:1f.0 ISA bridge: Intel Corporation Sunrise Point-LP LPC Controller (rev 21)
00:1f.2 Memory controller: Intel Corporation Sunrise Point-LP PMC (rev 21)
00:1f.3 Audio device: Intel Corporation Sunrise Point-LP HD Audio (rev 21)
00:1f.4 SMBus: Intel Corporation Sunrise Point-LP SMBus (rev 21)
01:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5227 PCI Express Card Reader (rev 01)
02:00.0 Network controller: Intel Corporation Wireless 7265 (rev 61)
I tried different kernel including linux-lts without success. I also installed rts5227-dkms from AUR but no success until now.
If anybody has any idea about this problem, that will be great.
Thanks in advance ![]()
Offline
I would expect rts5227-dkms to fail to build due to the Makefile using the removed SUBDIRS option. Is that the issue you encountered?
Offline
I would expect rts5227-dkms to fail to build due to the Makefile using the removed SUBDIRS option. Is that the issue you encountered?
It seems to build correctly, when I reinstalled it last few lines were like this (without any errors) :
:: Exécution des crochets de pré-transaction…
(1/1) Remove DKMS modules
==> dkms remove rts5227/1.07 -k 5.5.9-arch1-2
==> dkms remove rts5227/1.07 -k 5.5.9-zen1-2-zen
==> dkms remove rts5227/1.07 -k 5.4.25-2-lts
:: Traitement des changements du paquet…
(1/1) réinstallation rts5227-dkms [##########################################################################] 100%
:: Exécution des crochets de post-transaction…
(1/2) Arming ConditionNeedsUpdate...
(2/2) Install DKMS modules
==> dkms install rts5227/1.07 -k 5.5.9-arch1-2
==> dkms install rts5227/1.07 -k 5.5.9-zen1-2-zen
==> dkms install rts5227/1.07 -k 5.4.25-2-lts
Aucune erreur de base de données n’a été trouvée !Offline
Is the rts5229 module loaded? What is the output of dmesg?
Offline
Is the rts5229 module loaded? What is the output of dmesg?
Sorry but how to check whether the module is loaded or not ? and output of dmesg is too long, I've no idea which part is useful for my problem ![]()
Last edited by nilo (2020-03-18 22:27:48)
Offline
`man lsmod`
Offline
Yes, i think that it's loaded:
Module Size Used by
rts5229 323584 0
uas 32768 0
usb_storage 77824 1 uas
ohci_hcd 57344 0
rtsx_pci_ms 24576 0
memstick 24576 1 rtsx_pci_ms
fuse 139264 5
rfcomm 90112 16
ccm 20480 3
cmac 16384 5
algif_hash 16384 2Offline
If the dmesg output is too long to fit in code tags you can post it to a pastebin.
Offline
If the dmesg output is too long to fit in code tags you can post it to a pastebin.
Thank you for the tip ![]()
Here is the pastbin link : http://codepad.org/nh18wV8k
Offline
Probably the hardware can be faulty. I tried live usb of ubuntu 16.04 lts and 19.10, I had systematically the same output after lspci command ![]()
Offline
[ 0.941845] rtsx_pci 0000:01:00.0: enabling device (0000 -> 0002)The module enabled the device at least.
Offline
So rts5229 is loaded but not used
lspci -k -s 01:00.0Probably because the rtsx_pci blacklist doesn't apply.
https://wiki.archlinux.org/index.php/Ke … acklisting
Probably because the module is in the initramfs?
lsinitcpio /boot/initramfs-linux.img | grep rtsxOffline
So rts5229 is loaded but not used
lspci -k -s 01:00.0Probably because the rtsx_pci blacklist doesn't apply.
https://wiki.archlinux.org/index.php/Ke … acklistingProbably because the module is in the initramfs?
lsinitcpio /boot/initramfs-linux.img | grep rtsx
lspci -k -s 01:00.0gives
01:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5227 PCI Express Card Reader (rev 01)
DeviceName: Realtek PCIE CardReader
Subsystem: Hewlett-Packard Company RTS5227 PCI Express Card Reader
Kernel driver in use: rtsx_pci
Kernel modules: rtsx_pci, rts5229even though /etc/modprobe.d/blacklist-rts5227-dkms.conf
blacklist rtsx_pci
install rtsx_pci /bin/trueI changed install rtsx_pci /bin/false to install rtsx_pci /bin/true as per arch wiki.
and it seems like you were right lsinitcpio /boot/initramfs-linux.img | grep rtsx gives output as
usr/lib/modules/5.5.9-arch1-2/kernel/rtsx_pci.ko
usr/lib/modules/5.5.9-arch1-2/kernel/rtsx_pci_sdmmc.koOffline
I blacklisted rtsx_pci through kernel parameters and still not working
lspci -k -s 01:00.0 gives back
01:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5227 PCI Express Card Reader (rev 01)
DeviceName: Realtek PCIE CardReader
Subsystem: Hewlett-Packard Company RTS5227 PCI Express Card Reader
Kernel driver in use: rts5229
Kernel modules: rtsx_pci, rts5229Offline
But the used module changed, so let's see what impact that has on the dmesg… (whether the device is treated any differently)
Offline
Some new things happened! I permanently blacklisted rtsx_pci in kernel parameters by adding options module_blacklist=rtsx_pci in /boot/loader/entries/arch.conf . Then i looked as the output of lspci -nn and surprisingly there was no sd card reader was detected even after i modprobed rts5229. The output of lspci -nn :
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Host Bridge/DRAM Registers (rev 08)
00:02.0 VGA compatible controller: Intel Corporation Skylake GT2 [HD Graphics 520] (rev 07)
00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21)
00:14.2 Signal processing controller: Intel Corporation Sunrise Point-LP Thermal subsystem (rev 21)
00:16.0 Communication controller: Intel Corporation Sunrise Point-LP CSME HECI #1 (rev 21)
00:17.0 SATA controller: Intel Corporation Sunrise Point-LP SATA Controller [AHCI mode] (rev 21)
00:1c.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #2 (rev f1)
00:1f.0 ISA bridge: Intel Corporation Sunrise Point-LP LPC Controller (rev 21)
00:1f.2 Memory controller: Intel Corporation Sunrise Point-LP PMC (rev 21)
00:1f.3 Audio device: Intel Corporation Sunrise Point-LP HD Audio (rev 21)
00:1f.4 SMBus: Intel Corporation Sunrise Point-LP SMBus (rev 21)
01:00.0 Network controller: Intel Corporation Wireless 7265 (rev 61)And the dmesg output is in : http://codepad.org/e5MPvWHZ
Last edited by nilo (2020-03-19 16:26:35)
Offline
[ 0.168204] DMAR: [Firmware Bug]: No firmware reserved region can cover this RMRR [0x000000008d800000-0x000000008fffffff], contact BIOS vendor for fixes
[ 0.168210] ------------[ cut here ]------------
[ 0.168211] Your BIOS is broken; bad RMRR [0x000000008d800000-0x000000008fffffff]
BIOS vendor: American Megatrends Inc.; Ver: F.52; Product Version:
[ 0.168221] WARNING: CPU: 0 PID: 0 at drivers/iommu/intel-iommu.c:4333 dmar_parse_one_rmrr+0x7d/0x10d
[ 0.168221] Modules linked in:
[ 0.168224] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.5.9-arch1-2 #1
[ 0.168224] Hardware name: HP HP Spectre x360 Convertible /804E, BIOS F.52 11/16/2018
[ 0.168226] RIP: 0010:dmar_parse_one_rmrr+0x7d/0x10d
[ 0.168227] Code: bf 01 00 00 00 48 89 c5 e8 09 e3 db fe 48 8b 53 10 48 8b 73 08 4d 89 e1 48 89 c1 49 89 e8 48 c7 c7 98 ba b7 8f e8 5e 03 70 fe <0f> 0b 48 8b 3d 13 a7 82 ff ba 38 00 00 00 be c0 0d 00 00 e8 c4 bc
[ 0.168228] RSP: 0000:ffffffff8fe03e08 EFLAGS: 00010286
[ 0.168229] RAX: 0000000000000000 RBX: ffffab4e40019ee0 RCX: 0000000000000000
[ 0.168230] RDX: 0000000000000002 RSI: 0000000000000086 RDI: 00000000ffffffff
[ 0.168231] RBP: ffffffff9080001c R08: 00000000000000f3 R09: 0000000000000004
[ 0.168231] R10: 0000000000000000 R11: 0000000000000001 R12: ffffffff8f8f9dcc
[ 0.168232] R13: ffffffff8fe03e58 R14: 00000000ffe3f000 R15: 0000000000000002
[ 0.168233] FS: 0000000000000000(0000) GS:ffff89a026c00000(0000) knlGS:0000000000000000
[ 0.168233] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 0.168234] CR2: ffff899fb5201000 CR3: 00000001f480a001 CR4: 00000000000606b0
[ 0.168235] Call Trace:
[ 0.168240] dmar_walk_remapping_entries+0x76/0x120
[ 0.168242] dmar_table_init+0xce/0x15e
[ 0.168243] ? dmar_free_dev_scope+0x70/0x70
[ 0.168245] ? intel_iommu_setup+0x20b/0x20b
[ 0.168246] ? iommu_resume+0x1b0/0x1b0
[ 0.168247] ? amd_iommu_bind_pasid+0x200/0x200
[ 0.168249] ? amd_iommu_v2_init+0x6d/0x6d
[ 0.168251] intel_prepare_irq_remapping+0x3d/0x227
[ 0.168252] irq_remapping_prepare+0x1d/0x5f
[ 0.168254] enable_IR_x2apic+0x21/0x188
[ 0.168257] default_setup_apic_routing+0x12/0x6f
[ 0.168258] apic_intr_mode_init+0xc9/0xec
[ 0.168260] x86_late_time_init+0x20/0x25
[ 0.168262] start_kernel+0x4cd/0x586
[ 0.168265] secondary_startup_64+0xb6/0xc0
[ 0.168268] ---[ end trace 37383b36903b623a ]---pass "iommu=soft" to the kernel, see what happens.
Offline
After passing "iommu=soft", the device is seen again but as assigned :
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Host Bridge/DRAM Registers (rev 08)
00:02.0 VGA compatible controller: Intel Corporation Skylake GT2 [HD Graphics 520] (rev 07)
00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21)
00:14.2 Signal processing controller: Intel Corporation Sunrise Point-LP Thermal subsystem (rev 21)
00:16.0 Communication controller: Intel Corporation Sunrise Point-LP CSME HECI #1 (rev 21)
00:17.0 SATA controller: Intel Corporation Sunrise Point-LP SATA Controller [AHCI mode] (rev 21)
00:1c.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #1 (rev f1)
00:1c.1 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #2 (rev f1)
00:1f.0 ISA bridge: Intel Corporation Sunrise Point-LP LPC Controller (rev 21)
00:1f.2 Memory controller: Intel Corporation Sunrise Point-LP PMC (rev 21)
00:1f.3 Audio device: Intel Corporation Sunrise Point-LP HD Audio (rev 21)
00:1f.4 SMBus: Intel Corporation Sunrise Point-LP SMBus (rev 21)
01:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5227 PCI Express Card Reader (rev 01)
02:00.0 Network controller: Intel Corporation Wireless 7265 (rev 61)and lspci -k -s 01:00.0 outputs :
01:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5227 PCI Express Card Reader (rev 01)
DeviceName: Realtek PCIE CardReader
Subsystem: Hewlett-Packard Company RTS5227 PCI Express Card Reader
Kernel driver in use: rts5229
Kernel modules: rtsx_pci, rts5229and dmesg : http://codepad.org/eaRa7MJ6
Offline
Please modify the PKGBUILD adding the following to the start of the package function. This enables more diagnostic messages.
package(){
+ cp rts5229/define.debug rts5229/define.h
sourceDir="${srcdir}/rts5229"Install the modified package and post an updated dmesg.
Last edited by loqs (2020-03-19 19:22:51)
Offline