tpmdd-devel.lists.sourceforge.net archive mirror
 help / color / mirror / Atom feed
* Re: Regression between Linux 3.16 and 4.8/4.9 on Lenovo X60 with coreboot
@ 2017-04-05 11:03 Maciej S. Szmigiero
       [not found] ` <c4bfd77e-3fb9-8a9b-28f5-48e6c13beb12-APzI5cXaD1zVlRWJc41N0YvC60bnQu0Y@public.gmane.org>
  0 siblings, 1 reply; 23+ messages in thread
From: Maciej S. Szmigiero @ 2017-04-05 11:03 UTC (permalink / raw)
  To: pmenzel-KUpvgZVWgV9o1qOY/usvUg
  Cc: tpmdd-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	GNUtoo-n+LsquliYkMdnm+yROfE0A

Hi Paul,

> tpm tpm0: Unable to read burstcount
> tpm tpm0: tpm_transmit: tpm_send: error -16
> tpm_tis tpm_tis: Could not get TPM timeouts and durations

This looks like a regression I had on ThinkPad X61S.

You can try with a patch from the following commit
which fixed it for me:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1d70fe9d9c3a4c627f9757cbba5d628687b121c1

It is included in mainline kernel 4.10.2.

Maciej


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

^ permalink raw reply	[flat|nested] 23+ messages in thread
* Regression between Linux 3.16 and 4.8/4.9 on Lenovo X60 with coreboot
@ 2017-04-04 16:29 Paul Menzel
       [not found] ` <31e0ed69-174b-93ce-abf2-66cf08b1594e-KUpvgZVWgV9o1qOY/usvUg@public.gmane.org>
  0 siblings, 1 reply; 23+ messages in thread
From: Paul Menzel @ 2017-04-04 16:29 UTC (permalink / raw)
  To: tpmdd-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f; +Cc: Linux Kernel Mailing List

Dear Linux folks,


Currently, TPM support is added to the coreboot project for the Lenovo 
X60 [1].

Unfortunately, there seems to have been a regression between Linux 3.16 
and 4.8 and 4.9, so that the Linux kernel doesn’t create the TPM device.

```
$ more /proc/version Linux version 3.16.0-4-686-pae 
(debian-kernel@lists.debian.org) (gcc version 4.8.4 (Debian 4.8.4-1) ) 
#1 SMP Debian 3.16.39-1+deb8u2 (2017-03-07)
$ journalctl -k -o cat | grep -i tpm
tpm_tis 00:08: 1.2 TPM (device-id 0x3202, rev-id 5)
tpm_tis 00:08: Issuing TPM_STARTUP
```

The device `/dev/tpm0` is present.

Here are the results with Linux 4.8.15.

```
kernel: [    0.000000] Linux version 4.8.0-0.bpo.2-686-pae 
(debian-kernel@lists.debian.org) (gcc version 4.9.2 (Debian 4.9.2-10) ) 
#1 SMP Debian 4.8.15-2~bpo8+2 (2017-01-17)
[…]
kernel: [   11.302522] tpm tpm0: tpm_transmit: tpm_send: error -5
kernel: [   11.302598] tpm_tis 00:08: Could not get TPM timeouts and 
durations
```

Remove module and run `sudo modprobe tpm_tis itpm=1 force=1`.

```
kernel: [   35.024386] tpm_tis tpm_tis: 1.2 TPM (device-id 0x3202, rev-id 5)
kernel: [   49.160752] tpm_tis 00:08: can't request region for resource 
[mem 0xfed40000-0xfed44fff]
kernel: [   49.160865] tpm_tis: probe of 00:08 failed with error -16
```

And here with Linux 4.9.13.

```
kernel: [ 7.813547] tpm_tis 00:08: 1.2 TPM (device-id 0x3202, rev-id 5)
kernel: [ 7.891026] tpm tpm0: Issuing TPM_STARTUP
kernel: [ 8.042783] tpm tpm0: Unable to read burstcount
kernel: [ 8.042893] tpm tpm0: tpm_transmit: tpm_send: error -16
kernel: [ 8.042900] tpm_tis 00:08: Could not get TPM timeouts and duration
```

If I am not mistaken, the error code 16 is for the macro `EBUSY`.

It’d be great, if the TPM would also be created in the newer Linux 
Kernel versions, so that Debian users can upgrade to the upcoming stable 
release, which ships Linux 4.9.

Unfortunately, I won’t be able to bisect the commit introducing the 
regression. Could you please tell me how to debug, why the burstcount 
cannot be read.


Kind regards,

Paul


[1] https://review.coreboot.org/13410/

------------------------------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2017-04-13  7:19 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
     [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

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).