All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Peter Hüwe" <PeterHuewe@gmx.de>
To: tpmdd-devel@lists.sourceforge.net
Cc: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>,
	Teddy Reed <teddy@prosauce.org>,
	Teddy Reed <teddy.reed@gmail.com>,
	Leonidas Da Silva Barbosa <leosilva@linux.vnet.ibm.com>,
	Ashley Lai <ashley@ashleylai.com>,
	Rajiv Andrade <mail@srajiv.net>,
	Peter Huewe <peter.huewe@infineon.com>,
	devicetree@vger.kernel.org
Subject: Re: [tpmdd-devel] [PATCH] tpm: Add support for Atmel I2C TPMs
Date: Thu, 12 Sep 2013 01:23:59 +0200	[thread overview]
Message-ID: <201309120124.00067.PeterHuewe@gmx.de> (raw)
In-Reply-To: <20130911230841.GB4251@obsidianresearch.com>

Hi Jason,

Am Donnerstag, 12. September 2013, 01:08:41 schrieb Jason Gunthorpe:
> On Wed, Sep 11, 2013 at 02:58:07PM -0600, Jason Gunthorpe wrote:
> > I'm not yet 100% certain this driver works perfectly, for some reason
> > my TPM will not create an EK, which is either due to a larger sent TPM
> > messages becoming corrupt (combined with a TPM bug to not report an
> > error code) or something wrong with the TPM itself.
> > 
> > +
> > +	status = i2c_smbus_write_i2c_block_data(client, buf[0], len - 1,
> > +						buf + 1);
> 
> Thankfully Peter pointed out that these calls only transfer 32 bytes,
> which causes the problem I observed. The TPM returns success with a
> corrupted response when you truncate the request, apparently.
> 
> Fixing it with:
> 
> +	status = i2c_master_send(client, buf, len);
> 
> Has the driver pass all my tests. I will post a v1 after a few days
> and collect any other comments.

Yes this should probably do the thing ;)


Thanks for porting yet another driver.

I think I'll stage them (nuvoton, st and atmel) all in a temporary branch 
"testing-and-review" so it's easier for people to try them out.
This branch might rebase and change all the time, but maybe it makes things 
easier (and patches can be squashed afterwards easily if needed).


But since you'll be sending a v2, I'll wait until the v2.

Thanks,
Peter



  reply	other threads:[~2013-09-11 23:23 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-11 20:58 [PATCH] tpm: Add support for Atmel I2C TPMs Jason Gunthorpe
2013-09-11 22:44 ` [tpmdd-devel] " Peter Hüwe
2013-09-11 23:08 ` Jason Gunthorpe
2013-09-11 23:23   ` Peter Hüwe [this message]
2013-09-11 23:52     ` [tpmdd-devel] " Peter Hüwe
     [not found]       ` <201309120152.36878.PeterHuewe-Mmb7MZpHnFY@public.gmane.org>
2013-09-17 23:56         ` Jason Gunthorpe
     [not found] ` <CADUykeorCx+YY1mF4DazXAmmnS=ocjdxeT2mHRsRxmJv04LFSQ@mail.gmail.com>
     [not found]   ` <CADUykeorCx+YY1mF4DazXAmmnS=ocjdxeT2mHRsRxmJv04LFSQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-10-01 18:00     ` Jason Gunthorpe

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=201309120124.00067.PeterHuewe@gmx.de \
    --to=peterhuewe@gmx.de \
    --cc=ashley@ashleylai.com \
    --cc=devicetree@vger.kernel.org \
    --cc=jgunthorpe@obsidianresearch.com \
    --cc=leosilva@linux.vnet.ibm.com \
    --cc=mail@srajiv.net \
    --cc=peter.huewe@infineon.com \
    --cc=teddy.reed@gmail.com \
    --cc=teddy@prosauce.org \
    --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 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.