Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4132957yba; Tue, 9 Apr 2019 11:52:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqyD3mxRt1rKC70e1t9j523KFJiloM6SSF8Yxd8REtKzARZAFDlyw6WKCsMSEME8RB9m6P2S X-Received: by 2002:a17:902:22f:: with SMTP id 44mr35305718plc.175.1554835950296; Tue, 09 Apr 2019 11:52:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554835950; cv=none; d=google.com; s=arc-20160816; b=BzKc+vfkf7X3a08L8PoMsxOrepB5gAg9tndP1sM2GZvabRjXbIrSN8ifbxslh0AciU BaW+8y1JgGSAOwVVTZt2RrcrjotghcatmLkMXIAqsz1Lt47lH7MHhL7lzzOFBfZEYdjY eZBeFdbkh8EwDBdbJzBB9jViF0u6clAvuQyJEeoVZvVi/dANpiBuKccbwRT+zofpP+Om Vn84fccrnRjYQ+mRq2w2k40Tl479EZw5VZZUtDWi3wI/eUJW7cTNag2plk0TJZIpx+mK ZGPweJBXFtvC/GXfhpMk5FWKDaKcSPNthnBoXup7ka6y2ZdQ71eYcBtDvIldboaCkhFC 1mUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=kgriQK6aH3f2g+1ptdMWo7GXu1i6iIMd84Dr2XeoSt4=; b=sxxiWlVKZt4/yl+M7d3T+8/cp8iLjVmeuhD0qYIsAHLnOwrOWt5ysDW+N7yG1D0h2c vRG7DPelkVzCNKVZgnuX+9Dl/dBu5x95VTXucrt2uxmBoayvcmBHWyz8+LDQBopD3MnS 4oHaTdrXy0v52aq5w44oR0+aaeGEYCIglqBZ8Bs9D2HkBuyHZAmzXhO+B6lgNVO35hWv EU2xpgB7n6DlvY2myu/lIX014ZojWqJ3c6xu3ZXB5enL5pD8fme30XxxXdJgkMPUNRgv xf+ALQXiLjgaEKmLOBusj460yCFspPCWb0DUdh31ISe6D/N4idxRRCO9dhobbW4YiYGN ckxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=EIAznywx; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y18si29410547pll.172.2019.04.09.11.52.14; Tue, 09 Apr 2019 11:52:30 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=EIAznywx; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726872AbfDISuY (ORCPT + 99 others); Tue, 9 Apr 2019 14:50:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:57528 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726842AbfDISuT (ORCPT ); Tue, 9 Apr 2019 14:50:19 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6114B218E2; Tue, 9 Apr 2019 18:50:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554835818; bh=JCja87Ul3jcpRkuSZO7IIHnlEqxRDIUptc29tXOWjNA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EIAznywxh5FnrELFFj4tcLqF+f9RI3DpFbEbAtLENB/yMVLIK30/T3PLo/fu5y9Y4 G8rRKPmc13wsDdZFwhi/u0QjtMBAnN9WHJwQzz4IC2dfPZYQ69PtZQrdbbuRihW/GW GMJcwcxoRjHKH8VZ6viev72ybRk85150xVRNrOpc= From: Sasha Levin To: peterhuewe@gmx.de, jarkko.sakkinen@linux.intel.com, jgg@ziepe.ca Cc: mark.rutland@arm.com, corbet@lwn.net, robh+dt@kernel.org, arnd@arndb.de, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-integrity@vger.kernel.org, linux-kernel@microsoft.com, thiruan@microsoft.com, bryankel@microsoft.com, Sasha Levin Subject: [PATCH v2 3/3] ftpm: add documentation for ftpm driver Date: Tue, 9 Apr 2019 14:49:58 -0400 Message-Id: <20190409184958.7476-4-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190409184958.7476-1-sashal@kernel.org> References: <20190409184958.7476-1-sashal@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds basic documentation to describe the new fTPM driver. Signed-off-by: Sasha Levin --- Documentation/security/tpm/index.rst | 1 + Documentation/security/tpm/tpm_ftpm_tee.rst | 31 +++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 Documentation/security/tpm/tpm_ftpm_tee.rst diff --git a/Documentation/security/tpm/index.rst b/Documentation/security/tpm/index.rst index af77a7bbb070..15783668644f 100644 --- a/Documentation/security/tpm/index.rst +++ b/Documentation/security/tpm/index.rst @@ -4,4 +4,5 @@ Trusted Platform Module documentation .. toctree:: + tpm_ftpm_tee tpm_vtpm_proxy diff --git a/Documentation/security/tpm/tpm_ftpm_tee.rst b/Documentation/security/tpm/tpm_ftpm_tee.rst new file mode 100644 index 000000000000..3f19b12d9c57 --- /dev/null +++ b/Documentation/security/tpm/tpm_ftpm_tee.rst @@ -0,0 +1,31 @@ +============================================= +Firmware TPM Driver +============================================= + +| Authors: +| Thirupathaiah Annapureddy +| Sasha Levin + +This document describes the firmware Trusted Platform Module (fTPM) +device driver. + +Introduction +============ + +This driver is a shim for a firmware implemented in ARM's TrustZone +environment. The driver allows programs to interact with the TPM in the same +way the would interact with a hardware TPM. + +Design +====== + +The driver acts as a thin layer that passes commands to and from a TPM +implemented in firmware. The driver itself doesn't contain much logic and is +used more like a dumb pipe between firmware and kernel/userspace. + +The firmware itself is based on the following paper: +https://www.microsoft.com/en-us/research/wp-content/uploads/2017/06/ftpm1.pdf + +When the driver is loaded it will expose ``/dev/tpmX`` character devices to +userspace which will enable userspace to communicate with the firmware tpm +through this device. -- 2.19.1