среда

[Bug 2089147] [NEW] TPM1.2 not working on 6.8 kernel

Public bug reported:

TPM is not working on the 6.8 kernel. It works when switched to 5.15 on
the same machine.

System details
Kernel: 6.8.0-49-generic
Version: Ubuntu 22.04.5 LTS
TPM Chip Version: 1.2.66.1
TPM Vendor: ATML

Error shown with 6.8 kernel
$ tpm_version
Tspi_Context_Connect failed: 0x00003011 - layer=tsp, code=0011 (17), Communication failure

On the same machine with 5.15 kernel, it is working fine
$ tpm_version
>1V TPM 1.2 Version Info:
Chip Version: 1.2.66.1
Spec Level: 2
Errata Revision: 3
TPM Vendor ID: ATML
TPM Version: 01010000
Manufacturer Info: 41544d4c

Logs
$ sudo systemctl status trousers
× trousers.service - LSB: starts tcsd
Loaded: loaded (/etc/init.d/trousers; generated)
Active: failed (Result: exit-code) since Thu 2024-11-07 05:16:02 UTC; 4min 3s ago
Docs: man:systemd-sysv-generator(8)
Process: 7838 ExecStart=/etc/init.d/trousers start (code=exited, status=135)

Nov 07 05:16:01 RC240WZP2337Z0FD systemd[1]: Starting LSB: starts tcsd...
Nov 07 05:16:02 RC240WZP2337Z0FD trousers[7838]: * Starting Trusted Computing daemon tcsd
Nov 07 05:16:02 RC240WZP2337Z0FD tcsd[7945]: TCSD TDDL[7945]: TrouSerS ioctl: (25) Inappropriate ioctl for device
Nov 07 05:16:02 RC240WZP2337Z0FD tcsd[7945]: TCSD TDDL[7945]: TrouSerS Falling back to Read/Write device support.
Nov 07 05:16:02 RC240WZP2337Z0FD tcsd[7945]: TCSD TDDL[7945]: TrouSerS ERROR: write to device /dev/tpm0 failed: Timer expiredNov 07 05:16:02 RC240WZP2337Z0FD trousers[7838]: ...fail!
Nov 07 05:16:02 RC240WZP2337Z0FD tcsd[7945]: TCSD TCS[7945]: TrouSerS ERROR: TCS GetCapability failed with result = 0x1087
Nov 07 05:16:02 RC240WZP2337Z0FD systemd[1]: trousers.service: Control process exited, code=exited, status=135/n/aNov 07 05:16:02 RC240WZP2337Z0FD systemd[1]: trousers.service: Failed with result 'exit-code'.
Nov 07 05:16:02 RC240WZP2337Z0FD systemd[1]: Failed to start LSB: starts tcsd.

dmesg log related to TPM

[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-6.8.0-49-generic root=/dev/mapper/root-os ro console=tty1 console=ttyS1,115200n8 netcfg/do_not_use_netplan=true scsi_mod.use_blk_mq=1 net.ifnames=0 biosdevname=0 nomodeset noplymouth processor.max_cstate=1 intel_idle.max_cstate=0 ipmi_watchdog.timeout=3600 ipmi_watchdog.nowayout=1 fsck.repair=yes sunrpc.svc_rpc_per_connection_limit=32 libata.allow_tpm=1 intel_pstate=active cpufreq.default_governor=performance crashkernel=1G,high
[ 1.002153] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-6.8.0-49-generic root=/dev/mapper/root-os ro console=tty1 console=ttyS1,115200n8 netcfg/do_not_use_netplan=true scsi_mod.use_blk_mq=1 net.ifnames=0 biosdevname=0 nomodeset noplymouth processor.max_cstate=1 intel_idle.max_cstate=0 ipmi_watchdog.timeout=3600 ipmi_watchdog.nowayout=1 fsck.repair=yes sunrpc.svc_rpc_per_connection_limit=32 libata.allow_tpm=1 intel_pstate=active cpufreq.default_governor=performance crashkernel=1G,high
[ 16.346678] tpm_tis 00:07: 1.2 TPM (device-id 0x3205, rev-id 80)
[ 16.388955] tpm tpm0: tpm_try_transmit: send(): error -62
[ 22.619661] tpm tpm0: tpm_try_transmit: send(): error -62
[ 32.859675] tpm tpm0: tpm_try_transmit: send(): error -62

$ sudo journalctl -xeu trousers.service
Nov 20 09:39:55 RC240WZP2337Z0FD systemd[1]: Starting LSB: starts tcsd...
░░ Subject: A start job for unit trousers.service has begun execution
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit trousers.service has begun execution.
░░
░░ The job identifier is 152.
Nov 20 09:39:55 RC240WZP2337Z0FD trousers[13637]: * Starting Trusted Computing daemon tcsd
Nov 20 09:39:55 RC240WZP2337Z0FD tcsd[13756]: TCSD TDDL[13756]: TrouSerS ioctl: (25) Inappropriate ioctl for device
Nov 20 09:39:55 RC240WZP2337Z0FD tcsd[13756]: TCSD TDDL[13756]: TrouSerS Falling back to Read/Write device support.
Nov 20 09:39:55 RC240WZP2337Z0FD tcsd[13756]: TCSD TDDL[13756]: TrouSerS ERROR: write to device /dev/tpm0 failed: Timer expired
Nov 20 09:39:55 RC240WZP2337Z0FD tcsd[13756]: TCSD TCS[13756]: TrouSerS ERROR: TCS GetCapability failed with result = 0x1087
Nov 20 09:39:55 RC240WZP2337Z0FD trousers[13637]: ...fail!
Nov 20 09:39:55 RC240WZP2337Z0FD systemd[1]: trousers.service: Control process exited, code=exited, status=135/n/a
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ An ExecStart= process belonging to unit trousers.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 135.
Nov 20 09:39:55 RC240WZP2337Z0FD systemd[1]: trousers.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ The unit trousers.service has entered the 'failed' state with result 'exit-code'.
Nov 20 09:39:55 RC240WZP2337Z0FD systemd[1]: Failed to start LSB: starts tcsd.
░░ Subject: A start job for unit trousers.service has failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit trousers.service has finished with a failure.
░░
░░ The job identifier is 152 and the job result is failed.

** Affects: linux (Ubuntu)
Importance: Undecided
Status: New

** Description changed:

+ TPM is not working on the 6.8 kernel. It works when switched to 5.15 on
+ the same machine.
+
System details
- $ uname -a
- Linux RC240WZP2337Z0FD 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
+ Kernel: 6.8.0-49-generic
+ Version: Ubuntu 22.04.5 LTS
+ TPM Chip Version: 1.2.66.1
+ TPM Vendor: ATML

- $ lsb_release -a
- No LSB modules are available.
- Distributor ID: Ubuntu
- Description: Ubuntu 22.04.5 LTS
- Release: 22.04
- Codename: jammy
-
- TPM is not working on the 6.8 kernel
-
+ Error shown with 6.8 kernel
$ tpm_version
Tspi_Context_Connect failed: 0x00003011 - layer=tsp, code=0011 (17), Communication failure

+
On the same machine with 5.15 kernel, it is working fine
-
- $ tpm_version>1V
- TPM 1.2 Version Info:
+ $ tpm_version
+ >1V TPM 1.2 Version Info:
Chip Version: 1.2.66.1
Spec Level: 2
Errata Revision: 3
TPM Vendor ID: ATML
TPM Version: 01010000
Manufacturer Info: 41544d4c

Logs
$ sudo systemctl status trousers
- × trousers.service - LSB: starts tcsd
- Loaded: loaded (/etc/init.d/trousers; generated)
- Active: failed (Result: exit-code) since Thu 2024-11-07 05:16:02 UTC; 4min 3s ago
- Docs: man:systemd-sysv-generator(8)
- Process: 7838 ExecStart=/etc/init.d/trousers start (code=exited, status=135)
+ × trousers.service - LSB: starts tcsd
+   Loaded: loaded (/etc/init.d/trousers; generated)
+   Active: failed (Result: exit-code) since Thu 2024-11-07 05:16:02 UTC; 4min 3s ago
+   Docs: man:systemd-sysv-generator(8)
+   Process: 7838 ExecStart=/etc/init.d/trousers start (code=exited, status=135)

Nov 07 05:16:01 RC240WZP2337Z0FD systemd[1]: Starting LSB: starts tcsd...
Nov 07 05:16:02 RC240WZP2337Z0FD trousers[7838]: * Starting Trusted Computing daemon tcsd
Nov 07 05:16:02 RC240WZP2337Z0FD tcsd[7945]: TCSD TDDL[7945]: TrouSerS ioctl: (25) Inappropriate ioctl for device
Nov 07 05:16:02 RC240WZP2337Z0FD tcsd[7945]: TCSD TDDL[7945]: TrouSerS Falling back to Read/Write device support.
Nov 07 05:16:02 RC240WZP2337Z0FD tcsd[7945]: TCSD TDDL[7945]: TrouSerS ERROR: write to device /dev/tpm0 failed: Timer expiredNov 07 05:16:02 RC240WZP2337Z0FD trousers[7838]: ...fail!
Nov 07 05:16:02 RC240WZP2337Z0FD tcsd[7945]: TCSD TCS[7945]: TrouSerS ERROR: TCS GetCapability failed with result = 0x1087
Nov 07 05:16:02 RC240WZP2337Z0FD systemd[1]: trousers.service: Control process exited, code=exited, status=135/n/aNov 07 05:16:02 RC240WZP2337Z0FD systemd[1]: trousers.service: Failed with result 'exit-code'.
Nov 07 05:16:02 RC240WZP2337Z0FD systemd[1]: Failed to start LSB: starts tcsd.

dmesg log related to TPM

[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-6.8.0-38-rubrik5j-generic root=/dev/mapper/root-os ro console=tty1 console=ttyS1,115200n8 netcfg/do_not_use_netplan=true scsi_mod.use_blk_mq=1 net.ifnames=0 biosdevname=0 nomodeset noplymouth processor.max_cstate=1 intel_idle.max_cstate=0 ipmi_watchdog.timeout=3600 ipmi_watchdog.nowayout=1 fsck.repair=yes sunrpc.svc_rpc_per_connection_limit=32 libata.allow_tpm=1 intel_pstate=active cpufreq.default_governor=performance crashkernel=1G,high
[ 1.002153] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-6.8.0-38-rubrik5j-generic root=/dev/mapper/root-os ro console=tty1 console=ttyS1,115200n8 netcfg/do_not_use_netplan=true scsi_mod.use_blk_mq=1 net.ifnames=0 biosdevname=0 nomodeset noplymouth processor.max_cstate=1 intel_idle.max_cstate=0 ipmi_watchdog.timeout=3600 ipmi_watchdog.nowayout=1 fsck.repair=yes sunrpc.svc_rpc_per_connection_limit=32 libata.allow_tpm=1 intel_pstate=active cpufreq.default_governor=performance crashkernel=1G,high
[ 16.346678] tpm_tis 00:07: 1.2 TPM (device-id 0x3205, rev-id 80)
[ 16.388955] tpm tpm0: tpm_try_transmit: send(): error -62
[ 22.619661] tpm tpm0: tpm_try_transmit: send(): error -62
[ 32.859675] tpm tpm0: tpm_try_transmit: send(): error -62

$ sudo journalctl -xeu trousers.service
Nov 20 09:39:55 RC240WZP2337Z0FD systemd[1]: Starting LSB: starts tcsd...
░░ Subject: A start job for unit trousers.service has begun execution
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit trousers.service has begun execution.
░░
░░ The job identifier is 152.
Nov 20 09:39:55 RC240WZP2337Z0FD trousers[13637]: * Starting Trusted Computing daemon tcsd
Nov 20 09:39:55 RC240WZP2337Z0FD tcsd[13756]: TCSD TDDL[13756]: TrouSerS ioctl: (25) Inappropriate ioctl for device
Nov 20 09:39:55 RC240WZP2337Z0FD tcsd[13756]: TCSD TDDL[13756]: TrouSerS Falling back to Read/Write device support.
Nov 20 09:39:55 RC240WZP2337Z0FD tcsd[13756]: TCSD TDDL[13756]: TrouSerS ERROR: write to device /dev/tpm0 failed: Timer expired
Nov 20 09:39:55 RC240WZP2337Z0FD tcsd[13756]: TCSD TCS[13756]: TrouSerS ERROR: TCS GetCapability failed with result = 0x1087
Nov 20 09:39:55 RC240WZP2337Z0FD trousers[13637]: ...fail!
Nov 20 09:39:55 RC240WZP2337Z0FD systemd[1]: trousers.service: Control process exited, code=exited, status=135/n/a
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ An ExecStart= process belonging to unit trousers.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 135.
Nov 20 09:39:55 RC240WZP2337Z0FD systemd[1]: trousers.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ The unit trousers.service has entered the 'failed' state with result 'exit-code'.
Nov 20 09:39:55 RC240WZP2337Z0FD systemd[1]: Failed to start LSB: starts tcsd.
░░ Subject: A start job for unit trousers.service has failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit trousers.service has finished with a failure.
░░
░░ The job identifier is 152 and the job result is failed.

** Description changed:

TPM is not working on the 6.8 kernel. It works when switched to 5.15 on
the same machine.

System details
- Kernel: 6.8.0-49-generic
+ Kernel: 6.8.0-49-generic
Version: Ubuntu 22.04.5 LTS
TPM Chip Version: 1.2.66.1
TPM Vendor: ATML

Error shown with 6.8 kernel
$ tpm_version
Tspi_Context_Connect failed: 0x00003011 - layer=tsp, code=0011 (17), Communication failure

-
On the same machine with 5.15 kernel, it is working fine
$ tpm_version
- >1V TPM 1.2 Version Info:
- Chip Version: 1.2.66.1
- Spec Level: 2
- Errata Revision: 3
- TPM Vendor ID: ATML
- TPM Version: 01010000
- Manufacturer Info: 41544d4c
+ >1V TPM 1.2 Version Info:
+ Chip Version: 1.2.66.1
+ Spec Level: 2
+ Errata Revision: 3
+ TPM Vendor ID: ATML
+ TPM Version: 01010000
+ Manufacturer Info: 41544d4c

Logs
$ sudo systemctl status trousers
× trousers.service - LSB: starts tcsd
-   Loaded: loaded (/etc/init.d/trousers; generated)
-   Active: failed (Result: exit-code) since Thu 2024-11-07 05:16:02 UTC; 4min 3s ago
-   Docs: man:systemd-sysv-generator(8)
-   Process: 7838 ExecStart=/etc/init.d/trousers start (code=exited, status=135)
+ Loaded: loaded (/etc/init.d/trousers; generated)
+ Active: failed (Result: exit-code) since Thu 2024-11-07 05:16:02 UTC; 4min 3s ago
+ Docs: man:systemd-sysv-generator(8)
+ Process: 7838 ExecStart=/etc/init.d/trousers start (code=exited, status=135)

Nov 07 05:16:01 RC240WZP2337Z0FD systemd[1]: Starting LSB: starts tcsd...
- Nov 07 05:16:02 RC240WZP2337Z0FD trousers[7838]: * Starting Trusted Computing daemon tcsd
+ Nov 07 05:16:02 RC240WZP2337Z0FD trousers[7838]: * Starting Trusted Computing daemon tcsd
Nov 07 05:16:02 RC240WZP2337Z0FD tcsd[7945]: TCSD TDDL[7945]: TrouSerS ioctl: (25) Inappropriate ioctl for device
Nov 07 05:16:02 RC240WZP2337Z0FD tcsd[7945]: TCSD TDDL[7945]: TrouSerS Falling back to Read/Write device support.
- Nov 07 05:16:02 RC240WZP2337Z0FD tcsd[7945]: TCSD TDDL[7945]: TrouSerS ERROR: write to device /dev/tpm0 failed: Timer expiredNov 07 05:16:02 RC240WZP2337Z0FD trousers[7838]: ...fail!
+ Nov 07 05:16:02 RC240WZP2337Z0FD tcsd[7945]: TCSD TDDL[7945]: TrouSerS ERROR: write to device /dev/tpm0 failed: Timer expiredNov 07 05:16:02 RC240WZP2337Z0FD trousers[7838]: ...fail!
Nov 07 05:16:02 RC240WZP2337Z0FD tcsd[7945]: TCSD TCS[7945]: TrouSerS ERROR: TCS GetCapability failed with result = 0x1087
Nov 07 05:16:02 RC240WZP2337Z0FD systemd[1]: trousers.service: Control process exited, code=exited, status=135/n/aNov 07 05:16:02 RC240WZP2337Z0FD systemd[1]: trousers.service: Failed with result 'exit-code'.
Nov 07 05:16:02 RC240WZP2337Z0FD systemd[1]: Failed to start LSB: starts tcsd.

dmesg log related to TPM

- [ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-6.8.0-38-rubrik5j-generic root=/dev/mapper/root-os ro console=tty1 console=ttyS1,115200n8 netcfg/do_not_use_netplan=true scsi_mod.use_blk_mq=1 net.ifnames=0 biosdevname=0 nomodeset noplymouth processor.max_cstate=1 intel_idle.max_cstate=0 ipmi_watchdog.timeout=3600 ipmi_watchdog.nowayout=1 fsck.repair=yes sunrpc.svc_rpc_per_connection_limit=32 libata.allow_tpm=1 intel_pstate=active cpufreq.default_governor=performance crashkernel=1G,high
- [ 1.002153] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-6.8.0-38-rubrik5j-generic root=/dev/mapper/root-os ro console=tty1 console=ttyS1,115200n8 netcfg/do_not_use_netplan=true scsi_mod.use_blk_mq=1 net.ifnames=0 biosdevname=0 nomodeset noplymouth processor.max_cstate=1 intel_idle.max_cstate=0 ipmi_watchdog.timeout=3600 ipmi_watchdog.nowayout=1 fsck.repair=yes sunrpc.svc_rpc_per_connection_limit=32 libata.allow_tpm=1 intel_pstate=active cpufreq.default_governor=performance crashkernel=1G,high
- [ 16.346678] tpm_tis 00:07: 1.2 TPM (device-id 0x3205, rev-id 80)
- [ 16.388955] tpm tpm0: tpm_try_transmit: send(): error -62
- [ 22.619661] tpm tpm0: tpm_try_transmit: send(): error -62
- [ 32.859675] tpm tpm0: tpm_try_transmit: send(): error -62
+ [ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-6.8.0-49-generic root=/dev/mapper/root-os ro console=tty1 console=ttyS1,115200n8 netcfg/do_not_use_netplan=true scsi_mod.use_blk_mq=1 net.ifnames=0 biosdevname=0 nomodeset noplymouth processor.max_cstate=1 intel_idle.max_cstate=0 ipmi_watchdog.timeout=3600 ipmi_watchdog.nowayout=1 fsck.repair=yes sunrpc.svc_rpc_per_connection_limit=32 libata.allow_tpm=1 intel_pstate=active cpufreq.default_governor=performance crashkernel=1G,high
+ [ 1.002153] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-6.8.0-49-generic root=/dev/mapper/root-os ro console=tty1 console=ttyS1,115200n8 netcfg/do_not_use_netplan=true scsi_mod.use_blk_mq=1 net.ifnames=0 biosdevname=0 nomodeset noplymouth processor.max_cstate=1 intel_idle.max_cstate=0 ipmi_watchdog.timeout=3600 ipmi_watchdog.nowayout=1 fsck.repair=yes sunrpc.svc_rpc_per_connection_limit=32 libata.allow_tpm=1 intel_pstate=active cpufreq.default_governor=performance crashkernel=1G,high
+ [ 16.346678] tpm_tis 00:07: 1.2 TPM (device-id 0x3205, rev-id 80)
+ [ 16.388955] tpm tpm0: tpm_try_transmit: send(): error -62
+ [ 22.619661] tpm tpm0: tpm_try_transmit: send(): error -62
+ [ 32.859675] tpm tpm0: tpm_try_transmit: send(): error -62

$ sudo journalctl -xeu trousers.service
Nov 20 09:39:55 RC240WZP2337Z0FD systemd[1]: Starting LSB: starts tcsd...
░░ Subject: A start job for unit trousers.service has begun execution
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit trousers.service has begun execution.
░░
░░ The job identifier is 152.
- Nov 20 09:39:55 RC240WZP2337Z0FD trousers[13637]: * Starting Trusted Computing daemon tcsd
+ Nov 20 09:39:55 RC240WZP2337Z0FD trousers[13637]: * Starting Trusted Computing daemon tcsd
Nov 20 09:39:55 RC240WZP2337Z0FD tcsd[13756]: TCSD TDDL[13756]: TrouSerS ioctl: (25) Inappropriate ioctl for device
Nov 20 09:39:55 RC240WZP2337Z0FD tcsd[13756]: TCSD TDDL[13756]: TrouSerS Falling back to Read/Write device support.
Nov 20 09:39:55 RC240WZP2337Z0FD tcsd[13756]: TCSD TDDL[13756]: TrouSerS ERROR: write to device /dev/tpm0 failed: Timer expired
Nov 20 09:39:55 RC240WZP2337Z0FD tcsd[13756]: TCSD TCS[13756]: TrouSerS ERROR: TCS GetCapability failed with result = 0x1087
- Nov 20 09:39:55 RC240WZP2337Z0FD trousers[13637]: ...fail!
+ Nov 20 09:39:55 RC240WZP2337Z0FD trousers[13637]: ...fail!
Nov 20 09:39:55 RC240WZP2337Z0FD systemd[1]: trousers.service: Control process exited, code=exited, status=135/n/a
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ An ExecStart= process belonging to unit trousers.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 135.
Nov 20 09:39:55 RC240WZP2337Z0FD systemd[1]: trousers.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ The unit trousers.service has entered the 'failed' state with result 'exit-code'.
Nov 20 09:39:55 RC240WZP2337Z0FD systemd[1]: Failed to start LSB: starts tcsd.
░░ Subject: A start job for unit trousers.service has failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit trousers.service has finished with a failure.
░░
░░ The job identifier is 152 and the job result is failed.

--
You received this bug notification because you are subscribed to linux
in Ubuntu.
Matching subscriptions: Bgg, Bmail, Nb
https://bugs.launchpad.net/bugs/2089147

Title:
TPM1.2 not working on 6.8 kernel

Status in linux package in Ubuntu:
New

Bug description:
TPM is not working on the 6.8 kernel. It works when switched to 5.15
on the same machine.

System details
Kernel: 6.8.0-49-generic
Version: Ubuntu 22.04.5 LTS
TPM Chip Version: 1.2.66.1
TPM Vendor: ATML

Error shown with 6.8 kernel
$ tpm_version
Tspi_Context_Connect failed: 0x00003011 - layer=tsp, code=0011 (17), Communication failure

On the same machine with 5.15 kernel, it is working fine
$ tpm_version
>1V TPM 1.2 Version Info:
Chip Version: 1.2.66.1
Spec Level: 2
Errata Revision: 3
TPM Vendor ID: ATML
TPM Version: 01010000
Manufacturer Info: 41544d4c

Logs
$ sudo systemctl status trousers
× trousers.service - LSB: starts tcsd
Loaded: loaded (/etc/init.d/trousers; generated)
Active: failed (Result: exit-code) since Thu 2024-11-07 05:16:02 UTC; 4min 3s ago
Docs: man:systemd-sysv-generator(8)
Process: 7838 ExecStart=/etc/init.d/trousers start (code=exited, status=135)

Nov 07 05:16:01 RC240WZP2337Z0FD systemd[1]: Starting LSB: starts tcsd...
Nov 07 05:16:02 RC240WZP2337Z0FD trousers[7838]: * Starting Trusted Computing daemon tcsd
Nov 07 05:16:02 RC240WZP2337Z0FD tcsd[7945]: TCSD TDDL[7945]: TrouSerS ioctl: (25) Inappropriate ioctl for device
Nov 07 05:16:02 RC240WZP2337Z0FD tcsd[7945]: TCSD TDDL[7945]: TrouSerS Falling back to Read/Write device support.
Nov 07 05:16:02 RC240WZP2337Z0FD tcsd[7945]: TCSD TDDL[7945]: TrouSerS ERROR: write to device /dev/tpm0 failed: Timer expiredNov 07 05:16:02 RC240WZP2337Z0FD trousers[7838]: ...fail!
Nov 07 05:16:02 RC240WZP2337Z0FD tcsd[7945]: TCSD TCS[7945]: TrouSerS ERROR: TCS GetCapability failed with result = 0x1087
Nov 07 05:16:02 RC240WZP2337Z0FD systemd[1]: trousers.service: Control process exited, code=exited, status=135/n/aNov 07 05:16:02 RC240WZP2337Z0FD systemd[1]: trousers.service: Failed with result 'exit-code'.
Nov 07 05:16:02 RC240WZP2337Z0FD systemd[1]: Failed to start LSB: starts tcsd.

dmesg log related to TPM

[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-6.8.0-49-generic root=/dev/mapper/root-os ro console=tty1 console=ttyS1,115200n8 netcfg/do_not_use_netplan=true scsi_mod.use_blk_mq=1 net.ifnames=0 biosdevname=0 nomodeset noplymouth processor.max_cstate=1 intel_idle.max_cstate=0 ipmi_watchdog.timeout=3600 ipmi_watchdog.nowayout=1 fsck.repair=yes sunrpc.svc_rpc_per_connection_limit=32 libata.allow_tpm=1 intel_pstate=active cpufreq.default_governor=performance crashkernel=1G,high
[ 1.002153] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-6.8.0-49-generic root=/dev/mapper/root-os ro console=tty1 console=ttyS1,115200n8 netcfg/do_not_use_netplan=true scsi_mod.use_blk_mq=1 net.ifnames=0 biosdevname=0 nomodeset noplymouth processor.max_cstate=1 intel_idle.max_cstate=0 ipmi_watchdog.timeout=3600 ipmi_watchdog.nowayout=1 fsck.repair=yes sunrpc.svc_rpc_per_connection_limit=32 libata.allow_tpm=1 intel_pstate=active cpufreq.default_governor=performance crashkernel=1G,high
[ 16.346678] tpm_tis 00:07: 1.2 TPM (device-id 0x3205, rev-id 80)
[ 16.388955] tpm tpm0: tpm_try_transmit: send(): error -62
[ 22.619661] tpm tpm0: tpm_try_transmit: send(): error -62
[ 32.859675] tpm tpm0: tpm_try_transmit: send(): error -62

$ sudo journalctl -xeu trousers.service
Nov 20 09:39:55 RC240WZP2337Z0FD systemd[1]: Starting LSB: starts tcsd...
░░ Subject: A start job for unit trousers.service has begun execution
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit trousers.service has begun execution.
░░
░░ The job identifier is 152.
Nov 20 09:39:55 RC240WZP2337Z0FD trousers[13637]: * Starting Trusted Computing daemon tcsd
Nov 20 09:39:55 RC240WZP2337Z0FD tcsd[13756]: TCSD TDDL[13756]: TrouSerS ioctl: (25) Inappropriate ioctl for device
Nov 20 09:39:55 RC240WZP2337Z0FD tcsd[13756]: TCSD TDDL[13756]: TrouSerS Falling back to Read/Write device support.
Nov 20 09:39:55 RC240WZP2337Z0FD tcsd[13756]: TCSD TDDL[13756]: TrouSerS ERROR: write to device /dev/tpm0 failed: Timer expired
Nov 20 09:39:55 RC240WZP2337Z0FD tcsd[13756]: TCSD TCS[13756]: TrouSerS ERROR: TCS GetCapability failed with result = 0x1087
Nov 20 09:39:55 RC240WZP2337Z0FD trousers[13637]: ...fail!
Nov 20 09:39:55 RC240WZP2337Z0FD systemd[1]: trousers.service: Control process exited, code=exited, status=135/n/a
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ An ExecStart= process belonging to unit trousers.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 135.
Nov 20 09:39:55 RC240WZP2337Z0FD systemd[1]: trousers.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ The unit trousers.service has entered the 'failed' state with result 'exit-code'.
Nov 20 09:39:55 RC240WZP2337Z0FD systemd[1]: Failed to start LSB: starts tcsd.
░░ Subject: A start job for unit trousers.service has failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit trousers.service has finished with a failure.
░░
░░ The job identifier is 152 and the job result is failed.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2089147/+subscriptions

Комментариев нет:

Отправить комментарий