[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1533602145.3159.23.camel@HansenPartnership.com>
Date: Mon, 06 Aug 2018 17:35:45 -0700
From: James Bottomley <James.Bottomley@...senPartnership.com>
To: Tadeusz Struk <tadeusz.struk@...el.com>,
jarkko.sakkinen@...ux.intel.com
Cc: flihp@...bit.us, jgg@...pe.ca, linux-integrity@...r.kernel.org,
linux-security-module@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v3 RESEND 2/2] tpm: add support for nonblocking operation
On Mon, 2018-08-06 at 17:09 -0700, Tadeusz Struk wrote:
> On 08/06/2018 04:05 PM, James Bottomley wrote:
> > For an async interface, shouldn't I be able to queue an
> > arbitrary number of commands without blocking?
>
> That was the approach in the v1 version of this patch, but
> Jason requested this to be changed so that only one command
> at a time can be processed.
He did? I don't remember that. I think he told you the TPM itself can
only process one operation at once so you didn't need an elaborate
allocation scheme.
But anyway, if you're happy to limit the interface to block after one
command is issued, how is it useful as an asynchronous interface? I
thought the whole argument for the patch was to avoid the producer-
consumer approach which is possible with the current interface and to
use a fully event driven polling interface which can be implemented
single threaded. If you can block in submission, this latter isn't
really possible because your interface isn't really asynchronous.
James
Powered by blists - more mailing lists