From patchwork Fri Feb 19 23:39:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Al Stone X-Patchwork-Id: 62419 Delivered-To: patches@linaro.org Received: by 10.112.43.199 with SMTP id y7csp78466lbl; Fri, 19 Feb 2016 15:40:28 -0800 (PST) X-Received: by 10.202.87.208 with SMTP id l199mr13230540oib.97.1455925227864; Fri, 19 Feb 2016 15:40:27 -0800 (PST) Return-Path: Received: from mail-oi0-x235.google.com (mail-oi0-x235.google.com. [2607:f8b0:4003:c06::235]) by mx.google.com with ESMTPS id 3si8081264obs.34.2016.02.19.15.40.27 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Feb 2016 15:40:27 -0800 (PST) Received-SPF: pass (google.com: domain of al.stone@linaro.org designates 2607:f8b0:4003:c06::235 as permitted sender) client-ip=2607:f8b0:4003:c06::235; Authentication-Results: mx.google.com; spf=pass (google.com: domain of al.stone@linaro.org designates 2607:f8b0:4003:c06::235 as permitted sender) smtp.mailfrom=al.stone@linaro.org; dkim=pass header.i=@linaro.org Received: by mail-oi0-x235.google.com with SMTP id j125so22996716oih.0 for ; Fri, 19 Feb 2016 15:40:27 -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=tNeycWM1o5MQ4IRxkG9gEGuWYWjR47mD4RLHEn3WxCc=; b=UE0S0cAYG2YFnKsAKyOiQ0S0cUO1XA0o/PG0MhHa3mLRNsFXbVjgQbl7lrmMdj4QJU dUyrCc5sbbA0y9J80V203Zle6U7QeECW7IMrwGNWQSry2oJRqAUqPeHqGftEEZazLTcU r+bw8sdh3sr1mdU9dAeXT3Jjh9K7ETXDBavf4= 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=tNeycWM1o5MQ4IRxkG9gEGuWYWjR47mD4RLHEn3WxCc=; b=TnqnJuYy0BAgv+BZ5eDpv6q2hW2NCGyQJa/IKwf7ff4YVDswDAB5FfioYDS9/RQEae avvDrzfwvPxT8tIPODDJu1iD2ddwwd6t3DYoirhuDmAqKpxFtdTs40aivyhfcl7G5ZD7 TARPX/yP29+QRwU0lnIPTIaA4JHOvl0LNBzusbWFv4e/kiLk5rW+aMKp9GcsJGdahaxL 0Qq4/O+AzB12gM9OC4WvQ/Anb4aZN+WTvSaPtYDYFkLcnj30gy0J1Nxp/y4pZleeL9Gw E153wiOoUwCsfuX1tQGaDYiwUuza2dtYVsy60uNH6XhT6BsrpRL2psmeJNoTVSjd6Ge9 M5zA== X-Gm-Message-State: AG10YOSSeujWxnGflRhl+DyO9bmwp+k91+2CWrC+4piTiDNgSwVo5k7yfRAClaZkF4pMz8hDCok= X-Received: by 10.202.171.204 with SMTP id u195mr12460377oie.29.1455925227518; Fri, 19 Feb 2016 15:40:27 -0800 (PST) Return-Path: Received: from fidelio.ahs3.com (c-50-134-239-249.hsd1.co.comcast.net. [50.134.239.249]) by smtp.googlemail.com with ESMTPSA id kg7sm8655217obb.27.2016.02.19.15.40.25 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 19 Feb 2016 15:40:26 -0800 (PST) From: Al Stone To: fwts-devel@lists.ubuntu.com Cc: linaro-acpi@lists.linaro.org, patches@linaro.org, Al Stone Subject: [PATCH v2 03/23] FADT: disable SCI_EN and RESET_REG tests when in reduced hardware mode Date: Fri, 19 Feb 2016 16:39:39 -0700 Message-Id: <1455925199-8587-4-git-send-email-al.stone@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1455925199-8587-1-git-send-email-al.stone@linaro.org> References: <1455925199-8587-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 Acked-by: Colin Ian King Acked-by: Ivan Hu --- 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;