[Bug 295103] tpm_tis driver report "Failed to switch to ready state"

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 08 May 2026 16:48:16 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295103

            Bug ID: 295103
           Summary: tpm_tis driver report "Failed to switch to ready
                    state"
           Product: Base System
           Version: CURRENT
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: benoit.sansoni@gmail.com

Hi,

I am facing an issue concerning accessing to TPM2 device from manufacturer ST
Microelectronics.
The platform is based on Intel CoreI7 gen11 processor.

This is the driver message that detects the TPM2 device:

tpmtis0: <Trusted Platform Module 2.0, FIFO mode> iomem 0xfed40000-0xfed44fff
irq 28 on acpi0

When the TSS TPM2 stack service tpm2_abrmd tries to access the /dev/tpm0, the
dmesg is filled with the message:

tpmtis0: Failed to switch to ready state

And the TSS TPM2 stack service tpm2_abrmd report an error that it tries to
write 12 bytes but driver reports 0 byte written.

I tried also to activate the polling mode, but I got the same result.

I noticed also that the irq number is 28.
And that there is a special code in the tpm_tisçcore.c in tpmtis_setup_intr
function to activate irq in TPM device (as far as I understood):

        if (irq == 0 || irq > 0xF)
                return;

I just need help on this part.

Thanks in advance
Benoit

-- 
You are receiving this mail because:
You are the assignee for the bug.