Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp768547ybm; Tue, 21 May 2019 03:16:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqxM4syFjm6mah/0lM+qHHsykQslaA58z/Sva0olQ8C5S7ts4swehIvWpjQLmjR/I0AyyhJc X-Received: by 2002:a17:902:b184:: with SMTP id s4mr43493922plr.46.1558433799290; Tue, 21 May 2019 03:16:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558433799; cv=none; d=google.com; s=arc-20160816; b=mQPaddGsULwO1L12Hjb8oP6dpTAoHTl1WS12j9l0q6voJPG08grtBPHZDEthcEy2R4 HjZP8SoXnrPIJkFCGaOfaG1T6h30+e9OzhvNREnbQseoirhSlox6txEu9NaF2ZfZe1SZ VVmyprM/mvEAL3/9LXc45kFN3g9tFJkAoaLhtCiKluKEa4W4qIiIy3E5nNuohGEpP4Rd QfmzqrVqw+YED+veJJBW+3MH+Z04LtmQ1Gx9Sc9hPsv/VN6iVnO1I926r5bsmDowokh3 ZxSfMWUcuOGmE1zeKqDjUkGP81L4vQPNvY4r6Q6jLLnGNlMmcRk7BicY5+U9RyuC8tVt angQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=ExhtHOYixmQ3q1DaWe84tRAbBCksXA4j7ETOHrXNd7Q=; b=in1JjLRQUYoU4ksecGtZkxKfKiNpNjfCJgVItpv9pVQqKbnDZDI6F+sHcBeZbtY8LX JaT0JCYczZAngFYNDkQBRDJSarkCRod9vXFvhSmZDXHYwIb9LBCfF8wnm8e0E7XwanvG 8vHwYGrRLXqdyz4SpBp9saUk1gZdJkzr7U9s5CDkX+a6vMp4QjS07NDBJyhpYi6jCogu CLSg3JkScmrCGookr3il0fsOXGa8qygGt8n3qoKdgOMY90LY4bAnOQQ0VrR6RkHBlVUh hjNCws8ziMEcOJwLAmydDIix9InBFNFalcyEZoFC39D7Fpp7cmQFuEw7+einZqsWPoQr dOOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dkbaEWk2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b12si21590705pge.261.2019.05.21.03.16.23; Tue, 21 May 2019 03:16:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dkbaEWk2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727605AbfEUKNm (ORCPT + 99 others); Tue, 21 May 2019 06:13:42 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:43668 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726750AbfEUKNm (ORCPT ); Tue, 21 May 2019 06:13:42 -0400 Received: by mail-wr1-f67.google.com with SMTP id r4so17873971wro.10 for ; Tue, 21 May 2019 03:13:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=ExhtHOYixmQ3q1DaWe84tRAbBCksXA4j7ETOHrXNd7Q=; b=dkbaEWk2jBQbR2GXBgbKgYnKBf4wzflpQsQOwwuKmqRzR1jvkdKuv2V+0nBXcugw+R qXUJerGUfUdd5U6RpUHhd80mWpaIQNZtNG1EF94VpiH3RouLOtgwk8FPGjevHWQqUQiv P1GLowr79+uCtGnhfosMrt0RDOEKIqxydGMHIgVZiqu3UcNua3uuzzC9wDELw02RQDA/ kRU9OCqDZixLi1R/iqMkpbCGpUC1rkuG03reORC/GqPQEV2zw0q7dxAn5/XbXuK9OEUt M0VlbIi4UDk2nGgfaxvIvYgYtPcxWyFJuQpV265MkTnTC0mYWol6BAAWZyDXqcS2ptae 5VJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=ExhtHOYixmQ3q1DaWe84tRAbBCksXA4j7ETOHrXNd7Q=; b=BLb1ZjCYbNUzpIa3TxZUh0ueiB/1/FR/GYo8iwOEbqHNxo9BrGFYyXroLQVMuaTepA ApiqObs975GOm/V+74xbIVKNNeVwy6bpfGvqROuMZPDPowfKuG52zxL+ct9s0wv0UKSc vlXpwkjO9KRjWPptyswpPMsLe3pDXMSbzBvliK3LVk+139GZKqb8JaXDmEEXXnV7vhOo 0lgzcMF44O3fXbVUH7Mj3uviQ0pWj7/lPv9vIHF1CHyoDY5Ml1VPvQqN6SJWQIU+ktvY iqm5t7vDFbSMzHwJINuspyvhMhKcomhdfXlzTlTTleQoJS2YmcylLL+qrG+cmh8nfl1X T1fw== X-Gm-Message-State: APjAAAX62IFezz7wg7WLzjBZwc/wPJhHs5+BarrCFWt9BDin74trSun2 TpJd/awdTewxacArjPs2/5iuEQ== X-Received: by 2002:adf:cf0e:: with SMTP id o14mr13521746wrj.230.1558433620515; Tue, 21 May 2019 03:13:40 -0700 (PDT) Received: from [10.1.203.87] (nat-wifi.sssup.it. [193.205.81.22]) by smtp.googlemail.com with ESMTPSA id y8sm2751112wmi.8.2019.05.21.03.13.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 May 2019 03:13:39 -0700 (PDT) Subject: Re: [PATCH v2 6/9] arm64: dts: qcom: msm8996: Add PSCI cpuidle low power states To: Amit Kucheria , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, agross@kernel.org, niklas.cassel@linaro.org, marc.w.gonzalez@free.fr, sibis@codeaurora.org, Andy Gross , David Brown , Li Yang , Shawn Guo Cc: devicetree@vger.kernel.org References: <2ffbb3f32484c03360ff7d6fa4668581ef298c9e.1558430617.git.amit.kucheria@linaro.org> From: Daniel Lezcano Message-ID: <10d95552-0a0c-3e8a-62c3-80a307fed0c9@linaro.org> Date: Tue, 21 May 2019 12:13:39 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <2ffbb3f32484c03360ff7d6fa4668581ef298c9e.1558430617.git.amit.kucheria@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21/05/2019 11:35, Amit Kucheria wrote: > Add device bindings for cpuidle states for cpu devices. > > msm8996 features 4 cpus - 2 in each cluster. However, all cpus implement > the same microarchitecture and the two clusters only differ in the > maximum frequency attainable by the CPUs. > > Signed-off-by: Amit Kucheria Acked-by: Daniel Lezcano > --- > arch/arm64/boot/dts/qcom/msm8996.dtsi | 17 +++++++++++++++++ > 1 file changed, 17 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi > index c761269caf80..4f2fb7885f39 100644 > --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi > +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi > @@ -95,6 +95,7 @@ > compatible = "qcom,kryo"; > reg = <0x0 0x0>; > enable-method = "psci"; > + cpu-idle-states = <&CPU_SLEEP_0>; > next-level-cache = <&L2_0>; > L2_0: l2-cache { > compatible = "cache"; > @@ -107,6 +108,7 @@ > compatible = "qcom,kryo"; > reg = <0x0 0x1>; > enable-method = "psci"; > + cpu-idle-states = <&CPU_SLEEP_0>; > next-level-cache = <&L2_0>; > }; > > @@ -115,6 +117,7 @@ > compatible = "qcom,kryo"; > reg = <0x0 0x100>; > enable-method = "psci"; > + cpu-idle-states = <&CPU_SLEEP_0>; > next-level-cache = <&L2_1>; > L2_1: l2-cache { > compatible = "cache"; > @@ -127,6 +130,7 @@ > compatible = "qcom,kryo"; > reg = <0x0 0x101>; > enable-method = "psci"; > + cpu-idle-states = <&CPU_SLEEP_0>; > next-level-cache = <&L2_1>; > }; > > @@ -151,6 +155,19 @@ > }; > }; > }; > + > + idle-states { > + entry-method = "psci"; > + > + CPU_SLEEP_0: cpu-sleep-0 { > + compatible = "arm,idle-state"; > + idle-state-name = "standalone-power-collapse"; > + arm,psci-suspend-param = <0x00000004>; > + entry-latency-us = <40>; > + exit-latency-us = <80>; > + min-residency-us = <300>; > + }; > + }; > }; > > thermal-zones { > -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog