Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp4843754rdb; Fri, 29 Dec 2023 16:06:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IHyG98kP+xTIoSqWoGRqUy0et8ebR852Hyrr9tlwHlolK6xyVZ/XcOkqa+Dy7ZiJGC1nv3H X-Received: by 2002:a17:90b:1012:b0:28c:762:e71a with SMTP id gm18-20020a17090b101200b0028c0762e71amr14487199pjb.43.1703894806850; Fri, 29 Dec 2023 16:06:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703894806; cv=none; d=google.com; s=arc-20160816; b=ziIHXeLTuGopjPOsQyA+leIf5/CwGTV0HA5qoDCCE52tsu50zhzeeSQYozUpFjfpTZ oeflT1sDinAOSuicySH0Mm2HI0FFC515rEe5Tg+/6fKidNm3+Ksgt/yNkZNiJ9xlfgKR YCJBl2pDcs5R1PcB2m9D94g9EFM1ZEMil3UBT6ikvkCBXSuZ4/NFMFZy4H/TWFQ8nsCd Rga7eHqXDGsbAbWg+iB6p4DMKDwB/uFkDnU6apryG/X39pYZxTqxjmlA4X8B+g92Xu6B OuhJcjSnffZ0a5UDkVVKXi6Fx/cJ8aAfz0bsusXvPhhlaE0naqL8k9Toot49vldKho/t AGNw== 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=5ns1dL2MqcYmvBdrUOAiqp2mC+tSGPSDtkE6TV4xq48=; fh=5QK1rh7VGKoSXX39AsKq/sVNxj7melNvWk3JL5hTkXg=; b=sTXKO5OEHbGdL2GuptzQZyoqGz80VblmbVCbNcdxiSAIn5VLlUvYXRPQHos4ogE10j iEvOSDRk3b64WlCcZKFwEoHI4oqRKvStOorsEcQu9dfgGC+DCFMAfj2fF6igshyQrtSl jdF02z/c/JpuSGPqXS0OHosGIurGPhWuy1pNIcLNkXKJwwQaM3G+yWrkICg/QtbSOMv2 v23PNHiroSEl6okJ//pfSelia12KNCd+J7aIK8wl2rfUn/UihjZ91Qju+mzz4cCcCmA5 PMepXb0ANvzWnFb0hm9F3AG8+KRYKYzcBB7AbIjll8OLJGXPyv4E7B7XECfUxEEeFQXU Yy9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rCQJAWWL; spf=pass (google.com: domain of linux-kernel+bounces-13286-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13286-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id m15-20020a17090ab78f00b0028be0f58967si15330595pjr.96.2023.12.29.16.06.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Dec 2023 16:06:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-13286-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rCQJAWWL; spf=pass (google.com: domain of linux-kernel+bounces-13286-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13286-linux.lists.archive=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id C6710B222D3 for ; Sat, 30 Dec 2023 00:06:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E4EFA18D; Sat, 30 Dec 2023 00:05:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="rCQJAWWL" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) (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 AB9363C3D for ; Sat, 30 Dec 2023 00:05:13 +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-ej1-f52.google.com with SMTP id a640c23a62f3a-a2772011f8dso162040366b.2 for ; Fri, 29 Dec 2023 16:05:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703894712; x=1704499512; 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=5ns1dL2MqcYmvBdrUOAiqp2mC+tSGPSDtkE6TV4xq48=; b=rCQJAWWLd0+lXneLnqrV2YvQOdYxJFFrQ0oj936cojSE34anZD8/EOqBXmGIqYdBiu B5X7+Rj9redNSAUCJ+zOFSXV+aI3++ejLZRpOJVxz7uf2LjDxopMOb2AkSnA4v3a913t VHVthDK748anKG1xaiLyG+Q16L5EXJGgM3W40x9CZ/6WBO9pT92lrCiwV1XFCrIkI3fC yelczvx1brT0CpLei6b6RGNGcYbdShii9etFNrgstydAsH3UPhIEUyBeV6wnpZD7NzLs eKrjkb3C4gpeDQxPswDDCST0xzpXzgkhQxjoeiGWi40PkszG9wok2BdfY9qG89skYnTF PL0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703894712; x=1704499512; 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=5ns1dL2MqcYmvBdrUOAiqp2mC+tSGPSDtkE6TV4xq48=; b=d/jFFZnvDElzk1EXEvnMDkQ7r43ANnh9yahI96+ojqvx3UrOPY9xcZ6OAk9oOObBPT 6E038nIrj8SS/RvayxIYaXXBlqwM3SlPUdqj/8jX9n8PyJUz0srbA6PBmixxHrj1EJhs eoDT2slFGHGAuyMeiBeqDpbB5G99SqU47NE1xgQusoGaTSrSoM4byN3IZ06YKz4FE+Nx sARg8OyyI8GyGf2pLDwXJRjGtvuctT7iO2+K6vMebcixy9Y/7IKE9lSy/kpkvjjTq2yt l1gGebvxWeEAtml2StstcG3gXYvJg6VP+QH14WbueOsbMJOui+R7xmrkkAntE0KRiEWM Mfzg== X-Gm-Message-State: AOJu0YynRZvxnznmqqyyTcxcWX81AP1kYb1l08oSBKao6HIFrliMHOih f2V9ckCH+svSmzOli1zs77lm/DHDlyirCw== X-Received: by 2002:a17:906:3e54:b0:a23:6259:12d2 with SMTP id t20-20020a1709063e5400b00a23625912d2mr5168883eji.69.1703894711882; Fri, 29 Dec 2023 16:05:11 -0800 (PST) Received: from [10.167.154.1] (178235179036.dynamic-4-waw-k-1-3-0.vectranet.pl. [178.235.179.36]) by smtp.gmail.com with ESMTPSA id wj6-20020a170907050600b00a26a0145c5esm8609623ejb.116.2023.12.29.16.05.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Dec 2023 16:05:11 -0800 (PST) From: Konrad Dybcio Date: Sat, 30 Dec 2023 01:05:05 +0100 Subject: [PATCH 04/10] arm64: dts: qcom: sc8180x: Add missing CPU off state 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: <20231230-topic-8180_more_fixes-v1-4-93b5c107ed43@linaro.org> References: <20231230-topic-8180_more_fixes-v1-0-93b5c107ed43@linaro.org> In-Reply-To: <20231230-topic-8180_more_fixes-v1-0-93b5c107ed43@linaro.org> To: Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vinod Koul Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1703894704; l=1425; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=+PkUcmeYaxFipnN5tNi1C4DL3fSDrQJVd/KWJuKrVDQ=; b=GoZh2GoTTHAsw7/PuHEDfeMrw1K6eOfM+uzNCWnQXqbuJR31KiRBfPtGUWe0p61kMXBU/7pEk wdHqcLHDAUlCesyPBSQIOK0hcoyvvsBBCZqTZ7YVkSibJJzkD3OvFbK X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= The CPUs can be powered off without pulling the plug from the rest of the system. Describe the idle state responsible for this. Fixes: 8575f197b077 ("arm64: dts: qcom: Introduce the SC8180x platform") Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sc8180x.dtsi | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sc8180x.dtsi b/arch/arm64/boot/dts/qcom/sc8180x.dtsi index b84fe5f3b41c..8849469d0aa1 100644 --- a/arch/arm64/boot/dts/qcom/sc8180x.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8180x.dtsi @@ -298,7 +298,15 @@ 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 = <3300>; + exit-latency-us = <3300>; + min-residency-us = <6000>; + }; + + CLUSTER_SLEEP_AOSS_SLEEP: cluster-sleep-1 { compatible = "domain-idle-state"; arm,psci-suspend-param = <0x4100a344>; entry-latency-us = <3263>; @@ -582,7 +590,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_AOSS_SLEEP>; }; }; -- 2.43.0