Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp488186ybx; Tue, 5 Nov 2019 00:31:50 -0800 (PST) X-Google-Smtp-Source: APXvYqxe8DYf1oyr8d3hwxFE+Y4pL5bJOCjzMSLcCQYdl5nS64FhRhDv/0jFu3YI4qh4PWT6zH65 X-Received: by 2002:a17:907:20b4:: with SMTP id pw20mr20347048ejb.83.1572942709930; Tue, 05 Nov 2019 00:31:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572942709; cv=none; d=google.com; s=arc-20160816; b=ty98bQqwbAszr+jvJINt4ZkD4DDhH8FZC/AhP5vWrGSYp6N2k7VEnvy19VDm8vGqSg Lx4i05NGyuPo7pvGHHzUpf5kc3w8iQjN5ouZ0c+6U21Njuae+OssXBCUbR2gA8MuENtm pIrpzP1yRY4XGaY1vRwsUgDameyhKs5eJNPFKN1WHcLap+R6FjwMb1oAC9TBm1QXBxDe gmdG7A6NnSmbbDabRvSxD2u4vohnQ+8LqTav8eh91L3R0pE+vDu0Nq4K5T3jfp/1XZYN PHqR2/1I0G6sETd69WxinoispHvJ8Cn3jbfnw0PgsEy5xQSQOgJqGZpx8MtnkuxRhBG4 H3vQ== 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=NwJ8tgF4ItWcRN4eYnCiX4OfPWF1MvsyNbZ9vv+dfXDJ8HgQ5NJRspjoc733cE4tqp HWXnEwqONnpwM4jEVLZBcmlXPp8r4ghac33ymUBRc9A43KI9cgH+GGdiaMB1G4PjV3L0 GWJlia+P+co7Ovgu6gLFRBwnLuRMJ+uZYRerHjFrV5XWobYRyvcQIwD9ZrUjjgK09D3M SpkUG2vF+SYF9HdNv4h6CWBT1aXDrdbDVfP6/c+gAZWBNO1SsIqPKAHQVi/xXRvwNScc 2rZMjVuuHCdX64/wwRRT68xe2HPX/40vrThcRIK2fahnIcceAtPbn2iASU+Waymue/Od VPpA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m20si10666957ejb.302.2019.11.05.00.31.26; Tue, 05 Nov 2019 00:31:49 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387789AbfKEI3n (ORCPT + 99 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 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.57.64.164] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(+) 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 -- 2.7.4