From: Paul Menzel <pmenzel-KUpvgZVWgV9o1qOY/usvUg@public.gmane.org>
To: Jason Gunthorpe
<jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
Cc: "Maciej S. Szmigiero"
<mail-APzI5cXaD1zVlRWJc41N0YvC60bnQu0Y@public.gmane.org>,
tpmdd-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
GNUtoo-n+LsquliYkMdnm+yROfE0A@public.gmane.org
Subject: Re: Regression between Linux 3.16 and 4.8/4.9 on Lenovo X60 with coreboot
Date: Thu, 06 Apr 2017 20:26:22 +0200 [thread overview]
Message-ID: <3d62bd7d4addc020c2f8e3c2edf3280e@molgen.mpg.de> (raw)
In-Reply-To: <20170406165557.GD7657-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
On 2017-04-06 18:55, Jason Gunthorpe wrote:
> On Thu, Apr 06, 2017 at 08:18:33AM +0200, Paul Menzel wrote:
>
>> Indeed, that improves the situation. I still need to pass `force=1` to
>> the
>> module to get `/dev/tpm0`. No idea, why it’s not in included in Linux
>> 4.9
>> yet.
>
> Fair point.. Jarkko - could you forward that patch to -stable?
>
>> $ journalctl -k -o cat | grep tpm
>> tpm_tis tpm_tis: 1.2 TPM (device-id 0x3202, rev-id 5)
>> tpm tpm0: Issuing TPM_STARTUP
>> tpm tpm0: [Hardware Error]: Adjusting reported timeouts: A
>> 10000->10000us B
>> 10000->10000us C 0->752000us D 0->752000us
>
> There could be more relavent kernel messages than this, try
> grep -i tpm
>
> ?
At least I don’t spot more messages.
```
$ journalctl -b -3 -o cat | grep -i -e "Linux version" -e tpm
Linux version 4.11.0-rc5+ (root@d44d03a193d6) (gcc version 6.3.0
20170321 (Debian 6.3.0-10) ) #2 SMP Tue Apr 4 21:07:08 UTC 2017
joey : TTY=pts/6 ; PWD=/home/joey ; USER=root ; COMMAND=/usr/bin/apt
install tpm-tools
new user: name=tss, UID=123, GID=137, home=/var/lib/tpm,
shell=/bin/false
joey : TTY=pts/6 ; PWD=/home/joey ; USER=root ; COMMAND=/sbin/modprobe
-r tpm_tis tpm
joey : TTY=pts/6 ; PWD=/home/joey ; USER=root ; COMMAND=/sbin/modprobe
tpm_tis force=1
tpm_tis tpm_tis: 1.2 TPM (device-id 0x3202, rev-id 5)
tpm tpm0: Issuing TPM_STARTUP
tpm tpm0: [Hardware Error]: Adjusting reported timeouts: A
10000->10000us B 10000->10000us C 0->752000us D 0->752000us
```
>> So do you have an idea, what “ACPI requirements” changed in the `tpm`
>> module
>> since Linux 3.16 to be loaded automatically?
>
> We added direct ACPI binding to the driver in addition to PNP, so if
> you have an ACPI table it goes down that path and does some additional
> validation of what is in the TPM. The BIOS must provide a
> acpi_dev_resource_memory and a ACPI_SIG_TPM2 for the ACPI entry at a
> minimum.
Is it correct, that this is added in/for 4.11, so just recently? Testing
with Linux 4.10.8, everything is detected just fine.
```
$ journalctl -k -o cat | grep -i tpm
tpm_tis 00:08: 1.2 TPM (device-id 0x3202, rev-id 5)
tpm tpm0: A TPM error (38) occurred attempting to determine the timeouts
tpm tpm0: Issuing TPM_STARTUP
tpm tpm0: [Hardware Error]: Adjusting reported timeouts: A
10000->10000us B 10000->10000us C 0->752000us D 0->752000us
```
> There are FW_BUG prints if those fail, so check your dmesg closely?
>
> http://lxr.free-electrons.com/source/drivers/char/tpm/tpm_tis.c#L250
>
> If not, can you annotate in some printk's into tpm_tis_acpi_init and
> recompile/re-test?
If nothing comes to mind with the new information above, then I could do
that. But I don’t know, if I’ll have time in the next two weeks for
that.
Kind regards,
Paul
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
tpmdd-devel mailing list
tpmdd-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tpmdd-devel
next prev parent reply other threads:[~2017-04-06 18:26 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-05 11:03 Regression between Linux 3.16 and 4.8/4.9 on Lenovo X60 with coreboot Maciej S. Szmigiero
[not found] ` <c4bfd77e-3fb9-8a9b-28f5-48e6c13beb12-APzI5cXaD1zVlRWJc41N0YvC60bnQu0Y@public.gmane.org>
2017-04-05 13:36 ` Jarkko Sakkinen
2017-04-06 6:18 ` Paul Menzel
[not found] ` <bf4ca184f43cc7b6ee8069b63558087c-KUpvgZVWgV9o1qOY/usvUg@public.gmane.org>
2017-04-06 11:52 ` Maciej S. Szmigiero
2017-04-06 16:55 ` Jason Gunthorpe
[not found] ` <20170406165557.GD7657-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-04-06 18:26 ` Paul Menzel [this message]
[not found] ` <3d62bd7d4addc020c2f8e3c2edf3280e-KUpvgZVWgV9o1qOY/usvUg@public.gmane.org>
2017-04-06 19:10 ` Jason Gunthorpe
[not found] ` <20170406191013.GA25011-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-04-07 20:13 ` Jarkko Sakkinen
[not found] ` <20170407201347.2qcyrdzgg2yikoen-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2017-04-07 20:58 ` Paul Menzel
[not found] ` <cd01f99b4297a5fc8f11e0998ab06d7e-KUpvgZVWgV9o1qOY/usvUg@public.gmane.org>
2017-04-09 17:34 ` [Regression Linux 4.11] TPM module not loaded anymore (was: Regression between Linux 3.16 and 4.8/4.9 on Lenovo X60 with coreboot) Paul Menzel
[not found] ` <1491759283.1152.12.camel-KUpvgZVWgV9o1qOY/usvUg@public.gmane.org>
2017-04-11 22:57 ` Jarkko Sakkinen
2017-04-12 15:46 ` Moore, Robert
[not found] ` <20170411225757.yoi2puygipigucjh-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2017-04-12 15:52 ` Moore, Robert
2017-04-12 15:54 ` Moore, Robert
2017-04-12 21:26 ` [Regression Linux 4.11] TPM module not loaded anymore Paul Menzel
[not found] ` <e6c10b975e6be81e259357fe220cc26e-KUpvgZVWgV9o1qOY/usvUg@public.gmane.org>
2017-04-12 21:49 ` Moore, Robert
2017-04-13 7:19 ` Paul Menzel
2017-04-06 18:58 ` Regression between Linux 3.16 and 4.8/4.9 on Lenovo X60 with coreboot Jarkko Sakkinen
2017-04-08 10:40 ` [tpmdd-devel] " Denis 'GNUtoo' Carikli
[not found] ` <20170408123651.76f18ba4-r3nPC/fXJJgy06l1zSILBM/Rnsmy/zvw/z7RTEddyNg@public.gmane.org>
2017-04-08 20:25 ` Jason Gunthorpe
-- strict thread matches above, loose matches on Subject: below --
2017-04-04 16:29 Paul Menzel
[not found] ` <31e0ed69-174b-93ce-abf2-66cf08b1594e-KUpvgZVWgV9o1qOY/usvUg@public.gmane.org>
2017-04-04 17:15 ` Jason Gunthorpe
[not found] ` <20170404171533.GA3255-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-04-04 17:44 ` Paul Menzel
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=3d62bd7d4addc020c2f8e3c2edf3280e@molgen.mpg.de \
--to=pmenzel-kupvgzvwgv9o1qoy/usvug@public.gmane.org \
--cc=GNUtoo-n+LsquliYkMdnm+yROfE0A@public.gmane.org \
--cc=jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mail-APzI5cXaD1zVlRWJc41N0YvC60bnQu0Y@public.gmane.org \
--cc=tpmdd-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).