Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2908413imu; Mon, 19 Nov 2018 07:56:30 -0800 (PST) X-Google-Smtp-Source: AJdET5cmTZ8kFf4ZetmI2XPOXI0DM3vlvVMH6o3Wi3YvMlrsjxwRCfMeU0eizl7RCaYTuV/agU7K X-Received: by 2002:a63:5207:: with SMTP id g7mr15152987pgb.253.1542642990877; Mon, 19 Nov 2018 07:56:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542642990; cv=none; d=google.com; s=arc-20160816; b=q+mFRxfC17jVgd5EH+OpmS6w416b3xcifCGJbyPM1yPfwb2o3+kdhRcRfaZmUNrp7P hbsfShfKZTXgCYg2fVVDDOlU/JJaY+vj3TjDyIfXdd3UaTk8PSq26RoiVgnBuQ9zHIvy NB95pKMKOq6n85vKYWB+RGCwTDz5uRFMpBC6F0BGRmv9zftLBmlADd4beCYXurxzkEce cP1mk5Fmppgu6EU8vLVvLAKy7AVvbjihoaNutaBK4jr4aoIIHAl8idKxwSVjt+ZuiwRk 6gvlpreRPoZ3oBAGGDJ8s43wG8oQwlHVre9c79Q3N+Ta58GZfVXwV5kA97I1WE0B2sFQ qkjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=vIZ3kTTLJWZbFleAl5iE5KzyvSS+76m3gy2sm1h+mlg=; b=vJ+TzqQelctrEaup0GFG4aMMOnYuFu3FfAW+rEL76ozRtETS9YYssApA+YEcdN00br xVTXty3qgM2d51Iwb+hxku0n4Wd7/yiAbXgqoSGU7n5uEsHmLCdbMSVR3yfZRQ18w1Hz CoRYQa2CfnkDqyDZqOMKup7dsLv2lTPviR38YALsQwRX9o9SqW1w/8Ou5kVImSAVmAq7 lAqf/iN8hQxtfO+xdahBtN9cABjvoYFoOxFBcebWhm4SwS1YcO+RPIxXNDr/XKO9xjJ1 3Gd9YaOCcWSPwjbvwagrlQqWPoQDT7r8TVX15AvVFCq4nxwmNCDAOekxsE+uDLzvweSX rWsQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e6si40146397pgp.504.2018.11.19.07.56.15; Mon, 19 Nov 2018 07:56:30 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729877AbeKTCTg (ORCPT + 99 others); Mon, 19 Nov 2018 21:19:36 -0500 Received: from mga01.intel.com ([192.55.52.88]:60260 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729762AbeKTCTf (ORCPT ); Mon, 19 Nov 2018 21:19:35 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Nov 2018 07:55:35 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,253,1539673200"; d="scan'208";a="109536116" Received: from tmuluk-mobl4.ger.corp.intel.com (HELO localhost) ([10.249.254.135]) by orsmga001.jf.intel.com with ESMTP; 19 Nov 2018 07:55:31 -0800 Date: Mon, 19 Nov 2018 17:55:30 +0200 From: Jarkko Sakkinen To: "Winkler, Tomas" Cc: "linux-integrity@vger.kernel.org" , "linux-security-module@vger.kernel.org" , James Bottomley , "Struk, Tadeusz" , Stefan Berger , Nayna Jain , Peter Huewe , Jason Gunthorpe , Arnd Bergmann , Greg Kroah-Hartman , open list Subject: Re: [PATCH v9 16/17] tpm: take TPM chip power gating out of tpm_transmit() Message-ID: <20181119155530.GB13298@linux.intel.com> References: <20181118124753.18613-1-jarkko.sakkinen@linux.intel.com> <20181118124753.18613-17-jarkko.sakkinen@linux.intel.com> <5B8DA87D05A7694D9FA63FD143655C1B9DA225B9@hasmsx108.ger.corp.intel.com> <20181119124822.GB8755@linux.intel.com> <5B8DA87D05A7694D9FA63FD143655C1B9DA230D9@hasmsx108.ger.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5B8DA87D05A7694D9FA63FD143655C1B9DA230D9@hasmsx108.ger.corp.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 19, 2018 at 01:17:56PM +0000, Winkler, Tomas wrote: > > On Sun, Nov 18, 2018 at 10:52:46PM +0000, Winkler, Tomas wrote: > > > This is still NACK from my side > > > > Last time you spoke about tboot intervention but I don't see why as even > > sending a single command is not atomic in the true sense of the word i.e. if > > there was a problem that would already affect the existing code and would > > essentially mean that tboot itself is broken. > So I've consulted the issue, I wasn't not correct in the description. > Tboot cannot acquire the locality, unless the host driver relinquish > it, so the issue is opposite, driver is expected to relinquish the > locality for tboot to work correctly. This is current status, other > behavior will need a different implementation on both sides. The locality is reliquished after the command sequence (load and save TPM space + command in /dev/tpmX case). Is this really such a big issue? The intention is not keep the locality reserved by the driver. /Jarkko