Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2071219yba; Fri, 17 May 2019 09:57:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqwwFuud/MqpyDD5BHPX5plyZ73SQItuHCA5YaAgpOXZLA2TUUrR+Udp5i/PbF/01NDbqcUh X-Received: by 2002:a63:40b:: with SMTP id 11mr41550759pge.31.1558112240964; Fri, 17 May 2019 09:57:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558112240; cv=none; d=google.com; s=arc-20160816; b=f27NSgpEIL/iDX23lzh2pBpoTFXKZbsPzzhaG5HUHeBT+Bi/LoVbcQ8yyCyoTqYgs/ dZJgmPRxtN451UjvCzSpIDn7zNEKIbUSq8Ne+qdKxElfGKJNSTtjGX6ZlzdPeT39hsFc SNYfcCwL8FvXXym+zTUMetVkbUa7ao39y7u6aT68HYErhhbtNuNdtdEaySaWTEQT44dc Do0l96SUvXVHtPUGNCvzBqzql4BT09BJ5Hk6YApLCZpjxgXEQ9vnhHbR8k9rcGbmF2B3 mxtCTOVD2jeJX8gMHM7F00qRNT2YxYO/man0pMlbSMeofKu8Ikh5Sc+nCSC9nQxUkwRK wVVQ== 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=o3znglSYE3qWmbHWfVx7bUQXAqGJQvSQXgl1NOhCAVQ=; b=CPbTyrm9pNok1vyGJkNllYmA/JhsRRl6MAdEyEl51tcI0PEd7rLl70BykX2xGgL/4K avLcryzuHOC357Fh93v+e81RaAgfFLTl7McTk5tVSJAa0/g55jrKr2jqg+LRwriXP80w 3rLhbVrwKTI2ARe2L/5/7mnd4szcgnZ4UZ5SBIeWwjyqzLXcjYsewqU3unV16BVFBefL sIJ1hLQHybsUUD47fJS0l9WGZy2HXPRrvpDPmIH2m4obwFbPaZucRWOlJ+EylgDsE+TM fwYbWrKJ9Fph3ywRxbZBsjW+sElqSiQ6sMojYmT5Lw7uCFfzGc/awKFZYiyQblCOuZEq gqbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zC8ivZGj; 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 23si8261242pgq.100.2019.05.17.09.57.05; Fri, 17 May 2019 09:57:20 -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=zC8ivZGj; 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 S1729413AbfEQQLE (ORCPT + 99 others); Fri, 17 May 2019 12:11:04 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:54370 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728482AbfEQQLE (ORCPT ); Fri, 17 May 2019 12:11:04 -0400 Received: by mail-wm1-f65.google.com with SMTP id i3so7463715wml.4 for ; Fri, 17 May 2019 09:11:02 -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=o3znglSYE3qWmbHWfVx7bUQXAqGJQvSQXgl1NOhCAVQ=; b=zC8ivZGjYMdfpaM3iFqctfmjEYxiou7E1dRg+77y5lw2eJ0a5+xq0gvLDIQv5iuONp wrei1mpheIyRIM0QyPMLCba4jnj2KksNNGzg1wNwO8eoHfbaqaNyxyH4jdtVf//2Acm9 nhQeqxco9Dhbsm891E/BDwsPm2yJUkYx9qM/BpNUZ1ihzeu9Bq0Lf+nJV1RJU55nPzYM ejupTDvwK+3seXgL8TYP8B4UIic8Uvg17r0ZyjVtEi/2+09l5uOpFOqgoqjvlD2XKISW gOM9EYcneCW0/a9AAAZ33cfRefmnkRN/dtBfb4mMLGWrHeUARCBpWqDajaJE5XjLztxy BPHA== 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=o3znglSYE3qWmbHWfVx7bUQXAqGJQvSQXgl1NOhCAVQ=; b=JxsTqu6sY2TXkPkvs/bBWzm+VrUVF3CkHG17aMNPKHwzW5/Agc0vqQe7w56cFQO+1P AzhZB27xFz3ENGSW/ymXfn0gFASXC/oW/wSLInUbN56+8xhADcXa48q22dhvwsCw/rd6 5ix+7mQGhRkqAIkkNYNhl6VWrvARGvAQ6+1DZJtxtI7cwlGtwfmXUVwR41AUl1ZReve3 GbmouYbpiQ7WrD5yFgqJ0OTDFHpImsJAkx+zW9COjIUMPNPQnVx0jnYaTtPO8+P3kiBU LeU/DKGyv0QzoOS7jelcnKh6pKictG0UsDRoG7u4z6G1heoHNxbqDuzGeBcKGmSRM2xV 4OBA== X-Gm-Message-State: APjAAAU2wH5y/0JhEkIPmhZIgTQ4iep0zj+ae2DErKem6DMB3rolrYV2 FPE/JJsL3gom6PyxGRlb+vfwzg== X-Received: by 2002:a1c:7518:: with SMTP id o24mr2624307wmc.42.1558109461904; Fri, 17 May 2019 09:11:01 -0700 (PDT) Received: from [192.168.0.41] (sju31-1-78-210-255-2.fbx.proxad.net. [78.210.255.2]) by smtp.googlemail.com with ESMTPSA id z8sm10116243wrh.48.2019.05.17.09.11.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 May 2019 09:11:01 -0700 (PDT) Subject: Re: [PATCHv1 7/8] arm64: dts: qcom: msm8998: Add PSCI cpuidle low power states To: Amit Kucheria , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, andy.gross@linaro.org, David Brown , Li Yang , Shawn Guo Cc: Marc Gonzalez , devicetree@vger.kernel.org References: <0afe77d25490b10250f9eac4b4e92ccac8c42718.1557486950.git.amit.kucheria@linaro.org> From: Daniel Lezcano Message-ID: <6b60656e-7786-1560-05f9-e2cbd6d1d18d@linaro.org> Date: Fri, 17 May 2019 18:11:00 +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: <0afe77d25490b10250f9eac4b4e92ccac8c42718.1557486950.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 10/05/2019 13:29, Amit Kucheria wrote: > Add device bindings for cpuidle states for cpu devices. > > Cc: Marc Gonzalez > Signed-off-by: Amit Kucheria Acked-by: Daniel Lezcano > --- > arch/arm64/boot/dts/qcom/msm8998.dtsi | 32 +++++++++++++++++++++++++++ > 1 file changed, 32 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/msm8998.dtsi b/arch/arm64/boot/dts/qcom/msm8998.dtsi > index 3fd0769fe648..208281f318e2 100644 > --- a/arch/arm64/boot/dts/qcom/msm8998.dtsi > +++ b/arch/arm64/boot/dts/qcom/msm8998.dtsi > @@ -78,6 +78,7 @@ > compatible = "arm,armv8"; > reg = <0x0 0x0>; > enable-method = "psci"; > + cpu-idle-states = <&LITTLE_CPU_PD>; > efficiency = <1024>; > next-level-cache = <&L2_0>; > L2_0: l2-cache { > @@ -97,6 +98,7 @@ > compatible = "arm,armv8"; > reg = <0x0 0x1>; > enable-method = "psci"; > + cpu-idle-states = <&LITTLE_CPU_PD>; > efficiency = <1024>; > next-level-cache = <&L2_0>; > L1_I_1: l1-icache { > @@ -112,6 +114,7 @@ > compatible = "arm,armv8"; > reg = <0x0 0x2>; > enable-method = "psci"; > + cpu-idle-states = <&LITTLE_CPU_PD>; > efficiency = <1024>; > next-level-cache = <&L2_0>; > L1_I_2: l1-icache { > @@ -127,6 +130,7 @@ > compatible = "arm,armv8"; > reg = <0x0 0x3>; > enable-method = "psci"; > + cpu-idle-states = <&LITTLE_CPU_PD>; > efficiency = <1024>; > next-level-cache = <&L2_0>; > L1_I_3: l1-icache { > @@ -142,6 +146,7 @@ > compatible = "arm,armv8"; > reg = <0x0 0x100>; > enable-method = "psci"; > + cpu-idle-states = <&BIG_CPU_PD>; > efficiency = <1536>; > next-level-cache = <&L2_1>; > L2_1: l2-cache { > @@ -161,6 +166,7 @@ > compatible = "arm,armv8"; > reg = <0x0 0x101>; > enable-method = "psci"; > + cpu-idle-states = <&BIG_CPU_PD>; > efficiency = <1536>; > next-level-cache = <&L2_1>; > L1_I_101: l1-icache { > @@ -176,6 +182,7 @@ > compatible = "arm,armv8"; > reg = <0x0 0x102>; > enable-method = "psci"; > + cpu-idle-states = <&BIG_CPU_PD>; > efficiency = <1536>; > next-level-cache = <&L2_1>; > L1_I_102: l1-icache { > @@ -191,6 +198,7 @@ > compatible = "arm,armv8"; > reg = <0x0 0x103>; > enable-method = "psci"; > + cpu-idle-states = <&BIG_CPU_PD>; > efficiency = <1536>; > next-level-cache = <&L2_1>; > L1_I_103: l1-icache { > @@ -238,6 +246,30 @@ > }; > }; > }; > + > + idle-states { > + entry-method="psci"; > + > + LITTLE_CPU_PD: little-power-down { > + compatible = "arm,idle-state"; > + idle-state-name = "little-power-down"; > + arm,psci-suspend-param = <0x00000002>; > + entry-latency-us = <43>; > + exit-latency-us = <43>; > + min-residency-us = <200>; > + local-timer-stop; > + }; > + > + BIG_CPU_PD: big-power-down { > + compatible = "arm,idle-state"; > + idle-state-name = "big-power-down"; > + arm,psci-suspend-param = <0x00000002>; > + entry-latency-us = <41>; > + exit-latency-us = <41>; > + min-residency-us = <200>; > + local-timer-stop; > + }; > + }; > }; > > firmware { > -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog