Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp595726imm; Wed, 17 Oct 2018 05:26:44 -0700 (PDT) X-Google-Smtp-Source: ACcGV61eRAzgNGH1mTYRuMG6lYV+S9IVn81GthfIYNu7hVGBnipSGkaEbHHWbc8hS/hMR/nAaKea X-Received: by 2002:a62:db46:: with SMTP id f67-v6mr26065988pfg.1.1539779204438; Wed, 17 Oct 2018 05:26:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539779204; cv=none; d=google.com; s=arc-20160816; b=IStCBEnQE+0sFOEaGSGmQdUCnAmYJbzhf32D35kCPWHScg7fcbHcATY3cmeK2Nh60V DMzDXlqgBtRsaPu5JPCAvNGKaDT/z6JDIStqKR49oZquq/hLQK2310OBuoFP6u59H0dh a8IJH5D9cbVon80YU46H6BG0yIIpsdA7q/7XDhBaNzQOywIF5eBvdtxexSu9RUHppuRU /1iRlvxvOSLTB0sibYWRTHLD7pKMKl70lm+GCrvWYyV2syqyW6Fvefb13EkRLwsfZeF5 /0gUK6ecEafX6X343Y0ZYBmkXey4Mtr2gP98MmQt47SMGmcsqq0JW2oYSrZOTlG+Rn+B /VOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :dlp-reaction:dlp-version:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from; bh=lU0XXtrrEzBLDSacmYqeu5S7yjn7Z4SMbSaWnhLKtnQ=; b=N4b2ThCtsM8b0MXXiD23RnZVVnpk22i8pm8t7SEB1gNZjx4FztbaZ4IjqZvFZWr6Jm thI0+DjsCrFWDcxaEJR5jGHL4Ls3qgWAB7IaQdes/dtbEIjyag/+yUldoQt6JZSbNrQL VZg5uFgOuSLCbqmjpU98T+lDg/sGe81nARaToEeUwT7r3CJ2QFb7UoDSXtNpF2u1lEZl 1A/mvE5IKYm/+8GH1EYQDBNTBp5nybDy3RtEurXpL8+l8vIwcLLLpzPUwc3uMnRCCvC4 idUHqUM27gz7iu1w5Li1LK6Zc1M0vCZFNq8nHSPSVC7Sgp5DPEaTPN0K5uxmAcVWcHJq FPVQ== 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 a127-v6si18689048pfb.24.2018.10.17.05.26.26; Wed, 17 Oct 2018 05:26:44 -0700 (PDT) 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 S1727050AbeJQUUA (ORCPT + 99 others); Wed, 17 Oct 2018 16:20:00 -0400 Received: from mga01.intel.com ([192.55.52.88]:5574 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726954AbeJQUUA (ORCPT ); Wed, 17 Oct 2018 16:20:00 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Oct 2018 05:24:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,392,1534834800"; d="scan'208";a="78719211" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga007.fm.intel.com with ESMTP; 17 Oct 2018 05:24:32 -0700 Received: from FMSMSX109.amr.corp.intel.com (10.18.116.9) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 17 Oct 2018 05:24:32 -0700 Received: from hasmsx112.ger.corp.intel.com (10.184.198.40) by fmsmsx109.amr.corp.intel.com (10.18.116.9) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 17 Oct 2018 05:24:31 -0700 Received: from HASMSX109.ger.corp.intel.com ([169.254.3.28]) by HASMSX112.ger.corp.intel.com ([169.254.11.230]) with mapi id 14.03.0319.002; Wed, 17 Oct 2018 15:24:29 +0300 From: "Winkler, Tomas" To: Nayna Jain , Jarkko Sakkinen , Jason Gunthorpe CC: Nayna Jain , "Usyskin, Alexander" , "Struk, Tadeusz" , "linux-integrity@vger.kernel.org" , "linux-security-module@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH v6 03/20] tpm: factor out tpm 1.x duration calculation to tpm1-cmd.c Thread-Topic: [PATCH v6 03/20] tpm: factor out tpm 1.x duration calculation to tpm1-cmd.c Thread-Index: AQHUZeXEAxkAvhY2ik6aE/XYedYfeaUjIkEAgAA4YJA= Date: Wed, 17 Oct 2018 12:24:28 +0000 Message-ID: <5B8DA87D05A7694D9FA63FD143655C1B9D9F4691@hasmsx109.ger.corp.intel.com> References: <20181017064613.19746-1-tomas.winkler@intel.com> <20181017064613.19746-4-tomas.winkler@intel.com> <05fea3e6-91a3-b508-83c0-d8f06d6bbd5c@linux.ibm.com> In-Reply-To: <05fea3e6-91a3-b508-83c0-d8f06d6bbd5c@linux.ibm.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiOTAyM2E4MDgtMmUzZi00NjdiLTllZTUtZTUzYjM0MTg4NWRiIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiUGgxc2RJRXRMTVozSzdmY000RmRHbFBQQWZKcG5oeHltbzVmRWhQNHlVTDI2K2hTVVF4SDVZUkJpMEFmYkFCZCJ9 dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-originating-ip: [10.12.116.154] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org PiANCj4gDQo+IA0KPiBPbiAxMC8xNy8yMDE4IDEyOjE1IFBNLCBUb21hcyBXaW5rbGVyIHdyb3Rl Og0KPiA+IGRpZmYgLS1naXQgYS9kcml2ZXJzL2NoYXIvdHBtL3RwbV9pMmNfbnV2b3Rvbi5jDQo+ ID4gYi9kcml2ZXJzL2NoYXIvdHBtL3RwbV9pMmNfbnV2b3Rvbi5jDQo+ID4gaW5kZXggY2FhODZi MTljNzZkLi41ZDIwZTk4Yjg0NGYgMTAwNjQ0DQo+ID4gLS0tIGEvZHJpdmVycy9jaGFyL3RwbS90 cG1faTJjX251dm90b24uYw0KPiA+ICsrKyBiL2RyaXZlcnMvY2hhci90cG0vdHBtX2kyY19udXZv dG9uLmMNCj4gPiBAQCAtMzcwLDYgKzM3MCw3IEBAIHN0YXRpYyBpbnQgaTJjX251dm90b25fc2Vu ZChzdHJ1Y3QgdHBtX2NoaXAgKmNoaXAsDQo+IHU4ICpidWYsIHNpemVfdCBsZW4pDQo+ID4gICAJ c3RydWN0IGkyY19jbGllbnQgKmNsaWVudCA9IHRvX2kyY19jbGllbnQoZG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