From nobody Fri Dec 26 21:28:32 2025 Received: from mail-lj1-f181.google.com (mail-lj1-f181.google.com [209.85.208.181]) (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 B31C739E for ; Sat, 30 Dec 2023 00:05:09 +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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="wRqi7/e3" Received: by mail-lj1-f181.google.com with SMTP id 38308e7fff4ca-2ccbbb5eb77so49512161fa.2 for ; Fri, 29 Dec 2023 16:05:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703894708; x=1704499508; 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=8FrB087Wxc7YUxgxR36o8RYypzFH7Y/v8MFiKZG/oMY=; b=wRqi7/e38kjNV/EzDUt/RgHSrSgjecukZtMXqGIX47uJdmWvxyTY/8o/+31sj/r1ZH ZX/1h2Ti5tLzTMcJx77QGEmQVRMehUKreOHQN5Mx0HlMoN9ZxpbW3dPxwLrKrqpYXlju AeALO5JDAE/q+sBh3mcPymKOk6AtPMHqfUlxlJEBjpfa8yDmkBCqeDWmCpkXkGMfqppp FCTbWpCeY0vJHKDPNiE1MiWtwvOHq5U9FUlI5csVDyRa3HMAasFH4gDLRqXfqNqqD5VW VFcwaFqAZf+/JXikgP7HP1JionaMs7eCSicKFY5RqfvuMJLlPQmmjMtjgx4p8B/+T3B+ BUAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703894708; x=1704499508; 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=8FrB087Wxc7YUxgxR36o8RYypzFH7Y/v8MFiKZG/oMY=; b=hzYcrMKTyfiN5pR4l0fCfH97lURuBRNUka8l4xuKQ3HEBBbLb6/wMY33089qGt3k/1 xR+bdGmJ5sPwE9klqTwvbsfELf1Jt4fwASMIME8y9/V9Hc5fAh2x0ue1I3eI+nzSckiE ZAOVS+WBObQGJs/v4CRSodc8bGgTgIoswtt35BYQDFW09NMVoEHfLetAqvTBYyc61XLD EdMW/TSB/ZxWjI8fXILF2GGgvaKWr1lWD2T7Rj6mQVwzX9zXtbluEAOjjlVypTA8KbxY 77QcfVcF1335Jq/mXSbHay9yreEy7drTTgJISA7sBHlEbKyHo+nPnQQEC1juPZNRtYOH 652w== X-Gm-Message-State: AOJu0YyrwAf80kRMuP50u8j6onpqIdgo7GcmzzcIGslKXZ9HlkDkdEMU YlAhUins4BJtuBVRGVlHp71NhCV7xDS7XQ== X-Google-Smtp-Source: AGHT+IESbUUUrskneqleCfW1B53y5DbAic4Lq+wysIajPwIXYTa484l7ZF5yNXRCtBMvbbbN8GaV2g== X-Received: by 2002:ac2:4c4e:0:b0:50e:885d:4d1a with SMTP id o14-20020ac24c4e000000b0050e885d4d1amr2495677lfk.93.1703894707814; Fri, 29 Dec 2023 16:05:07 -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.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Dec 2023 16:05:07 -0800 (PST) From: Konrad Dybcio Date: Sat, 30 Dec 2023 01:05:02 +0100 Subject: [PATCH 01/10] dt-bindings: clock: gcc-sc8180x: Add the missing CX power domain 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: quoted-printable Message-Id: <20231230-topic-8180_more_fixes-v1-1-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=1455; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=EUFmaZVLsy2eKPdw1XRmfhHY9zTvCfCahSEoyNR/DAs=; b=I2aj2RRwuDf5hoAahsDQJFfeq4V502Q5JD7r0SaMt3xBsmDWkIWZd6hWvHdvWZwKgad5/5ihT tLvzdi/rb+kCweiPlNERqaQcMo5yjGj0bjq5A3JAPNayy3DAn1Xj529 X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= The GCC block is (mostly) powered by the VDD_CX rail. Allow specifying it in power-domains. Signed-off-by: Konrad Dybcio Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/clock/qcom,gcc-sc8180x.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/qcom,gcc-sc8180x.yaml = b/Documentation/devicetree/bindings/clock/qcom,gcc-sc8180x.yaml index 6c4846b34e4b..a1085ef4fd05 100644 --- a/Documentation/devicetree/bindings/clock/qcom,gcc-sc8180x.yaml +++ b/Documentation/devicetree/bindings/clock/qcom,gcc-sc8180x.yaml @@ -31,10 +31,15 @@ properties: - const: bi_tcxo_ao - const: sleep_clk =20 + power-domains: + items: + - description: CX domain + required: - compatible - clocks - clock-names + - power-domains =20 allOf: - $ref: qcom,gcc.yaml# @@ -44,6 +49,7 @@ unevaluatedProperties: false examples: - | #include + #include clock-controller@100000 { compatible =3D "qcom,gcc-sc8180x"; reg =3D <0x00100000 0x1f0000>; @@ -51,6 +57,7 @@ examples: <&rpmhcc RPMH_CXO_CLK_A>, <&sleep_clk>; clock-names =3D "bi_tcxo", "bi_tcxo_ao", "sleep_clk"; + power-domains =3D <&rpmhpd SC8180X_CX>; #clock-cells =3D <1>; #reset-cells =3D <1>; #power-domain-cells =3D <1>; --=20 2.43.0 From nobody Fri Dec 26 21:28:32 2025 Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (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 B0C05EDE for ; Sat, 30 Dec 2023 00:05:10 +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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="sDDcCvWA" Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-40d4103aed7so88646615e9.3 for ; Fri, 29 Dec 2023 16:05:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703894709; x=1704499509; 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=DylJjoN2AOQJa9PDb6h9+DyUFHVNz6qyFwVRj7sTsTU=; b=sDDcCvWASHGgNoPAz6+5JKJ99/7dQLngOY/fTpvmI1xuTwhpkj8q9Hgenyo9Tnz8RY UxEmZPyeTyNCwqHzoi0gjZjDa9bceUsoddNEWUi0wHx5B/McdJN83IB6wFAxVTnG5mSm SPcqea4QRG9o5ykIDdgtpXYYNNSeHN4wiZ2cNf8mcEiaw0rhW15fzq47fz5Sp9s2+PKt RuxWZDOKuCsuzJ7h8+fqHmBb1goLv4o/CkiHRzqPZ3FlQMyoKDy+J9SUkS+psy6EJYSQ Tt0lGWGs3Zs4eDV3zSlrZK9RBwvkMYnh5CDtZ0NfuziAEvaCAyPGrKln/g7Y/mavKUFb Cifw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703894709; x=1704499509; 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=DylJjoN2AOQJa9PDb6h9+DyUFHVNz6qyFwVRj7sTsTU=; b=pcBvO4p1MP8qWOY4fs10rPOW1IUl6HRT2R49OeMXVxnnf1E9s+t+BHvlf8ssk1u8CX 8rtoBNztbKaO5cMTHYpMsSbdP8d0ZehwRDRPfmcrUIoGDUS8fSY+jrgmwd779x92GV/x T52ex6pn6TER4kWLhN4Sr8mVegOXd1Hzom1jvYgeDijAQIFzr8RhUwKTiPZ0PaKR10If GACGUziAjaj4VhRwbEbsgF/XVyCzpIqxQcoL5C6WQg5fI8LmpkqnHBeNDLVQlNxb4R/8 QzkuWevdZApz9qcoKKm6axR50yW7uMIZx5MzsKAhAc95xrjzi0q0I3y6vAvzwFVOT0a9 UQdw== X-Gm-Message-State: AOJu0YwT4Y0UezJk0QT65r9Tv6z94uDLJMLTtCo3yES0kHIOQkEF0ozd MEoaGGR5NkYYNR6rPnUuxJ9O5lZy/NKucw== X-Google-Smtp-Source: AGHT+IHgBEVZCQPeZ7wQeWmxoAZQUE/CrhGn5b6M1zQBcWdEj/DocV8lmwXy973Gbq5wsF9BFbmx0Q== X-Received: by 2002:a05:600c:2184:b0:40d:5c4c:a4ea with SMTP id e4-20020a05600c218400b0040d5c4ca4eamr3071971wme.162.1703894709018; Fri, 29 Dec 2023 16:05:09 -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.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Dec 2023 16:05:08 -0800 (PST) From: Konrad Dybcio Date: Sat, 30 Dec 2023 01:05:03 +0100 Subject: [PATCH 02/10] arm64: dts: qcom: sc8180x: Hook up VDD_CX as GCC parent domain 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: quoted-printable Message-Id: <20231230-topic-8180_more_fixes-v1-2-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=804; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=fM2ScZAfkldMIMY7bpO8Z6Zd7TjylAMnSp6mV61kAh4=; b=I77TlPoSmEB+MCaCPOsdmiDbqhbXtFivDq/xBBbbHln8RMASgu78WMhScmpnAtna2R2pFSxPt CCXTwLktNA6BV7LDirK2FuMfq6+NHAFM/dxToRlM5FCXEq11IvHFW/r X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= Most of GCC is powered by the CX rail. Describe that relationship to let the performance state requests trickle up the chain. Fixes: 8575f197b077 ("arm64: dts: qcom: Introduce the SC8180x platform") Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sc8180x.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/qcom/sc8180x.dtsi b/arch/arm64/boot/dts/qc= om/sc8180x.dtsi index 0430d99091e3..91fd805f17a1 100644 --- a/arch/arm64/boot/dts/qcom/sc8180x.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8180x.dtsi @@ -782,6 +782,7 @@ gcc: clock-controller@100000 { clock-names =3D "bi_tcxo", "bi_tcxo_ao", "sleep_clk"; + power-domains =3D <&rpmhpd SC8180X_CX>; }; =20 qupv3_id_0: geniqup@8c0000 { --=20 2.43.0 From nobody Fri Dec 26 21:28:32 2025 Received: from mail-ej1-f44.google.com (mail-ej1-f44.google.com [209.85.218.44]) (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 9C8BC17FD for ; Sat, 30 Dec 2023 00:05:11 +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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="kdFb1RfS" Received: by mail-ej1-f44.google.com with SMTP id a640c23a62f3a-a2356bb40e3so598428666b.1 for ; Fri, 29 Dec 2023 16:05:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703894710; x=1704499510; 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=L8sA4ChLD75pHX/4Yq1MBHLIl2gZnbIbFBalQ5XunNo=; b=kdFb1RfSQV3LBbeb5jGxw27iD36TJq960nuA15nUE/Ax432nKNIvuXfw0g8BahySRa Ayr6ISCVZ0oYmWZevkGlskr2RvMzGf+S4T86v57V1h/HHBY/fNsjiAxdBH1HB/vRomq+ KzifagurxtwkbxL0tBvcCFzTC86rEB3J+ov2FvkOOXPgdg+rkZaVUS564rOFt5Yjk4HN FfBcGH/9pr+gG1uy6zlGxHv+fVpazrIyhAlKi/QUOhpKyY0kbnVYPXYoiJWJxlTVXu7R C50lypET56HrrDbuJpUXc3CUSqV1CmjM1R+EWVGVQlM0ihZfoXu9rZUtEFY5VHHxCjzL ml0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703894710; x=1704499510; 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=L8sA4ChLD75pHX/4Yq1MBHLIl2gZnbIbFBalQ5XunNo=; b=MyJBVsfKwQt9GGB1/B3+7EDUeidVxOrSCRyRII5DWzTCP72IDPf2uae/0Ooolp8Tfa BmSR4CPbsjVSoffzdkMUbwmU59AeVpi1NHlBIdDMuUzXZo5ZhWoO/zRxTT2+H5g0veDP KhTksLVkUeHPMxp73j/CBAulxYp5qQjEwQslY05i1dlLvu/uw9KpEJkPr3fXsZxszz0v RYULVvuGjA0daiga+I1N5EV42R4IJ+/V56+6SV1s5MUcwBXfyIpnQIosx5tr0MDStf+N +1amHI4feh056k3P1nG6hxjkZV+0Zze28I4t9XJS50DdI5BfjOugRoTl3iR+MFa9inv8 4qPA== X-Gm-Message-State: AOJu0Yxy/+uqGPDfIFD0Hiyh5abCJS1GSSl5qssCEtcNERL9pdCTg7NZ auSP9OWtFj+GCb2B0FHHAstt9xf2heVKFQ== X-Google-Smtp-Source: AGHT+IE8VFpmWHmMmHDfb+A3q8/H8yoxRyoe+6GjRHXpeEZ/YA0aDNMNl9Fcvy/2XylTPC9tX2yhVA== X-Received: by 2002:a17:906:b0d8:b0:9fe:81a:c258 with SMTP id bk24-20020a170906b0d800b009fe081ac258mr7213863ejb.26.1703894710156; Fri, 29 Dec 2023 16:05:10 -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.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Dec 2023 16:05:09 -0800 (PST) From: Konrad Dybcio Date: Sat, 30 Dec 2023 01:05:04 +0100 Subject: [PATCH 03/10] arm64: dts: qcom: sc8180x: Fix up big CPU idle state entry latency 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: quoted-printable Message-Id: <20231230-topic-8180_more_fixes-v1-3-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=894; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=6wrG2Jpoj6eZT8p2XPAWwfQxOC1DOIB+2+k+9dXgcP0=; b=HzNY925Wz10b8M/4cxMAZfm3u+hhvvZ0QaYmr/D+rfV/3Rr6hgBR9zXt+t2H0XJa4iTlR5T9T G+t+se02dfACQy2pga8XU7qzCyWZFpMR75WLRo2F0l5xOAU2s1TxxIb X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= The entry latency was oddly low.. Turns out somebody forgot about a second '1'! Fix it. Fixes: 8575f197b077 ("arm64: dts: qcom: Introduce the SC8180x platform") Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sc8180x.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sc8180x.dtsi b/arch/arm64/boot/dts/qc= om/sc8180x.dtsi index 91fd805f17a1..b84fe5f3b41c 100644 --- a/arch/arm64/boot/dts/qcom/sc8180x.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8180x.dtsi @@ -290,7 +290,7 @@ LITTLE_CPU_SLEEP_0: cpu-sleep-0-0 { BIG_CPU_SLEEP_0: cpu-sleep-1-0 { compatible =3D "arm,idle-state"; arm,psci-suspend-param =3D <0x40000004>; - entry-latency-us =3D <241>; + entry-latency-us =3D <2411>; exit-latency-us =3D <1461>; min-residency-us =3D <4488>; local-timer-stop; --=20 2.43.0 From nobody Fri Dec 26 21:28:32 2025 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="rCQJAWWL" 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-Google-Smtp-Source: AGHT+IGfpuScaZ04+MVJ2d4ytaFY0u6SlkdpMgDvfu/Ebs0FpIOUqi33kSyXqTvp561KIHcYd2svTw== 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: quoted-printable 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/qc= om/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 { }; =20 domain-idle-states { - CLUSTER_SLEEP_0: cluster-sleep-0 { + CLUSTER_SLEEP_APSS_OFF: cluster-sleep-0 { + compatible =3D "domain-idle-state"; + arm,psci-suspend-param =3D <0x41000044>; + entry-latency-us =3D <3300>; + exit-latency-us =3D <3300>; + min-residency-us =3D <6000>; + }; + + CLUSTER_SLEEP_AOSS_SLEEP: cluster-sleep-1 { compatible =3D "domain-idle-state"; arm,psci-suspend-param =3D <0x4100a344>; entry-latency-us =3D <3263>; @@ -582,7 +590,7 @@ CPU_PD7: power-domain-cpu7 { =20 CLUSTER_PD: power-domain-cpu-cluster0 { #power-domain-cells =3D <0>; - domain-idle-states =3D <&CLUSTER_SLEEP_0>; + domain-idle-states =3D <&CLUSTER_SLEEP_APSS_OFF &CLUSTER_SLEEP_AOSS_SLE= EP>; }; }; =20 --=20 2.43.0 From nobody Fri Dec 26 21:28:32 2025 Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.41]) (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 8485E63D5 for ; Sat, 30 Dec 2023 00:05:15 +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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="OQsboK5z" Received: by mail-lf1-f41.google.com with SMTP id 2adb3069b0e04-50e68e93be1so6400544e87.0 for ; Fri, 29 Dec 2023 16:05:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703894714; x=1704499514; 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=hdzQ6yptIX2njJ0HGgMcRRxrAbv6o00bIQPPcaFemQk=; b=OQsboK5zx/Ow/FpT9GEFU/73ZZv2yGtI74qaNmcjXHA41rR8NAFU1sJ9Q4aLF6p1dp QrJC2ygU8Vepk2BHcQ6LlHH6WQodXg4sKrtMM7FZ4krsxHhW9l1CICLFfyYR+DAVP/RY ETyoAb+qUfYI/EY8NScdMjlvCIjBQmKtuZnDbjME80Gu6k5oULij6WUZqpqWCWqQuoxw 6f0yY+tPeBpJX+55v1n32p7xigU8jBw6hq3sEvsUJn8eUgqnRNYmIq6Cd5pJd24+JivQ iUMqAxVrZEs2BOxGiyFD106qBeJFbDgizCVrPWmTfNc1+BrDzs2QawkqWXHdIJIc1B8w +rRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703894714; x=1704499514; 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=hdzQ6yptIX2njJ0HGgMcRRxrAbv6o00bIQPPcaFemQk=; b=h/QGIMMMKKEtHDBLf969c26RJE0CCkrc3k8Np/c60bKNZWLuh85u4Gg9Jkwkx6onB9 9ChkfM2r212e0gzsUvgVFmPtVfshGuaFGB09fNb8KDMnVYq2CyCba/SqVbmRVlL7NbLI GgQbkXTJuta92IwfYrHCBG2VLPwhrFV3+gC5uJ6beGqhbUu81NfRHQoKlhC5MtHeB7HU nY8vp66kbohdq0JNfn/VjZneIil7TMXXh64kHcG6qiWXIL0HnepdbruFYT4mmCnNrQdM HddKcdovyOpWlPwxTxKT/Ra4SI1YvKCbsoko+w6sJfSRJw1lYYbGsuiXp9l7iELSstZ0 aUUQ== X-Gm-Message-State: AOJu0YwuITuuqpF6U/0kFiVWN0nb6wL2MaopDp23g2zvGScOJq0YgtJY ELhWeuzs4F2H7yTGMT4dek31N9NScQikWQ== X-Google-Smtp-Source: AGHT+IHkJHo0JcVN0pEEyc43DnIDm7I38b446ESXoLDcibwuplTstgMHQrj8QXKgxITeKwZfb1AiBw== X-Received: by 2002:a05:6512:374f:b0:50e:7410:d5b0 with SMTP id a15-20020a056512374f00b0050e7410d5b0mr4113081lfs.28.1703894713845; Fri, 29 Dec 2023 16:05:13 -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.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Dec 2023 16:05:13 -0800 (PST) From: Konrad Dybcio Date: Sat, 30 Dec 2023 01:05:06 +0100 Subject: [PATCH 05/10] arm64: dts: qcom: sc8180x: Fix eDP PHY power-domains 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: quoted-printable Message-Id: <20231230-topic-8180_more_fixes-v1-5-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=823; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=ObS9KPr+adD530yamp8rmXpRsOgSyb9ixOlL4drF0HY=; b=Jr3YGkabU6aSzD4cFb/dwjAYacsf7jNVjfNOzcDsyKHQWtv9EvTY2/My+1aY7gkQIHjN26DmC 6iV/UZIe5hEAVqNDTDbh6UDR1GMbNGV1mtFqtioW8hAYRUmBLL01x+m X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= The (e)DP PHYs are powered by the MX line, not through the MDSS GDSC. Fix that up. Fixes: 494dec9b6f54 ("arm64: dts: qcom: sc8180x: Add display and gpu nodes") Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sc8180x.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sc8180x.dtsi b/arch/arm64/boot/dts/qc= om/sc8180x.dtsi index 8849469d0aa1..8f7f5b74cdb9 100644 --- a/arch/arm64/boot/dts/qcom/sc8180x.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8180x.dtsi @@ -3193,7 +3193,7 @@ edp_phy: phy@aec2a00 { <&dispcc DISP_CC_MDSS_AHB_CLK>; clock-names =3D "aux", "cfg_ahb"; =20 - power-domains =3D <&dispcc MDSS_GDSC>; + power-domains =3D <&rpmhpd SC8180X_MX>; =20 #clock-cells =3D <1>; #phy-cells =3D <0>; --=20 2.43.0 From nobody Fri Dec 26 21:28:32 2025 Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) (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 51F818C17 for ; Sat, 30 Dec 2023 00:05:17 +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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ynx4kxj7" Received: by mail-wr1-f42.google.com with SMTP id ffacd0b85a97d-3370769018cso1806423f8f.3 for ; Fri, 29 Dec 2023 16:05:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703894715; x=1704499515; 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=JOgi+o+MjKjY2YxOi6EGv4wA3oq59/BsZJsnakzxR5Y=; b=ynx4kxj7DITEGTK2A4oXlGnxTAzqCwD9Q3HDdzjzkgfyhXFps9ZO7WkBgGHTDjrvFG djNQfMGAVXs2YWH25881GjKqd5NfaBkhBOuiyzp2r1meMelu/sG6IjN/NJmepYd/d+vq D5LVRN2WIlDcgBjJzxpTrTFYOoW3wsQ6w1H/CQvkhcoQ8ZMDD30jzzC4Hh6tNa/L0Su5 KTnVpOLnLsNf9rgh8v7G7u55kjFhguimTVyte30pGX98F6+rCm5LlJcfrmqwXvqIE/mh PGhZrsVUm1qLrYkE9PpcZXUnsRf3NktmQ/n4skLGrxlt6HfUXyjZcmjIIQs3yTh6+buv tqMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703894715; x=1704499515; 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=JOgi+o+MjKjY2YxOi6EGv4wA3oq59/BsZJsnakzxR5Y=; b=B+ZhI0QlsUAzmYmdUmq8o8BzCEOmk6HqxjPwU0xBKe0c6/1A2IbzHkw/zEXwWG+yaV akcVvbFyDw+c+jVKpr9kJtjbS5FgHiCxWdX9mpe0zI1fC2tfXde9xrRQKQ6YcaeH+dRx Q/HK8JYVWuEJm5VDY09J+EOiPsb6J1nxx/inm/w8rXWnqk/YD9VkFlMM7gGaMgQhnjtv JZXsLTcdQg33LP+u+kN23qfnc4vm3ao+7T6BsEsKZXltJu/RfWwnTVporL9PLdPlCE7/ qEi4jLKSpClEHvCSiRTCuvFJKSLVzqMGXaUXtUJQ+TEB5DWft6FmW13ngSpTm1CnlUSF vuHA== X-Gm-Message-State: AOJu0Yyd0xHL2A+2oehEB/lmfzjb971uQ8jgCL5V1Tj+P6eS9PX+sJHc 0MFsKRb7AuBnas+gG0l8AJIHVzW9q8BKfUrN+b6oePIdgSQ= X-Google-Smtp-Source: AGHT+IFGW2LD2QW3k7rCqKitq8ItqwmF4Wvmdnno4bATw8RRQPICnYUGEn2XwykwzHPOCh840yW/fw== X-Received: by 2002:a1c:7507:0:b0:40d:581c:f317 with SMTP id o7-20020a1c7507000000b0040d581cf317mr3636946wmc.127.1703894715725; Fri, 29 Dec 2023 16:05:15 -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.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Dec 2023 16:05:15 -0800 (PST) From: Konrad Dybcio Date: Sat, 30 Dec 2023 01:05:07 +0100 Subject: [PATCH 06/10] arm64: dts: qcom: sc8180x: Don't hold MDP core clock at FMAX 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: quoted-printable Message-Id: <20231230-topic-8180_more_fixes-v1-6-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=1000; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=M8bX5G9YVihCaiyP4SOPHUALrA9FvX1X19kxYRjo79o=; b=qBSuZww/cfnY6WCaqXkt8K19wXn5NmgDE9scwK/qdrSuoEjfW6DBKSRPSIMJltFQ9bM9hN80C TfujnXtqcQXCxCmejJU+uXloO0bmM/1c6+xqffF22N8PJr0MZPWsIow X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= There's an OPP table to handle this, drop the permanent vote. Fixes: 494dec9b6f54 ("arm64: dts: qcom: sc8180x: Add display and gpu nodes") Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sc8180x.dtsi | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sc8180x.dtsi b/arch/arm64/boot/dts/qc= om/sc8180x.dtsi index 8f7f5b74cdb9..3bb9d25b1dec 100644 --- a/arch/arm64/boot/dts/qcom/sc8180x.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8180x.dtsi @@ -2732,10 +2732,8 @@ mdss_mdp: mdp@ae01000 { "rot", "lut"; =20 - assigned-clocks =3D <&dispcc DISP_CC_MDSS_MDP_CLK>, - <&dispcc DISP_CC_MDSS_VSYNC_CLK>; - assigned-clock-rates =3D <460000000>, - <19200000>; + assigned-clocks =3D <&dispcc DISP_CC_MDSS_VSYNC_CLK>; + assigned-clock-rates =3D <19200000>; =20 operating-points-v2 =3D <&mdp_opp_table>; power-domains =3D <&rpmhpd SC8180X_MMCX>; --=20 2.43.0 From nobody Fri Dec 26 21:28:32 2025 Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) (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 49F468C18 for ; Sat, 30 Dec 2023 00:05:19 +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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="hDKqGkPq" Received: by mail-lf1-f45.google.com with SMTP id 2adb3069b0e04-50e80d40a41so4440641e87.1 for ; Fri, 29 Dec 2023 16:05:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703894717; x=1704499517; 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=/m9Jpc5xx23q3C8731BxOLK6crl8Nzmn5sx1QieTmkY=; b=hDKqGkPqMgoml1iHuEDcJ4ALjd1xBXHfgWaDByK9Sqzb3vJejIMuRxWRjwa47KT8k2 R4bdT7X5Edi3JpqEOEyorIU49Nsk8w3sBHUeUSgxEyrEOpid7TfnkKQF06t3dy2Tzte3 Lki0bB0Rx8pOWZXr+iqjUMYTmt9+wt2l36NttiPf85lJG9vb9x12/mVq56wHNVeewpNH Hu5IwTRLWo0qplNRGG1z1iq1WJQrHDiTiwliZ1dlJsXAw7uRGWsN0u1hI11qIkLcHRTJ sFBJuANyPONhWldMw7Beg1LzuVGOBuj6+wltJrrRwsNHP0bbDwiDObr4WuzxWJlU62Sm hBpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703894717; x=1704499517; 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=/m9Jpc5xx23q3C8731BxOLK6crl8Nzmn5sx1QieTmkY=; b=ZKGdlUbE1UAqGA0RFla0PMIyrjxiBQaKJzMkDF2p4cIcMTSEoFVXAfASXYOxSp7TeG Xc5DeY08jgvFzcPUG+QH1WSok33iKXE2xUco+Mla8E/Db2RUd9L3uGMZDhUKLtEz9Rxk 3Rwy0mkIg3PliESzeI9zX+I97wEZQkSNzGIrD5g6kcuD81nPQPVG0PJ6iLNB6zFkgaEk 9JIzz49uHPB+tW67Y/o4UEJ/m6COz5oDl/ixpIsmtqiO0KA4Y3T5Xs0o0CxOvn1nBby2 B76OmM24Sxb8F4ir9WYWP3E3yW5qpURk3n8SbBuWM9DxwcHvUvv84eRykixbseWYV3+w b4JA== X-Gm-Message-State: AOJu0YwLnkC3r9f2eLVUZtBLfVCZzUo3M0hr3JR0kRrO5Gum4+TxW/JI DXbGxlsUwKf7Mew9M/roZPGf1ikidFrR/3Davbf8LorhMSs= X-Google-Smtp-Source: AGHT+IHdz1/fvS6Un0vTNbho/hESlCsbygpZbb9y90/mjEXYAAxdOr2wwEREYquLEVeLWliYR5RdAA== X-Received: by 2002:ac2:5b10:0:b0:50e:61c0:cfdf with SMTP id v16-20020ac25b10000000b0050e61c0cfdfmr4967583lfn.132.1703894717438; Fri, 29 Dec 2023 16:05:17 -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.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Dec 2023 16:05:16 -0800 (PST) From: Konrad Dybcio Date: Sat, 30 Dec 2023 01:05:08 +0100 Subject: [PATCH 07/10] arm64: dts: qcom: sc8180x: Require LOW_SVS vote for MMCX if DISPCC is on 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: quoted-printable Message-Id: <20231230-topic-8180_more_fixes-v1-7-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=873; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=FkcZAyjsBcuLAWyHWJ3lyBRb34DTbi9Yfrno3FHjRjI=; b=Wl/imgB5JjpgHjAWnCZdr78L6R/wet7w0VStVYhfAznYM2nJ8TDhXvPWvY/GzZ02bBjbex7Il Re7sbc8s0dVA8NKT5vXIPauXEVfGiS84bRHIZB5KoxyyahmNmi8hbhm X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= To ensure the PLLs are getting enough power, cast a vote with DISPCC so that MMCX is at least at LOW_SVS. Fixes: 494dec9b6f54 ("arm64: dts: qcom: sc8180x: Add display and gpu nodes") Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sc8180x.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/qcom/sc8180x.dtsi b/arch/arm64/boot/dts/qc= om/sc8180x.dtsi index 3bb9d25b1dec..97c139d0399d 100644 --- a/arch/arm64/boot/dts/qcom/sc8180x.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8180x.dtsi @@ -3217,6 +3217,7 @@ dispcc: clock-controller@af00000 { "edp_phy_pll_link_clk", "edp_phy_pll_vco_div_clk"; power-domains =3D <&rpmhpd SC8180X_MMCX>; + required-opps =3D <&rpmhpd_opp_low_svs>; #clock-cells =3D <1>; #reset-cells =3D <1>; #power-domain-cells =3D <1>; --=20 2.43.0 From nobody Fri Dec 26 21:28:32 2025 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 4A4C4AD58 for ; Sat, 30 Dec 2023 00:05:20 +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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="dNovx0Vx" Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-40d5ae89c72so35917855e9.2 for ; Fri, 29 Dec 2023 16:05:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703894718; x=1704499518; 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=pz+1qN8sDIROALkVJDfBjISQrkmNVmb7rHVkH8wdcu4=; b=dNovx0Vxo9aTSiqTiVzGl0tR9R6FS9CCEywdUmgvAMLgWk9X1IY8rPSd7sD6wrH4Xg 0oTHMuegGh63FV8KMMdgwCc6wnzoMne8qOWog4MXV+BGZUF5WGD5q6yNFNG0DzsI5O6z dy5iprPqlZL6dkZy3Dm/me4OMr3FEoLCE3+L7QiiTno0TcVqI+WCH9zs3SfDfJVCnmcW 058h5DD+tcJWnV1NLKqcJm3ZXRZbJUZUI8M6GP5Aao29yH2tk98fnZec2MoFePRAdMIl ZjCEDPodDsPhygKrwbPRxmetzhtdp4J6KSXpW7HolYTl8L+BhSDt+EqNUM7Q6MYJls2E TqXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703894718; x=1704499518; 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=pz+1qN8sDIROALkVJDfBjISQrkmNVmb7rHVkH8wdcu4=; b=LOA/VghQl7i2rSrQFmdKlZugsIFm82cDRMPcckniBWebh6q30q81MT0/wDDZVNzOMN PiVtxDNVKBtIZ2eTqxHNCtT1a+VS3QUrXuHkW8hYFNTbheUiOUQnXltj08unuGY+L3xa 4J7Fq8KOo+vDyGcdIlkeeKIcViygpznQ1meTab/2v/kaT6iU9ZipSNo5bOetZjvx0tDZ Zj1lN5MBF6Pk3Cpf88X+ie69i4K/jfmvRJgyIqU21mZelsR9XpmTMThPblHUQIjnbtZB bzTCOuV9OiwbFTtUc+U7ZfO2s25NbVa6yGKgDVvTrwR8fWBxt4pkPataTZHGCMzC3Fqd Aymw== X-Gm-Message-State: AOJu0Yw0hhp6l3ZZ4QifaAAJPKa1BDz33q8QQY31gGyrifVTRFtI9wEP FlXQzbDwVis6EtkoysBZMBUMIVCqsqtRBg== X-Google-Smtp-Source: AGHT+IE0FHIVc03Sz/ZJyAKXNySizHBUErjzlmA0MlsN9HeooNu5zWKJ8aKDPR9avVN7cxLmCrddxg== X-Received: by 2002:a05:600c:4e8b:b0:40d:5f5a:87a6 with SMTP id f11-20020a05600c4e8b00b0040d5f5a87a6mr1542745wmq.100.1703894718617; Fri, 29 Dec 2023 16:05:18 -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.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Dec 2023 16:05:18 -0800 (PST) From: Konrad Dybcio Date: Sat, 30 Dec 2023 01:05:09 +0100 Subject: [PATCH 08/10] arm64: dts: qcom: sc8180x: Add missing CPU<->MDP_CFG path 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: quoted-printable Message-Id: <20231230-topic-8180_more_fixes-v1-8-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=1372; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=3lJzXe1NstMyF31IEWdMuuhPzQe0FelyDoBLKldb1ks=; b=g2ta9sOAkY0T8psma9NOH9zWPm1D7lFIbYyqjepxkjbLSFN9J0FQmj3/bqI+Sy2LVJuuDGIvs J7qa9MZz2dDAoC3In7j6GR3hVZI9YA+2U7g+ue+y22zH2lxorjVSA9b X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= To guarantee the required resources are enabled, describe the interconnect path between the MDSS and the CPU. Fixes: 494dec9b6f54 ("arm64: dts: qcom: sc8180x: Add display and gpu nodes") Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sc8180x.dtsi | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sc8180x.dtsi b/arch/arm64/boot/dts/qc= om/sc8180x.dtsi index 97c139d0399d..960058624a2f 100644 --- a/arch/arm64/boot/dts/qcom/sc8180x.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8180x.dtsi @@ -2701,9 +2701,15 @@ mdss: mdss@ae00000 { interrupt-controller; #interrupt-cells =3D <1>; =20 - interconnects =3D <&mmss_noc MASTER_MDP_PORT0 0 &mc_virt SLAVE_EBI_CH0 = 0>, - <&mmss_noc MASTER_MDP_PORT1 0 &mc_virt SLAVE_EBI_CH0 0>; - interconnect-names =3D "mdp0-mem", "mdp1-mem"; + interconnects =3D <&mmss_noc MASTER_MDP_PORT0 QCOM_ICC_TAG_ALWAYS + &mc_virt SLAVE_EBI_CH0 QCOM_ICC_TAG_ALWAYS>, + <&mmss_noc MASTER_MDP_PORT1 QCOM_ICC_TAG_ALWAYS + &mc_virt SLAVE_EBI_CH0 QCOM_ICC_TAG_ALWAYS>, + <&gem_noc MASTER_AMPSS_M0 QCOM_ICC_TAG_ALWAYS + &config_noc SLAVE_DISPLAY_CFG QCOM_ICC_TAG_ALWAYS>; + interconnect-names =3D "mdp0-mem", + "mdp1-mem", + "cpu-cfg"; =20 iommus =3D <&apps_smmu 0x800 0x420>; =20 --=20 2.43.0 From nobody Fri Dec 26 21:28:32 2025 Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (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 B434C6D6CF for ; Sat, 30 Dec 2023 00:05:21 +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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Q1CT7wS2" Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-40d2764c0f2so95153875e9.2 for ; Fri, 29 Dec 2023 16:05:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703894720; x=1704499520; 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=GL80+WYlCQIAqqkJFylb2WgYDMx1WnwASnIQCm3BLQo=; b=Q1CT7wS2PR7QHRy+iw0Rbrw04/J5wFi+cWPXh1GrwNW6HRoNC3J4gttw0z1Exu/4eR fTk427UZH8Y0utZwIhjnb2LcUkh0FqXbyfD5AlNMJKYUMxq/LHaWzhFJFNsmbLTo2nuU IINvcHOZZTSvUi3fxvua7Q0syqj4Xwrjjkqc7lTE3tY+nQ4fTPl4Ulnk+sMTlghQbI6x SezT7ggRQ7ZsS/TDmoOINSYCEApT74Z5U6PEw4c2V/CnVRY35kP7CRM/SrrpABXFpsrT T6UigOWRozMaLd33T+6wcEHC4Jjppd1tkCvtahLNwbKpnDiKDjn9QZaqH5ddMPwRbGk+ h0eA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703894720; x=1704499520; 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=GL80+WYlCQIAqqkJFylb2WgYDMx1WnwASnIQCm3BLQo=; b=QFz6S0M78JCKhl6GmoYYG7b/QBCHtFK9OK0fU5pm27VScJuqHM/vBLWTUDngA6aG6V 4haMX3laf7Y0DXnh1UBktBOF4G2qnRVN0vXPlRIeNSUiCu7v+t36xOxMxBCntUNHF34S d0fK/zGrDYigFcuAdGdgxWxGl7zNxbBG1rjIHig66OdblGlBA3YeBJKK8oZwnIvF/Ya3 QpXfr2JbPw6DfuKEgr0y1IY+S9HJXElhjQxJy0vAgEOGnPJKdlRMJ2GLSxYsv4pHd49e gKUak7kRQcCzGZTg07tnVdmzQkLKfSN6E7H5AmyvhvMdw/yQJUzFe/lKtfzPwsYYCX62 QVfQ== X-Gm-Message-State: AOJu0YzsgZcmy06lMhJLiDZOtCAppOYYVzCTANGPUg95n+uXf1/RmGPU sz8hSGA7e5G8Gqjy1oLi7mP3FrmfzyK4ug== X-Google-Smtp-Source: AGHT+IFuKaVQCkOk9ABox/5WPH9Ps6Uoi04BHotM16O8m57/VRltX1vrjPl+xJw3Lolho6oBKkIdgg== X-Received: by 2002:a05:600c:34cd:b0:40d:8369:3c19 with SMTP id d13-20020a05600c34cd00b0040d83693c19mr44674wmq.248.1703894720064; Fri, 29 Dec 2023 16:05:20 -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.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Dec 2023 16:05:19 -0800 (PST) From: Konrad Dybcio Date: Sat, 30 Dec 2023 01:05:10 +0100 Subject: [PATCH 09/10] arm64: dts: qcom: sc8180x: Shrink aoss_qmp register space size 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: quoted-printable Message-Id: <20231230-topic-8180_more_fixes-v1-9-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=920; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=LEbmLsPXm/9M5hTW+SKlsqEW3bnrOcNAlT3KpR2uyEQ=; b=VqMpnLBy9y1YFRH6B4AFWfBvGqyGK7685P+sxJs18D+zGGm5TqNjQALUIo+UGMNmU1QDSamKv exE22GAovA1AM9JvlHhVOcnWLzM/OeooD0KlrHe77gWv26HxvrJhUTL X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= The AOSS_QMP region is overallocated, bleeding into space that's supposed to be used by other peripherals. Fix it. Fixes: 8575f197b077 ("arm64: dts: qcom: Introduce the SC8180x platform") Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sc8180x.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sc8180x.dtsi b/arch/arm64/boot/dts/qc= om/sc8180x.dtsi index 960058624a2f..c0dd44f14674 100644 --- a/arch/arm64/boot/dts/qcom/sc8180x.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8180x.dtsi @@ -3262,7 +3262,7 @@ tsens1: thermal-sensor@c265000 { =20 aoss_qmp: power-controller@c300000 { compatible =3D "qcom,sc8180x-aoss-qmp", "qcom,aoss-qmp"; - reg =3D <0x0 0x0c300000 0x0 0x100000>; + reg =3D <0x0 0x0c300000 0x0 0x400>; interrupts =3D ; mboxes =3D <&apss_shared 0>; =20 --=20 2.43.0 From nobody Fri Dec 26 21:28:32 2025 Received: from mail-ed1-f51.google.com (mail-ed1-f51.google.com [209.85.208.51]) (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 BF26BC140 for ; Sat, 30 Dec 2023 00:05:22 +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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="i3xvS13M" Received: by mail-ed1-f51.google.com with SMTP id 4fb4d7f45d1cf-552d39ac3ccso14391690a12.0 for ; Fri, 29 Dec 2023 16:05:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703894721; x=1704499521; 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=RD+KG1VrKD5oGt/gDgU1ORt0oWHI+QJ6WNkaDvndULs=; b=i3xvS13Mba1mb1gSmcPxToDQ5WuboLjC/GlW9u8GcT80qGtzT8Ey7mUUkokRyOm7s1 JsGCp7CHIcPJkWoU+kyDe6/9d6hmvj0t3kvkk+UiGC5IZUqYry1MOZvspsEzAT78RPbp eFWfTOsciBV9w4IczfKKoputMkJgzXI0mRzXz2FMgPp8yYdhAZVv6d+QSQW7pk1izGDa eTjx76AC9pDW8VHPog8h9GJVJxzagh6q3Gjnz9zd9qj5DbadCtxwp9oBAmkTAIDO9ymI aGB/KWOqSoqnsitJLuM/dhZTG0erdrPI+i7f/Mfd5QVVLRTj79K/DNzwiC6Jx7JGmXyX 0KzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703894721; x=1704499521; 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=RD+KG1VrKD5oGt/gDgU1ORt0oWHI+QJ6WNkaDvndULs=; b=eYuZcMsclniTcWK2Qy7oJychCakHdrnHfoUELyJ9TwLwzZcDUu6yFNGh634paA1rzf laV3pkXfAEWgbyFV7CXl9KnFS39NR2TmR4vEij2zezjLDc8cM/9l4RmQCm4awkF+zRkB yDyl9ZLTCkS6c1+g9Z05Y+y7XS1htPY9DO5J3VDAm1rri+f66LTkRBx0Mq8z5zcxU/NH ZGIMOf7kWsSe8CKlESl1z6kc+MPAqYYqCKvToVjm+qN7dDmxnzPLgRpVRTB4pleupFb4 ipyR2+M/Z0dn+rfU2r30wxwyE4AxvXAMqkQ7wqApXoMQrfdCm2/yKMalc/+29BXSBA6g uWcQ== X-Gm-Message-State: AOJu0Yx9ftCmrcl0JJxDq6LW5PC5rUvVgqkoaH1z/R1H2jPDocyN4cf1 N5ARauv1OgevP9PI6GbAJs5cD7wfFveb7A== X-Google-Smtp-Source: AGHT+IH2rjH7GbOvjD1sAUGCNW5dwQtU6peYxB7yj3ljeQbhlJ+7+ctpX8nJyowUxyOI/O/CfQWQmA== X-Received: by 2002:a17:906:6b8c:b0:a26:6d82:3261 with SMTP id l12-20020a1709066b8c00b00a266d823261mr10723651ejr.38.1703894721211; Fri, 29 Dec 2023 16:05:21 -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.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Dec 2023 16:05:20 -0800 (PST) From: Konrad Dybcio Date: Sat, 30 Dec 2023 01:05:11 +0100 Subject: [PATCH 10/10] arm64: dts: qcom: sc8180x: Add RPMh sleep stats 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: quoted-printable Message-Id: <20231230-topic-8180_more_fixes-v1-10-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=805; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=pAneHkQpjzXuVLq/czDVQq++TfgaWtAoMvT9u9bC34o=; b=BLapVO/wBAb72mb4TAzWGdgt3gUR5FsyzO3z83hEF+/iTNbmy9lF3956wIjEV04CmiTWfIRS8 B46vZ+9h1NxCRAcCbgbAuzVvzDd9UrZYgEv1qzVwu8RVE+hjC3SU44L X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= Add the sleep stats node to enable peeking at the power collapse reports coming from the AOSS. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sc8180x.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc8180x.dtsi b/arch/arm64/boot/dts/qc= om/sc8180x.dtsi index c0dd44f14674..013723be4bb7 100644 --- a/arch/arm64/boot/dts/qcom/sc8180x.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8180x.dtsi @@ -3270,6 +3270,11 @@ aoss_qmp: power-controller@c300000 { #power-domain-cells =3D <1>; }; =20 + sram@c3f0000 { + compatible =3D "qcom,rpmh-stats"; + reg =3D <0x0 0x0c3f0000 0x0 0x400>; + }; + spmi_bus: spmi@c440000 { compatible =3D "qcom,spmi-pmic-arb"; reg =3D <0x0 0x0c440000 0x0 0x0001100>, --=20 2.43.0