Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752862AbdCOR0G (ORCPT ); Wed, 15 Mar 2017 13:26:06 -0400 Received: from quartz.orcorp.ca ([184.70.90.242]:42852 "EHLO quartz.orcorp.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750780AbdCOR0F (ORCPT ); Wed, 15 Mar 2017 13:26:05 -0400 Date: Wed, 15 Mar 2017 11:25:56 -0600 From: Jason Gunthorpe To: James Bottomley Cc: Peter Huewe , tpmdd-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org Subject: Re: [tpmdd-devel] [PATCH] tpm: Add sysfs interface to show TPM hardware version Message-ID: <20170315172556.GA6399@obsidianresearch.com> References: <1489382517-9078-1-git-send-email-Meng.Li@windriver.com> <29B2C361-A0C0-410E-ACCA-07AFA382A251@gmx.de> <9f67321b-50bd-9e6f-61f8-c29ae14f261f@linux.vnet.ibm.com> <074515F2-51E7-485B-B1AB-11B913CC4B46@gmx.de> <20170314212425.GA29359@obsidianresearch.com> <1489527771.19081.49.camel@HansenPartnership.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1489527771.19081.49.camel@HansenPartnership.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-Broken-Reverse-DNS: no host name found for IP address 10.0.0.156 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 825 Lines: 21 On Tue, Mar 14, 2017 at 02:42:51PM -0700, James Bottomley wrote: > On Tue, 2017-03-14 at 15:24 -0600, Jason Gunthorpe wrote: > > On Tue, Mar 14, 2017 at 07:58:37PM +0100, Peter Huewe wrote: > > > > > > In practice, I suspect that a single user space application won't > > > > support both TPMs. > > > Think of init scripts. > > > Which daemon should it start? > > > > Right, ideally we'd have a udev rule that triggers systemd to start > > the userspace daemons when a TPM is detected, as other hardware does. > > > > So whatever format we use has to be compatible with udev's matcher.. > > Technically, we have that already: my TPM2.0 detection stuff for udev > triggers off the presence of the SUBSYSTEM=="tpmrm" that matches any > TPM2 device but not a 1.x one. but long term tpmrm won't be TPM2 exclusive.. Jason