From patchwork Tue Jun 27 08:30:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ivanhu X-Patchwork-Id: 1800484 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=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=fwts-devel-bounces@lists.ubuntu.com; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=canonical.com header.i=@canonical.com header.a=rsa-sha256 header.s=20210705 header.b=tQSivrSd; dkim-atps=neutral Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (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 4QqybB1R6yz242G for ; Tue, 27 Jun 2023 18:30:46 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1qE45w-0001PK-9f; Tue, 27 Jun 2023 08:30:40 +0000 Received: from smtp-relay-canonical-1.internal ([10.131.114.174] helo=smtp-relay-canonical-1.canonical.com) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1qE45u-0001PC-RY for fwts-devel@lists.ubuntu.com; Tue, 27 Jun 2023 08:30:38 +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-1.canonical.com (Postfix) with ESMTPSA id 076413FFE9 for ; Tue, 27 Jun 2023 08:30:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1687854638; bh=RfTKkSqvAMqKhW4v+xD0GHUxOWjiCQEvpaAG0F4bjq4=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=tQSivrSdx/4BHGyJ2NIuqXl7IuV/3CoDcOOn7VZdtZfuiMD/UKC7Z5kGu+wTKAntb 67V6gqdPIoCEZu21zpHzwX1KGTWp8qmgeJZBhUXYMzvilDnowCAWHohY/6q1ihNMag /8xS5/jPAcImko85ZfFe4EJ/no8l4UPFb319d4JXK1sFFTE4CC4QLBHNDFkV43ERzm htJbsCjfN+MdQZ3aZmK1WK2JWc4nSV0xbG54Jl2hwMFDSfvCVS14VrJBJeURjW15vW tyAhGKWCWoX11itXIVbmEsqHjS8bspnvdDZ6h2bcI4IBFwCja4DK+/N+MYX262HmsF 79D2Y7t+900+w== From: Ivan Hu To: fwts-devel@lists.ubuntu.com Subject: [PATCH] lib: fwts_acpi_object_eval: sync up the AML exceptions from ACPICA Date: Tue, 27 Jun 2023 16:30:27 +0800 Message-Id: <20230627083027.169657-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" BugLink: https://bugs.launchpad.net/fwts/+bug/2025114 more AML exceptions come from ACPICA AE_AML_UNINITIALIZED_NODE, A namespace node is uninitialized or unresolved. AE_AML_TARGET_TYPE, A target operand of an incorrect type was encountered. AE_AML_PROTOCOL, Violation of a fixed ACPI protocol. AE_AML_BUFFER_LENGTH, The length of the buffer is invalid/incorrect. Signed-off-by: Ivan Hu --- src/lib/src/fwts_acpi_object_eval.c | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/src/lib/src/fwts_acpi_object_eval.c b/src/lib/src/fwts_acpi_object_eval.c index ffe40443..aaf885e1 100644 --- a/src/lib/src/fwts_acpi_object_eval.c +++ b/src/lib/src/fwts_acpi_object_eval.c @@ -265,9 +265,24 @@ static const acpi_eval_error errors[] = { "The length of an ACPI Resource Descriptor was incorrect." }, { AE_AML_ILLEGAL_ADDRESS, LOG_LEVEL_CRITICAL, "AEAMLIllegalAddr", "Illegal address", - "An memory, PCI configuration or I/O address was encountered with an illegal address." + "A memory, PCI configuration or I/O address was encountered with an illegal address." + }, + /* { AE_AML_INFINITE_LOOP, LOG_LEVEL_HIGH, "AEAMLInfiniteLoop", "Infinite loop", NULL }, + { AE_AML_INFINITE_LOOP, LOG_LEVEL_HIGH, "AEAMLInfiniteLoop", "Infinite loop", + "An AML While loop exceeded the maximum execution time." + }, */ + { AE_AML_UNINITIALIZED_NODE, LOG_LEVEL_HIGH, "AEAMLUninitNode", "Uninitialized node", + "A namespace node is uninitialized or unresolved." + }, + { AE_AML_TARGET_TYPE, LOG_LEVEL_HIGH, "AEAMLTargetType", "Target type", + "A target operand of an incorrect type was encountered." + }, + { AE_AML_PROTOCOL, LOG_LEVEL_HIGH, "AEAMLViolateProtocol", "Violattion protcol", + "Violation of a fixed ACPI protocol." + }, + { AE_AML_BUFFER_LENGTH, LOG_LEVEL_HIGH, "AEAMLBadBufLength", "Bad buffer length", + "The length of the buffer is invalid/incorrect." }, - /* { AE_AML_INFINITE_LOOP, LOG_LEVEL_HIGH, "AEAMLInfiniteLoop", "Infinite loop", NULL }, */ { 0, 0, NULL, NULL , NULL} };