From patchwork Fri Nov 8 03:43:07 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Hung X-Patchwork-Id: 289685 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) by ozlabs.org (Postfix) with ESMTP id 65BC72C0098 for ; Fri, 8 Nov 2013 14:43:22 +1100 (EST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.76) (envelope-from ) id 1Vecye-0003MN-9n; Fri, 08 Nov 2013 03:43:20 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtp (Exim 4.76) (envelope-from ) id 1VecyZ-0003MG-4E for fwts-devel@lists.ubuntu.com; Fri, 08 Nov 2013 03:43:15 +0000 Received: from [175.41.48.77] (helo=canonical.com) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1VecyY-0002oo-GD; Fri, 08 Nov 2013 03:43:15 +0000 From: Alex Hung To: fwts-devel@lists.ubuntu.com Subject: [PATCH 1/3] acpi: method: add _CBA control method test (LP: #1249171) Date: Fri, 8 Nov 2013 11:43:07 +0800 Message-Id: <1383882189-20997-1-git-send-email-alex.hung@canonical.com> X-Mailer: git-send-email 1.8.1.2 X-BeenThere: fwts-devel@lists.ubuntu.com X-Mailman-Version: 2.1.14 Precedence: list List-Id: Firmware Test Suite Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: fwts-devel-bounces@lists.ubuntu.com Sender: fwts-devel-bounces@lists.ubuntu.com _CBA is defined in PCI firmware specification as below: An ACPI method that is used to report the Enhanced Configuration Access base address for any PCI Segment Groups and/or base address ranges within a PCI Segment group. This allows run-time update for the hot added PCI components. _CBA Control Method Arguments: None Result Code: Memory mapped configuration base address for the PCI-compatible host bridge returned as an integer Signed-off-by: Alex Hung Acked-by: Colin Ian King Acked-by: Keng-Yu Lin --- src/acpi/method/method.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/acpi/method/method.c b/src/acpi/method/method.c index 9893955..5c82560 100644 --- a/src/acpi/method/method.c +++ b/src/acpi/method/method.c @@ -62,7 +62,7 @@ * _BST 10.2.2.6 Y * _BTM 10.2.2.8 Y * _BTP 10.2.2.7 Y - * _CBA see PCI spec N + * _CBA PCI f/w spec Y * _CDM 6.2.1 N * _CID 6.1.2 N * _CLS 6.1.3 N requires PCI SIG class info @@ -4778,6 +4778,11 @@ static int method_test_DSS(fwts_framework *fw) "_DSS", arg, 1, method_test_NULL_return, NULL); } +static int method_test_CBA(fwts_framework *fw) +{ + return method_evaluate_method(fw, METHOD_OPTIONAL, + "_CBA", NULL, 0, method_test_integer_return, NULL); +} /* * Tests @@ -5078,7 +5083,7 @@ static fwts_framework_minor_test method_tests[] = { { method_test_VPO, "Check _VPO (Video POST Options)." }, /* From PCI Specification */ - /* { method_test_CBA, "Check _CBA (Configuration Base Address)." }, */ + { method_test_CBA, "Check _CBA (Configuration Base Address)." }, /* End! */