From patchwork Tue Oct 24 05:33:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ivanhu X-Patchwork-Id: 1854137 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=fwts-devel-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4SF12G4qGwz23jn for ; Tue, 24 Oct 2023 16:33:58 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from ) id 1qvA2w-0006xO-D9; Tue, 24 Oct 2023 05:33:43 +0000 Received: from smtp-relay-canonical-0.internal ([10.131.114.83] helo=smtp-relay-canonical-0.canonical.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1qvA2g-0006vw-5Z for fwts-devel@lists.ubuntu.com; Tue, 24 Oct 2023 05:33:26 +0000 Received: from canonical.com (118-163-61-247.hinet-ip.hinet.net [118.163.61.247]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-0.canonical.com (Postfix) with ESMTPSA id 46DB53F185 for ; Tue, 24 Oct 2023 05:33:24 +0000 (UTC) From: Ivan Hu To: fwts-devel@lists.ubuntu.com Subject: [PATCH] klog.json: Add some missing efi64 kernel messages to klog database Date: Tue, 24 Oct 2023 13:33:21 +0800 Message-Id: <20231024053321.5777-1-ivan.hu@canonical.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-BeenThere: fwts-devel@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Firmware Test Suite Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: fwts-devel-bounces@lists.ubuntu.com Sender: "fwts-devel" These messages are specific to the efi64 driver. Signed-off-by: Ivan Hu --- data/klog.json | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/data/klog.json b/data/klog.json index e42b3f34..293997ca 100644 --- a/data/klog.json +++ b/data/klog.json @@ -85,6 +85,20 @@ "advice": "The EFI driver failed to map physical addresses to virtual addresses on a range of EFI related pages.", "label": "KlogEfiPhysVirtMappingFailed", }, + { + "compare_mode": "string", + "log_level": "LOG_LEVEL_HIGH", + "pattern": "Error while updating 1:1 mapping PA", + "advice": "The EFI driver failed to update the 1:1 mapping, physical addresses to virtual addresses on a range of EFI related pages.", + "label": "KlogEfiPhysVirtMappingUpdateFailed", + }, + { + "compare_mode": "string", + "log_level": "LOG_LEVEL_HIGH", + "pattern": "Error while updating VA mapping PA", + "advice": "The EFI driver failed to upate the virtual addresses mapping on a range of EFI related pages.", + "label": "KlogEfiVirtMappingUpdateFailed", + }, { "compare_mode": "string", "log_level": "LOG_LEVEL_HIGH", @@ -92,6 +106,13 @@ "advice": "The kernel text region failed to be mapped 1 to 1 (physical to virtual).", "label": "KlogEfiKernelTextOneToOneMapFailed", }, + { + "compare_mode": "string", + "log_level": "LOG_LEVEL_HIGH", + "pattern": "Failed to map kernel rodata 1:1", + "advice": "The kernel rodata region failed to be mapped 1 to 1 (physical to virtual).", + "label": "KlogEfiKernelRODataOneToOneMapFailed", + }, { "compare_mode": "string", "log_level": "LOG_LEVEL_CRITICAL", @@ -106,6 +127,13 @@ "advice": "The firmware still believes it is the exclusive owner of the first physical page of the EFI mapping even though the firmware has marked it as EFI_CONVENTIONAL_MEMORY. To avoid a triple fault if the firmware attempts to write-access the page, a 1:1 mapping is used, however, this failed to be created.", "label": "KlogEfiOneToOneMappingFailed", }, + { + "compare_mode": "string", + "log_level": "LOG_LEVEL_HIGH", + "pattern": "Failed to create 1:1 mapping for the GHCBs", + "advice": "When SEV-ES is active, the GHCB as set by the kernel will be used by firmware. Create a 1:1 unencrypted mapping for each GHCB, however, this failed to be created.", + "label": "KlogEfiOneToOneMappingFailed", + }, { "compare_mode": "string", "log_level": "LOG_LEVEL_HIGH",