From patchwork Thu Nov 7 08:24:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: kongxinwei X-Patchwork-Id: 178790 Delivered-To: patch@linaro.org Received: by 2002:ac9:3c86:0:0:0:0:0 with SMTP id w6csp620507ocf; Thu, 7 Nov 2019 00:23:59 -0800 (PST) X-Google-Smtp-Source: APXvYqwrjbng2xab9Bau467GnimmjKJrRKIGLd84D6zbqsg+hH3Ib30lfjNfseVR+BDpLc8mWBrq X-Received: by 2002:a17:906:80c1:: with SMTP id a1mr1849504ejx.37.1573115039580; Thu, 07 Nov 2019 00:23:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573115039; cv=none; d=google.com; s=arc-20160816; b=c974mViXHb4gH6Is8ZVCBitTW7VfwEBnxpkHPuE2b4sHzsmikeHPMWNres6Z1gBZ5H 01iJqI/AKU6cDw4JUKqk/7eBuoR+S93oDbFRIFR3VstAfWy9ytLdVIsxTGmOdkkMyOyT hy2JeiJoluVEP7jY37OQmjnEd56FoStov9cEGz5hxiWD9Tn/zBkDr9maxLIxFuXmYNsH BigzNdANNweYZLt0keJBbre/jczC+7cjE7AgTp+GGhUwY5zBwq07Slpo4Ap4acPxIiji YHt9lLkMC3aXy5lE4Y66wSzqaurRI/8wx3z/Xe46AgpJ9WEd6KVkAx4hd9kFVykL8Q0Q CBag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=LXT3XkMAY2AMZUpLAZJqPqr+G8Nqbok43PNejrXCLXY=; b=ycyVRwQtBzIk7lIqw11tLzSSBP1tH2jlcU6dbkxOoUvLBjy13jJyVU9HlCunXPFvTy 3DRR3tRszMg/sWFyOq/6V0P8CpuKQfRiM+GVhOB3nH86Xd3+3vn9ue3/NpxXjtVHkvtY w1mJzVnQbGI7SKw9qeRVlflNavFQ/d8KS/feEMS3sVrmN/kCD6DZuTCIUML7EhEHLe+Z IqtdNDZopBhhzYMF/WLJCxFkCJcrLZMPwtmpvGVlkW9NiiIs2tb3RlfJm+kjl6p1L5Ls dbxs5ujV/1kRGZA0ASdgCXQMfZ/Fr0zptE8nh+vxTrwPrT8n+JFm6hCttldrpTnXhbIy oGUw== 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 g17si844212edh.379.2019.11.07.00.23.59; Thu, 07 Nov 2019 00:23:59 -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 S1727161AbfKGIX7 (ORCPT + 3 others); Thu, 7 Nov 2019 03:23:59 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:5741 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727027AbfKGIX6 (ORCPT ); Thu, 7 Nov 2019 03:23:58 -0500 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 5D7FB1B54EFADCFA7427; Thu, 7 Nov 2019 16:23:56 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.439.0; Thu, 7 Nov 2019 16:23:46 +0800 From: Xinwei Kong To: , , , , , , , CC: , , Subject: [PATCH V2] EFI/stub: tpm: enable tpm eventlog function for ARM64 platform Date: Thu, 7 Nov 2019 16:24:21 +0800 Message-ID: <1573115061-34791-1-git-send-email-kong.kongxinwei@hisilicon.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [10.69.192.56] 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. Tested-by: Zou Cao Signed-off-by: Xinwei Kong --- 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..817237c 100644 --- a/drivers/firmware/efi/libstub/arm-stub.c +++ b/drivers/firmware/efi/libstub/arm-stub.c @@ -189,6 +189,8 @@ unsigned long efi_entry(void *handle, efi_system_table_t *sys_table, goto fail_free_cmdline; } + efi_retrieve_tpm2_eventlog(sys_table); + /* Ask the firmware to clear memory on unclean shutdown */ efi_enable_reset_attack_mitigation(sys_table);