Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5526793imu; Tue, 13 Nov 2018 07:54:33 -0800 (PST) X-Google-Smtp-Source: AJdET5dUeLkOsDi1Itp1R0LgoD8oybzwC5oXP5t2I98JMaDwVXZV9EsCWtoPhKFHUlPKtp8E9EjQ X-Received: by 2002:a62:9f98:: with SMTP id v24-v6mr5534134pfk.163.1542124472981; Tue, 13 Nov 2018 07:54:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542124472; cv=none; d=google.com; s=arc-20160816; b=tOCm6cdz/fn4aj85GHq3LE7QkEdXWuCfaukKUBrMT9Ge4uZSBm59MspR+2WmBaqOqs V5/kTDsfVA9RTaGMhLYXfRXK+gbLQ7KqbYyTiUuNieJXxcLlEqOVrSgl9YQ4GOIofGkz 9oy/J7lsyBR9Srd4j5KYBbBHooHZrBT0ZxBTeAorc94Q7p+wTLohd+BbYFnzRHWMxs1a 0xEGcfGN4gSzUOOAHGXuFO9dN1RYqy7qTYLO2Hq2mdL6HCMwaYkpOLJ6O1X3RUwaBMU7 QvjXK/tBB9pin3uU/JTwWjfFkOGJwt62UGf4nRyxTQwWZ6N9isor+lhzL3rJA8HCKlGO 5XmQ== 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=m2X944prLCc6/ArPkEE1WC6hdjn9U7At2TQ+UcbFiMc=; b=wgcQqi2+efA2dVmncD/d/mjj+58sTiOQo80N+lV4fUp4h6fP4pvNvu1yjmmSvvUeyM q/M4STNDmkclAPcnpTANca7aXeMPKmgb0TNHpIwvgey5WuXd0FP54WBd9h9glx3Jrqkh ARVN4++fIEWy5tckhDUC3znQfSZzYBFyvzxbdc+SgE4gnm+QfWQ4bYZ3OXLepzsl+gDT 4y7UfFSGAJtVJYDV8XxLk5zPxB2DOMfIIyIqH79WpVeG5Y7BcwTiyQtlqjrkik8Ntg9H DMjDI2ED45VyQ/rnyURzZ2kcaFw7yIV0kU4SiyFDSVKyPxpMq6Xvar+IqPmGgywWf6wY zs/w== 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 v3si20730111pgh.305.2018.11.13.07.54.03; Tue, 13 Nov 2018 07:54:32 -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 S2388072AbeKNBv1 (ORCPT + 99 others); Tue, 13 Nov 2018 20:51:27 -0500 Received: from mga04.intel.com ([192.55.52.120]:13418 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732449AbeKNBv0 (ORCPT ); Tue, 13 Nov 2018 20:51:26 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Nov 2018 07:52:46 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,499,1534834800"; d="scan'208";a="108220024" Received: from ibanaga-mobl1.ger.corp.intel.com (HELO localhost) ([10.249.254.77]) by orsmga002.jf.intel.com with ESMTP; 13 Nov 2018 07:52:40 -0800 Date: Tue, 13 Nov 2018 17:52:38 +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 v5 16/17] tpm: take TPM chip power gating out of tpm_transmit() Message-ID: <20181113155238.GB4601@linux.intel.com> References: <20181108141541.12832-1-jarkko.sakkinen@linux.intel.com> <20181108141541.12832-17-jarkko.sakkinen@linux.intel.com> <5B8DA87D05A7694D9FA63FD143655C1B9DA18602@hasmsx108.ger.corp.intel.com> <20181108230700.GA8038@linux.intel.com> <5B8DA87D05A7694D9FA63FD143655C1B9DA190F4@hasmsx108.ger.corp.intel.com> <20181113111204.GD10434@linux.intel.com> <5B8DA87D05A7694D9FA63FD143655C1B9DA1CC0A@hasmsx108.ger.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5B8DA87D05A7694D9FA63FD143655C1B9DA1CC0A@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 Tue, Nov 13, 2018 at 11:58:58AM +0000, Winkler, Tomas wrote: > Yes, w/o this constrain it would be okay to request locality only once, > we can ask tboot ask again but at the time the requirement was that locality can be taken of at any point, > I believe that the locality won't be granted till a single command is completed. But then tboot could race between requesting a locality and sending the command (like immediately after the locality has been granted). > Anyhow still the power gating is wrong in this patch do not ignore > that part. I can certainly take steps back with gating. It is not a blocker for other changes but I do need to explain it in the changelog what problem does cause. I'm not ignoring it. I just don't understad what is wrong. > Thanks > Tomas /Jarkko