From patchwork Fri Jan 10 22:52:18 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: al.stone@linaro.org X-Patchwork-Id: 3468511 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id EFA099F169 for ; Fri, 10 Jan 2014 22:53:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3AB3F2014A for ; Fri, 10 Jan 2014 22:53:59 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4FEA72013D for ; Fri, 10 Jan 2014 22:53:58 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1W1kx4-0003yf-S7; Fri, 10 Jan 2014 22:53:19 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1W1kwx-0005nC-1H; Fri, 10 Jan 2014 22:53:11 +0000 Received: from mail-ie0-f181.google.com ([209.85.223.181]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1W1kwk-0005jc-G2 for linux-arm-kernel@lists.infradead.org; Fri, 10 Jan 2014 22:53:00 +0000 Received: by mail-ie0-f181.google.com with SMTP id e14so5603075iej.26 for ; Fri, 10 Jan 2014 14:52:37 -0800 (PST) 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=Fgs7P0PYid35JScUftFsSfbLG3KS/ESE3ZArcelMvbA=; b=gykxk6bfaqsfcjkTmeHS9M4WouwXMRMjc9GMviPCqsIZOFCZisqdUwCb/5xx2dz1ti +XTQr2DI47irWK2KEblAc5rqdIONHBrDlNgFVkcSYhcDRYp/Hgj+QHtrvuq6QpUZtGWO dmo5C5Y/d5xNMXq7jMAXcZQd2DMsybScWTGg7g/G4hr1h9FnsEtLbl/jLsdPLZ++pu45 K/UUXJKY8Se8mdkrIMyACtyjDZfQ3Cv49PGTyadgarJK/n7CpFCvf5JJKI7hqBLKp+8S BjiL4Y0zKep+6SolcIMoCi+IRLirbMDnfuYZ/yX2uRVvzDBapcXGQfkT9BcE2nl4eJHp LIcA== X-Gm-Message-State: ALoCoQnQMx5CX4TQjPpITLr0fwNiKUJfUeHo9BFOvSTSEwB1E8VaZ0Yabm3aOxjFhxMOXgA0RwIq X-Received: by 10.50.79.138 with SMTP id j10mr6468895igx.2.1389394357557; Fri, 10 Jan 2014 14:52:37 -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 a1sm4967226igo.0.2014.01.10.14.52.35 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Jan 2014 14:52:36 -0800 (PST) From: al.stone@linaro.org To: linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v6 4/6] ACPI: in HW reduced mode, using FADT PM information is not allowed. Date: Fri, 10 Jan 2014 15:52:18 -0700 Message-Id: <1389394340-2680-5-git-send-email-al.stone@linaro.org> X-Mailer: git-send-email 1.8.4.2 In-Reply-To: <1389394340-2680-1-git-send-email-al.stone@linaro.org> References: <1389394340-2680-1-git-send-email-al.stone@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140110_175258_634650_F8A0A198 X-CRM114-Status: GOOD ( 11.68 ) X-Spam-Score: -0.1 (/) Cc: patches@linaro.org, Al Stone , linaro-kernel@lists.linaro.org, linaro-acpi@lists.linaro.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD,SUSPICIOUS_RECIPS,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 eac984a..89f0a0f 100644 --- a/drivers/acpi/processor_idle.c +++ b/drivers/acpi/processor_idle.c @@ -270,6 +270,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;