Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp589508lqp; Thu, 21 Mar 2024 09:36:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW/dqst8UY9UTwfch7ZXU0vuAq9JJIiwBvuIFlpzFurq7wSfOq58nVkAJ79YIhyuqGaJ8xdM8OuUid3gwjlu2ZyZrNO7GaVwbXKPUOVdQ== X-Google-Smtp-Source: AGHT+IEb5Rxve6RbdlLKn6wAsq+NTmEXZy3PvENZHY/XiqzZN70wzvfeP9yo0GbnMH0sOB4yk8Fd X-Received: by 2002:a92:b70c:0:b0:368:4b65:6dcd with SMTP id k12-20020a92b70c000000b003684b656dcdmr20524ili.26.1711038962492; Thu, 21 Mar 2024 09:36:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711038962; cv=pass; d=google.com; s=arc-20160816; b=Edj/KHmDxCo5zYduDFpRTLVO1tUibzQAxqXsuqtkLQObqLpY4VS73S6q43a6hrx3YA tFpsbhV/+Iw4xV9t0fNQ1+JvnJIhw0/WmZXkCTYCkFiwyDo8E0U8Pwf/2FIXSjal2OXD oGKR5HQA0VF4J5LbdyTcj/6xxabKCft/mB677fbS79XRy0et+0GG0tU9mhosYKRqBbBf 4+t8IuNdBAheJVFL/mv4xqtC5VTFMv5djyMU0rHMcfgD1ILPxkNn4CC5J3RCjghRAQGc c6ArJh7sviPWA1Lq/siER7xgeHmM4T6MyDNbkAIc+1LBzfk0tEXLGdPyqGq9tGFywn4e EPNA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:from:subject:cc:to:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=TBy7AjCn1y93PZ89FBCdVl5GUQ93iUpx4ZPA1sjjI4I=; fh=ZdU4qs1jGuuiM1F+bM154jTpoAvR5EGzgwwscv8ARbc=; b=cIzokisIvMAzWBi/caAmSybpTlL+bBmuV/cTrjYFVhV3iDbdZHFG6lPcEZ3zkzCsd1 g4JMhH0JkaLRXB6dCHDySUx3qcaPPfZxXzNgYT6xoBQvaPK3ZRjGvNV9QcmPEYvGRuPI bI8OYiCNcG5dz1VRBuxkkU7ogxlburYo7KUlU9QkpgbWlUSvIQVN/b/9uJ7NSdbM4z3J IatmiKPtNh//Pc8ReBNoIP5hOEffn/kwwCMxsrgZL4WPgTmYmpetaJVvUwX738uLj2SG fR2cYJOiPbpp9ciXMAtZtbiDc8GfMh7lZNM0KAX150cbWUc/x1+z++Yd+GwJa3mN8Oc8 rdwg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="pY10ZF/k"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-110352-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110352-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id r18-20020a63d912000000b005cf60fc5fc9si87520pgg.274.2024.03.21.09.36.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 09:36:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-110352-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="pY10ZF/k"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-110352-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110352-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 1E076281FF4 for ; Thu, 21 Mar 2024 16:36:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6A1FB12B8D; Thu, 21 Mar 2024 16:35:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="pY10ZF/k" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7138ABE6F; Thu, 21 Mar 2024 16:35:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711038953; cv=none; b=NLczad6a+W67B/Ff0+7OpqxTuNWWEVuhlE6lsbfZOkFvAc4LbQQASkq/3WI+FC6B6s9ZA9i1zeib4VFaBd6rvRn5rC0WgRyo4hBPIrBTyNKdqlfDCqhN4xEVQU3Zf3bEtzSNtvdjmu/kWxaHXJeGJVcuve+aYLYYnSUWRbPs2Lw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711038953; c=relaxed/simple; bh=q6TIVC1DLugr+5uXp6uTbF4gnwhZTC7lhWhpCJCilxU=; h=Mime-Version:Content-Type:Date:Message-Id:To:Cc:Subject:From: References:In-Reply-To; b=sHK5/YxFHcVKOD4S40d2c3EKuj1yGDfkFaTn/dpsA3yMc9QuFGq2gZYFblUkwh6Fnkru+HYDXL/Sk8JK8TmvQknk710SP5OXuty8xK0TTELq0fSCHuvup2tEENFP75MT4GO5Ka1PnCTN0nZEdnTSV249XhHSU1Of82CDlRQqZKk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=pY10ZF/k; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1811EC433C7; Thu, 21 Mar 2024 16:35:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711038952; bh=q6TIVC1DLugr+5uXp6uTbF4gnwhZTC7lhWhpCJCilxU=; h=Date:To:Cc:Subject:From:References:In-Reply-To:From; b=pY10ZF/k5TrBvZTao5UgCEUwmL6cYyQJzwXARqWA7e2+YHF4bkVD+ifD/5VQf6ZD7 VRcu06eq3JkngTZaL+gcjmtgM6ZvWZIxWD5YF+asRXlUbVuf5SLk0MyPQQnxL0CtzM ZGNWWiC8w33K1geBTFYKpV//Q6Id2FRPt5ptbh70OZsejyFIFCaZdyX0mM50Neo0Az QS4/UJ72XWx49Kj1iax7MxNhZhCxLcX1UGK/dHAZjUEBRmZlgLC6bOLPodFdtZWmDb /pkBV42X3KIuv3tOFy/LOeJYdeqFmuO/3SeMB8WN49L1ZKuprMzIwxhOunvrcrldif /KLbFduDu3b7Q== Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Thu, 21 Mar 2024 18:35:48 +0200 Message-Id: To: "Jarkko Sakkinen" , "Stefan Berger" , Cc: "Jonathan Corbet" , "Daniel P . Smith" , "Lino Sanfilippo" , "Jason Gunthorpe" , "Peter Huewe" , "James Bottomley" , "Alexander Steffen" , , , , "Randy Dunlap" Subject: Re: [PATCH v2] Documentation: tpm_tis From: "Jarkko Sakkinen" X-Mailer: aerc 0.17.0 References: <20240320085601.40450-1-jarkko@kernel.org> In-Reply-To: On Thu Mar 21, 2024 at 6:32 PM EET, Jarkko Sakkinen wrote: > On Thu Mar 21, 2024 at 6:24 PM EET, Jarkko Sakkinen wrote: > > On Thu Mar 21, 2024 at 6:09 PM EET, Stefan Berger wrote: > > > > > > > > > On 3/21/24 11:51, Jarkko Sakkinen wrote: > > > > On Wed Mar 20, 2024 at 6:15 PM EET, Stefan Berger wrote: > > > >> > > > >> > > > >> On 3/20/24 04:56, Jarkko Sakkinen wrote: > > > >>> Based recent discussions on LKML, provide preliminary bits of tpm= _tis_core > > > >>> dependent drivers. Includes only bare essentials but can be exten= ded later > > > >>> on case by case. This way some people may even want to read it la= ter on. > > > >>> > > > >>> Cc: Jonathan Corbet > > > >>> CC: Daniel P. Smith > > > >>> Cc: Lino Sanfilippo > > > >>> Cc: Jason Gunthorpe > > > >>> Cc: Peter Huewe > > > >>> Cc: James Bottomley > > > >>> Cc: Alexander Steffen > > > >>> Cc: keyrings@vger.kernel.org > > > >>> Cc: linux-doc@vger.kernel.org > > > >>> Cc: linux-kernel@vger.kernel.org > > > >>> Cc: linux-integrity@vger.kernel.org > > > >>> Cc: Randy Dunlap > > > >>> Signed-off-by: Jarkko Sakkinen > > > >>> --- > > > >>> v2: > > > >>> - Fixed errors reported by Randy: > > > >>> https://lore.kernel.org/all/aed28265-d677-491a-a045-24b351854= b24@infradead.org/ > > > >>> - Improved the text a bit to have a better presentation. > > > >>> --- > > > >>> Documentation/security/tpm/index.rst | 1 + > > > >>> Documentation/security/tpm/tpm_tis.rst | 30 ++++++++++++++++++= ++++++++ > > > >>> 2 files changed, 31 insertions(+) > > > >>> create mode 100644 Documentation/security/tpm/tpm_tis.rst > > > >>> > > > >>> diff --git a/Documentation/security/tpm/index.rst b/Documentation= /security/tpm/index.rst > > > >>> index fc40e9f23c85..f27a17f60a96 100644 > > > >>> --- a/Documentation/security/tpm/index.rst > > > >>> +++ b/Documentation/security/tpm/index.rst > > > >>> @@ -5,6 +5,7 @@ Trusted Platform Module documentation > > > >>> .. toctree:: > > > >>> =20 > > > >>> tpm_event_log > > > >>> + tpm_tis > > > >>> tpm_vtpm_proxy > > > >>> xen-tpmfront > > > >>> tpm_ftpm_tee > > > >>> diff --git a/Documentation/security/tpm/tpm_tis.rst b/Documentati= on/security/tpm/tpm_tis.rst > > > >>> new file mode 100644 > > > >>> index 000000000000..b331813b3c45 > > > >>> --- /dev/null > > > >>> +++ b/Documentation/security/tpm/tpm_tis.rst > > > >>> @@ -0,0 +1,30 @@ > > > >>> +.. SPDX-License-Identifier: GPL-2.0 > > > >>> + > > > >>> +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > > > >>> +TPM FIFO interface Driver > > > >>> +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > > > >>> + > > > >>> +FIFO (First-In-First-Out) is the name of the hardware interface = used by the > > > >> > > > >> FIFO is the type. I am surprised you call it a 'name'. I would say= TIS > > > >> is the 'name'. > > > >=20 > > > > It's what the official specification calls it [1]. > > > >=20 > > > >=20 > > > >> > > > >>> +tpm_tis_core dependent drivers. The prefix "tis" comes from the = TPM Interface > > > >> > > > >> tis is a tla -- a three letter *acronym*. You aren't using it as a= 'prefix'. > > > >=20 > > > > I don't know what "tla" means. > > > >=20 > > > >> > > > >>> +Specification, which is the hardware interface specification for= TPM 1.x chips. > > > >> > > > >> It's also available for TPM2. > > > > =20 > > > > Yes, but TIS is the name used by the legacy specification. > > > > > > > > > The point is that TIS is not just a TPM 1.x interface but also used f= or=20 > > > TPM 2. > > > > > > FIFO interface is what is used in the spec so I'll stick to that. > > E.g. Table 15 - *FIFO* Interface Identifier Register > > Not *TIS* Inteface Identifier Register. > > I don't want to invent my own terminology here and this the spec > that we usually refer in every possible discussion around the topic. That table actually also clarifies this pretty well, see interface type: 0000 =E2=80=93 FIFO interface as defined in PTP for TPM 2.0 is active. 0001 =E2=80=93 CRB interface is active. 1111 =E2=80=93 FIFO interface as defined in TIS1.3 is active (all other fie= lds of this register are don=E2=80=99t care). E.g. FIFO interface can be configured according to TIS 1.3 specification but the interface is still referred as FIFO interface in the current spec. BR, Jarkko