Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp478633lqo; Fri, 10 May 2024 06:02:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVIiPOEfD5OyBJ/69ssm40nV+KNEPyHb1w6jb7mfyoD8la02h6u3iiaNF2d//mTUKTBjVtf6qGkHYGTAqfQXBtRmYt42hHHD5OU5iWBJA== X-Google-Smtp-Source: AGHT+IEJxSqyQaDxgZ42tUBfhp3TPMYuwgb6PS/+DdCP+rwDPFIpLz9IXXVeKXWyheqBBBOm68Cx X-Received: by 2002:a05:6a00:9290:b0:6f3:e6e0:d9f3 with SMTP id d2e1a72fcca58-6f4e0385654mr2452780b3a.31.1715346167995; Fri, 10 May 2024 06:02:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715346167; cv=pass; d=google.com; s=arc-20160816; b=SzkdvwKvE+YGZLF7VMIlGyY9LpQkfDcNu6DcQu1p3+rtEdtsues07KzNEQJZTGpsIq b2anIULA87Oo3ogt0WO7TINkNYfDWxVNluFU50uPP7e3dmUtnBL9hfJNG3nV55Rd1J0X uOWwMSoK4uHtQ8B7+t6dCYp+NoXYZBTqb2MvOE8ref3rFFRBOdDuwdau2DTaT8hxlyRz EF/1A54HiCX3NAbKo/NWFwkA13HztgIwu1qFOvLA4VpC9w5pwssYQcjowsyWQbXV6YHt Mm34nD+emDrxZOQoBcyGj9/dyOjdXLpcGDkXeH4lgf/MN1HYXI6w/HBS+y1qIFle2hoZ JNAw== 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=lK/7BWX9Y0nvD7QdHzfYOrPNJBMxWT+Wj9Jc9yOJ7ow=; fh=GUmWH6ceMCKVhsrSu0q7hTvODNG3Yshxfi/0EtxM5y0=; b=OeLDRqKqCDyy8cqDsojw4aRLcP5PZNKW46GMSkApGmd+CqkPaQZc29ZZkLdbO+Tb+8 2HESeP1P6YTqvYYTK/Zqy5hdvSCcfesOzifskDMI/so3XAst58+wd3vezotgMQOZzT+6 lipjJ0fyD5ZKIp8krCm0kCvhfYHmn9vz+CQaHKAfHMe5+VoYFeuXDlGAVJLiemARkhzV xeRuWTN0ucOuv2bfOWAsLQMk9GpytrTVJVhId7AKypCV69A67RDhYoU1+muhYpKOnkb7 7mfWB4zYe+mWIdQiIw8QDefKCP9zLg/x7ZODtRdmZA4B3qiEsbr8TP9HVeeqhUMN7ucX Mg/A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=C+NSkcVY; 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-175806-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175806-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. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-63409e82749si2436832a12.144.2024.05.10.06.02.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 06:02:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175806-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=C+NSkcVY; 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-175806-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175806-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 83912B23B7E for ; Fri, 10 May 2024 13:01:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 83A2B172762; Fri, 10 May 2024 12:58:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="C+NSkcVY" Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.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 09F7E17108A for ; Fri, 10 May 2024 12:58:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715345933; cv=none; b=DrFsRLnfnBBojS1ibA3w+1NMGkNZsSh0j6Q3iVAf9iFlJSbjTXfyff2peeTpNtzdmBLXd96xYL7TfUVYJVK/CjOIvEfnowuCgScwbZKlcJC+OhymH5OejDflj/ivrOD1rHpH8IpTo2ZEqk+kYev5F9dWR6IEJ0TpvwQyq3f20YQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715345933; c=relaxed/simple; bh=ahnPT653i4P3yBKIsubPh2pxiiWDa4+WxBcxEAxXX1M=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=OBr0lHkn67r02Vv2mLqnuoO8tfHqO0AP+TVy50OBo6O02y1uVbBaxDt268E/xNTo1rlrcpyzV6+F/Vzy50doaBG24AtgSHPfBU2UxZcMNxJihbFHhvvRchWso4OTbpxfC8gxgAddSbe0ZBhMiWopfCUqmLaGRIAKF7FZYj6sSrM= 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=C+NSkcVY; arc=none smtp.client-ip=209.85.218.41 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-f41.google.com with SMTP id a640c23a62f3a-a59b178b75bso410861266b.0 for ; Fri, 10 May 2024 05:58:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715345929; x=1715950729; 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=lK/7BWX9Y0nvD7QdHzfYOrPNJBMxWT+Wj9Jc9yOJ7ow=; b=C+NSkcVYRw1yU6u8Qrmp9jkbWC//3TcCiCyvGIemh9q9plKZqJZjYeMDIQJur2/IME QTkBADHuy/l1VN2+ybubn+JDJOgBHD0esUPSwswgRaMZkregdsSb2+eruQ2CTAwp8CFc oVjhY0mpAnGiAhR3w7Egk6wQ8YEUkfWD+t4sO5817kpzTbc8ya/pC/H2Cg8ElyFN76Qj ab2v0ZznSsVuPDYXXUxT0fEMA4UQUlrSntfNC2Gh78VKdfs6Dpy4b5cy2joNrucsHJYS VTX2KkpG87m3RSw2/UwBK4QCFnkCJ3gttjmyzkw4pZlgqbYHVMcg8uhfyVNRAqwHK7HB yAXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715345929; x=1715950729; 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=lK/7BWX9Y0nvD7QdHzfYOrPNJBMxWT+Wj9Jc9yOJ7ow=; b=FYaGLaE7keboj8EdAH0qNnVDmnZwfNJdyzlDRbdxRE/o1giyrqJInNNSn75TecvVIZ FSEjDNwHkOOqSJaQatSh3EeXJoHbhsCQhIAZo8oNZc9O4WQmZ/xH4yzX8fSvzHdMsQNM fH1JX9fBGh5eBzC6swYjCngqZe/CvKKoQgfj6y0tEUPR0ibRP9U5CcTRGl5YJrJtr03c E8ixY/tVLEJarmAEBB/jh5c+dYMBKhNPBmRz9cHhl5Uw4R1AZOkUaXs2mJS/LM0kiu26 KNiXtNRAT4jvT6YEqSW4jybrxlrnhwt0ediUY/YCfUmkpvycOOf9rYBlVV4wxasTBxnp eigA== X-Forwarded-Encrypted: i=1; AJvYcCWWqXrI65wz8JFlZlNbywLabRM0ZXu8Ocy3ZOSFmEmbs9iPdLsICbh5QMws79ptZGHmeX2Pc2H3l454oxIfWzakCMh0OBqKJBuIKloC X-Gm-Message-State: AOJu0Yyv2Wly3Cn8btNSYB5Gs3jkegi8lHqqnzgEDaTJXaIUSfGaBowd s//ubrqbRYTXKXolLSpvHKaCi/LAt7yJy0In3p2dguZTPb7kkZsiExomk+NNfIk= X-Received: by 2002:a17:906:4ed0:b0:a59:c8bf:1269 with SMTP id a640c23a62f3a-a5a2d5eebf4mr178676766b.37.1715345929554; Fri, 10 May 2024 05:58:49 -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.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 05:58:49 -0700 (PDT) From: Konrad Dybcio Date: Fri, 10 May 2024 14:58:39 +0200 Subject: [PATCH 10/12] arm64: dts: qcom: sm8450: 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-10-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/sm8450.dtsi | 48 ++++++++++++++---------------------- 1 file changed, 18 insertions(+), 30 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8450.dtsi b/arch/arm64/boot/dts/qcom/sm8450.dtsi index ee60fd257efe..38e8d3e9dd43 100644 --- a/arch/arm64/boot/dts/qcom/sm8450.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8450.dtsi @@ -4928,28 +4928,22 @@ map0 { }; trips { - thermal-engine-config { - temperature = <125000>; + gpu_top_alert0: trip-point0 { + temperature = <85000>; hysteresis = <1000>; type = "passive"; }; - thermal-hal-config { - temperature = <125000>; + trip-point1 { + temperature = <90000>; hysteresis = <1000>; - type = "passive"; - }; - - reset-mon-cfg { - temperature = <115000>; - hysteresis = <5000>; - type = "passive"; + type = "hot"; }; - gpu_top_alert0: trip-point0 { - temperature = <95000>; - hysteresis = <5000>; - type = "passive"; + trip-point2 { + temperature = <110000>; + hysteresis = <1000>; + type = "critical"; }; }; }; @@ -4967,28 +4961,22 @@ map0 { }; trips { - thermal-engine-config { - temperature = <125000>; + gpu_bottom_alert0: trip-point0 { + temperature = <85000>; hysteresis = <1000>; type = "passive"; }; - thermal-hal-config { - temperature = <125000>; + trip-point1 { + temperature = <90000>; hysteresis = <1000>; - type = "passive"; - }; - - reset-mon-cfg { - temperature = <115000>; - hysteresis = <5000>; - type = "passive"; + type = "hot"; }; - gpu_bottom_alert0: trip-point0 { - temperature = <95000>; - hysteresis = <5000>; - type = "passive"; + trip-point2 { + temperature = <110000>; + hysteresis = <1000>; + type = "critical"; }; }; }; -- 2.40.1