From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com ([134.134.136.24]:36006 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751058AbeFDT4b (ORCPT ); Mon, 4 Jun 2018 15:56:31 -0400 Date: Mon, 4 Jun 2018 22:56:28 +0300 From: Jarkko Sakkinen To: Tadeusz Struk Cc: jgg@ziepe.ca, linux-integrity@vger.kernel.org Subject: Re: [PATCH] tpm: add support for nonblocking operation Message-ID: <20180604195628.GE2691@linux.intel.com> References: <152780934926.32219.7291994735609525171.stgit@tstruk-mobl1.jf.intel.com> <20180604195554.GD2691@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20180604195554.GD2691@linux.intel.com> Sender: linux-integrity-owner@vger.kernel.org List-ID: On Mon, Jun 04, 2018 at 10:55:54PM +0300, Jarkko Sakkinen wrote: > On Thu, May 31, 2018 at 04:29:09PM -0700, Tadeusz Struk wrote: > > The TCG SAPI specification [1] defines a set of functions, which allows > > applications to use the TPM device in either blocking or non-blocking fashion. > > Each command defined by the specification has a corresponding > > Tss2_Sys__Prepare() and Tss2_Sys__Complete() call, which > > together with Tss2_Sys_ExecuteAsync() is designed to allow asynchronous > > mode of operation. Currently the driver supports only blocking calls, which > > doesn't allow asynchronous operation. This patch changes it and adds support > > for nonblocking write and a new poll function to enable applications using > > the API as designed by the spec. > > The new functionality can be tested using standard TPM tools implemented > > in [2], with modified TCTI from [3]. > > I would need some statistics before I have interest to take these > changes in any form eg use case where this matters in the end. And please CC linux-kernel and linux-security-module. /Jarkko