From patchwork Fri May 15 20:56:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Hung X-Patchwork-Id: 1291634 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) 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: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49P1152SbVz9sTH; Sat, 16 May 2020 06:56:40 +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 1jZhNl-0002BR-Iu; Fri, 15 May 2020 20:56:37 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1jZhNg-0002Az-4A for fwts-devel@lists.ubuntu.com; Fri, 15 May 2020 20:56:32 +0000 Received: from 2.general.alexhung.us.vpn ([10.172.65.255] helo=canonical.com) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1jZhNf-0006EB-HD; Fri, 15 May 2020 20:56:31 +0000 From: Alex Hung To: fwts-devel@lists.ubuntu.com Subject: [PATCH 1/2] acpi/method: add tests for _MAT method Date: Fri, 15 May 2020 14:56:27 -0600 Message-Id: <20200515205628.1039962-1-alex.hung@canonical.com> X-Mailer: git-send-email 2.25.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" Signed-off-by: Alex Hung Acked-by: Colin Ian King Acked-by: Ivan Hu --- src/acpi/method/method.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/acpi/method/method.c b/src/acpi/method/method.c index 0bf376fd..b7e9177c 100644 --- a/src/acpi/method/method.c +++ b/src/acpi/method/method.c @@ -132,7 +132,7 @@ * _LSI Y * _LSR N * _LSW N - * _MAT N + * _MAT Y * _MBM Y * _MLS Y * _MSG Y @@ -874,6 +874,12 @@ static int method_test_CRS(fwts_framework *fw) "_CRS", NULL, 0, method_test_CRS_return, "_CRS"); } +static int method_test_MAT(fwts_framework *fw) +{ + return method_evaluate_method(fw, METHOD_OPTIONAL, + "_MAT", NULL, 0, fwts_method_test_buffer_return, NULL); +} + static int method_test_PRS(fwts_framework *fw) { /* Re-use the _CRS checking on the returned buffer */ @@ -5627,7 +5633,7 @@ static fwts_framework_minor_test method_tests[] = { { method_test_GSB, "Test _GSB (Global System Interrupt Base)." }, { method_test_HPP, "Test _HPP (Hot Plug Parameters)." }, /* { method_test_HPX, "Test _HPX (Hot Plug Extensions)." }, */ - /* { method_test_MAT, "Test _MAT (Multiple APIC Table Entry)." }, */ + { method_test_MAT, "Test _MAT (Multiple APIC Table Entry)." }, { method_test_PRS, "Test _PRS (Possible Resource Settings)." }, { method_test_PRT, "Test _PRT (PCI Routing Table)." }, { method_test_PXM, "Test _PXM (Proximity)." },