Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755592AbdCKIPo (ORCPT ); Sat, 11 Mar 2017 03:15:44 -0500 Received: from mga07.intel.com ([134.134.136.100]:38806 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750939AbdCKIPh (ORCPT ); Sat, 11 Mar 2017 03:15:37 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,145,1486454400"; d="scan'208";a="66396787" Date: Sat, 11 Mar 2017 10:15:32 +0200 From: Jarkko Sakkinen To: Jason Gunthorpe Cc: tpmdd-devel@lists.sourceforge.net, linux-security-module@vger.kernel.org, Jerry Snitselaar , gang.wei@intel.com, Peter Huewe , Marcel Selhorst , open list Subject: Re: [PATCH] tpm_crb: request and relinquish locality 0 Message-ID: <20170311081532.qfxwrx3xqjzoppa2@intel.com> References: <20170310235802.30765-1-jarkko.sakkinen@linux.intel.com> <20170311002709.GA14174@obsidianresearch.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170311002709.GA14174@obsidianresearch.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.6.2-neo (2016-08-21) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 835 Lines: 24 On Fri, Mar 10, 2017 at 05:27:09PM -0700, Jason Gunthorpe wrote: > On Sat, Mar 11, 2017 at 01:58:00AM +0200, Jarkko Sakkinen wrote: > > Added two new callbacks to struct tpm_class_ops: > > > > - request_locality > > - relinquish_locality > > > > These are called before sending and receiving data from the TPM. > > If we are going to add new ops, I think we should also adjust the > existing drivers to use this mechanism as well? > > eg tis just calls its request_locality as the first thing in send.. > > Jason Would it be sufficient to adjust tpm_tis in addition to tpm_crb? Those are the only once where I can edit edit-compile-run cycle. The original commit I did worked on SKL platform that I tested but fails on KBL but keeping the locality throughout the transmit makes it stable on every platform I've tested. /Jarkko