From patchwork Wed Sep 11 02:09:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Hu X-Patchwork-Id: 1983603 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 4X3PD8493tz1y1C for ; Wed, 11 Sep 2024 12:10:16 +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 1soCo5-0007nd-Sh; Wed, 11 Sep 2024 02:10:09 +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 1soCo4-0007n1-Nv for fwts-devel@lists.ubuntu.com; Wed, 11 Sep 2024 02:10:08 +0000 Received: from canonical.com (unknown [106.104.136.95]) (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 825C942A4E for ; Wed, 11 Sep 2024 02:10:07 +0000 (UTC) From: Ivan Hu To: fwts-devel@lists.ubuntu.com Subject: [PATCH] klog.json: Add more error messages for battery to klog database Date: Wed, 11 Sep 2024 10:09:33 +0800 Message-Id: <20240911020935.43413-5-ivan.hu@canonical.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240911020935.43413-1-ivan.hu@canonical.com> References: <20240911020935.43413-1-ivan.hu@canonical.com> 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 battery driver. Signed-off-by: Ivan Hu --- data/klog.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/data/klog.json b/data/klog.json index 039ded40..26411978 100644 --- a/data/klog.json +++ b/data/klog.json @@ -64,6 +64,20 @@ "advice": "The ACPI battery driver has detected that the Battery Information Extended (_BIX) object seems to be broken and has fallen back to using the less modern Battery Information (_BIF) object instead to get battery specific data.", "label": "KlogAcpiBixBroken", }, + { + "compare_mode": "string", + "log_level": "LOG_LEVEL_HIGH", + "pattern": "extension failed to load:", + "advice": "The ACPI battery driver has to notify the hook that a battery is available for each battery, but the registration of the extension has failed.", + "label": "KlogAcpiRegistrationFail", + }, + { + "compare_mode": "string", + "log_level": "LOG_LEVEL_HIGH", + "pattern": "error in extension, unloading:", + "advice": "The ACPI battery driver adds a new battery to the list and calls add_battery for each hook that was registered, but gets the notification of the extensions has failed.", + "label": "KlogAcpiRegistrationFail", + }, { "compare_mode": "regex", "log_level": "LOG_LEVEL_LOW",