From nobody Fri Dec 26 21:27:47 2025 Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (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 37C9815AD3 for ; Tue, 2 Jan 2024 13:34:33 +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="xJ1vpSlv" Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-a2819e25069so84141266b.0 for ; Tue, 02 Jan 2024 05:34:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704202472; x=1704807272; 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=kn6ZcGR++MLyZKYtulEm7pL4y4QPEqxKkTxTEz9NJCo=; b=xJ1vpSlvQ4WpjA2eLh54Rd6f5XGamBZyMGETp3sWTWZO+/lsjvKUXu4EbOP7OwLcvq gtHqfxDmhvgFwUFigFwCviJ2D3xHpALz5N8NehYzR7OFuDv85BC+mKzGg176DnBExaDr Z/2jhHTz/m+7/DPsfMULF5Dnw66+2kljjBe1oXB1n5UU146NOAF8QksRKFBAuz+sCfE4 Ts6HsdQ+mpdp59uJr+8GUAapjIy7/oKUV2/cNsWm6cI8+p1YDBKGpybw0lKe2Ao97jGe D1dErzf5A50h8xaIOiVcTfI9/0osHJT/9hdQYm0KHpoCye4EcaZM/BtOpmeYHtQBfasn 8a2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704202472; x=1704807272; 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=kn6ZcGR++MLyZKYtulEm7pL4y4QPEqxKkTxTEz9NJCo=; b=VYTHZNpiWIIO/p765TZrr5lCZ4qBhaj766vEIKf7m+uMzwGgR++UdjCh6xSqGQX/u7 OicWIADBNcvNAHCg2GhgDZ0BLWMFzZLehtlCZIR/gLruCtBGepdAawQPpn46pr3KSrrE j+o5kyAM/Cz3+OhrEmNfKNQbVpnbqdMIUYk9NWvvNAsjOpllk/PigoYf07crioKu6ggW qs3cfEf7zi9Gwpf4mgbeZthlgxZ2H8iBfFOAc6spawW+ni6GzID0iNf4ZP8qoDmL5jfb YD0X6q8XrDGh+IZp+Jf3ApcdlPAp7oX9n5/mOu0Fc6yJr24uSjAKx+UuDiRH2Z10Sp7s aGfQ== X-Gm-Message-State: AOJu0YykGCYvLOIZT5Q4qmsPbpoOM+E23UD3E+/7Mro2ls4g8+M5i9Cc bePJcJr2OOziJmUpADwn+OuZ8f6e70P1pg== X-Google-Smtp-Source: AGHT+IF8V3w4eO8tAGhtwTO7CeHY5MfrrduezFfd/hCSv78bIIbXrbW5bgSlswiqDeONC6lUwdP1vA== X-Received: by 2002:a17:906:1988:b0:a27:e0e2:e641 with SMTP id g8-20020a170906198800b00a27e0e2e641mr1874730ejd.19.1704202472564; Tue, 02 Jan 2024 05:34:32 -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 u23-20020a170906109700b00a26af5717e9sm10950923eju.42.2024.01.02.05.34.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 05:34:32 -0800 (PST) From: Konrad Dybcio Date: Tue, 02 Jan 2024 14:34:14 +0100 Subject: [PATCH 10/12] arm64: dts: qcom: sm8450: Hook up GPU cooling device 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: <20240102-topic-gpu_cooling-v1-10-fda30c57e353@linaro.org> References: <20240102-topic-gpu_cooling-v1-0-fda30c57e353@linaro.org> In-Reply-To: <20240102-topic-gpu_cooling-v1-0-fda30c57e353@linaro.org> To: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Marijn Suijten , linux-arm-msm@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=1704202458; l=1883; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=lgxbgRXfXDX4Jn2UaC0FqFuodM62KE9jmIfHnDAxRyI=; b=r1N0BwVrwMRyHsSl/wlgYiyjpYzDxjqQwnnvJPf2fYSr+T2RY6ZNExH/zeL+RLmYR8wlycfOx XoRmgKlx0klDyyJtSzKp6+wyUdh00TiOkXRaPzCXYHLdD+XOmuIDwb6 X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= In order to allow for throttling the GPU, hook up the cooling device to the respective thermal zones. Also, update the trip point label to be more telling, while at it. Signed-off-by: Konrad Dybcio Reviewed-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sm8450.dtsi | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8450.dtsi b/arch/arm64/boot/dts/qco= m/sm8450.dtsi index 01e4dfc4babd..8f5a093c8828 100644 --- a/arch/arm64/boot/dts/qcom/sm8450.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8450.dtsi @@ -2038,6 +2038,7 @@ gpu: gpu@3d00000 { operating-points-v2 =3D <&gpu_opp_table>; =20 qcom,gmu =3D <&gmu>; + #cooling-cells =3D <2>; =20 status =3D "disabled"; =20 @@ -4890,6 +4891,13 @@ gpu-top-thermal { polling-delay =3D <0>; thermal-sensors =3D <&tsens0 14>; =20 + cooling-maps { + map0 { + trip =3D <&gpu_top_alert0>; + cooling-device =3D <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + trips { thermal-engine-config { temperature =3D <125000>; @@ -4909,7 +4917,7 @@ reset-mon-cfg { type =3D "passive"; }; =20 - gpu0_tj_cfg: tj-cfg { + gpu_top_alert0: trip-point0 { temperature =3D <95000>; hysteresis =3D <5000>; type =3D "passive"; @@ -4922,6 +4930,13 @@ gpu-bottom-thermal { polling-delay =3D <0>; thermal-sensors =3D <&tsens0 15>; =20 + cooling-maps { + map0 { + trip =3D <&gpu_bottom_alert0>; + cooling-device =3D <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + trips { thermal-engine-config { temperature =3D <125000>; @@ -4941,7 +4956,7 @@ reset-mon-cfg { type =3D "passive"; }; =20 - gpu1_tj_cfg: tj-cfg { + gpu_bottom_alert0: trip-point0 { temperature =3D <95000>; hysteresis =3D <5000>; type =3D "passive"; --=20 2.43.0