From patchwork Tue Feb 9 01:32:45 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Al Stone X-Patchwork-Id: 61456 Delivered-To: patches@linaro.org Received: by 10.112.43.199 with SMTP id y7csp1766593lbl; Mon, 8 Feb 2016 17:33:28 -0800 (PST) X-Received: by 10.202.85.208 with SMTP id j199mr1541425oib.11.1454981606588; Mon, 08 Feb 2016 17:33:26 -0800 (PST) Return-Path: Received: from mail-ob0-x229.google.com (mail-ob0-x229.google.com. [2607:f8b0:4003:c01::229]) by mx.google.com with ESMTPS id jp4si13840276oeb.93.2016.02.08.17.33.26 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Feb 2016 17:33:26 -0800 (PST) Received-SPF: pass (google.com: domain of al.stone@linaro.org designates 2607:f8b0:4003:c01::229 as permitted sender) client-ip=2607:f8b0:4003:c01::229; Authentication-Results: mx.google.com; spf=pass (google.com: domain of al.stone@linaro.org designates 2607:f8b0:4003:c01::229 as permitted sender) smtp.mailfrom=al.stone@linaro.org; dkim=pass header.i=@linaro.org Received: by mail-ob0-x229.google.com with SMTP id ba1so173670411obb.3 for ; Mon, 08 Feb 2016 17:33:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=PqsqvNifeWB/QcHQ9/8yfMCiwCXtb3AHwcjF++aCHnU=; b=EQK/FSHjSCLTJVtEIqucu0x6UTGLHlpIOi0/RhsQNq4qM67Vrq+YpxJ21vq46BRVb2 Bb3Ni3ptd7Olu4pWQvQ48LwUYVoqHWpKQr4XMyhJkTXk+bh4Gyq4zNIODIyQRUmBzgO6 je2X3cpe7tFHXQBAIaz3xjbmzBMsSWB4h6QYo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=PqsqvNifeWB/QcHQ9/8yfMCiwCXtb3AHwcjF++aCHnU=; b=hDHUnCA4ofTKBlHaPk3H48WHJDZe7FYAH1h7WMju9lcQrkdHudL2IIzNkPRl8vHBiy 5wlN59RRseVKEgYH63XAPxSn0EzdQoJEaOufyE9B1kZiM521B3+MJWqj5xyVEnpMtdUm VPA/wV4D5A3mblvdWe2c5q6xkFriRlbxaxB2kWO+1CUILwVAUymkDGMh2Qa6Rc0Gv8V9 LF9/yeVrF6LPc51CidejCcJc+shj4PZFDMNQLb855V3zpx+kGTPn3y+D2WNNrv7c44UI 2P5w9VwAkN/4PmrBgEeNeNJrDle9cy62bQSEzOCP3hGjeBISDioikfn+alTjX7rwirJI GDNw== X-Gm-Message-State: AG10YOTAiqzfgOudv0trnb2vnV16sfw2Uaxmvt4jTdWMzaHLUvv+NmVYs/CRdU0BtK5IZGp0mzA= X-Received: by 10.60.178.180 with SMTP id cz20mr27472252oec.15.1454981606307; Mon, 08 Feb 2016 17:33:26 -0800 (PST) Return-Path: Received: from fidelio.ahs3 (c-50-134-239-249.hsd1.co.comcast.net. [50.134.239.249]) by smtp.googlemail.com with ESMTPSA id qp4sm19097135obc.9.2016.02.08.17.33.24 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 08 Feb 2016 17:33:24 -0800 (PST) From: Al Stone To: fwts-devel@lists.ubuntu.com Cc: linaro-acpi@lists.linaro.org, patches@linaro.org, Al Stone Subject: [PATCH 03/21] FADT: disable SCI_EN and RESET_REG tests when in reduced hardware mode Date: Mon, 8 Feb 2016 18:32:45 -0700 Message-Id: <1454981583-31872-4-git-send-email-al.stone@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1454981583-31872-1-git-send-email-al.stone@linaro.org> References: <1454981583-31872-1-git-send-email-al.stone@linaro.org> Whatever values these fields have in them, they are to be ignored when ACPI is in reduced hardware mode. So, check for that mode and skip the tests if we are in reduced hardware. Signed-off-by: Al Stone --- src/acpi/fadt/fadt.c | 10 ++++++++++ 1 file changed, 10 insertions(+) -- 2.5.0 diff --git a/src/acpi/fadt/fadt.c b/src/acpi/fadt/fadt.c index aacf317..cbe8f05 100644 --- a/src/acpi/fadt/fadt.c +++ b/src/acpi/fadt/fadt.c @@ -412,6 +412,11 @@ static int fadt_test2(fwts_framework *fw) fadt->preferred_pm_profile, FWTS_ACPI_FADT_PREFERRED_PM_PROFILE(fadt->preferred_pm_profile)); + if (fwts_acpi_is_reduced_hardware(fadt)) { + fwts_skipped(fw, "In reduced hardware mode, skipping test."); + return FWTS_OK; + } + port = fadt->pm1a_cnt_blk; width = fadt->pm1_cnt_len * 8; /* In bits */ @@ -487,6 +492,11 @@ static int fadt_test2(fwts_framework *fw) static int fadt_test3(fwts_framework *fw) { + if (fwts_acpi_is_reduced_hardware(fadt)) { + fwts_skipped(fw, "In reduced hardware mode, skipping test."); + return FWTS_OK; + } + if ((fadt->header.revision == 1) || (fadt->header.length < 244)) { fwts_skipped(fw, "Header size indicates an ACPI 1.0 FADT, skipping test."); return FWTS_SKIP;