Received: by 10.223.164.202 with SMTP id h10csp95133wrb; Wed, 29 Nov 2017 17:48:08 -0800 (PST) X-Google-Smtp-Source: AGs4zMZ9l1cbuxmwm0Tr7Y/tGDIQvy2X7UihX2qpRzbd7tOpfYgUTW2CdFHqyPsJwfpdATt8D3lt X-Received: by 10.98.120.13 with SMTP id t13mr4994187pfc.4.1512006488779; Wed, 29 Nov 2017 17:48:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512006488; cv=none; d=google.com; s=arc-20160816; b=AOgM8BzhDvcxTmY7bNZah+iBL2uznRtTaxokEoChpj2d/3oyS2popOajiuwfahDIvc o+JomntRPWtE4ronAEyDz+kWFIQO3wjBVJC/x7XLVgBgEG0Wx7dXS+wI7PF61qt1qNUz 2OKOKPMsWLBkZv+jp14VcRmWPNDxSpWEPG9iD9lSus/V3AHMwf3bCULjJYWCcs42kIsQ bvVEZ2rJZQiyQosIvX3RUTDWH5ib7OwIVdOOTG831quFvzAq9QO1d9BY+iIZcJWdWTUn t24DvxljjiVM63jkYAEz5jTT6BWNqtqEw1mgXFelaktGPgDe4WTKge9bBmYm6Ugc0rib /kPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:arc-authentication-results; bh=pvXkb/TkLtFAsq1UZXJbQ5uPec35ia86NqEBuhq3URM=; b=Ze7eQCKyEGgsBMczxRvE3pesXIKhBOUEPKpU/zN0FCr2Pori2NawWcVix0zim4rhXh h/nGv60jv4bcO67u3BcRxRmcwPhvrHGyP6jAcSgp0Cc0ubfS5FlyntYxMfGt50SItmwZ tp0/CiftEdrrtid+RwXwPKKE/36GLGh5zOr6GPQSRzrUs5rZIfUQ2yvUwB8ATGWtGm2Z U99sCX331BR3W0rHZrSnIdWG3Ewba0FBtvLiVvfaUFcyHgL1vHxu5sgjeqnU7PAFzYPF oVZHDV2XD7mkqz3mbN+g3esJoIJA/c+NDiZIgk1eeZWPE4p9mNjFb7/JbOBJ/AnwFuBL jxxw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o130si2326053pfo.42.2017.11.29.17.47.55; Wed, 29 Nov 2017 17:48:08 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753596AbdK3BqG (ORCPT + 99 others); Wed, 29 Nov 2017 20:46:06 -0500 Received: from smtp.twobit.us ([38.83.192.235]:53700 "EHLO smtp.twobit.us" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753580AbdK3BqE (ORCPT ); Wed, 29 Nov 2017 20:46:04 -0500 Received: from [76.243.124.130] (helo=[192.168.73.121]) by smtp.twobit.us with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1eKDiC-0003sk-KK; Thu, 30 Nov 2017 01:32:25 +0000 To: Jarkko Sakkinen , Javier Martinez Canillas Cc: linux-kernel@vger.kernel.org, Peter Huewe , Jerry Snitselaar , Jason Gunthorpe , Philip Tricca , linux-integrity@vger.kernel.org, William Roberts , James Bottomley References: <20171129110846.31892-1-javierm@redhat.com> <20171129175738.pim7is5zc3wmult6@linux.intel.com> From: Philip Tricca Message-ID: <7df9ad8d-08b7-2be1-ebd8-874777aaed98@twobit.us> Date: Wed, 29 Nov 2017 17:45:49 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20171129175738.pim7is5zc3wmult6@linux.intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 76.243.124.130 X-SA-Exim-Mail-From: flihp@twobit.us X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on smtp.twobit.us X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Subject: Re: [PATCH v2] tpm: return a TPM_RC_COMMAND_CODE response if a command isn't implemented X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000) X-SA-Exim-Scanned: Yes (on smtp.twobit.us) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/29/2017 09:57 AM, Jarkko Sakkinen wrote: > On Wed, Nov 29, 2017 at 12:08:46PM +0100, Javier Martinez Canillas wrote: >> +#define TPM2_RC_LAYER_SHIFT 16 >> +#define TPM2_RESMGRTPM_RC_LAYER (11 << TPM2_RC_LAYER_SHIFT) > > I got this spec from Philip [1]. As part of this I've been doing a pass back over the current draft spec fixing up all of the places where the we were using 'ERROR_LEVEL', 'RESPONSE_LEVEL' etc interchangeably. Everything will be 'RC_LAYER' in the next published draft. Apologies if this caused any confusion here but it looks like Javier was able to work around this regardless Next time around the spec should be more clear. Philip > Couple of remarks: > > * What is the difference between TSS2_RESMGR_RC_LAYER and > TSS2_RESMGR_TPM_RC_LAYER? > * Should the driver code use TSS2 or TPM2 prefix? > > [1] https://trustedcomputinggroup.org/wp-content/uploads/TCG-TSS-2.0-Overview-and-Common-Structures-Specification-Version-0.90-Revision-02.pdf > > /Jarkko > From 1585425973433687597@xxx Wed Nov 29 18:27:11 +0000 2017 X-GM-THRID: 1585398450336580513 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread