You are not logged in.

#1 2023-01-27 10:38:50

Flapper
Member
Registered: 2019-02-10
Posts: 46

TPM error every 10 seconds

Hi

I'm getting an error message in the journal, every 10 seconds:

ArchPC2 kernel: tpm tpm0: A TPM error (28) occurred attempting get random

I reinstalled Arch in September 2022 to fix a few issues, and have been getting message on each boot:

kernel: random: crng init done

and on resume:

ArchPC2 kernel: random: crng reseeded on system resumption

However, earlier this month the TPM error messages started.
If I reboot, the messages stop for a few days. During those days, I suspend/resume with no problem. Then they start again, on resuming from suspend.
I can see nothing that I did or any update that coincided with the start of these errors.

There are several posts in the forums with this message in the log, but only with another problem reported, such as suspend/resume failure. I'm getting no issues with it, other than a huge journal.
I'm hoping someone can provide a solution, I don't like error messages!

Offline

#2 2023-01-31 05:14:27

cypa
Member
Registered: 2021-06-30
Posts: 32

Re: TPM error every 10 seconds

I've got the same, dude.

what is your hardware?

Offline

#3 2023-01-31 05:41:59

progandy
Member
Registered: 2012-05-17
Posts: 5,317

Re: TPM error every 10 seconds

This may be related, but starts with the suspend/resume failure: https://lore.kernel.org/all/Y8sn%2FfLG0 … ernel.org/

Last edited by progandy (2023-01-31 05:42:38)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#4 2023-02-01 18:18:01

Flapper
Member
Registered: 2019-02-10
Posts: 46

Re: TPM error every 10 seconds

@cypa

System:
  Host: ArchPC2 Kernel: 6.1.7-arch1-1 arch: x86_64 bits: 64 Desktop: sway
    v: 1.8 Distro: Arch Linux
Machine:
  Type: Desktop System: Hewlett-Packard product: HP EliteDesk 800 G1 SFF
    v: N/A serial: <superuser required>
  Mobo: Hewlett-Packard model: 1998 serial: <superuser required>
    UEFI: Hewlett-Packard v: L01 v02.65 date: 07/13/2015
CPU:
  Info: quad core model: Intel Core i5-4690 bits: 64 type: MCP cache:
    L2: 1024 KiB
  Speed (MHz): avg: 2191 min/max: 800/3900 cores: 1: 3900 2: 800 3: 800
    4: 3265
Graphics:
  Device-1: Intel Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics
    driver: i915 v: kernel

@progandy
- yes I do recall a suspend failure a few weeks ago, I will look at the journal.

In the meantime, I changed the BIOS settings, there's nothing which says 'TPM', but there is
'OS management of Embedded security device', which I disabled.

I have not had any TPM errors since, but will keep you posted.

Offline

#5 2023-02-19 11:08:10

Flapper
Member
Registered: 2019-02-10
Posts: 46

Re: TPM error every 10 seconds

The TPM errors are back again, after several weeks without. PC was running for 9 days (suspended overnight) without triggering TPM errors.
every 10 seconds:

ArchPC2 kernel: tpm tpm0: A TPM error (28) occurred attempting get random

I saw a suggestion from Seth to blacklist the tpm module:

https://bbs.archlinux.org/viewtopic.php?id=233554

I assume this would mean this module:

lsmod | grep tpm
tpm_infineon           20480  0

but is blacklisting tpm_infineon sufficient? I see systemd also has its tentacles in TPM (+TPM2, below):

systemctl --version
systemd 253 (253-1-arch)
+PAM +AUDIT -SELINUX -APPARMOR -IMA +SMACK +SECCOMP +GCRYPT +GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 -IDN +IPTC +KMOD +LIBCRYPTSETUP +LIBFDISK +PCRE2 -PWQUALITY +P11KIT -QRENCODE +TPM2 +BZIP2 +LZ4 +XZ +ZLIB +ZSTD +BPF_FRAMEWORK +XKBCOMMON +UTMP -SYSVINIT default-hierarchy=unified

Offline

#6 2023-02-19 11:55:02

loqs
Member
Registered: 2014-03-06
Posts: 18,917

Re: TPM error every 10 seconds

Flapper wrote:

I saw a suggestion from Seth to blacklist the tpm module:

https://bbs.archlinux.org/viewtopic.php?id=233554

I assume this would mean this module:

lsmod | grep tpm
tpm_infineon           20480  0

but is blacklisting tpm_infineon sufficient?

Why not try it?

Offline

#7 2023-02-22 10:23:31

Flapper
Member
Registered: 2019-02-10
Posts: 46

Re: TPM error every 10 seconds

I blacklisted tpm_infineon, and the PC has been fine for over 2 days, but after resuming from  suspend this morning, the TPM errors are back again.

Any ideas how I should proceed from here?

Offline

#8 2023-02-22 12:26:57

agapito
Member
From: Who cares.
Registered: 2008-11-13
Posts: 703

Re: TPM error every 10 seconds

Flapper wrote:

I blacklisted tpm_infineon, and the PC has been fine for over 2 days, but after resuming from  suspend this morning, the TPM errors are back again.

Any ideas how I should proceed from here?

Update your motherboard's bios or compile your own kernel and don´t build TPM related stuff.

# CONFIG_TCG_TPM is not set
# CONFIG_HW_RANDOM_TPM is not set
# CONFIG_TCG_TIS_CORE is not set
# CONFIG_TCG_TIS is not set
# CONFIG_TCG_TIS_SPI is not set
# CONFIG_TCG_TIS_I2C is not set
# CONFIG_TCG_TIS_I2C_CR50 is not set
# CONFIG_TCG_TIS_I2C_ATMEL is not set
# CONFIG_TCG_TIS_I2C_INFINEON is not set
# CONFIG_TCG_TIS_I2C_NUVOTON is not set
# CONFIG_TCG_NSC is not set
# CONFIG_TCG_ATMEL is not set
# CONFIG_TCG_INFINEON is not set
# CONFIG_TCG_CRB  is not set
# CONFIG_TCG_VTPM_PROXY is not set
# CONFIG_TCG_TIS_ST33ZP24_I2C is not set
# CONFIG_TCG_TIS_ST33ZP24_SPI is not set
# CONFIG_TELCLOCK is not set
# CONFIG_XILLYBUS is not set
# CONFIG_XILLYUSB is not set 

Excuse my poor English.

Offline

#9 2023-02-22 12:43:05

d.ALT
Member
Registered: 2019-05-10
Posts: 959

Re: TPM error every 10 seconds


<49,17,III,I>    Fama di loro il mondo esser non lassa;
<50,17,III,I>    misericordia e giustizia li sdegna:
<51,17,III,I>    non ragioniam di lor, ma guarda e passa.

Offline

#10 2023-04-16 13:18:06

fuan_k
Member
Registered: 2023-04-16
Posts: 1

Re: TPM error every 10 seconds

Upgraded my kernel recently to 6.1.22-1-lts #1 SMP PREEMPT_DYNAMIC Thu, 30 Mar 2023 14:10:04 +0000 x86_64 GNU/Linux and noticed these error starting to appear today:

Apr 16 14:23:33 clevo kernel: tpm tpm0: A TPM error (28) occurred continue selftest
...
Apr 16 14:23:33 clevo kernel: random: crng reseeded on system resumption
...
Apr 16 14:24:31 clevo kernel: tpm tpm0: A TPM error (28) occurred attempting get random
Apr 16 14:24:41 clevo kernel: tpm tpm0: A TPM error (28) occurred attempting get random                                                                                                                                                       
Apr 16 14:24:51 clevo kernel: tpm tpm0: A TPM error (28) occurred attempting get random                                                                                                                                                       
Apr 16 14:25:01 clevo kernel: tpm tpm0: A TPM error (28) occurred attempting get random                                                                                                                                                       
Apr 16 14:25:11 clevo kernel: tpm tpm0: A TPM error (28) occurred attempting get random                                                                                                                                                       
Apr 16 14:25:21 clevo kernel: tpm tpm0: A TPM error (28) occurred attempting get random
...

I'm not really sure if I need TPM or not.

Offline

#11 2024-03-25 09:20:56

guilhem
Member
Registered: 2024-03-25
Posts: 1

Re: TPM error every 10 seconds

Hi everyone,
I manage to work around this problem by sending `TPM2_SU_STATE` after each suspend by using:
https://gist.github.com/guilhem/d372e8a … c662c48f39

Offline

Board footer

Powered by FluxBB