TPM (driver) issues

Hello there!

First things first, I’m aware that this ISN’T EndeavourOS, but I had this issue too before switching the distro, and I don’t think being it EOS or CachyOS, that it would change anything.

Now, onto the issue.

I have a Dell Latitude 5480, with the latest available BIOS (1.39.0 at the time of writing).
Full specs below.

❯ inxi -Fz
System:
Kernel:6.19.10-1-cachyos-bore-ltoarch:x86_64bits:64
Desktop:KDE Plasmav:6.6.3Distro:CachyOS
Machine:
Type:LaptopSystem:Dellproduct:Latitude 5480v:N/A
serial:<superuser required>
Mobo:Dellmodel:0NDFXDv:A00serial:<superuser required>
Firmware:UEFIvendor:Dellv:1.39.0date:11/06/2024
Battery:
ID-1:BAT0charge:54.2 Wh (81.5%)condition:66.5/68 Wh (97.7%)volts:8.05
min:7.6
CPU:
Info:dual coremodel:Intel Core i5-7200Ubits:64type:MT MCPcache:
L2:512 KiB
Speed (MHz): avg:2379min/max:400/3100cores: 1:23792:23793:2379
4:2379
Graphics:
Device-1:Intel Kaby Lake-U GT2 [HD Graphics 620]driver:i915v:kernel
Device-2:Realtek Integrated Webcam HDdriver:uvcvideotype:USB
Display:waylandserver:``X.org``v:1.21.1.21with:Xwaylandv:24.1.9
compositor:kwin_waylanddriver: gpu:i915resolution: 1:3840x2160~60Hz
2:1920x1080~60Hz
API:EGLv:1.5drivers:iris,swrast
platforms:gbm,wayland,x11,surfaceless,device
API:OpenGLv:4.6compat-v:4.5vendor:intel mesav:26.0.3-arch2.2
renderer:Mesa Intel HD Graphics 620 (KBL GT2)
API:Vulkanv:1.4.341drivers:intelsurfaces:N/A
Info: Tools: api:clinfo, eglinfo, glxinfo, vulkaninfo
de:kscreen-console,kscreen-doctorwl:wayland-info
x11:xdpyinfo, xprop, xrandr
Audio:
Device-1:Intel Sunrise Point-LP HD Audiodriver:snd_hda_intel
API:ALSAv:k6.19.10-1-cachyos-bore-ltostatus:kernel-api
Server-1:PipeWirev:1.6.2status:active
Network:
Device-1:Intel Ethernet I219-LMdriver:e1000e
IF:enp0s31f6state:downmac:<filter>
Device-2:Intel Wireless 8265 / 8275driver:iwlwifi
IF:wlan0state:upmac:<filter>
Device-3:ASIX AX88179 Gigabit Ethernetdriver:cdc_ncmtype:USB
IF:eth0state:upspeed:1000 Mbpsduplex:unknownmac:<filter>
IF-ID-1:tailscale0state:unknownspeed:-1duplex:fullmac:N/A
Drives:
Local Storage: total:238.47 GiBused:135.61 GiB (56.9%)
ID-1:/dev/sdavendor:LITE-ONmodel:CV3-8D256-11 SATA 256GB
size:238.47 GiB
Partition:
ID-1:/size:230.02 GiBused:134.9 GiB (58.6%)fs:f2fsdev:/dev/sda2
ID-2:/bootsize:1022 MiBused:733.8 MiB (71.8%)fs:vfatdev:/dev/sda1
Swap:
ID-1:swap-1type:zramsize:15.46 GiBused:0 KiB (0.0%)dev:/dev/zram0
ID-2:swap-2type:partitionsize:7.45 GiBused:0 KiB (0.0%)
dev:/dev/sda3
Sensors:
System Temperatures: cpu:0.0 Cpch:48.5 Cmobo:41.0 C
Fan Speeds (rpm): cpu:0
Info:
Memory: total:16 GiBavailable:15.46 GiBused:3.99 GiB (25.8%)
Processes:252Uptime:6mShell:fishinxi:3.3.40

~

The problem here, as the name implies, is that applications that rely on the TPM (like Tailscale) have issues.

Now, as far as I’m aware, the issue doesn’t come from Tailscale itself, but rather from the drivers of the TPM?

Sometimes, when I boot the PC’, it takes around 2 minutes, because it tries to load the TPM, but results in a timeout, then continues the start process, but sometimes, it loads the driver without any issues.

TPM not working

❯ systemd-analyze has-tpm2 
partial 
+firmware 
-driver 
+system 
+subsystem 
+libraries 
  +libtss2-esys.so.0 
  +libtss2-rc.so.0 
  +libtss2-mu.so.0 
 
~ 
❯ sudo dmesg | grep -iE 'tpm|tpm_tis|tpm_crb|TPM2|tpm0' 
[    0.000000] efi: ACPI=0xc6efd000 ACPI 2.0=0xc6efd000 SMBIOS=0xf0000 SMBIOS 3.0=0xf0020 TPMFinalLog=0xc7809000 ESRT=0xc7c7e018 MEMATTR=0xc1a12018 RNG=0xc6efc018 INITRD=0xb3121f98 TPMEventLog=0xc6ef7018  
[    0.010748] ACPI: TPM2 0x00000000C6F307D8 000034 (v03        Tpm2Tabl 00000001 AMI  00000000) 
[    0.010775] ACPI: Reserving TPM2 table memory at [mem 0xc6f307d8-0xc6f3080b] 
[    1.217386] tpm_tis MSFT0101:00: probe with driver tpm_tis failed with error -1 
[    5.898477] systemd[1]: systemd 260.1-1-arch running in system mode (+PAM +AUDIT -SELINUX +APPARMOR -IMA +IPE +SMACK +SECCOMP +GCRYPT +GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 +KMOD +LIBCRYPTSETUP +LIBCRYPTSETUP_PLUGI
NS +LIBFDISK +PCRE2 +PWQUALITY +P11KIT +QRENCODE +TPM2 +BZIP2 +LZ4 +XZ +ZLIB +ZSTD +BPF_FRAMEWORK +BTF +XKBCOMMON +UTMP +LIBARCHIVE) 
[    6.266132] systemd[1]: Expecting device /dev/tpm0... 
[    6.266140] systemd[1]: Expecting device /dev/tpmrm0... 
 
~ 
❯ ls -l /dev/tpm* /dev/tpmrm0
fish : No matches for wildcard ‘/dev/tpm*’. See help language#wildcards-globbing.
ls -l /dev/tpm* /dev/tpmrm0
^~~~~~~~^

~
❯ bash
[luxi@Latitude-5480 ~]$ ls -l /dev/tpm* /dev/tpmrm0
ls: impossible d’accéder à ‘/dev/tpm*’: Aucun fichier ou dossier de ce nom
ls: impossible d’accéder à ‘/dev/tpmrm0’: Aucun fichier ou dossier de ce nom
[luxi@Latitude-5480 ~]

TPM working

❯ ls -l /dev/tpm* /dev/tpmrm0
crw-rw----    10,224 tss   3 avr 13:23 󰡯 /dev/tpm0
crw-rw---- 252,65536 root  3 avr 13:23 󰡯 /dev/tpmrm0
crw-rw---- 252,65536 root  3 avr 13:23 󰡯 /dev/tpmrm0

~
❯ systemd-analyze has-tpm2
yes
+firmware
+driver
+system
+subsystem
+libraries
+libtss2-esys.so.0
+libtss2-rc.so.0
+libtss2-mu.so.0

I did found this long forum post about people trying a lot of combinations. I did disconnected the main, and BIOS battery (thus, causing a BIOS reset), but still the same issue.

Thanks in advance for the help!