From patchwork Tue Nov 5 08:29:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: kongxinwei X-Patchwork-Id: 178487 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp434888ilf; Tue, 5 Nov 2019 00:29:43 -0800 (PST) X-Google-Smtp-Source: APXvYqx2d5nZbfrs3x30/GarIxabPx8rxoYFdiZfkSV3uu9cyFZ3UON4fq+qcY2ovraPQ29MsP3R X-Received: by 2002:a17:906:f0c9:: with SMTP id dk9mr1111415ejb.56.1572942583559; Tue, 05 Nov 2019 00:29:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572942583; cv=none; d=google.com; s=arc-20160816; b=uvJPfpv2mr0Vkd2wTOANTdQokfIl3lu5nYUsVa3RPNjYMdlb+9xkE33vDuVY7xWyhW 0syC/G2QJQsDLoNEYz1iVK56zzVngepSeXQpVjIUvQLxv/ONSbJRa5+HjfMK/gMKEzMw vmBpUdYQEZxkcppk5lZIVTUmW2mFnwAVbdAPF4d1MzlNKGRC1TbDkXV6bH7ceu1rbHD5 T0hmq/ZhwGjV2nlWg2yoxIpiHiQYZ0P9JFGKDM/8hjyXbCKuxyovfJd8eQXOv40TqNTN HS0tkyGGZ1WqrrPGO4/mYBCEvfTmjz64CLPwXIbhg8y/H+OyOUkqEd5Z0ihhhjzBxcXu dm7A== 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 :message-id:date:subject:cc:to:from; bh=DTtjvn3ht8fy1Kl1HuQvhsMGAz/ym2IMfgoQ66ZyG+M=; b=KdgpWKgB+0u+k0JO4h7NLd7HbUDbq2aD2RZ5Ry/AKlpUOqEBgGcWCmYyy6NTXLXFsY cV73HM1d+ITfOjtfjDN/S/4+hiCAnJ/ioszwi25fYQnX3mi9/hkeoe0VNt03WZb/uGTh G+D0aq0gWZMixTy2FLLh+W9xBO3k6TsAs9IcSWwxx7if0bK44VHk+kQ9N0ycYZCPZrTP 9NMQ4mgMQ0BUHVL0kPuearPIlGapwEzCAmrsNKwkQfmk7X1H6FqzkY/5awOWp99kmOqy sL8pyaU7B8HCgpp6oetPz5w3K8BkjN7mKqWxoWVziIWeM16EtpcZOlpZDApf4yb8G/Rw t8SA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-efi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-efi-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g31si10341380edg.206.2019.11.05.00.29.43; Tue, 05 Nov 2019 00:29:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-efi-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-efi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-efi-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387675AbfKEI3n (ORCPT + 3 others); Tue, 5 Nov 2019 03:29:43 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:60382 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2387575AbfKEI3m (ORCPT ); Tue, 5 Nov 2019 03:29:42 -0500 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 7E387F1619D937D41398; Tue, 5 Nov 2019 16:29:40 +0800 (CST) Received: from szxy7k002784261.china.huawei.com (10.57.64.164) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.439.0; Tue, 5 Nov 2019 16:29:31 +0800 From: Xinwei Kong To: , , , , , , , CC: , , Subject: [PATCH] EFI/stub: tpm: enable tpm eventlog function for ARM64 platform Date: Tue, 5 Nov 2019 16:29:24 +0800 Message-ID: <20191105082924.289-1-kong.kongxinwei@hisilicon.com> X-Mailer: git-send-email 2.23.0.windows.1 MIME-Version: 1.0 X-Originating-IP: [10.57.64.164] X-CFilter-Loop: Reflected Sender: linux-efi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-efi@vger.kernel.org this patch gets tpm eventlog information such as device boot status,event guid and so on, which will be from bios stage. it use "efi_retrieve_tpm2_eventlog" functions to get it for ARM64 platorm. Signed-off-by: Xinwei Kong Signed-off-by: Zou Cao --- drivers/firmware/efi/libstub/arm-stub.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.7.4 diff --git a/drivers/firmware/efi/libstub/arm-stub.c b/drivers/firmware/efi/libstub/arm-stub.c index c382a48..37c8f81 100644 --- a/drivers/firmware/efi/libstub/arm-stub.c +++ b/drivers/firmware/efi/libstub/arm-stub.c @@ -139,6 +139,8 @@ unsigned long efi_entry(void *handle, efi_system_table_t *sys_table, if (status != EFI_SUCCESS) goto fail; + efi_retrieve_tpm2_eventlog(sys_table); + /* * Get a handle to the loaded image protocol. This is used to get * information about the running image, such as size and the command