From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 759CE3E639D for ; Mon, 13 Jul 2026 10:26:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783938404; cv=none; b=VyuXDA0v+xJYnx08RZ85njgye4DXONFSOFbKZQjcFkL9nd98g56PivOndpzVBjF/dCw1xs+8d0uNSV2pIKRBFrrsgRlXaw8rYrjC9z9yb7T1EX4OzaxJHG/UbhuTRYPg+RMYgyo+1K9x0PQkh3/Xba1AhzlVIfblKXwDEeLuiJU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783938404; c=relaxed/simple; bh=rQxxLM0jJkOrRdQzxvhz37dQOF0NxP1AODzN+crLYtk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=eQvRBYLQezkQa9pNoPlm/UmnQ4CmNBYKFy83o3df+dh1qydplGF8fszVW6LAWLsInVSsUBDmPpyGtjIxpQqF3oFWTjLJvpo7gDEYdeR4JY0sIj2brOWCQXyF9tWCBovHPlML392TR3e1HNTg16OOXBm1nH4Kz7ACKaP6hXMDYFo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=YDCaT6y9; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=XBBhdxrQ; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="YDCaT6y9"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="XBBhdxrQ" Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 66D6NfrN731613 for ; Mon, 13 Jul 2026 10:26:36 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= uAnOOERdIxllvvm3kVk2q1b+wMhPfevl13MsiW4ZmC4=; b=YDCaT6y9hfFasqz4 3GBngIK8OSFMkdXjMkewNEokHoWWr9t3k5sfo5idc//uMsagCjdjs7bPGMB1kl// ESFaWbsiavkRuYgH07hrgDe7As9lNLZGayBP6h4pPqNKLSM+G2Be985+nrEWuV7J 5yDjFQA+QE17Ix3zwWm6xubwe26knT4bJXCSN75Wyp8XGb2pWgd8h7t64JXgtgyK LjKdFW8K92LKiU0xXvh382UUWFWK2NyS7O+hU9MJzJgfB93i1hbx4k/09hdqILO0 a3Z2GfB7mlkYM09S7ztdIKPRpt9k96j9pOy2n90QjndnUYPHzefSMgcvQg7gU9vd stxPMA== Received: from mail-pg1-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4fcjn3a28x-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 13 Jul 2026 10:26:35 +0000 (GMT) Received: by mail-pg1-f199.google.com with SMTP id 41be03b00d2f7-ca6bd8a190cso4608317a12.0 for ; Mon, 13 Jul 2026 03:26:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1783938395; x=1784543195; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=uAnOOERdIxllvvm3kVk2q1b+wMhPfevl13MsiW4ZmC4=; b=XBBhdxrQLayGOFUa7A9aHafmX5ZHZBlfeA5bCVmZw0J+r70fXrVA4wi5au2o+li87A ulmYHh/hW9qp8LzedtlZYLGKeOuocdz1KEqVi//xAYOU5PnPp+v1IN/XBCKDYQyW2Gid 8cUkrMQYEROu0zTcoUd5uBzOpyK3X2X9KFhsnNQxLqJ5lNetnCZWn767dBAJZJ1JcxRe XiVargc4JrFvjTZN+D6TMhR8V0L7/SkJgz+/AtSgaOMb21ELpRqyAxnA2/5KpHKElDvU QLlvoFfx2ZY8eyixuQgnKCCzY4V2mi7sP3HtV52meJ51ZEjOxIKy88HTWdlF6DZlE3UL mcAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783938395; x=1784543195; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=uAnOOERdIxllvvm3kVk2q1b+wMhPfevl13MsiW4ZmC4=; b=c94NH91nkJbowD43hCbZVzIpikht1qquusrXM41CyKNrSVGytk8I8TKndRGsd5JjFn WCcpvDoJkabyyLhiU1wJ4aZ9dSRSolr8uMRBzJ9H4efjis3MUlH2qo4WmKpFcWJCWc95 VEyre/QPL6H5eQ5AVgdxqYGE7/q3q6OjTckVIYSBe2mJC6eWzt7cADC9lWC6sYrEhZtZ 9yyTYlh49eugE3h0nqpTI2Tmdf+5PJsktgFUtSVefhaELfN7Y75nizRpS2zdJh52m3LN SqsG3Cj0c0qEQOJh9W/GwuP/kgNKI9DW/kF3B1Eooh1J8xXLQvAo8lxCVXbfR6Bg9J/N 3luA== X-Forwarded-Encrypted: i=1; AHgh+RodqSsXK+idDHlTNp0VoKCTicbSrcyNwHet88Fh8g04qhKF7guOLbn1M8rTKE1Dcmpa1d2fL+gu0112VU0=@vger.kernel.org X-Gm-Message-State: AOJu0Yw/VvkYYL21WhWIZDyA1b0ZW7vy9Grkepak1/Am1YtAMFBH2fkR EVJ6iw/FaISgt2E2VWNbfE5i2JFqfqj9SDZtFXM2gvOBHO+12QVZyJMh6qfPEs5HR8uJhT3ohDL UXHHRmW7yhZSGmPJetuzU13T5WXIOQ2PUiuthw3NgoLuX1nvjGD+VRYugSsOa8IpFePxhhKP2CJ I= X-Gm-Gg: AfdE7cnoAkCBO4rIkFTcS6z9OkACNUjcHMHsOPBFJrb5iyfmYH0m70qsrPHYdtFxYAk o0ep+hXZnsy/2As4uUrV6gINWF/gZkPAubR+wcsNc0q4/qT4+/dfKomxuPsFKfDEjtWuINWZ8rx 91Xk5JrLbzu7OZ93sh+7NO/5jUKSc+d50sOJproRYfnkK7/vqeNrUtI+R+GVCiTjYliaYXXYRPc 0r1JMKm7jKS04zVpDVbnMAU5wUjAty3YEQCSlgZJwTvf2pre1H8Q3ZE/sqcYQ13esLV9nU8R2RL vknXp1AFxmafy14vEhVQDktmLtb1/dgLDkt8NfhQRcpGsxwr6wAItX1ID/rbzPuCuqg+ciDgsnX 891s9A9k8j/p272qBTwF0gzQjbqkl/T25/XIPFgb4 X-Received: by 2002:a05:6a21:a97:b0:3b3:bf95:f7e3 with SMTP id adf61e73a8af0-3c1108cdbe9mr9176894637.43.1783938395218; Mon, 13 Jul 2026 03:26:35 -0700 (PDT) X-Received: by 2002:a05:6a21:a97:b0:3b3:bf95:f7e3 with SMTP id adf61e73a8af0-3c1108cdbe9mr9176874637.43.1783938394793; Mon, 13 Jul 2026 03:26:34 -0700 (PDT) Received: from hu-smankad-hyd.qualcomm.com ([202.46.22.19]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-13b924258a2sm49010603c88.1.2026.07.13.03.26.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jul 2026 03:26:34 -0700 (PDT) From: Sneh Mankad Date: Mon, 13 Jul 2026 15:55:47 +0530 Subject: [PATCH 7/7] arm64: dts: qcom: shikra: Add CPU idle states Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260713-b4-shikra_lpm_addition-v1-7-3d858df2cbbf@oss.qualcomm.com> References: <20260713-b4-shikra_lpm_addition-v1-0-3d858df2cbbf@oss.qualcomm.com> In-Reply-To: <20260713-b4-shikra_lpm_addition-v1-0-3d858df2cbbf@oss.qualcomm.com> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thomas Gleixner , Shawn Guo , Marc Zyngier Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Sneh Mankad X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1783938358; l=4857; i=sneh.mankad@oss.qualcomm.com; s=20250818; h=from:subject:message-id; bh=rQxxLM0jJkOrRdQzxvhz37dQOF0NxP1AODzN+crLYtk=; b=HMNNF2swY0UNIiA14wmbPhpGg2FHMfShS5/aKewT3nlu46iz+CqJmZZ4gE74fNJhLIJvH0JAx elJPM03GWUICheEqCjN5WsgB0cpNx0rGQW5WaodVj6o/nMMzVxAgmoi X-Developer-Key: i=sneh.mankad@oss.qualcomm.com; a=ed25519; pk=sv57EGwdcfnp6xJmoBCIT1JFSqWI+gawRHkJWj/T2B0= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzEzMDEwOCBTYWx0ZWRfX34xsBcrHTj0V /OEDf3Zez7XpKiLIhdxIYLX8OdOrFuyP5plBanVNsselmx2Q9Nq23cPAzdZPSUVSbpuvVLWa7pA vFv5QaxXqvzVRcT/nzhNF+qk/3dPeN3VH5Jv/79G9ATdtpKJN3vw5TVLoBSe+Lxh0M2i7xZUH55 FDOLctp88PjXWhoM8PGXdNDawucgR1b+3FM0GPv8cb1+qR8AdWPyvd0kXPXhdA2zwL/KlYNxXrH qsnTzEO/tz8MKj3sl/lI+Vl7ZqAPS46DOJrmUk0ckOC/fjA3wcXh4MlHSFYHhj3CsEjT3UnEwW2 k8n4QgIUIAgHYUqh069hKc9nNJBFnmXqAZ1dJg7e4stRgu72Tsc/OkhNnjX3VDV+DOLtiNPaYOT wRuE6X+3XQiqMbkh7cWMA3xGuojifgCQNVhohKRSZ3WprX5/rBDAgwtr4GJhoN5ePZECAabRI28 SQrpUaFdsbVMp+3qGbQ== X-Proofpoint-ORIG-GUID: bndV-vw0_xCe6W3eoxHrAc9EeNVLQTM3 X-Proofpoint-Spam-Info: AW1haW4tMjYwNzEzMDEwOCBTYWx0ZWRfX5+Ue7QGOG126 xeAytdbDKXpjeuLuzbWn8tHZNfKBxEmZH03FSJvn72GbBOeXPwuWmHYSX74VVkStmEkHnEykYYq Laptr8soCekNSshaJwyeRHnppvqLvgQ= X-Proofpoint-GUID: bndV-vw0_xCe6W3eoxHrAc9EeNVLQTM3 X-Authority-Analysis: v=2.4 cv=aaJRWxot c=1 sm=1 tr=0 ts=6a54bd5b cx=c_pps a=Oh5Dbbf/trHjhBongsHeRQ==:117 a=fChuTYTh2wq5r3m49p7fHw==:17 a=IkcTkHD0fZMA:10 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=Um2Pa8k9VHT-vaBCBUpS:22 a=EUspDBNiAAAA:8 a=bsYgX5F8lsGEO7NoQ3AA:9 a=QEXdDO2ut3YA:10 a=_Vgx9l1VpLgwpw_dHYaR:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-07-13_02,2026-07-10_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 phishscore=0 bulkscore=0 clxscore=1015 lowpriorityscore=0 adultscore=0 malwarescore=0 spamscore=0 suspectscore=0 impostorscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607130108 Add idle states for the CPUs as well as the whole cluster. This enables deeper-than-WFI cpuidle. Add MPM under cluster_pd power domain. Signed-off-by: Sneh Mankad --- arch/arm64/boot/dts/qcom/shikra.dtsi | 94 +++++++++++++++++++++++++++++++++++- 1 file changed, 93 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/shikra.dtsi b/arch/arm64/boot/dts/qcom/shikra.dtsi index 4e5bc9e17c8ed8914733ac9fdc9b69128b40216e..bbe198d4a476e9d3037439307a0d12ab58049de2 100644 --- a/arch/arm64/boot/dts/qcom/shikra.dtsi +++ b/arch/arm64/boot/dts/qcom/shikra.dtsi @@ -40,6 +40,8 @@ cpu0: cpu@0 { compatible = "arm,cortex-a55"; reg = <0x0 0x0>; enable-method = "psci"; + power-domains = <&cpu_pd0>; + power-domain-names = "psci"; next-level-cache = <&l3>; capacity-dmips-mhz = <1024>; dynamic-power-coefficient = <100>; @@ -50,6 +52,8 @@ cpu1: cpu@100 { compatible = "arm,cortex-a55"; reg = <0x0 0x100>; enable-method = "psci"; + power-domains = <&cpu_pd1>; + power-domain-names = "psci"; next-level-cache = <&l3>; capacity-dmips-mhz = <1024>; dynamic-power-coefficient = <100>; @@ -60,6 +64,8 @@ cpu2: cpu@200 { compatible = "arm,cortex-a55"; reg = <0x0 0x200>; enable-method = "psci"; + power-domains = <&cpu_pd2>; + power-domain-names = "psci"; next-level-cache = <&l3>; capacity-dmips-mhz = <1024>; dynamic-power-coefficient = <100>; @@ -70,6 +76,8 @@ cpu3: cpu@300 { compatible = "arm,cortex-a78c"; reg = <0x0 0x300>; enable-method = "psci"; + power-domains = <&cpu_pd3>; + power-domain-names = "psci"; next-level-cache = <&l2_3>; capacity-dmips-mhz = <1946>; dynamic-power-coefficient = <489>; @@ -105,6 +113,61 @@ core0 { }; }; + idle-states { + entry-method = "psci"; + + little_cpu_sleep_0: cpu-sleep-0-0 { + compatible = "arm,idle-state"; + idle-state-name = "little-power-down"; + arm,psci-suspend-param = <0x40000003>; + entry-latency-us = <549>; + exit-latency-us = <901>; + min-residency-us = <1774>; + local-timer-stop; + }; + + little_cpu_sleep_1: cpu-sleep-0-1 { + compatible = "arm,idle-state"; + idle-state-name = "little-pll-power-down"; + arm,psci-suspend-param = <0x40000004>; + entry-latency-us = <702>; + exit-latency-us = <915>; + min-residency-us = <4001>; + local-timer-stop; + }; + + big_cpu_sleep_0: cpu-sleep-1-0 { + compatible = "arm,idle-state"; + idle-state-name = "big-power-down"; + arm,psci-suspend-param = <0x40000003>; + entry-latency-us = <523>; + exit-latency-us = <1244>; + min-residency-us = <2207>; + local-timer-stop; + }; + + big_cpu_sleep_1: cpu-sleep-1-1 { + compatible = "arm,idle-state"; + idle-state-name = "big-pll-power-down"; + arm,psci-suspend-param = <0x40000004>; + entry-latency-us = <526>; + exit-latency-us = <1854>; + min-residency-us = <5555>; + local-timer-stop; + }; + }; + + domain_idle_states: domain-idle-states { + cluster_sleep_apss_off: cluster-sleep-0 { + compatible = "domain-idle-state"; + idle-state-name = "cluster-power-down"; + arm,psci-suspend-param = <0x41000044>; + entry-latency-us = <2752>; + exit-latency-us = <3038>; + min-residency-us = <6118>; + }; + }; + l3: l3-cache { compatible = "cache"; cache-level = <3>; @@ -144,6 +207,35 @@ pmu-a78c { psci { compatible = "arm,psci-1.0"; method = "smc"; + + cpu_pd0: power-domain-cpu0 { + #power-domain-cells = <0>; + power-domains = <&cluster_pd>; + domain-idle-states = <&little_cpu_sleep_0 &little_cpu_sleep_1>; + }; + + cpu_pd1: power-domain-cpu1 { + #power-domain-cells = <0>; + power-domains = <&cluster_pd>; + domain-idle-states = <&little_cpu_sleep_0 &little_cpu_sleep_1>; + }; + + cpu_pd2: power-domain-cpu2 { + #power-domain-cells = <0>; + power-domains = <&cluster_pd>; + domain-idle-states = <&little_cpu_sleep_0 &little_cpu_sleep_1>; + }; + + cpu_pd3: power-domain-cpu3 { + #power-domain-cells = <0>; + power-domains = <&cluster_pd>; + domain-idle-states = <&big_cpu_sleep_0 &big_cpu_sleep_1>; + }; + + cluster_pd: power-domain-cluster { + #power-domain-cells = <0>; + domain-idle-states = <&cluster_sleep_apss_off>; + }; }; rpm: remoteproc { @@ -217,8 +309,8 @@ mpm: interrupt-controller { mboxes = <&apcs_glb 1>; interrupt-controller; #interrupt-cells = <2>; - #power-domain-cells = <0>; interrupt-parent = <&intc>; + power-domains = <&cluster_pd>; qcom,mpm-pin-count = <96>; qcom,mpm-pin-map = <2 275>, /* TSENS0 uplow */ <12 422>, /* DWC3 ss_phy_irq */ -- 2.34.1