Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp475853lqo; Fri, 10 May 2024 05:59:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXOEcqDVIfwlSrw1fesBN+cwoJiJtTybL+uXPLbxVA3ohDN+wnk+sybZtMGJPdOWVRwBbu7RA+F1UpKFpLcs74WYilDrvo26zbacn67PQ== X-Google-Smtp-Source: AGHT+IF0eft57FFJ6tRG8LTKRkV57srTCDfVJtdMU8ojw2padEzDHP5A5KVABUmETtS74GiGuQgi X-Received: by 2002:a05:6a00:130c:b0:6ea:c5cc:f4d with SMTP id d2e1a72fcca58-6f4e02ab5bamr2637443b3a.11.1715345974457; Fri, 10 May 2024 05:59:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715345974; cv=pass; d=google.com; s=arc-20160816; b=QhLmE17v/JJGsrTVimhFdwNoJd1zg57iKzVkJ8zF5fuf6x5bLfdr3KFs2HDwYf76tR fHAmyfkcbuFONus1Kave73uiWHzlEo20SnY+B1Wd2UWnLVPaLHCI8elNUusbkwrNA9YE wKB6KcsWFy9Wj+IeuZnTRExmhmrczKEj6BQSRp3FZOKwjplK3V8qPc7ZCpeahquwEzwn 6c9HRO0NQgSvJgHWmSftD41NtoBPAAT0qZxbq2/tQyqJepV+PX+pfjhIpRFJa3YxDWLq Lfw0PL5cX22wK76DWJ9Qga79hh3pbG3zF8d57EcuqizU6RUemZfd6cXtbRgcQYJuJCxb inaA== ARC-Message-Signature: i=2; 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=RtTo5y6kM/M1KKRuZY68F19Ec5TCfP5qx4+TJLYsHpE=; fh=PUEETSPJVwv7oWKCtjtDLtApGospVtTwK6YI+f/V/e4=; b=gVUhBQAR+dVEJ8ajMbNJgxDGViU1UnwJ2OcoPPSru+hByXF2X95tTMZ3qcJBQFe9JG /+WwasRG6O8z0H0MqbaAM1EXMd/5fXL3Z3xa7YpdfZJ0A0c2hSeREs1olMNVY4Z5wc7h cQ0k+oUo+fQrHmpVrNqdpN2GvqTeqbVrmtzXg2UiNmSJi0kyou5/FK+kumM6jjJbYUbO qhdX58LVsvG1xi4KqOS0uPzpdK1TZjazd2dQSJL8x1JS2eHjEnNdW/1BUJY9u9QWeFfe PSSFhfqmO+0lfPdzmv0L+g6385EnQoTjCkjr93SDrnYAnMXYmk5wdLzx5eY+WW/rt1Ry abmg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Gq2yq+Ns; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-175797-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175797-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 41be03b00d2f7-63412863ce3si3536050a12.618.2024.05.10.05.59.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 05:59:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175797-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=Gq2yq+Ns; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-175797-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175797-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 25B46B23949 for ; Fri, 10 May 2024 12:58:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 01E3912BF34; Fri, 10 May 2024 12:58:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Gq2yq+Ns" 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 8C85B127E02 for ; Fri, 10 May 2024 12:58:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715345920; cv=none; b=JJOm15aARN06RtkrpvPUqaHU6ifQxUJakvBPzduhsN7E1+IXO/qKh7cekXvMLgz6ElRqbAbB6wIKjkoRIV9RbBZshFXTX9YWDyDLajL436/I3woto2VzN8EVGRsN06QlW1+0EozMJfs3+80pJYNqJsJSJcl9yCmPwLaq9ynrbOg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715345920; c=relaxed/simple; bh=+hBO09VnCHm9VUUEnYGXn9/ohn2w2P5q3w4yWPS3JP0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=qgo3yj/CQRPqZsNFLI7kUGlEbv/FfgW4shoIytB9Zhh7TKiTytSKeKJBStUQ1ExTyph60gPft1xk/jJkZjpR5HgdV1EPRIUAqpEqv5HzxZX/+l3Xp+HbCy0eWBF1vP6fQO5DX4u0/i+mF9AedWwZzwFSXS2kWvHxuDtUHwyxJXE= 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=Gq2yq+Ns; arc=none smtp.client-ip=209.85.218.43 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-f43.google.com with SMTP id a640c23a62f3a-a599a298990so487999766b.2 for ; Fri, 10 May 2024 05:58:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715345917; x=1715950717; 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=RtTo5y6kM/M1KKRuZY68F19Ec5TCfP5qx4+TJLYsHpE=; b=Gq2yq+Ns76zT+lvSfvzr8HzDCMrZTvMZJNNLIu/v58TW6KViKou9cXnjEXurnUpnq7 OdAJv6i9HMzKQrpmvzrjSn//uPnMDO7ZpL7F3iA4T/+DTTZDR4qJU8Py9LY9o/M61gwK o2z7ctgHiUWY+pg50rdNWK70mvp59D6cuqWYeA08Tf+OlLOW/mrTiR5J26myBzEMEsZL C/kp4qyVsdgdV9j4TpuFzOesiRKKdarlExvqw+r23EA+l0SVIInsu7qXJKofQjT57asY Uiaalrw3o1eGkfKQJLs/ZZAcgr6HAaQsePqVUhSAMgySj1sDcvajd6w7MhiaklZojZEz 8B7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715345917; x=1715950717; 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=RtTo5y6kM/M1KKRuZY68F19Ec5TCfP5qx4+TJLYsHpE=; b=kT27X5v6X8yLcxYul/kASZZ7jL0frrZDX8lIVvhMW7csATG6Sxi4aGBHBD6p/XXLYs UZjnsO8j64H5BmJGK+A3yNcACG8me6scuwbPeVil/mg9WSZnurUw0j/vgfKfjMNNFm/a 4DS+qJuHZg6SM2/Ca0JVmgsV/LN8+7Ued7564k5OMRokO4g0lxJx8KfbyobivPrM5Vaa 44Z6xQmHCe6PxVns6v4TOk/JAEcGd7E719Sf4BLu7c3X+dx4E8/K9+pB83YCjfixsdvo kFPyfiysGw0wiDIza4B3rwyrkP6BHZVJs7rtsQa4GO01UDzpCFXp8x7oVcOzt4qvC2fG E7Nw== X-Forwarded-Encrypted: i=1; AJvYcCU8Odrxbl5mpcAKnSyXY32LMvxrfRn8DppOsSA9j7Q8I+x1OkEJUbQRCyLGcwRm+gtf/bPuhEAcoAJwRvUbhCtYdfngpw4C04OQ9Ni3 X-Gm-Message-State: AOJu0YzttUJAeUnD1mcVKwrzh58ShRpXoYJf4Dhcs0dCzXNI/T6IIM49 QxczUpf+8XFsxw+azt3kjw9cM/hM0WqERqXXCMkWPVXn6MTTnWo+vv4Za3vD/vQ= X-Received: by 2002:a17:907:7b8a:b0:a59:9b8e:aa61 with SMTP id a640c23a62f3a-a5a2d5c9303mr195736266b.35.1715345916998; Fri, 10 May 2024 05:58:36 -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.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 05:58:36 -0700 (PDT) From: Konrad Dybcio Date: Fri, 10 May 2024 14:58:30 +0200 Subject: [PATCH 01/12] arm64: dts: qcom: sc8180x: 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: 7bit Message-Id: <20240510-topic-gpus_are_cool_now-v1-1-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. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sc8180x.dtsi | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sc8180x.dtsi b/arch/arm64/boot/dts/qcom/sc8180x.dtsi index aedf2e7db038..699f377e94d3 100644 --- a/arch/arm64/boot/dts/qcom/sc8180x.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8180x.dtsi @@ -3993,10 +3993,22 @@ map0 { trips { gpu_top_alert0: trip-point0 { + temperature = <85000>; + hysteresis = <1000>; + type = "passive"; + }; + + trip-point1 { temperature = <90000>; - hysteresis = <2000>; + hysteresis = <1000>; type = "hot"; }; + + trip-point2 { + temperature = <110000>; + hysteresis = <1000>; + type = "critical"; + }; }; }; @@ -4140,10 +4152,22 @@ map0 { trips { gpu_bottom_alert0: trip-point0 { + temperature = <85000>; + hysteresis = <1000>; + type = "passive"; + }; + + trip-point1 { temperature = <90000>; - hysteresis = <2000>; + hysteresis = <1000>; type = "hot"; }; + + trip-point2 { + temperature = <110000>; + hysteresis = <1000>; + type = "critical"; + }; }; }; }; -- 2.40.1