Slow boot with attached MicroSD

Hi everybody,

After attach a recent purchase of Samsung EVO 512Gb MicroSD Card, it’s detected and works well, but system boot time increase a lot (Laptop Thinkpad T15 Gen1)

$ systemd-analyze blame
52.283s systemd-udev-settle.service
11.379s abrtd.service
10.953s dracut-initqueue.service
10.172s systemd-cryptsetup@luks\x2dfd943b8d\x2d65cb\x2d40dd\x2dabcd\x2d6bd4b874b055.service
 6.273s NetworkManager-wait-online.service
 3.410s plymouth-quit-wait.service

And several boot errors appears in journal:

journalctl -b | grep mmc
jul 31 10:51:59 thinkpadt15 kernel: mmc0: cannot verify signal voltage switch
jul 31 10:51:59 thinkpadt15 kernel: mmc0: new ultra high speed SDR104 SDXC card at address 59b4
jul 31 10:52:11 thinkpadt15 kernel: mmcblk0: mmc0:59b4 GF8S5 478 GiB 
jul 31 10:53:03 thinkpadt15 kernel: mmc0: cannot verify signal voltage switch
jul 31 10:53:03 thinkpadt15 kernel:  mmcblk0: p1
jul 31 10:53:03 thinkpadt15 systemd-udevd[942]: mmcblk0p1: /usr/lib/udev/rules.d/60-block-scheduler.rules:5 Failed to write ATTR{/sys/devices/pci0000:00/0000:00:1c.0/0000:02:00.0/rtsx_pci_sdmmc.0/mmc_host/mmc0/mmc0:59b4/block/mmcblk0/mmcblk0p1/queue/scheduler}, ignoring: No such file or directory
jul 31 10:53:22 thinkpadt15 kernel: mmc0: cannot verify signal voltage switch
jul 31 10:53:22 thinkpadt15 kernel: EXT4-fs (mmcblk0p1): mounted filesystem with ordered data mode. Quota mode: none.
jul 31 10:53:22 thinkpadt15 udisksd[1301]: Mounted /dev/mmcblk0p1 at /run/media/manuelamr/MicroSD on behalf of uid 1000
jul 31 10:53:25 thinkpadt15 fwupd[3326]: 08:53:25:0012 FuEngine             failed to add device /sys/devices/pci0000:00/0000:00:1c.0/0000:02:00.0/rtsx_pci_sdmmc.0/mmc_host/mmc0/mmc0:59b4/block/mmcblk0: failed get ffu_capable for (null)

Anyone knows how to fix slow boot time and “failed to write ATTR” errors??

Kind regards

More info…

$ lspci -v | grep Reader
02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS522A PCI Express Card Reader (rev 01)
	Subsystem: Lenovo Device 22b4
	Flags: bus master, fast devsel, latency 0, IRQ 131, IOMMU group 13
	Memory at ef200000 (32-bit, non-prefetchable) [size=4K]
	Capabilities: [40] Power Management version 3
	Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit+
	Capabilities: [70] Express Endpoint, MSI 00
	Capabilities: [100] Advanced Error Reporting
	Capabilities: [140] Device Serial Number 00-00-00-01-00-4c-e0-00
	Capabilities: [150] Latency Tolerance Reporting
	Capabilities: [158] L1 PM Substates
	Kernel driver in use: rtsx_pci
	Kernel modules: rtsx_pci
$ lsmod | grep sd
snd_intel_sdw_acpi     20480  2 snd_sof_intel_hda_common,snd_intel_dspcfg
rtsx_pci_sdmmc         32768  0
mmc_core              196608  2 rtsx_pci_sdmmc,mmc_block
rtsx_pci              110592  1 rtsx_pci_sdmmc
$ journalctl -b | grep udev | grep depreca
jul 31 10:52:11 thinkpadt15 udevadm[914]: systemd-udev-settle.service is deprecated. Please fix multipathd.service not to pull it in.

I don’t know why it could be and if it is related to the SD card, but this bug report could be related at least to that message:

Bug 2001058 - systemd-udev-settle.service is deprecated. Please fix multipathd.service not to pull it in.

(It contains a possible workaround).