Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2034741yba; Fri, 17 May 2019 09:18:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqw238hCqoZrjkRAyhW443UEPgomaF9FBDH8FYfCPsyVJdn0ImqxQFBEL8cCjKx/OVd8MMkr X-Received: by 2002:a17:902:9a03:: with SMTP id v3mr59699630plp.27.1558109936062; Fri, 17 May 2019 09:18:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558109936; cv=none; d=google.com; s=arc-20160816; b=HhLrzMKgHGLNyDEjGIVy5Ipe8tUC/2KNiC7jFhLA16DFGEuuibWM5/nNcVbAz7M3+f m43QimV/vCzn2rZgjbEYk9c3+i73/y4PjH2soVD+mVCQc7MaA4MeEdhonHMQ8YrRg9sK rDm5ddmJ5Q+5I5gUoZhZCFdRXaOcFFtZ/f8IJDY+hvpSctT9ZSP8PWKRso+PRzgscicg vyRUE6KOtik5e6HyotYqjZi9nt1Q2+zs4JoXoNwkClafzQYwryjiGrDRkG+OWEiTTmVJ KFZ9n8lfrcMzgrRG3vAwyxpajJ8wH5rNq7SUYNyP1zqhg4iNLURKmu1zCoGahj9HwoNM LgqQ== 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=9n65JKv2XtPRLEdFty+JHya3Hjv0VqsllvETqv34x3s=; b=vnh5/73tLVPhuf3jdAhfIVZOF38Ye6Kgt1nQhUFUPQVwdGruAuwoBw1qHbCKwaQWks uj2wanJr6u+A2/ictJWR1p6e/ALdFKKZV2Lu6YtmreTPtnAvFQPkg+g57F5sCLe2R0jZ MslJgMMd4JSybYt4u2iUAEyFYImAZR3Qgb707bj5iNJ/XwPUxSAEgTiwo4OeU74fEYjl Jhd+UgypI9xehtSy8rQx+YhhQ1c1w7jP8TO4C6DH0YJlztKur/ZcdnOr9Iqpy3QGLqt1 08xijzSeME3Yz+N8zWt1sVEacej2nCFPoMFHpVYcd9Lb53GBxZLIPu24+D/Am9oTEzCD xpTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eqtMLehk; 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 f71si8192258pgc.150.2019.05.17.09.18.39; Fri, 17 May 2019 09:18:56 -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=eqtMLehk; 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 S1729021AbfEQPzZ (ORCPT + 99 others); Fri, 17 May 2019 11:55:25 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:38904 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728820AbfEQPzZ (ORCPT ); Fri, 17 May 2019 11:55:25 -0400 Received: by mail-wm1-f67.google.com with SMTP id t5so5885588wmh.3 for ; Fri, 17 May 2019 08:55:23 -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=9n65JKv2XtPRLEdFty+JHya3Hjv0VqsllvETqv34x3s=; b=eqtMLehkSuVpZWU8YmbIdTgq3l1bQgg7oenIJACGfzp0n0gA5cHySNoLpfqW61V6FE yg2edrtMPTNl6grlRjM5KMn21ohd4hQe/V20GWefTBh4O/PMQ27z9LcQhn2TRsUtw5Uc vC9v22wkaQ+lQKYMwV6o6PaHmDcT4bu0pRDAtjqirQPLYYZ6/hCKGwLzRD6edyJKLbd3 npy+XyhvE/qrQ8Mq1+XDZeGRUAV8kYZnqNRJwBOXCAWAuykziVlRlesQ8myaci4ZtXU/ VuChTSL1DYUSbpb+YjgdVEf3CdmFiesBd4yQh0pXUMIxlyYyMALfLwGCpkS8yHEq7plt YO3Q== 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=9n65JKv2XtPRLEdFty+JHya3Hjv0VqsllvETqv34x3s=; b=kKsMyWaKF5lWXjP7qdtqKS0qBgGfRx+eOrxjIRwKFKFnQp/MGiXIvDeA7CaMXwsNWA 4lLP9K6kDwOnJhsrqO7z4mWVFNZywZiU7AlREhjiXrDk7pd+196092d8bebN1Z0WFiBA /S8HGF2mg5/WSmphBy7rV6PoXZ1YIgw3OddHZxM5zGeGiHUCxFZGiRUmnSW51SbxqpzT 5tptNLyvvv5Beemxc+dIIfNk6V6QSK2UyZVRQj07YvcAEcLE2vnUsmmjU+NfxxVVgkGO cdroz07CuYEWp3lXFGIl3hfuG+uaSlZ5T4Ca4Duof/K7p/dRxs+YF+YURA8GNys+3/1D ucIQ== X-Gm-Message-State: APjAAAWXSZEHjKwguYQZelGBOhlgqLXnRMKuoO9FoZOrsyKVjT+Pu7AV Ev0ibHTYM3pun4Iq06BI/7czmg== X-Received: by 2002:a1c:9eca:: with SMTP id h193mr23434703wme.125.1558108522628; Fri, 17 May 2019 08:55:22 -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 z7sm7544362wme.26.2019.05.17.08.55.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 May 2019 08:55:21 -0700 (PDT) Subject: Re: [PATCHv1 6/8] 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, andy.gross@linaro.org, David Brown , Li Yang , Shawn Guo Cc: devicetree@vger.kernel.org References: <8648ba97d49a9f731001e4b36611be9650e37f37.1557486950.git.amit.kucheria@linaro.org> From: Daniel Lezcano Message-ID: Date: Fri, 17 May 2019 17:55:20 +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: <8648ba97d49a9f731001e4b36611be9650e37f37.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. > > Signed-off-by: Amit Kucheria > --- > arch/arm64/boot/dts/qcom/msm8996.dtsi | 28 +++++++++++++++++++++++++++ > 1 file changed, 28 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi > index c761269caf80..b615bcb9e351 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 = <&LITTLE_CPU_PD>; It is the same micro architecture, the CPUS differ by their max OPP. Shall we call it really little? I take the opportunity to report the capacity-dmips-mhz attribute is missing. The max capacity computation is not triggered, thus the scheduler see the same capacity for both cluster even if one has less OPP. Adding capacity-dmips-mhz = <1024>; to all CPUs will fix it. > 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 = <&LITTLE_CPU_PD>; > next-level-cache = <&L2_0>; > }; > > @@ -115,6 +117,7 @@ > compatible = "qcom,kryo"; > reg = <0x0 0x100>; > enable-method = "psci"; > + cpu-idle-states = <&BIG_CPU_PD>; > 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 = <&BIG_CPU_PD>; > next-level-cache = <&L2_1>; > }; > > @@ -151,6 +155,30 @@ > }; > }; > }; > + > + idle-states { > + entry-method="psci"; > + > + LITTLE_CPU_PD: little-power-down { > + compatible = "arm,idle-state"; > + idle-state-name = "standalone-power-collapse"; > + arm,psci-suspend-param = <0x00000004>; > + entry-latency-us = <40>; > + exit-latency-us = <40>; > + min-residency-us = <300>; > + local-timer-stop; > + }; > + > + BIG_CPU_PD: big-power-down { > + compatible = "arm,idle-state"; > + idle-state-name = "standalone-power-collapse"; > + arm,psci-suspend-param = <0x00000004>; > + entry-latency-us = <40>; > + exit-latency-us = <40>; > + min-residency-us = <300>; > + local-timer-stop; > + }; > + }; > }; > > thermal-zones { > -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog