From patchwork Tue Dec 17 00:16:40 2013 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: 3357821 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 06130C0D4A for ; Tue, 17 Dec 2013 00:20:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2C247202A1 for ; Tue, 17 Dec 2013 00:19: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 5896B2025B for ; Tue, 17 Dec 2013 00:19: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 1VsiMk-0006sK-J7; Tue, 17 Dec 2013 00:18:27 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VsiMN-0002Te-0x; Tue, 17 Dec 2013 00:18:03 +0000 Received: from mail-ie0-f169.google.com ([209.85.223.169]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VsiLd-0002MX-Fc for linux-arm-kernel@lists.infradead.org; Tue, 17 Dec 2013 00:17:19 +0000 Received: by mail-ie0-f169.google.com with SMTP id e14so7597198iej.28 for ; Mon, 16 Dec 2013 16:16:55 -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=q48IgCtzW1eiPuOx6fXANPbkOQhvnmvmJqnKChD6Tu4=; b=VzyT6h6j77W4xlUBpCXMaQm09KEkNQkSIOJHubmHFwpVQOJ6Czd1//+81a4IKF7GGv UcGuCsDWNlD2tGd3/W6fvYASmC6auajtavriYqnl2w7hC8mjqkcJWertEmFg8NR+6cMm PyjkPYF9KtAxbMGWKmoAC3BS8THWMPsdmfR1zt1emIQnv0SdfbWo7p0rZGzj9B/IbUvM bwJB8myDZYhMrjmV4K2BxtTHV3QUTR3W9G0l2n6AQBxsxD9z4cn24A56ZaUhJj6KcULG h/MTLEKZ7Rb1BLnxxyUM36O+q6N3sw+RK/yKFtcM/hgt9CIhCBMiuk7KQbpGx+ZO9c8N M2Ng== X-Gm-Message-State: ALoCoQnaYUcZdb176FP7s6dCYHOeVBldqB9ctaGq14aG1pTRw30HLYk+CyhcIPWUpEHLf1L8QXPD X-Received: by 10.42.44.9 with SMTP id z9mr32992ice.88.1387239415609; Mon, 16 Dec 2013 16:16:55 -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 j3sm12877632igj.9.2013.12.16.16.16.54 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Dec 2013 16:16:54 -0800 (PST) From: al.stone@linaro.org To: linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v4 4/5] ACPI: in HW reduced mode, using FADT PM information is not allowed. Date: Mon, 16 Dec 2013 17:16:40 -0700 Message-Id: <1387239401-13918-5-git-send-email-al.stone@linaro.org> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1387239401-13918-1-git-send-email-al.stone@linaro.org> References: <1387239401-13918-1-git-send-email-al.stone@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131216_191717_622174_CAD1C27A X-CRM114-Status: GOOD ( 11.48 ) 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=-2.2 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 b91dcaa..4917a9e 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;