From patchwork Thu Sep 28 09:36:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Hu X-Patchwork-Id: 1840672 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 4Rx7fS71bWz1ynm for ; Thu, 28 Sep 2023 19:36:48 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from ) id 1qlnRm-0003nJ-BJ; Thu, 28 Sep 2023 09:36:38 +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 1qlnRf-0003lp-Dx for fwts-devel@lists.ubuntu.com; Thu, 28 Sep 2023 09:36:31 +0000 Received: from canonical.com (unknown [10.101.194.164]) (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 1C7063F213 for ; Thu, 28 Sep 2023 09:36:29 +0000 (UTC) From: Ivan Hu To: fwts-devel@lists.ubuntu.com Subject: [PATCH] klog.json: Add some missing erst kernel messages to klog database Date: Thu, 28 Sep 2023 17:36:26 +0800 Message-Id: <20230928093626.169365-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 ACPI erst driver. Signed-off-by: Ivan Hu --- data/klog.json | 81 ++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 79 insertions(+), 2 deletions(-) diff --git a/data/klog.json b/data/klog.json index efef3407..26d052a4 100644 --- a/data/klog.json +++ b/data/klog.json @@ -390,8 +390,85 @@ "compare_mode": "string", "log_level": "LOG_LEVEL_HIGH", "pattern": "Firmware does not respond in time", - "advice": "The ACPI Error Injection (EINJ) driver attempted to inject an error however the firmware took longer than expected to respond and a time-out occurred.", - "label": "KlogAcpiEinjFirmwareTimeout", + "advice": "The ACPI Error Injection (EINJ) or Error Record Serialization (ERST) driver attempted to inject an error however the firmware took longer than expected to respond and a time-out occurred.", + "label": "KlogAcpiEinjErstFirmwareTimeout", + }, + { + "compare_mode": "string", + "log_level": "LOG_LEVEL_MEDIUM", + "pattern": "Too long stall time for stall instruction", + "advice": "The ACPI Error Record Serialization (ERST) driver attempted to execute stall instruction and got the stall time too long.", + "label": "KlogAcpiErstStallTime", + }, + { + "compare_mode": "string", + "log_level": "LOG_LEVEL_MEDIUM", + "pattern": "Too long stall time for stall while true instruction", + "advice": "The ACPI Error Record Serialization (ERST) driver attempted to execute stall while true instruction and got the stall time too long.", + "label": "KlogAcpiErstStallTime", + }, + { + "compare_mode": "string", + "log_level": "LOG_LEVEL_MEDIUM", + "pattern": "MOVE_DATA can not be used in interrupt context", + "advice": "The ACPI Error Record Serialization (ERST) driver attempted to execute move data can not be used in interrupt context, ioremap does not work in interrupt context.", + "label": "KlogAcpiErstInterupContext", + }, + { + "compare_mode": "string", + "log_level": "LOG_LEVEL_MEDIUM", + "pattern": "too many record IDs", + "advice": "The ACPI Error Record Serialization (ERST) driver attempted to add one record id cache but found too many record IDs.", + "label": "KlogAcpiErstRecordID", + }, + { + "compare_mode": "string", + "log_level": "LOG_LEVEL_MEDIUM", + "pattern": "too many record IDs", + "advice": "The ACPI Error Record Serialization (ERST) driver attempted to add one record id cache but found too many record IDs.", + "label": "KlogAcpiErstRecordID", + }, + { + "compare_mode": "string", + "log_level": "LOG_LEVEL_MEDIUM", + "pattern": "NVRAM ERST Log Address Range not implemented yet", + "advice": "The ACPI Error Record Serialization (ERST) driver found NVRAM ERST Log Address Range not implemented yet.", + "label": "KlogAcpiErstNvramLogAddrRange", + }, + { + "compare_mode": "string", + "log_level": "LOG_LEVEL_HIGH", + "pattern": "Failed to get table", + "advice": "The ACPI Error Record Serialization (ERST) driver found the table, but it cannot get the table for some format exceptions.", + "label": "KlogAcpiErstGetTableFail", + }, + { + "compare_mode": "string", + "log_level": "LOG_LEVEL_HIGH", + "pattern": "ERST table is invalid", + "advice": "The ACPI Error Record Serialization (ERST) driver checked the ERST table and got the table invalid.", + "label": "KlogAcpiErstInvalid", + }, + { + "compare_mode": "string", + "log_level": "LOG_LEVEL_HIGH", + "pattern": "Failed to get Error Log Address Range", + "advice": "The ACPI Error Record Serialization (ERST) driver fail to get Error Log Address Range.", + "label": "KlogAcpiErstErrLogAddrRangeFail", + }, + { + "compare_mode": "regex", + "log_level": "LOG_LEVEL_HIGH", + "pattern": "Can not request .* for ERST", + "advice": "The ACPI Error Record Serialization (ERST) driver attempted to request a memory region for the ERST table but the request failed, perhaps the mapping was incorrect.", + "label": "KlogAcpiErstFailedMemRegion", + }, + { + "compare_mode": "regex", + "log_level": "LOG_LEVEL_HIGH", + "pattern": "Failed to allocate .* bytes for persistent store error log.", + "advice": "The ACPI Error Record Serialization (ERST) driver attempted to allocate some bytes for the ERST persistent store error log but failed.", + "label": "KlogAcpiErstFailedMemAllocate", }, { "compare_mode": "regex",