From nobody Tue Feb 10 18:44:05 2026 Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.47]) (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 B9AC9171E48 for ; Fri, 10 May 2024 12:58:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715345934; cv=none; b=GP+9Pp/uvwj3JmssI+pkYkrXZuVS5hbA2B7J1Fw4ifU3lXSGviWyLNAnsZaAZkhVKywtFwQHfUpc5GYQ6Al/T9NS2KpAfp54jnkH9aoyO19s1PFPdos1jGCI08wsTOxDNf5//9eGrkjUDXuJolEmBlsCKxPXMYe18Kn1QVBE1fA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715345934; c=relaxed/simple; bh=mpXEdYIGFNmeTr/UviAkCq3TuhB6htqAviYK4ZRdST4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Q0pTVi0Dblkj1bM5jkkHi+oK7KIYN2RfBECo6hxjLuUvA4B8GIe/OJgG5jKjeqHlariI9Py67ox9ZyAe7aBpo/VTu2bFd+D7Fi/+nUDPGovizTaiUlglv/PeWuh2tuYeiw92OeC4kJrMC5aZY0jiQIip2v0zQFifez8lA9eUDmQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=j3jLTrDQ; arc=none smtp.client-ip=209.85.218.47 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="j3jLTrDQ" Received: by mail-ej1-f47.google.com with SMTP id a640c23a62f3a-a59a17fcc6bso483048666b.1 for ; Fri, 10 May 2024 05:58:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715345931; x=1715950731; 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=O4LbWL7pMtjLjzOImlyCMR2kJQmPr8y/+o1GWcjQzcY=; b=j3jLTrDQe6VOuAuCGCEoheWGCXxCGtTVffDaxhsFqer6Lm6bMLf0EoSqLxUo01frxc VqD3OUb7zQxVYPbIUKGPWrkpZ3veaMjAuihExhQIdH0A/VcjwsnBTu2JzTtz2RRfJKFw MFecPqzuWabJw9ICaXKwzfI9AdJzQBnV4OPtpjRTSTyfJQbj7tlcAw4jWtlgrUDwAdJr xyeZiOXeLvvjXkxCHR/DLftgqZkF0EM50gzT2rPpSscCSiFmDgO46SeQ/ymJSfySePEr zSKu4eZBXQE/xQlECCzscBlvsVPrLsHD7R706WzhGjHaC25j49fn3EUsJtzDc1er17Zh 1vhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715345931; x=1715950731; 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=O4LbWL7pMtjLjzOImlyCMR2kJQmPr8y/+o1GWcjQzcY=; b=KwVaIRPLHsd7sma95yThWD0VomtuTCoROf4yL6VW1aOzKcCZyHlxt7wO/NbJzJLfnZ AOAW1IfVNokwwlN6H2lm+iDSBSHPXMWrKraITCrx2Uipicf6IQE4ILGa/3uSXVbhF9Pv 5Kc7Boxfid+Io6e7Y2368vAGEYGTGC9XF+5+J8PDUjfvO+9ksjy4YtFdtG1uJYjdePEX cuZlTBZBeIYc6PCsjqG4jsd3J3GFkVi91UYQg+g/b8UsNW0upjQoNxdxfcYALe/yX8tr dZV6ARAaoe7PcjwwYqdxC9ian49REvyoQBrSabHVRLMJn3yqAcm84ubUAFNu7SxLGC2s SBfQ== X-Forwarded-Encrypted: i=1; AJvYcCW5ksIpZEtcAuQaKF1CRr/N4CVro3MJ8TcJgwMdlSXMTm1O4knC7hMuFRiB0EeaklBJOXu+fnq8eTWra/NboPcCJ+Ih4y/Yf1w1oqoS X-Gm-Message-State: AOJu0YwfrdfS7rrxWVzLIgDlHuJJDCn20jmpmxPvfBLTtX4B7X0azZ7x jag+UL6IBsCApCig+kZ7PWf7d0Qd2HA36Sd4IhJVpLCm0pYWY7juX62Srjs2h074dh+6IpZ9iSe JZIk= X-Google-Smtp-Source: AGHT+IGI57Bi1n2fSWaj3BnGu8+gLQ7UsRwbt8jtGmiWAX79UoN00c+v4fztEghOnN7ro8+Vzsqeag== X-Received: by 2002:a17:907:77c3:b0:a59:9db6:535d with SMTP id a640c23a62f3a-a5a2d67862amr168929466b.65.1715345931104; Fri, 10 May 2024 05:58:51 -0700 (PDT) Received: from [127.0.1.1] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a1781d6bfsm181857366b.31.2024.05.10.05.58.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 05:58:50 -0700 (PDT) From: Konrad Dybcio Date: Fri, 10 May 2024 14:58:40 +0200 Subject: [PATCH 11/12] arm64: dts: qcom: sm8550: Throttle the GPU when overheating 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: <20240510-topic-gpus_are_cool_now-v1-11-ababc269a438@linaro.org> References: <20240510-topic-gpus_are_cool_now-v1-0-ababc269a438@linaro.org> In-Reply-To: <20240510-topic-gpus_are_cool_now-v1-0-ababc269a438@linaro.org> To: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Johan Hovold Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bjorn Andersson , Konrad Dybcio X-Mailer: b4 0.14-dev Add an 85C passive trip point to ensure the thermal framework takes sufficient action to prevent reaching junction temperature and a 110C critical point to help avoid hw damage. Remove the copypasta-from-downstream userspace governor entries while at it. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm8550.dtsi | 208 ++++++++++++++-----------------= ---- 1 file changed, 80 insertions(+), 128 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8550.dtsi b/arch/arm64/boot/dts/qco= m/sm8550.dtsi index 51c547872438..23f769a5b1d4 100644 --- a/arch/arm64/boot/dts/qcom/sm8550.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8550.dtsi @@ -5367,34 +5367,28 @@ gpuss-0-thermal { =20 cooling-maps { map0 { - trip =3D <&gpu0_junction_config>; + trip =3D <&gpu0_alert0>; cooling-device =3D <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; }; }; =20 trips { - thermal-engine-config { - temperature =3D <125000>; + gpu0_alert0: trip-point0 { + temperature =3D <85000>; hysteresis =3D <1000>; type =3D "passive"; }; =20 - thermal-hal-config { - temperature =3D <125000>; + trip-point1 { + temperature =3D <90000>; hysteresis =3D <1000>; - type =3D "passive"; - }; - - reset-mon-config { - temperature =3D <115000>; - hysteresis =3D <5000>; - type =3D "passive"; + type =3D "hot"; }; =20 - gpu0_junction_config: junction-config { - temperature =3D <95000>; - hysteresis =3D <5000>; - type =3D "passive"; + trip-point2 { + temperature =3D <110000>; + hysteresis =3D <1000>; + type =3D "critical"; }; }; }; @@ -5406,34 +5400,28 @@ gpuss-1-thermal { =20 cooling-maps { map0 { - trip =3D <&gpu1_junction_config>; + trip =3D <&gpu1_alert0>; cooling-device =3D <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; }; }; =20 trips { - thermal-engine-config { - temperature =3D <125000>; + gpu1_alert0: trip-point0 { + temperature =3D <85000>; hysteresis =3D <1000>; type =3D "passive"; }; =20 - thermal-hal-config { - temperature =3D <125000>; + trip-point1 { + temperature =3D <90000>; hysteresis =3D <1000>; - type =3D "passive"; - }; - - reset-mon-config { - temperature =3D <115000>; - hysteresis =3D <5000>; - type =3D "passive"; + type =3D "hot"; }; =20 - gpu1_junction_config: junction-config { - temperature =3D <95000>; - hysteresis =3D <5000>; - type =3D "passive"; + trip-point2 { + temperature =3D <110000>; + hysteresis =3D <1000>; + type =3D "critical"; }; }; }; @@ -5445,34 +5433,28 @@ gpuss-2-thermal { =20 cooling-maps { map0 { - trip =3D <&gpu2_junction_config>; + trip =3D <&gpu2_alert0>; cooling-device =3D <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; }; }; =20 trips { - thermal-engine-config { - temperature =3D <125000>; + gpu2_alert0: trip-point0 { + temperature =3D <85000>; hysteresis =3D <1000>; type =3D "passive"; }; =20 - thermal-hal-config { - temperature =3D <125000>; + trip-point1 { + temperature =3D <90000>; hysteresis =3D <1000>; - type =3D "passive"; - }; - - reset-mon-config { - temperature =3D <115000>; - hysteresis =3D <5000>; - type =3D "passive"; + type =3D "hot"; }; =20 - gpu2_junction_config: junction-config { - temperature =3D <95000>; - hysteresis =3D <5000>; - type =3D "passive"; + trip-point2 { + temperature =3D <110000>; + hysteresis =3D <1000>; + type =3D "critical"; }; }; }; @@ -5484,34 +5466,28 @@ gpuss-3-thermal { =20 cooling-maps { map0 { - trip =3D <&gpu3_junction_config>; + trip =3D <&gpu3_alert0>; cooling-device =3D <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; }; }; =20 trips { - thermal-engine-config { - temperature =3D <125000>; + gpu3_alert0: trip-point0 { + temperature =3D <85000>; hysteresis =3D <1000>; type =3D "passive"; }; =20 - thermal-hal-config { - temperature =3D <125000>; + trip-point1 { + temperature =3D <90000>; hysteresis =3D <1000>; - type =3D "passive"; - }; - - reset-mon-config { - temperature =3D <115000>; - hysteresis =3D <5000>; - type =3D "passive"; + type =3D "hot"; }; =20 - gpu3_junction_config: junction-config { - temperature =3D <95000>; - hysteresis =3D <5000>; - type =3D "passive"; + trip-point2 { + temperature =3D <110000>; + hysteresis =3D <1000>; + type =3D "critical"; }; }; }; @@ -5523,34 +5499,28 @@ gpuss-4-thermal { =20 cooling-maps { map0 { - trip =3D <&gpu4_junction_config>; + trip =3D <&gpu4_alert0>; cooling-device =3D <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; }; }; =20 trips { - thermal-engine-config { - temperature =3D <125000>; + gpu4_alert0: trip-point0 { + temperature =3D <85000>; hysteresis =3D <1000>; type =3D "passive"; }; =20 - thermal-hal-config { - temperature =3D <125000>; + trip-point1 { + temperature =3D <90000>; hysteresis =3D <1000>; - type =3D "passive"; - }; - - reset-mon-config { - temperature =3D <115000>; - hysteresis =3D <5000>; - type =3D "passive"; + type =3D "hot"; }; =20 - gpu4_junction_config: junction-config { - temperature =3D <95000>; - hysteresis =3D <5000>; - type =3D "passive"; + trip-point2 { + temperature =3D <110000>; + hysteresis =3D <1000>; + type =3D "critical"; }; }; }; @@ -5562,34 +5532,28 @@ gpuss-5-thermal { =20 cooling-maps { map0 { - trip =3D <&gpu5_junction_config>; + trip =3D <&gpu5_alert0>; cooling-device =3D <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; }; }; =20 trips { - thermal-engine-config { - temperature =3D <125000>; + gpu5_alert0: trip-point0 { + temperature =3D <85000>; hysteresis =3D <1000>; type =3D "passive"; }; =20 - thermal-hal-config { - temperature =3D <125000>; + trip-point1 { + temperature =3D <90000>; hysteresis =3D <1000>; - type =3D "passive"; - }; - - reset-mon-config { - temperature =3D <115000>; - hysteresis =3D <5000>; - type =3D "passive"; + type =3D "hot"; }; =20 - gpu5_junction_config: junction-config { - temperature =3D <95000>; - hysteresis =3D <5000>; - type =3D "passive"; + trip-point2 { + temperature =3D <110000>; + hysteresis =3D <1000>; + type =3D "critical"; }; }; }; @@ -5601,34 +5565,28 @@ gpuss-6-thermal { =20 cooling-maps { map0 { - trip =3D <&gpu6_junction_config>; + trip =3D <&gpu6_alert0>; cooling-device =3D <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; }; }; =20 trips { - thermal-engine-config { - temperature =3D <125000>; + gpu6_alert0: trip-point0 { + temperature =3D <85000>; hysteresis =3D <1000>; type =3D "passive"; }; =20 - thermal-hal-config { - temperature =3D <125000>; + trip-point1 { + temperature =3D <90000>; hysteresis =3D <1000>; - type =3D "passive"; - }; - - reset-mon-config { - temperature =3D <115000>; - hysteresis =3D <5000>; - type =3D "passive"; + type =3D "hot"; }; =20 - gpu6_junction_config: junction-config { - temperature =3D <95000>; - hysteresis =3D <5000>; - type =3D "passive"; + trip-point2 { + temperature =3D <110000>; + hysteresis =3D <1000>; + type =3D "critical"; }; }; }; @@ -5640,34 +5598,28 @@ gpuss-7-thermal { =20 cooling-maps { map0 { - trip =3D <&gpu7_junction_config>; + trip =3D <&gpu7_alert0>; cooling-device =3D <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; }; }; =20 trips { - thermal-engine-config { - temperature =3D <125000>; + gpu7_alert0: trip-point0 { + temperature =3D <85000>; hysteresis =3D <1000>; type =3D "passive"; }; =20 - thermal-hal-config { - temperature =3D <125000>; + trip-point1 { + temperature =3D <90000>; hysteresis =3D <1000>; - type =3D "passive"; - }; - - reset-mon-config { - temperature =3D <115000>; - hysteresis =3D <5000>; - type =3D "passive"; + type =3D "hot"; }; =20 - gpu7_junction_config: junction-config { - temperature =3D <95000>; - hysteresis =3D <5000>; - type =3D "passive"; + trip-point2 { + temperature =3D <110000>; + hysteresis =3D <1000>; + type =3D "critical"; }; }; }; --=20 2.40.1