From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753601AbdK3BqG (ORCPT ); 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 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 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 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 >