From patchwork Wed Jan 8 00:46:50 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Al Stone X-Patchwork-Id: 22927 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f198.google.com (mail-ie0-f198.google.com [209.85.223.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A5D85202E0 for ; Wed, 8 Jan 2014 00:47:09 +0000 (UTC) Received: by mail-ie0-f198.google.com with SMTP id tp5sf4737342ieb.9 for ; Tue, 07 Jan 2014 16:47:09 -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=Fgs7P0PYid35JScUftFsSfbLG3KS/ESE3ZArcelMvbA=; b=MLpE2T84xAL5/PZB0uP/zjCfnqvd/bWMCtZTeYwYj+YR/YsT51heK5Wc+DPsSoonpU o3LyTewOsiGKLqccX49GZO5Xc8j3lw5BxNbm/OF4T94LGZHtw2tpc6WVmJw9oOT0ccvg bPLqmieVw1nNei3qQBmLbLdTMTZMsMlvfudO8MVbwSJKOSFDu/0Myu1qBslijPfbC05m E45BRFzNOZUozc3ofQSVkfbShu0DxFbSUl/4uFaF8YAM2mIBbTrgBnGZYKehpX48oJwS WU1h89kLDJdHdpFtVg9bDnKIpw8VcAChANa4zViMCtGYBOTbfH7IgjK4IwQTivU+6Lo9 hoTg== X-Gm-Message-State: ALoCoQnSpkdzvpQ6VknwfKifw9Po+LwRU38TC+GWKVKTJWAEdrIMVtnFpfr6L/g7xpuIRfEVU74E X-Received: by 10.182.24.5 with SMTP id q5mr2695821obf.23.1389142028963; Tue, 07 Jan 2014 16:47:08 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.118.233 with SMTP id kp9ls373762qeb.4.gmail; Tue, 07 Jan 2014 16:47:08 -0800 (PST) X-Received: by 10.52.170.241 with SMTP id ap17mr537608vdc.13.1389142028795; Tue, 07 Jan 2014 16:47:08 -0800 (PST) Received: from mail-ve0-f170.google.com (mail-ve0-f170.google.com [209.85.128.170]) by mx.google.com with ESMTPS id ru9si34930279vec.81.2014.01.07.16.47.08 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 07 Jan 2014 16:47:08 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.170 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.170; Received: by mail-ve0-f170.google.com with SMTP id oy12so737909veb.29 for ; Tue, 07 Jan 2014 16:47:08 -0800 (PST) X-Received: by 10.52.69.198 with SMTP id g6mr27318161vdu.18.1389142028672; Tue, 07 Jan 2014 16:47:08 -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.59.13.131 with SMTP id ey3csp192899ved; Tue, 7 Jan 2014 16:47:08 -0800 (PST) X-Received: by 10.50.43.225 with SMTP id z1mr28654297igl.41.1389142027941; Tue, 07 Jan 2014 16:47:07 -0800 (PST) Received: from mail-ig0-f178.google.com (mail-ig0-f178.google.com [209.85.213.178]) by mx.google.com with ESMTPS id w8si6296779igl.9.2014.01.07.16.47.07 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 07 Jan 2014 16:47:07 -0800 (PST) Received-SPF: neutral (google.com: 209.85.213.178 is neither permitted nor denied by best guess record for domain of al.stone@linaro.org) client-ip=209.85.213.178; Received: by mail-ig0-f178.google.com with SMTP id ut6so3221698igb.5 for ; Tue, 07 Jan 2014 16:47:07 -0800 (PST) X-Received: by 10.50.61.137 with SMTP id p9mr29116563igr.45.1389142027633; Tue, 07 Jan 2014 16:47:07 -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 kt2sm6361770igb.1.2014.01.07.16.47.06 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Jan 2014 16:47:07 -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 v5 4/5] ACPI: in HW reduced mode, using FADT PM information is not allowed. Date: Tue, 7 Jan 2014 17:46:50 -0700 Message-Id: <1389142011-27356-5-git-send-email-al.stone@linaro.org> X-Mailer: git-send-email 1.8.4.2 In-Reply-To: <1389142011-27356-1-git-send-email-al.stone@linaro.org> References: <1389142011-27356-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.170 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 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;