From patchwork Sat May 16 02:17:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Hung X-Patchwork-Id: 1291813 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 49P87l3Zklz9sTM; Sat, 16 May 2020 12:17:53 +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 1jZmOb-0001eO-C8; Sat, 16 May 2020 02:17:49 +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 1jZmOZ-0001eH-T3 for fwts-devel@lists.ubuntu.com; Sat, 16 May 2020 02:17:47 +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 1jZmOZ-0000lE-BG; Sat, 16 May 2020 02:17:47 +0000 From: Alex Hung To: fwts-devel@lists.ubuntu.com Subject: [PATCH 1/2] acpi/method: add tests for _SLI method Date: Fri, 15 May 2020 20:17:44 -0600 Message-Id: <20200516021745.1199863-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: Ivan Hu Acked-by: Colin Ian King --- src/acpi/method/method.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/acpi/method/method.c b/src/acpi/method/method.c index cfabcaa0..9463b2a8 100644 --- a/src/acpi/method/method.c +++ b/src/acpi/method/method.c @@ -1106,6 +1106,12 @@ static int method_test_PXM(fwts_framework *fw) "_PXM", NULL, 0, fwts_method_test_integer_return, NULL); } +static int method_test_SLI(fwts_framework *fw) +{ + return method_evaluate_method(fw, METHOD_OPTIONAL, + "_SLI", NULL, 0, fwts_method_test_buffer_return, NULL); +} + /* Section 6.2.17 _CCA */ static int method_test_CCA(fwts_framework *fw) { @@ -5571,7 +5577,7 @@ static fwts_framework_minor_test method_tests[] = { { method_test_PRS, "Test _PRS (Possible Resource Settings)." }, { method_test_PRT, "Test _PRT (PCI Routing Table)." }, { method_test_PXM, "Test _PXM (Proximity)." }, - /* { method_test_SLI, "Test _SLI (System Locality Information)." }, */ + { method_test_SLI, "Test _SLI (System Locality Information)." }, /* { method_test_SRS, "Test _SRS (Set Resource Settings)." }, */ { method_test_CCA, "Test _CCA (Cache Coherency Attribute)." },