mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ken Goldman <kgold@linux.vnet.ibm.com>
To: linux-kernel@vger.kernel.org
Cc: tpmdd-devel@lists.sourceforge.net
Subject: Re: [tpmdd-devel] [PATCH] tpm: Add sysfs interface to show TPM hardware version
Date: Tue, 14 Mar 2017 14:18:15 -0400	[thread overview]
Message-ID: <9f67321b-50bd-9e6f-61f8-c29ae14f261f@linux.vnet.ibm.com> (raw)
In-Reply-To: <29B2C361-A0C0-410E-ACCA-07AFA382A251@gmx.de>

On 3/13/2017 3:10 AM, Peter Huewe wrote:

> And yes you are right there is currently no way, except for trial and
> error, for the userspace to determine this. So an interface to get
> this information makes sense to me.

In practice, I suspect that a single user space application won't
support both TPMs.  It will send the first command, get an error
response code that says it's the wrong TPM, and exit.

Note that, although there is no overlap in the command API, the packet
format is compatible enough that a meaningful response can be returned.

  parent reply	other threads:[~2017-03-14 18:18 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-13  5:21 Meng.Li
2017-03-13  7:10 ` Peter Huewe
2017-03-13  7:47   ` Li, Meng
2017-03-14 18:18   ` Ken Goldman [this message]
2017-03-14 18:58     ` [tpmdd-devel] " Peter Huewe
2017-03-14 21:24       ` Jason Gunthorpe
2017-03-14 21:42         ` James Bottomley
2017-03-15 17:25           ` Jason Gunthorpe
2017-03-13 11:48 ` Jarkko Sakkinen
2017-03-13 12:37   ` Li, Meng

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=9f67321b-50bd-9e6f-61f8-c29ae14f261f@linux.vnet.ibm.com \
    --to=kgold@linux.vnet.ibm.com \
    --cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®