From patchwork Fri Mar 3 21:58:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 64105 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp681581wrd; Fri, 3 Mar 2023 15:41:17 -0800 (PST) X-Google-Smtp-Source: AK7set8DqQ3pyll+6JsCKwsPsNRwEgepLbI/HJKJmifb3Bje27tn4FK91YqBwLRU+mG1AU3mp1oY X-Received: by 2002:aa7:d958:0:b0:4ac:bf55:e943 with SMTP id l24-20020aa7d958000000b004acbf55e943mr3502002eds.34.1677886876915; Fri, 03 Mar 2023 15:41:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677886876; cv=none; d=google.com; s=arc-20160816; b=L475xrBZLs35pGM589Kq6Kljw+bHMkeGkoQ851Y6jqHdQej3jrT7+pJ+TP8yWenMaw ZGW7h9d9KgN4sqksJPKsxVvNsKDjuB/bK7GRdxw1aSc1acV0bZwEJ5I/k2kFYb3uAbeV mlXim7W8j4GQ3KSKvWam8fSXLynvk2zCSqOlGWQR8Tuptug6qiT9uiwsdtf0ivkvEZiw 49UjbDGxmJq7pClsvvJmn2+6wa7Pvi0FKH+wHtBekGD1+hEE8xb0Lmaymt6RcM/tdHAG 4kMB+mzrmGrB58AH4Q3qAqMC0CTEqMrlph8Cu5yYUE6z945X398pj4LU69UhbpLtbinb s7Ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=VobSYi7qd6A4yHO64hTT2lEY0pFxLrSpNBSai03mo5k=; b=PcuBC0vstp5dnJDb6D1iK5EuGGZLe/lG6jcnIL/RZkjgO68MZaY4gItvj5KIS6u4dD FAfbK2MpXYy3HDLcvm5UIGbj75LNXnO/WF7mSxBNXRrlGIgRBKaGDwD/tTx4t6//dkH/ 7Tn7qB/0/CSFsQ82p66V/WmNxMRfpVU4IhFaPyCUwlQnABMrR0GL7qyioBfaX7iv6hVn tW1G7YcLYMaRi3ku1UgaH4TszhT6fHc2F2Z/r7kgfQGyW43x2Q/8duPAzmXmXv9c2YD7 /Yeg/qyyBertK8fRb0UvrtRK6UxvfsYDhldFxjbwpdrOQQCAg15JGHtkrisV6HYSbAf+ KGgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=C9TJChBA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m3-20020a50ef03000000b004acc00fed01si3620040eds.589.2023.03.03.15.40.52; Fri, 03 Mar 2023 15:41:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=C9TJChBA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S232039AbjCCWYM (ORCPT + 99 others); Fri, 3 Mar 2023 17:24:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233761AbjCCWXv (ORCPT ); Fri, 3 Mar 2023 17:23:51 -0500 Received: from mail-ed1-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16A506BC06 for ; Fri, 3 Mar 2023 14:16:23 -0800 (PST) Received: by mail-ed1-f46.google.com with SMTP id g3so16045656eda.1 for ; Fri, 03 Mar 2023 14:16:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1677881410; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=VobSYi7qd6A4yHO64hTT2lEY0pFxLrSpNBSai03mo5k=; b=C9TJChBA8vpMjOyzGxRMzpxr5Zg/8kF/D3jTofcS3rFayM7ph23x0lpzX9Es8bWBar Pzhy3fmVnEGGzmDfhuOAXBqVVCoYrZAQMRq8gZlRdA58obJky7NM5KIDvxPfVRHUA6Se nEzwZo+lmybu7FeLEc728rDw9vW40LQU4gUkGpVTMoztXMR1ImzarDxgY/p4e+yUGEyj 2HAW2hjWoaSz6Z3HSj3DT3L8an9ygvVO1iwhSqDgSkdudej3FxYJlov/KQkG5/EdzAwf wlK5cFgdwgIqCbXHD9toic2nre6daJjUdAYLDI422gUfFoeI4HbcRlLxxFu/D2QMCHgh qhvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677881410; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VobSYi7qd6A4yHO64hTT2lEY0pFxLrSpNBSai03mo5k=; b=KWQjcMNJUY+6NFn0K2k2jwv7IrggylfHh7CBsvVwWuP69P3B7NQfhRevS8h9Ss9hZE 5KGUjGK2ymJPvMit7VOwoLI0ALNCHk2dwd+/oNcDXRrIHBWxVmIzHCqRmAFH3MHdK+yV FUFRx6I/yy4gOXoYPPCWG0DPBjTrrJ5AToI23m/C433MzCOjQzqmr37bRrYq8EFapjVl bM9ZwOUVeNIWg0L8C2tU2YFbt2ALjDVfKJi7vQxFE6CQBNUF1NboF33wJxuAMFbPA+yd CW8LoWROYCFGIFmCo1I81FBSUAa24qBS3JDpaWl/eQng4roJ59f0aT/Lt0+EKdQ20ufA uRZQ== X-Gm-Message-State: AO0yUKUOtg1l/YBB2l8btl/af69D+OLupvnboio+Max41diZbAkNg/CF pWpZ0XiYulCgT2LH5QJWk96xeQb1pRPfn6tWu2E= X-Received: by 2002:ac2:522e:0:b0:4db:56e:427c with SMTP id i14-20020ac2522e000000b004db056e427cmr838136lfl.56.1677880712122; Fri, 03 Mar 2023 13:58:32 -0800 (PST) Received: from [192.168.1.101] (abym99.neoplus.adsl.tpnet.pl. [83.9.32.99]) by smtp.gmail.com with ESMTPSA id e27-20020ac2547b000000b004cafa01ebbfsm552670lfn.101.2023.03.03.13.58.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 13:58:31 -0800 (PST) From: Konrad Dybcio Date: Fri, 03 Mar 2023 22:58:14 +0100 Subject: [PATCH 14/15] arm64: dts: qcom: sm6375: Introduce C3 power state for both ARM clusters MIME-Version: 1.0 Message-Id: <20230303-topic-sm6375_features0_dts-v1-14-8c8d94fba6f0@linaro.org> References: <20230303-topic-sm6375_features0_dts-v1-0-8c8d94fba6f0@linaro.org> In-Reply-To: <20230303-topic-sm6375_features0_dts-v1-0-8c8d94fba6f0@linaro.org> To: Amit Kucheria , Thara Gopinath , Andy Gross , Bjorn Andersson , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Rob Herring , Krzysztof Kozlowski , Georgi Djakov , Sibi Sankar Cc: linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1677880689; l=3486; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=BoPm/b3+zv1C9oti+VeDmiDfZTtPEFlzg5/g/B0wkuM=; b=r1bhNl8KZSXM0Ex+wdQb5ZfkteY5xsSugf2fNelDZMgFcAYPBGdoIDJjokE8XJrDiDxGTrPSn3KA Wcb7o/30AXeoYYWSE+v6cDp0kLjcR1KnXuNsyGhet+Wv4Rlrcf9s X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759391909785728425?= X-GMAIL-MSGID: =?utf-8?q?1759391909785728425?= Introduce the C3 power state, which - to the best of my understanding - gates the CPU clock, but does not shut off the power rail. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm6375.dtsi | 36 ++++++++++++++++++++++++++++-------- 1 file changed, 28 insertions(+), 8 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm6375.dtsi b/arch/arm64/boot/dts/qcom/sm6375.dtsi index 05d8d6a012b6..5a6661dbde08 100644 --- a/arch/arm64/boot/dts/qcom/sm6375.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6375.dtsi @@ -207,6 +207,16 @@ core7 { idle-states { entry-method = "psci"; + LITTLE_CPU_SLEEP_0: cpu-sleep-0-0 { + compatible = "arm,idle-state"; + idle-state-name = "silver-power-collapse"; + 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 = "silver-rail-power-collapse"; @@ -217,6 +227,16 @@ LITTLE_CPU_SLEEP_1: cpu-sleep-0-1 { local-timer-stop; }; + BIG_CPU_SLEEP_0: cpu-sleep-1-0 { + compatible = "arm,idle-state"; + idle-state-name = "gold-power-collapse"; + 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 = "gold-rail-power-collapse"; @@ -268,49 +288,49 @@ psci { CPU_PD0: power-domain-cpu0 { #power-domain-cells = <0>; power-domains = <&CLUSTER_PD>; - domain-idle-states = <&LITTLE_CPU_SLEEP_1>; + 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_1>; + 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_1>; + 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 = <&LITTLE_CPU_SLEEP_1>; + domain-idle-states = <&LITTLE_CPU_SLEEP_0 &LITTLE_CPU_SLEEP_1>; }; CPU_PD4: power-domain-cpu4 { #power-domain-cells = <0>; power-domains = <&CLUSTER_PD>; - domain-idle-states = <&LITTLE_CPU_SLEEP_1>; + domain-idle-states = <&LITTLE_CPU_SLEEP_0 &LITTLE_CPU_SLEEP_1>; }; CPU_PD5: power-domain-cpu5 { #power-domain-cells = <0>; power-domains = <&CLUSTER_PD>; - domain-idle-states = <&LITTLE_CPU_SLEEP_1>; + domain-idle-states = <&LITTLE_CPU_SLEEP_0 &LITTLE_CPU_SLEEP_1>; }; CPU_PD6: power-domain-cpu6 { #power-domain-cells = <0>; power-domains = <&CLUSTER_PD>; - domain-idle-states = <&BIG_CPU_SLEEP_1>; + domain-idle-states = <&BIG_CPU_SLEEP_0 &BIG_CPU_SLEEP_1>; }; CPU_PD7: power-domain-cpu7 { #power-domain-cells = <0>; power-domains = <&CLUSTER_PD>; - domain-idle-states = <&BIG_CPU_SLEEP_1>; + domain-idle-states = <&BIG_CPU_SLEEP_0 &BIG_CPU_SLEEP_1>; }; CLUSTER_PD: power-domain-cpu-cluster0 {