public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Rajiv Andrade <srajiv@linux.vnet.ibm.com>
To: Guillaume Chazarain <guichaz@gmail.com>
Cc: Stefan Berger <stefanb@linux.vnet.ibm.com>,
	James Morris <jmorris@namei.org>,
	linux-kernel@vger.kernel.org, tpmdd-devel@lists.sourceforge.net
Subject: Re: [PATCH] tpm_tis: Use timeouts returned from TPM
Date: Tue, 08 Feb 2011 20:06:00 -0200	[thread overview]
Message-ID: <4D51BE48.7000406@linux.vnet.ibm.com> (raw)
In-Reply-To: <AANLkTi=cfNXONM5EvGPaS7N2kgAbUZmn1Oe+qE9fd7aO@mail.gmail.com>

On 02/08/2011 07:45 PM, Guillaume Chazarain wrote:
> [ + jmorris ]
>
> On Thu, Jan 27, 2011 at 11:44 PM, Guillaume Chazarain<guichaz@gmail.com>  wrote:
>> On Tue, Jan 11, 2011 at 8:37 PM, Stefan Berger
>> <stefanb@linux.vnet.ibm.com>  wrote:
>>> The current TPM TIS driver in git discards the timeout values returned
>>> from the TPM.
>> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=c4ff4b829ef9e6353c0b133b7adb564a68054979
>> broke the TPM for me on a thinkpad T410. When using the TPM, dmesg
>> complains:
>>
>> [   65.728310] tpm_tis 00:0b: Operation Timed out
>> [   67.651450] tpm_tis 00:0b: Operation Timed out
>> [   69.669421] tpm_tis 00:0b: Operation Timed out
>>
>> This patch fixes it, so consider it:
>>
>> Tested-by: Guillaume Chazarain<guichaz@gmail.com>
> This patch (https://lkml.org/lkml/2011/1/11/341) fixes a regression
> introduced in 2.6.38-rc3, any chance of having it merged?
>
> Thanks.

This patch solves a bug existent before the commit that made into 
2.6.38-rc3. Prior to such commit, the device driver was using default 
values that were big enough to allow TPM commands to succeed, but that 
stalled the kernel for too long during boot (2 minutes for each command 
sent) when buggy TPMs don't respond.

I'll apply this patch to my tree, and ask James to pull from it.

Rajiv




      reply	other threads:[~2011-02-08 22:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-11 19:37 [PATCH] tpm_tis: Use timeouts returned from TPM Stefan Berger
2011-01-27 22:44 ` Guillaume Chazarain
2011-02-08 21:45   ` Guillaume Chazarain
2011-02-08 22:06     ` Rajiv Andrade [this message]

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=4D51BE48.7000406@linux.vnet.ibm.com \
    --to=srajiv@linux.vnet.ibm.com \
    --cc=guichaz@gmail.com \
    --cc=jmorris@namei.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=stefanb@linux.vnet.ibm.com \
    --cc=tpmdd-devel@lists.sourceforge.net \
    /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