From: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
To: Sahil Rihan <srihan@fb.com>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Alexei Starovoitov <ast@fb.com>,
Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Subject: Re: [Regression] TPM char device not created if TPM 1.2 is disabled, but visible
Date: Mon, 5 Mar 2018 14:14:45 +0200 [thread overview]
Message-ID: <20180305121445.GA3138@linux.intel.com> (raw)
In-Reply-To: <875E6A7D-483D-4A8F-9382-6B3970598866@fb.com>
On Sat, Mar 03, 2018 at 09:27:36PM +0000, Sahil Rihan wrote:
> (Please CC me on replies - I'm not subscribed to LMKL)
>
> Prior to 0cf577a03f21 if a TPM 1.2 device was disabled, but visible (sysfs node "enabled" returns 0), creation of the TPM char device was only skipped if tpm_bios_log_setup returned -ENODEV.
>
> On some systems like HP DL380 G9, if the TPM is disabled but visible, the TCPA log is empty, which means tpm_read_log_acpi returns -EIO. Starting with 0cf577a03f21, -EIO triggers an early return from tpm_chip_register which means the char device is not created.
>
> Log snippet:
> [ 4.320387] tpm_tis 00:00: 1.2 TPM (device-id 0xB, rev-id 16)
> [ 4.455389] tpm tpm0: A TPM error (7) occurred attempting to read a pcr value
> [ 4.457762] tpm tpm0: TPM is disabled/deactivated (0x7)
> [ 4.459461] tpm tpm0: tpm_read_log_acpi: TCPA log area empty <----------------------
> [ 4.461312] tpm_tis: probe of 00:00 failed with error -5
>
> Thanks,
> Sahil
Thanks for the bug report, I appreciate it!
Personally I think we should keep the warning if the log area is empt
but tpm_read_log_acpi() should return -ENODEV in this case.
/Jarkko
next prev parent reply other threads:[~2018-03-05 12:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-03 21:27 [Regression] TPM char device not created if TPM 1.2 is disabled, but visible Sahil Rihan
2018-03-05 12:14 ` Jarkko Sakkinen [this message]
2018-03-05 19:28 ` Sahil Rihan
2018-03-06 11:13 ` Jarkko Sakkinen
2018-03-07 22:34 ` Sahil Rihan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180305121445.GA3138@linux.intel.com \
--to=jarkko.sakkinen@linux.intel.com \
--cc=ast@fb.com \
--cc=jgunthorpe@obsidianresearch.com \
--cc=linux-kernel@vger.kernel.org \
--cc=srihan@fb.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.