From patchwork Mon Dec 3 16:00:23 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Ian King X-Patchwork-Id: 203388 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from chlorine.canonical.com (chlorine.canonical.com [91.189.94.204]) by ozlabs.org (Postfix) with ESMTP id 74F652C0080 for ; Tue, 4 Dec 2012 03:00:27 +1100 (EST) Received: from localhost ([127.0.0.1] helo=chlorine.canonical.com) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1TfYRV-0003ec-OI; Mon, 03 Dec 2012 16:00:25 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1TfYRU-0003eW-I9 for fwts-devel@lists.ubuntu.com; Mon, 03 Dec 2012 16:00:24 +0000 Received: from cpc3-craw6-2-0-cust180.croy.cable.virginmedia.com ([77.100.248.181] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1TfYRU-00035N-FW for fwts-devel@lists.ubuntu.com; Mon, 03 Dec 2012 16:00:24 +0000 From: Colin King To: fwts-devel@lists.ubuntu.com Subject: [PATCH] data/klog.json: Scan for all the ACPI_ERROR_METHOD kernel errors Date: Mon, 3 Dec 2012 16:00:23 +0000 Message-Id: <1354550423-13524-1-git-send-email-colin.king@canonical.com> X-Mailer: git-send-email 1.8.0 X-BeenThere: fwts-devel@lists.ubuntu.com X-Mailman-Version: 2.1.13 Precedence: list List-Id: Firmware Test Suite Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: fwts-devel-bounces@lists.ubuntu.com Errors-To: fwts-devel-bounces@lists.ubuntu.com From: Colin Ian King Scan the kernel log for all the ACPI_ERROR_METHOD kernel errors. We relax some old existing rules to make this easier for newer kernels add add in some new messages too. Also update some of the advice to make it a little more meaningful. Signed-off-by: Colin Ian King Acked-by: Keng-Yu Lin Acked-by: Alex Hung --- data/klog.json | 30 +++++++++++++++++++++++------- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/data/klog.json b/data/klog.json index ed6d559..9084fac 100644 --- a/data/klog.json +++ b/data/klog.json @@ -2625,11 +2625,19 @@ "compare_mode": "regex", "log_level": "LOG_LEVEL_HIGH", "tag": "FWTS_TAG_ACPI_PARSE_EXEC_FAIL", - "pattern": "ACPI Error.*Method parse\/execution failed.*AE_AML_NO_RETURN_VALUE", + "pattern": "Method parse\/execution failed.*AE_AML_NO_RETURN_VALUE", "advice": "The ACPI Method was expected to return a value and did not.", "label": "KlogAcpiMethodNoReturnValue" }, { + "compare_mode": "string", + "log_level": "LOG_LEVEL_HIGH", + "tag": "FWTS_TAG_ACPI_PARSE_EXEC_FAIL", + "pattern": "Method parse/execution failed", + "advice": "The ACPI driver encounter a parsing error on some ACPI AML code. This is unexepcted and normally indicates that there is a bug in the compiled AML code. It could be a programming fault or an AML compiler issue. See acpi_ps_parse_aml().", + "label": "KlogAcpiParseExecAmlFailed" + }, + { "compare_mode": "regex", "log_level": "LOG_LEVEL_HIGH", "tag": "FWTS_TAG_ACPI_PARSE_EXEC_FAIL", @@ -3286,11 +3294,19 @@ "label": "KlogAcpiExecFailure" }, { - "compare_mode": "regex", + "compare_mode": "string", "log_level": "LOG_LEVEL_HIGH", "tag": "FWTS_TAG_ACPI_PARSE_EXEC_FAIL", - "pattern": "\\*\\*\\* Error.*Method execution failed", - "advice": "Execution of an ACPI AML method failed.", + "pattern": "No object was returned from", + "advice": "The ACPI interpreter was requested to evaluate an ACPI namespace object and was expecting an ACPI object to be returned, but nothing was returned. This appears to be an ACPI AML bug.", + "label": "KlogAcpiEvalObjNoObjReturned" + }, + { + "compare_mode": "string", + "log_level": "LOG_LEVEL_HIGH", + "tag": "FWTS_TAG_ACPI_PARSE_EXEC_FAIL", + "pattern": "Method execution failed", + "advice": "Execution of an ACPI AML method failed. This is normally a bug in the ACPI AML code", "label": "KlogAcpiExecFailure" }, { @@ -3310,11 +3326,11 @@ "label": "KlogAcpiRecursionTooDeep" }, { - "compare_mode": "regex", + "compare_mode": "string", "log_level": "LOG_LEVEL_HIGH", "tag": "FWTS_TAG_ACPI_METHOD_RETURN", - "pattern": "\\*\\*\\* Error.*Return object type is incorrect", - "advice": "Return object type is not the correct type, this is an AML error in the DSDT or SSDT", + "pattern": "Return object type is incorrect", + "advice": "Return object type is not the correct type, this is an AML error in the DSDT or SSDT. See also acpi_ut_evaluate_object().", "label": "KlogAcpiReturnObjectTypeIncorrect" } ],