From patchwork Fri Nov 22 00:41:55 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Al Stone X-Patchwork-Id: 21674 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f70.google.com (mail-oa0-f70.google.com [209.85.219.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 37BCF20E7C for ; Fri, 22 Nov 2013 00:42:17 +0000 (UTC) Received: by mail-oa0-f70.google.com with SMTP id m1sf1901660oag.1 for ; Thu, 21 Nov 2013 16:42:16 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=Ung9gBILwp3xji5eyxOyDo3FomhaQUIHku9KLjacRHY=; b=K7yHdagcfxn7cUll+ABFEeINKaUD2Dd+sDAcpVJfrlFTExRaQTd+A/KDSR0/f5IGAw qhXcBk+hd2dbEBqwud+fyr5WYnjdE2dhnx1CQbhz1xrWdhFc8HIzzZrl94rZjBgbL+K7 NDpYDship9G/nXPsikRqnQI7/ZdDLtb7kM7gAcXPKgSfSSWw0cQSSr3e2jIoHvgJmGUy QnIiBjQ5YeV7LniSiT/9loo+6WCjbaoBH+LcKTYO2yUvi1aw8gYj0hgTCkoaGiABoysE aE4qoONkcT6ivfHD3C+L0kgoY1FIuPJaYgOog10ahQB9LQoIJOaW3j2o6Srg0bHN+/Bu tmag== X-Gm-Message-State: ALoCoQmc86zehqfds+/5gKLuvuMWw7LGuNqsNKCQB0mApRHLUnkB3+aneqZyY/fmCRQYcEqg8UhF X-Received: by 10.42.84.212 with SMTP id n20mr2984045icl.0.1385080936810; Thu, 21 Nov 2013 16:42:16 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.12.46 with SMTP id v14ls816558qeb.31.gmail; Thu, 21 Nov 2013 16:42:16 -0800 (PST) X-Received: by 10.220.183.199 with SMTP id ch7mr79580vcb.27.1385080936703; Thu, 21 Nov 2013 16:42:16 -0800 (PST) Received: from mail-vc0-f175.google.com (mail-vc0-f175.google.com [209.85.220.175]) by mx.google.com with ESMTPS id ti3si5386844vdc.119.2013.11.21.16.42.16 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 21 Nov 2013 16:42:16 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.175 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.175; Received: by mail-vc0-f175.google.com with SMTP id ld13so373692vcb.34 for ; Thu, 21 Nov 2013 16:42:16 -0800 (PST) X-Received: by 10.52.32.66 with SMTP id g2mr7329739vdi.14.1385080936612; Thu, 21 Nov 2013 16:42:16 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp2870vcz; Thu, 21 Nov 2013 16:42:16 -0800 (PST) X-Received: by 10.66.227.39 with SMTP id rx7mr9562299pac.44.1385080935478; Thu, 21 Nov 2013 16:42:15 -0800 (PST) Received: from mail-pa0-f44.google.com (mail-pa0-f44.google.com [209.85.220.44]) by mx.google.com with ESMTPS id ws5si18256049pab.35.2013.11.21.16.42.15 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 21 Nov 2013 16:42:15 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.44 is neither permitted nor denied by best guess record for domain of al.stone@linaro.org) client-ip=209.85.220.44; Received: by mail-pa0-f44.google.com with SMTP id fa1so540598pad.17 for ; Thu, 21 Nov 2013 16:42:15 -0800 (PST) X-Received: by 10.66.242.17 with SMTP id wm17mr9459548pac.102.1385080935082; Thu, 21 Nov 2013 16:42:15 -0800 (PST) Received: from fidelio.ahs3.com (74-93-232-46-Colorado.hfc.comcastbusiness.net. [74.93.232.46]) by mx.google.com with ESMTPSA id pl1sm48881461pbb.20.2013.11.21.16.42.13 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Nov 2013 16:42:14 -0800 (PST) From: al.stone@linaro.org To: linux-acpi@vger.kernel.org Cc: linaro-acpi@lists.linaro.org, patches@linaro.org, linaro-kernel@lists.linaro.org, Al Stone , Al Stone Subject: [PATCH v2 6/6] ACPI: in HW reduced mode, using FADT PM information is not allowed. Date: Thu, 21 Nov 2013 17:41:55 -0700 Message-Id: <1385080915-23430-7-git-send-email-al.stone@linaro.org> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1385080915-23430-1-git-send-email-al.stone@linaro.org> References: <1385080915-23430-1-git-send-email-al.stone@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: al.stone@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.175 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Al Stone Per the ACPI 5.0 specification, section 5.2.9, none of the power management fields in the FADT are to be used. Short-circuit using any of those fields in acpi_processor_get_power_info_fadt(). Signed-off-by: Al Stone --- drivers/acpi/processor_idle.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c index b18e7ab..52859da 100644 --- a/drivers/acpi/processor_idle.c +++ b/drivers/acpi/processor_idle.c @@ -272,6 +272,14 @@ static int acpi_processor_get_power_info_fadt(struct acpi_processor *pr) if (!pr->pblk) return -ENODEV; + /* + * Using power management information from the FADT is not + * allowed when in HW reduced mode. See ACPI 5.0, section + * 5.2.9. + */ + if (acpi_gbl_reduced_hardware) + return -ENODEV; + /* if info is obtained from pblk/fadt, type equals state */ pr->power.states[ACPI_STATE_C2].type = ACPI_STATE_C2; pr->power.states[ACPI_STATE_C3].type = ACPI_STATE_C3;