Message ID | 20241029124934.3167208-1-stefanb@linux.vnet.ibm.com |
---|---|
Headers | show
Return-Path: <slof-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256 header.s=pp1 header.b=arqvMlAh; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=2404:9400:2:0:216:3eff:fee1:b9f1; helo=lists.ozlabs.org; envelope-from=slof-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=patchwork.ozlabs.org) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2404:9400:2:0:216:3eff:fee1:b9f1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Xd97t6645z1xwc for <incoming@patchwork.ozlabs.org>; Tue, 29 Oct 2024 23:49:46 +1100 (AEDT) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4Xd97s15qpz2yYk for <incoming@patchwork.ozlabs.org>; Tue, 29 Oct 2024 23:49:45 +1100 (AEDT) X-Original-To: slof@lists.ozlabs.org Delivered-To: slof@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip=148.163.158.5 ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1730206183; cv=none; b=G960jDoD0RwegrLHnxDwSWCpjbvgy0olV50zEtOIyazqJYEYYBHzl0bL8A67VqkZ8A3PxFqQTy991r1FkT4A5ZpuQV6OxOiRslqzLDKMeoq99291hs4C+wCGzVgxe8XB291BfTL1GZkhDqbSs7Sn9iDML6luAaN7Y68+E20IVwor34D2Oalr0DBcaUBz4Nusp8BBxnAcZxJGgnh7PNj51QMUPJ1hBRrE7KG36BWBMTbjxP0o9dumGSFyzCDd9f9A7KNyHr+aYzECVOhRjf6zZt6UNLOuVEZUurAUpl7iYvGxycMlnnVXYuywkhqF+ZJcpOs9y3yOrnIyGfwA5PFvKQ== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1730206183; c=relaxed/relaxed; bh=pIiCcrFtX0GpkQwBP+iQz0h79EzOnE8+UnWa/3Oc/ec=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=CyTTy3yZW3qs60Dupxzqtki8PEpitacrkEmAk8FIUg+HKsHMaPykosaV5GLJdBiyl4trXmlTJwhf9QNPouHaUyxy6strB37Jaejn0Td8Fu+qWUKA8p5kYwC6hynVHQkbM2yS0gQ4inx1Nn8xYqXOs8RLrBWEb7v+ZucvaAWlP1YVf7KAMwfmHFvFNeSIdJubjRZmCPVvbVSCfQFasw7/uhbPkWtUubQcMVA0fdwwffIfZ5AjVgde/a+g6pAZgS0SFFwQbqCLK2CTxHofW8aFI1Y7JMYf6L4tst9GWPaOzDpSRt+85mHaWLA8Hv/CdCI8UHMz/AdPSovfwPZaNp+R7w== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=linux.vnet.ibm.com; dkim=pass (2048-bit key; unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256 header.s=pp1 header.b=arqvMlAh; dkim-atps=neutral; spf=none (client-ip=148.163.158.5; helo=mx0b-001b2d01.pphosted.com; envelope-from=stefanb@linux.vnet.ibm.com; receiver=lists.ozlabs.org) smtp.mailfrom=linux.vnet.ibm.com Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=linux.vnet.ibm.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256 header.s=pp1 header.b=arqvMlAh; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=linux.vnet.ibm.com (client-ip=148.163.158.5; helo=mx0b-001b2d01.pphosted.com; envelope-from=stefanb@linux.vnet.ibm.com; receiver=lists.ozlabs.org) Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4Xd97p01ffz2xl5 for <slof@lists.ozlabs.org>; Tue, 29 Oct 2024 23:49:41 +1100 (AEDT) Received: from pps.filterd (m0356516.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 49TCE3N4019494; Tue, 29 Oct 2024 12:49:38 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc :content-transfer-encoding:date:from:message-id:mime-version :subject:to; s=pp1; bh=pIiCcrFtX0GpkQwBP+iQz0h79EzOnE8+UnWa/3Oc/ ec=; b=arqvMlAha0SeZ7B9AdgD5GjI5FL9epxOWXuHJhBeH6YLXf0p3aQYcDY9W nNgVJUwufGLSbvfz6iWwD5lf4y8PTMEjiex+AMGKX1eMPb+yVIDGOt9qf4dQTBXc 8T73uDlarmuhfa2Py4e/DNMfby9Z2npV01TITiKNmJ7qsOhBZz1+j1mLLZtxOnYh 3i8yApGjfDTK8RqpnN03UlhcJQmCHzm1C4Qu3pnIFD2dqKoAlio3EiROhM/hntFS lNsPKrzM6AqgSLd+nRD+cJAHsfdINpxDDa9ThOcU5lUqltYSVXtveTAe9ze1niPw FNnFO5FvAXRtXVm9x+wIItlyhiReg== Received: from ppma23.wdc07v.mail.ibm.com (5d.69.3da9.ip4.static.sl-reverse.com [169.61.105.93]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 42jyhbg4xk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 29 Oct 2024 12:49:38 +0000 (GMT) Received: from pps.filterd (ppma23.wdc07v.mail.ibm.com [127.0.0.1]) by ppma23.wdc07v.mail.ibm.com (8.18.1.2/8.18.1.2) with ESMTP id 49TB17I2018363; Tue, 29 Oct 2024 12:49:37 GMT Received: from smtprelay04.dal12v.mail.ibm.com ([172.16.1.6]) by ppma23.wdc07v.mail.ibm.com (PPS) with ESMTPS id 42hc8k2yk3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 29 Oct 2024 12:49:37 +0000 Received: from smtpav06.dal12v.mail.ibm.com (smtpav06.dal12v.mail.ibm.com [10.241.53.105]) by smtprelay04.dal12v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 49TCnamN57737586 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 29 Oct 2024 12:49:36 GMT Received: from smtpav06.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4A5095805D; Tue, 29 Oct 2024 12:49:36 +0000 (GMT) Received: from smtpav06.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0830B58043; Tue, 29 Oct 2024 12:49:36 +0000 (GMT) Received: from sbct-3.pok.ibm.com (unknown [9.47.158.153]) by smtpav06.dal12v.mail.ibm.com (Postfix) with ESMTP; Tue, 29 Oct 2024 12:49:35 +0000 (GMT) From: Stefan Berger <stefanb@linux.vnet.ibm.com> To: slof@lists.ozlabs.org, aik@ozlabs.ru Date: Tue, 29 Oct 2024 08:49:32 -0400 Message-ID: <20241029124934.3167208-1-stefanb@linux.vnet.ibm.com> X-Mailer: git-send-email 2.47.0 X-TM-AS-GCONF: 00 X-Proofpoint-GUID: 6vIJ1cWqZYbrYa_tRno-OO2ZBupw8Ce8 X-Proofpoint-ORIG-GUID: 6vIJ1cWqZYbrYa_tRno-OO2ZBupw8Ce8 X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1051,Hydra:6.0.680,FMLib:17.12.62.30 definitions=2024-10-15_01,2024-10-11_01,2024-09-30_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1011 mlxscore=0 malwarescore=0 bulkscore=0 priorityscore=1501 lowpriorityscore=0 suspectscore=0 phishscore=0 impostorscore=0 mlxlogscore=994 spamscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2409260000 definitions=main-2410290097 X-Spam-Status: No, score=-0.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_NONE autolearn=disabled version=4.0.0 X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on lists.ozlabs.org Subject: [SLOF] [PATCH v3 0/2] Implement 2 missing TPM related firmware API calls X-BeenThere: slof@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Patches for https://github.com/aik/SLOF" <slof.lists.ozlabs.org> List-Unsubscribe: <https://lists.ozlabs.org/options/slof>, <mailto:slof-request@lists.ozlabs.org?subject=unsubscribe> List-Archive: <http://lists.ozlabs.org/pipermail/slof/> List-Post: <mailto:slof@lists.ozlabs.org> List-Help: <mailto:slof-request@lists.ozlabs.org?subject=help> List-Subscribe: <https://lists.ozlabs.org/listinfo/slof>, <mailto:slof-request@lists.ozlabs.org?subject=subscribe> Cc: Stefan Berger <stefanb@linux.ibm.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: slof-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "SLOF" <slof-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org> |
Series |
Implement 2 missing TPM related firmware API calls
|
expand
|
From: Stefan Berger <stefanb@linux.ibm.com> This series implements 2 missing TPM related firmware API calls. One is to get the maximum TPM command size and the other one allows passing a TPM command through to the TPM. These calls will be used by ppc64-enablement of the following grub series where grub calls similar API calls in the x86 firmware: https://lore.kernel.org/grub-devel/qurvz3ceq5fwbbq6c3u6xpmbsjbxnvoqg2tyqq47rdfaemwbl2@mgqwgv5ik445/T/#t Regards, Stefan v3: - Corrected passthrough function parameter 'bufsize' to 'cmd_size' - Check length indicated inside buffer against cmd_size parameter v2: - Added explanation what the API calls will be used for - Improved commit messages Stefan Berger (2): tpm: Implement firmware API call get-maximum-cmd-size tpm: Implement firmware API call pass-through-to-tpm board-qemu/slof/vio-vtpm-cdriver.fs | 19 ++++++++++++++++++ lib/libtpm/tcgbios.c | 30 +++++++++++++++++++++++++++++ lib/libtpm/tcgbios.h | 2 ++ lib/libtpm/tpm.code | 21 ++++++++++++++++++++ lib/libtpm/tpm.in | 2 ++ 5 files changed, 74 insertions(+)