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 X-Patchwork-Id: 22548 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f197.google.com (mail-qc0-f197.google.com [209.85.216.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B7C3923FF1 for ; Tue, 17 Dec 2013 00:16:56 +0000 (UTC) Received: by mail-qc0-f197.google.com with SMTP id r5sf10044747qcx.4 for ; Mon, 16 Dec 2013 16:16:56 -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=q48IgCtzW1eiPuOx6fXANPbkOQhvnmvmJqnKChD6Tu4=; b=ArrAiIAzLiGfuqEUjCvYeWPcLzHnBfj1W/TysZij1VGNn2CaQw2vpc/6LzsAzhniNa P7JuSRXnKjkv1VcZ2+EA/J8PdV6PgH0xupHMkzD82CLLtnBGeqesnEDdDNi+FxmIOCJU GQ+IaTuRlyObvHLZnS7NhQt4ZsbDK8w3bj7/mzFLFcQRhSwzPVNlQlbHKWkZ/VJxlc6M SG2Ijrz1JlN2daepie5Lys63EEknt7IK6ZM/HTNMurhRbLE05/glGOtStEylKVDU9a/M QHV91oxyir2J20GuTvCmwA43zUAyDqj9wNw5WWJ6BLd0PVr/q3CyBfl4U69UdlfBzJwt QMoA== X-Gm-Message-State: ALoCoQnH/XCodhOOF1Fk4mEkJOpbiT3pVM14p/+Vf8u4NZWFjGUwBJDYtNkzdeFupEoqHkLr1M6i X-Received: by 10.236.62.231 with SMTP id y67mr6490861yhc.3.1387239416626; Mon, 16 Dec 2013 16:16:56 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.82.49 with SMTP id f17ls2400447qey.54.gmail; Mon, 16 Dec 2013 16:16:56 -0800 (PST) X-Received: by 10.52.168.4 with SMTP id zs4mr46076vdb.59.1387239416531; Mon, 16 Dec 2013 16:16:56 -0800 (PST) Received: from mail-ve0-f169.google.com (mail-ve0-f169.google.com [209.85.128.169]) by mx.google.com with ESMTPS id ti3si4372293vdc.41.2013.12.16.16.16.56 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 16 Dec 2013 16:16:56 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.169 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.169; Received: by mail-ve0-f169.google.com with SMTP id c14so3915268vea.0 for ; Mon, 16 Dec 2013 16:16:56 -0800 (PST) X-Received: by 10.52.245.9 with SMTP id xk9mr40144vdc.68.1387239416459; Mon, 16 Dec 2013 16:16:56 -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 u4csp29244vcz; Mon, 16 Dec 2013 16:16:56 -0800 (PST) X-Received: by 10.42.48.202 with SMTP id t10mr14454219icf.9.1387239415877; Mon, 16 Dec 2013 16:16:55 -0800 (PST) Received: from mail-ie0-f182.google.com (mail-ie0-f182.google.com [209.85.223.182]) by mx.google.com with ESMTPS id dj10si15057458icc.3.2013.12.16.16.16.55 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 16 Dec 2013 16:16:55 -0800 (PST) Received-SPF: neutral (google.com: 209.85.223.182 is neither permitted nor denied by best guess record for domain of al.stone@linaro.org) client-ip=209.85.223.182; Received: by mail-ie0-f182.google.com with SMTP id as1so7561490iec.27 for ; Mon, 16 Dec 2013 16:16:55 -0800 (PST) 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 Cc: linaro-acpi@lists.linaro.org, patches@linaro.org, linaro-kernel@lists.linaro.org, Al Stone 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-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.128.169 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 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;