From patchwork Wed Dec 20 22:12:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 181791 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2483:b0:fb:cd0c:d3e with SMTP id q3csp40843dyi; Wed, 20 Dec 2023 14:13:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IHJ85iQJ1gJAWycb/XjqZum2/4wMwr/XeB2cx1pYN5r01p+ag+RcW+elfWNDgfvmg5R4FtQ X-Received: by 2002:a17:902:780f:b0:1cf:747e:89c6 with SMTP id p15-20020a170902780f00b001cf747e89c6mr9321850pll.26.1703110425858; Wed, 20 Dec 2023 14:13:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703110425; cv=none; d=google.com; s=arc-20160816; b=qGXQF7t2ul99timaA0gDU3d9DxEo9gm2AhszY+XqqkNvAoVrYjITDy8W/Lco7zI7Rk hcoQ4LTYhm67CUMKqIVzW4Uh7E3cdDMi5QKOYfJs2MJ+iJs1xFhVuaEFcennS7dGgEE+ Hdw4oB4g6YpMGy5u7jXXDF9xdIu5YJXiE0CGIONb0dliK3/UTCkFTm1VuNZ4SiOra5g8 bZUQmqzNZVptT7bAMqXXqfaVf9oN2a8t7eW6W3Kx869qrKpDM7hCK4y6tOyH3PpdES2g LCeMijcuYdUd6+2MXBsZUDHeKvtuXgpnVt7oYpb3zLkxoNad3mBznjl7+t7tw8GhvGuf TXRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=NSm7Kkb7iQIhLnJh6bvdjkMX+zpHH9VA+QckFeFJQgc=; fh=9TjP5Br7/jShLalm0TuDyO1COBRVeysBZiyxhQJm5Ms=; b=XC85Vo97iB6V2uoIbumNokXXzbRdUotk1/YnnPn9iGfOPCaVtUvvdqkuqsunni3uwv 4/OIQ3c/3jEtzRaRrGVx7slgYBBrgEKjLyjCmK5h+CDhiSJXLJaW2JkACZMKBcYN+PuR nE4t6ydRbVRNp4kgMzMX0TgdmHucVInLcSF9+4rQuV57hFznMllLPRWIMDAtTx0KATVM 3fBgdJiDuhLgnixDJsvvrMPR6Irzznb7RedzQ8P9GaadgX2ihozNL/UfyxazN/J4SSxG 7hkWjGAQ+unMGgEw7DktfnMODEe6qR5kSXFzCqOlfADdqOU0KXUPpIin0dNqWCsWA42v 4diQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DOMevE6B; spf=pass (google.com: domain of linux-kernel+bounces-7492-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7492-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id l17-20020a170902f69100b001d3e44faf1bsi331709plg.242.2023.12.20.14.13.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 14:13:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-7492-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DOMevE6B; spf=pass (google.com: domain of linux-kernel+bounces-7492-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7492-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id A08D3283174 for ; Wed, 20 Dec 2023 22:13:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B1EDD4B5AD; Wed, 20 Dec 2023 22:13:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="DOMevE6B" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6055749885 for ; Wed, 20 Dec 2023 22:13:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-40d190044c5so1803455e9.2 for ; Wed, 20 Dec 2023 14:13:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703110378; x=1703715178; darn=vger.kernel.org; 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=NSm7Kkb7iQIhLnJh6bvdjkMX+zpHH9VA+QckFeFJQgc=; b=DOMevE6BavQ7i9/NK0hzdEcNPYd6axPghMFLE+9uMppWUWmZWOD8dUMRvzf7o7T+2y sJn0Z3DVATf556VAVR7cJPWHJ7umyLeocoZnMXXZlqdBYAJfwQSiUjruT5riPepo50EA j9G67cev5/rK3wd2lsRt5cDc+70WVuSBlU06kRkdQjTtcOaPOv6wqwH9IVOvVjeLRvpL +2qkN1Cry2zx/2/q8aH4WqFWnex6LHFzmdR9LtRoJgyiE7scmq2Vuu8bJVOVnOtj+LNB M1YlGg+Sa8h2YUuFo0oCe7kjRDJDyhvXPTyjfZDrML8thozQ3ZykvbpysFsoEdP5PCQ1 4bKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703110378; x=1703715178; 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=NSm7Kkb7iQIhLnJh6bvdjkMX+zpHH9VA+QckFeFJQgc=; b=mHcxzPvPhHIFgdXd/dho/hGMEhJvHcWmSWQDPy+0AyYNLXvKmOOSNWgDCNI6XXmRHY 2+lz/NqIonU5ELlf202NaIWkQjkMwweI2Wv50asKD0BSgH3AVVCyFymXux/60FL7sOMY QXxli7lvrc8sPPnVEXn/OnBpe4h+lVep9nKX7g5VrpwoRZAScfdb+NHb6F/hzDKxemIX y1jdnCORNEhAonHwkpMwAQAprFhvMgyYSvUF8IpKNLsRqdbVYRGAf/SnXToL8pSG0CH4 3B6KCIsp90Wsb132VS8qukCWRvd0ZmTxUeQpAPCRRS97BCIDuO8HvTlFFrqmNcSAl4sK RsfA== X-Gm-Message-State: AOJu0Yw7bDAesptsezP329fqrB2K9DHtuMKLZ9gAbEU/+/u+Mt9IGR0C bFkxrjP3+6hTSpaaefvwPEcHhQ== X-Received: by 2002:a05:600c:4fc5:b0:40c:902:dc25 with SMTP id o5-20020a05600c4fc500b0040c0902dc25mr211199wmq.51.1703110378637; Wed, 20 Dec 2023 14:12:58 -0800 (PST) Received: from [10.167.154.1] (178235179206.dynamic-4-waw-k-1-3-0.vectranet.pl. [178.235.179.206]) by smtp.gmail.com with ESMTPSA id x22-20020a170906135600b00a235f3b8259sm254654ejb.186.2023.12.20.14.12.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 14:12:58 -0800 (PST) From: Konrad Dybcio Date: Wed, 20 Dec 2023 23:12:54 +0100 Subject: [PATCH RFT v2 1/3] arm64: dts: qcom: sc8280xp: Add lower cluster idle states Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20230619-topic-sc8280xp-idle-v2-1-cde50bf02f3c@linaro.org> References: <20230619-topic-sc8280xp-idle-v2-0-cde50bf02f3c@linaro.org> In-Reply-To: <20230619-topic-sc8280xp-idle-v2-0-cde50bf02f3c@linaro.org> To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Johan Hovold Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio , Krzysztof Kozlowski , Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1703110375; l=1697; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=JjG1dfCZcMMBaOd+NpvseWTXSJQeolxAsWRg/zSEauw=; b=fNvoy8VUX06ZR/89piYsrqsxZDd9/vblFAD1lS1fiyyeTkkxj2kihoijzFB1il2WOsKSY+dVx NOYxHqMdkEKCIntWIvRiDLojaxRGCk6XTS+nb2TjIRxQaeTy6QANkkI X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785840717935336417 X-GMAIL-MSGID: 1785840717935336417 Apart from a total LLCC + APSS power collapse, SC8280XP can also put either the DSU rail (CPU + L3), or VDD_CX in power collapse. Add support for these lower idle states to allow more flexibility. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi index febf28356ff8..ca56bbac4353 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi @@ -286,7 +286,23 @@ BIG_CPU_SLEEP_0: cpu-sleep-1-0 { }; domain-idle-states { - CLUSTER_SLEEP_0: cluster-sleep-0 { + CLUSTER_SLEEP_APSS_OFF: cluster-sleep-0 { + compatible = "domain-idle-state"; + arm,psci-suspend-param = <0x41000044>; + entry-latency-us = <2752>; + exit-latency-us = <3048>; + min-residency-us = <6118>; + }; + + CLUSTER_SLEEP_CX_OFF: cluster-sleep-1 { + compatible = "domain-idle-state"; + arm,psci-suspend-param = <0x41002344>; + entry-latency-us = <3263>; + exit-latency-us = <4562>; + min-residency-us = <8467>; + }; + + CLUSTER_SLEEP_AOSS_SLEEP: cluster-sleep-2 { compatible = "domain-idle-state"; arm,psci-suspend-param = <0x4100c344>; entry-latency-us = <3263>; @@ -634,7 +650,7 @@ CPU_PD7: power-domain-cpu7 { CLUSTER_PD: power-domain-cpu-cluster0 { #power-domain-cells = <0>; - domain-idle-states = <&CLUSTER_SLEEP_0>; + domain-idle-states = <&CLUSTER_SLEEP_APSS_OFF &CLUSTER_SLEEP_CX_OFF &CLUSTER_SLEEP_AOSS_SLEEP>; }; };