From patchwork Tue Jan 26 20:32:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Hung X-Patchwork-Id: 1431917 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=) 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 4DQJM96Nz8z9sVX for ; Wed, 27 Jan 2021 07:32:37 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1l4V0q-00078T-3q; Tue, 26 Jan 2021 20:32:32 +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 1l4V0o-00077w-HE for fwts-devel@lists.ubuntu.com; Tue, 26 Jan 2021 20:32:30 +0000 Received: from 1.general.alexhung.us.vpn ([10.172.65.254] 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 1l4V0n-0005VV-VS; Tue, 26 Jan 2021 20:32:30 +0000 From: Alex Hung To: fwts-devel@lists.ubuntu.com Subject: [PATCH 15/16] acpi: method: update _DDC argument size (mantis 2137) Date: Tue, 26 Jan 2021 13:32:26 -0700 Message-Id: <20210126203227.6291-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 --- src/acpi/method/method.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/acpi/method/method.c b/src/acpi/method/method.c index 8ef5da5e..78c9de54 100644 --- a/src/acpi/method/method.c +++ b/src/acpi/method/method.c @@ -4562,16 +4562,17 @@ static void method_test_DDC_return( static int method_test_DDC(fwts_framework *fw) { + int values[] = { 128, 256, 384, 512 }; ACPI_OBJECT arg[1]; uint32_t i; - for (i = 128; i <= 256; i <<= 1) { + for (i = 0; i < FWTS_ARRAY_SIZE(values); i++) { arg[0].Type = ACPI_TYPE_INTEGER; - arg[0].Integer.Value = 128; + arg[0].Integer.Value = values[i]; if (method_evaluate_method(fw, METHOD_OPTIONAL, "_DDC", arg, 1, method_test_DDC_return, - &i) == FWTS_NOT_EXIST) + (void *) &values[i]) == FWTS_NOT_EXIST) break; } return FWTS_OK;