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 X-Patchwork-Id: 23124 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-gg0-f199.google.com (mail-gg0-f199.google.com [209.85.161.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 43815216DB for ; Fri, 10 Jan 2014 22:52:40 +0000 (UTC) Received: by mail-gg0-f199.google.com with SMTP id 4sf5431447ggm.10 for ; Fri, 10 Jan 2014 14:52:39 -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=I6J+mj2XT9saJNECs+1EfwgVeuijhTAZuCVRolm8nPxx2xa1aZaKCV7NDVddG7qqsD s+dnvEXS1hV6Zl2JiQ1q5ncco8d1oBe+vcf3PBMulQQ8xwR46veE+ay3lhFdvpBLZz9A vEAxMQmIpr+eTeqtcJeM5cFwgrW4PJovzEt6suSbjdksuLY14hVnddcolJPIs7M8ZXtI IvvX2NT2O08NjuNQ5yVacvmhWIjEAOnHwCHXOAJMnW2fmJC/PwRs2swtw5Ug0nm3c8t5 YlnDZq21Ms7wlK6Hs3jh+JRJ8WFDGFzOp9GbLvGU+Tsa07GdW/Ka9zZ00It/GyqlTgHZ c2Zg== X-Gm-Message-State: ALoCoQm+D36v6jyaqTR4x64pSSzULcPFwRp4mLVg0y4c3llegyKdPBA4ipH5fAa1uvFGzqf97ytH X-Received: by 10.236.94.113 with SMTP id m77mr4407585yhf.33.1389394359462; Fri, 10 Jan 2014 14:52:39 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.104.40 with SMTP id gb8ls1572015qeb.27.gmail; Fri, 10 Jan 2014 14:52:39 -0800 (PST) X-Received: by 10.52.237.228 with SMTP id vf4mr8211582vdc.3.1389394359375; Fri, 10 Jan 2014 14:52:39 -0800 (PST) Received: from mail-vb0-f52.google.com (mail-vb0-f52.google.com [209.85.212.52]) by mx.google.com with ESMTPS id g11si5782769veg.11.2014.01.10.14.52.39 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 10 Jan 2014 14:52:39 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.52 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.52; Received: by mail-vb0-f52.google.com with SMTP id p5so3649025vbn.11 for ; Fri, 10 Jan 2014 14:52:39 -0800 (PST) X-Received: by 10.58.186.198 with SMTP id fm6mr9970752vec.16.1389394359254; Fri, 10 Jan 2014 14:52:39 -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 ey3csp122790ved; Fri, 10 Jan 2014 14:52:38 -0800 (PST) X-Received: by 10.50.128.72 with SMTP id nm8mr6409680igb.10.1389394358361; Fri, 10 Jan 2014 14:52:38 -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 vj4si13997707icb.108.2014.01.10.14.52.37 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 10 Jan 2014 14:52:38 -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 at1so5899648iec.21 for ; Fri, 10 Jan 2014 14:52:37 -0800 (PST) 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 Cc: linaro-acpi@lists.linaro.org, patches@linaro.org, linaro-kernel@lists.linaro.org, Al Stone 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-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.212.52 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;