Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp8733726ybc; Fri, 29 Nov 2019 15:53:06 -0800 (PST) X-Google-Smtp-Source: APXvYqwg+Lz/9qCAfNGui/RUwPEOXOFngtUd+nwS9WCdDa/w3heuc0BZfCJ3oJ5IXnQc3oXqDa0J X-Received: by 2002:a50:a9e3:: with SMTP id n90mr48423884edc.52.1575071586123; Fri, 29 Nov 2019 15:53:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575071586; cv=none; d=google.com; s=arc-20160816; b=PibDQzT6G4dIJK6wMSkqLMXN74IlioII2xgAFsh6r6AKZ10e8k2HrBBW28P0VNF+w3 8ln7A48Z+d7vy0gtaIa3cSrNuASRccRkSmkkhPUzuLbw9aEOB6fs+iewXYYrMOnTSGAB yOTw/Oz7iWzMTtQ++acSxI/BzjP5NJR8obz8ctJiSDFC7okoTomqwYSsHlbM4qVT5r2x QcW6KYQ47AAd+lB/k89bSpQogrGSkDYFQYhsJrinfTzR9Zdd9KjfETmCJ+cFSZ6A4lUQ dglrbDHX+IRSwSqH3N7id/jO0B20n23bQ7nuZMHrFjMZXCGHuE37f33upuyEbks5gR6s KXnQ== 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:to :from:date; bh=kUkUV34HbIJullTVDWIC2dqr4D+oy2kUv7i0nEiYofc=; b=H6JTZFaFDnp8Ilwq1jJKK6c9KTFl74HMliqipH6I4ceo/d/mw1IoP8+K3tegu7S8Zw KfkNS2JgJTxEyURMb1hvd6qb5mldyS/v7Qz3iMM6knGqwvS9ti2Y4fJF2MfuHDJH2zF1 rvTLkzTwBbqHE2Qb2D0edKjLZIwft9NCioKAb918sJ7wET0EuQaK4S+2fMfWf4EPLI0f pvNMa9whpRdhHaBFSehC9/kxWwZcVy0OjkAr7bp4zntXQ0ZW+tVxPIDabyEIFyU2GPmR BgJiVvtekJcsA9n+ZDr2RSpH5YuNon0lVbbMYdSHSPsJAjW2Wxyum2dMr7m3gAAC+Jg6 rDLA== 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 o26si9188424edv.420.2019.11.29.15.52.40; Fri, 29 Nov 2019 15:53:06 -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 S1727175AbfK2Xvi (ORCPT + 99 others); Fri, 29 Nov 2019 18:51:38 -0500 Received: from mga03.intel.com ([134.134.136.65]:16353 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727097AbfK2Xvh (ORCPT ); Fri, 29 Nov 2019 18:51:37 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Nov 2019 15:51:34 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,259,1571727600"; d="scan'208";a="241184315" Received: from gamanzi-mobl4.ger.corp.intel.com (HELO localhost) ([10.252.3.126]) by fmsmga002.fm.intel.com with ESMTP; 29 Nov 2019 15:51:32 -0800 Date: Sat, 30 Nov 2019 01:51:31 +0200 From: Jarkko Sakkinen To: linux-kernel@vger.kernel.org, Mimi Zohar , Peter Huewe , Jason Gunthorpe , linux-integrity@vger.kernel.org Subject: Re: [PATCH v4] tpm: Add tpm_version_major sysfs file Message-ID: <20191129235131.GA21546@linux.intel.com> References: <20191030225843.23366-1-jsnitsel@redhat.com> <20191128010826.w4ixlix3s3ovta3m@cantor> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191128010826.w4ixlix3s3ovta3m@cantor> 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 Wed, Nov 27, 2019 at 06:08:26PM -0700, Jerry Snitselaar wrote: > On Wed Oct 30 19, Jerry Snitselaar wrote: > > Easily determining what TCG version a tpm device implements > > has been a pain point for userspace for a long time, so > > add a sysfs file to report the TCG major version of a tpm device. > > > > Also add an entry to Documentation/ABI/stable/sysfs-class-tpm > > describing the new file. > > > > Cc: Jarkko Sakkinen > > Cc: Mimi Zohar > > Cc: Peter Huewe > > Cc: Jason Gunthorpe > > Cc: linux-integrity@vger.kernel.org > > Signed-off-by: Jerry Snitselaar > > --- > > v4: - Change file name to tpm_version_major > > - Actually display just the major version. > > - change structs to tpm1_* & tpm2_* > > instead of tpm12_* tpm20_*. > > v3: - Change file name to version_major. > > v2: - Fix TCG usage in commit message. > > - Add entry to sysfs-class-tpm in Documentation/ABI/stable > > > > Documentation/ABI/stable/sysfs-class-tpm | 11 ++++++++ > > drivers/char/tpm/tpm-sysfs.c | 34 +++++++++++++++++++----- > > 2 files changed, 38 insertions(+), 7 deletions(-) > > > > Anyone else have feedback? I can apply this after the issues on hand have been sorted out. /Jarkko