From patchwork Wed Dec 4 21:22:06 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Al Stone X-Patchwork-Id: 22046 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f198.google.com (mail-ob0-f198.google.com [209.85.214.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1A72223FCB for ; Wed, 4 Dec 2013 21:22:55 +0000 (UTC) Received: by mail-ob0-f198.google.com with SMTP id wo20sf52635645obc.9 for ; Wed, 04 Dec 2013 13:22:54 -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=tvsT8M5l2UUNUaj7+ji51G5jLD7F43S+NMMq8xkD3fk=; b=ISR32uhBsnpZLryULpZKerJVuOdZGLzMZvup/bv/1airVddGGniRywf3rQXqvc/hSh FUWcWLdWxQ7FuLHoPRO+MOaZjO/Bxk6AdZ+49Ds5LSJg5flaZ+enachOixf3gnt+58Xc s8gXbmgDHMaud/eGHj/JS3LRBFspYe3xf98DWQxLiNEG4Ap43dA6tC8p1+mQFPePTMWI uhNnCeitTENhuWxyMsh0zaG1LP4a5HxFA+g8KoaOX/9rJRur9zJJItYkGfgh43a48AIm jDgyXKQr2aeTIiM4uqidonUd7VTMIJD5D9B5cbPAsuWVcPQDV+LtLGgmwImcwIJVQktb 3rwg== X-Gm-Message-State: ALoCoQkeo3ZzRSIRyxQwjuaptI8HbHWlwo1LtVni2Uj34ahRWwdj/rUDhFtftoD7tmvAxkQgyI0E X-Received: by 10.182.9.36 with SMTP id w4mr20925252oba.37.1386192174188; Wed, 04 Dec 2013 13:22:54 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.121.98 with SMTP id lj2ls541740qeb.45.gmail; Wed, 04 Dec 2013 13:22:54 -0800 (PST) X-Received: by 10.58.146.71 with SMTP id ta7mr10474275veb.23.1386192174105; Wed, 04 Dec 2013 13:22:54 -0800 (PST) Received: from mail-ve0-f175.google.com (mail-ve0-f175.google.com [209.85.128.175]) by mx.google.com with ESMTPS id bq2si33322554vcb.40.2013.12.04.13.22.53 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 04 Dec 2013 13:22:53 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.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.128.175; Received: by mail-ve0-f175.google.com with SMTP id jx11so12591442veb.20 for ; Wed, 04 Dec 2013 13:22:53 -0800 (PST) X-Received: by 10.220.164.202 with SMTP id f10mr9863276vcy.25.1386192173797; Wed, 04 Dec 2013 13:22:53 -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 u4csp325091vcz; Wed, 4 Dec 2013 13:22:53 -0800 (PST) X-Received: by 10.50.29.114 with SMTP id j18mr9569020igh.24.1386192173271; Wed, 04 Dec 2013 13:22:53 -0800 (PST) Received: from mail-ie0-f176.google.com (mail-ie0-f176.google.com [209.85.223.176]) by mx.google.com with ESMTPS id m1si5486506icx.68.2013.12.04.13.22.23 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 04 Dec 2013 13:22:53 -0800 (PST) Received-SPF: neutral (google.com: 209.85.223.176 is neither permitted nor denied by best guess record for domain of al.stone@linaro.org) client-ip=209.85.223.176; Received: by mail-ie0-f176.google.com with SMTP id at1so28094410iec.35 for ; Wed, 04 Dec 2013 13:22:23 -0800 (PST) X-Received: by 10.42.84.130 with SMTP id m2mr50456666icl.16.1386192142227; Wed, 04 Dec 2013 13:22:22 -0800 (PST) Received: from fidelio.ahs3 (74-93-232-46-Colorado.hfc.comcastbusiness.net. [74.93.232.46]) by mx.google.com with ESMTPSA id f5sm6351925igc.4.2013.12.04.13.22.21 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Dec 2013 13:22:21 -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 v3 4/5] ACPI: in HW reduced mode, using FADT PM information is not allowed. Date: Wed, 4 Dec 2013 14:22:06 -0700 Message-Id: <1386192127-28564-5-git-send-email-al.stone@linaro.org> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1386192127-28564-1-git-send-email-al.stone@linaro.org> References: <1386192127-28564-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.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 8b48c08..a419fcb 100644 --- a/drivers/acpi/processor_idle.c +++ b/drivers/acpi/processor_idle.c @@ -271,6 +271,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;