Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp476567lqo; Fri, 10 May 2024 06:00:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXbwr7z+TITMRCvFhmPpR5KT+Zv9oFpLPPduLHdKwa5FRak2j2Gt5waDD4qrlGdS/w9WaW8KneFo81sTFmJgX26SDutkNSlyVN3fpkjOw== X-Google-Smtp-Source: AGHT+IGVzaMg7oCWW1tRn5FF0J5uyIvMkwkTfBVV+OMr6db8IDVDD3zgWgLBDZa0DBCAz/z2yhaG X-Received: by 2002:a9d:76cb:0:b0:6f0:7ddb:c196 with SMTP id 46e09a7af769-6f0e92b2b93mr2585958a34.23.1715346038046; Fri, 10 May 2024 06:00:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715346038; cv=pass; d=google.com; s=arc-20160816; b=EPBNmzfZoUFDWqPNR906ItVc45KS7WPxd3hM38aZjo9v6ziejZ7n3eNm9EQg/f9YCW o3JpR51aj5/ENgCt9VON04LpYfdvW5cpEV3DQXekUI3rXgcZV/eYVmnBQwRrG7eQe94B JzoFdwIW9cctkLsPXp7rp6304ImqCYGmxzJEKHA2lSz+E0QDq2kQTt/7cCM8LHjCnfFh AaJvGV22ssEUHI/hl54hvLId1DC2W3ZCxzJ66zwYo0Ru6qGd1U3O9Ms+K0n+2ItnOd86 E2HeTM2gRvsc/7nCjCshMbUwd+f81OO+Vcjc3A1Hl0hZxeufhAi6ZUFBlN5F8jEqM/Yu SV7w== 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=2C/n3zrsGQEl/w7MYTYQqZ44jS2ToMDUKr4rl0zMck8=; fh=BhxFJxyyzyFy/8ssXKQkb7Ijt90edx32rL3hoZucyUo=; b=EHcyOriRof6+sjRDMWOD8PsNtGBGVPx4UOCWj0MxQyKqzpbBShB6/BJI5ED+T5NkQ5 b5YWHMDJDUk0RpuFaZJwVnDWTjCnJId/KwHxrLKG653Lgde0Mc40f/143EVvC9tUnhDO 12ti43bnqUwzaXvbtYQpYpiazRmfNPaiR09GQKNioWxkHDklV4KlFJjvr0qRHk2I+dty bGb7uEOkojbMimTxboSaX+k++rxUbIMgPZY/jvBOrpwKzFwvVPNxySz+iNG0nlksYwCj GH5LrfEs7eBjUe0XdaB+lHLsVzIxXKik5ykownZxdGH6iJMazLp1uDkTbN4J/S6vlJVg hoYQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Gh0cfRgv; 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-175804-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175804-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-792bf30ad2asi374109285a.312.2024.05.10.06.00.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 06:00:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175804-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Gh0cfRgv; 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-175804-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175804-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 50C321C2238E for ; Fri, 10 May 2024 13:00:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0BB6517108E; Fri, 10 May 2024 12:58:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Gh0cfRgv" Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) (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 6B88D170846 for ; Fri, 10 May 2024 12:58:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715345930; cv=none; b=TaV5Syarhzn7OOHYeR5nUS6lw5Z5F4TuBp8p/9KmjxLLnMjUGM05RbG/a49GJUrdxcKG68N2iPQLgG3OK/YaTJS0Yi1BORHEJ4NndM86ugkRdW5v3oV8lGR43T2pFYqphHl5BoJUzTFIVOZGnE0CuzZoia/NbFBmK2sUJu0n5FM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715345930; c=relaxed/simple; bh=Q/00BRJkklPf9s3fO8pNKrRKTd5/TRA3QyfrOoaysZM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=KTKIBBYPHYaIpBC1zEjVXxULge1XdlfhP5YB+kEvEqGX7gA55TB6bn9HyqNhhDk58GMuHdLeRj7OYNMo1OmaYfrbkuI87gdkGLGRyitkGiorlKTxkjihLbQis9wY1vUyPoxcG5Kq7dqM7vtdbDms+MR4wo532X7FyEE9kBzwx2c= 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=Gh0cfRgv; arc=none smtp.client-ip=209.85.218.54 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-f54.google.com with SMTP id a640c23a62f3a-a59a8f0d941so483017866b.2 for ; Fri, 10 May 2024 05:58:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715345927; x=1715950727; 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=2C/n3zrsGQEl/w7MYTYQqZ44jS2ToMDUKr4rl0zMck8=; b=Gh0cfRgvoDc51AgDGh47O4xreRJOUCfsWbOFbdN0tP4moabCxlN9ju1+PGvmnM/SuA jTIWNMygZBZj+Sze0WghWdvNPbKHYxc4n7Aso4SvRsUlnnKKzKJ/4BmAFkSSy2pds3hh /r/Lni8dfOzbtcSL13S9jQdAlg8TSFyQPj2HBHy7MZ6O3nGA+L9+9oeyOIOU6vPqk8CY A8z/NIHStS0ipluegbXnh+p75JnJ8mOwgaj0wSP1tsoPgrq/lIknfdPcjHAPQ5TxZZDy 5n5fJ8TBLsE2csF0ZHsyIW1rdq45SiVG/xlWrOiYqnhmP+2CQyxuAM00S9qwziFsPrC4 wfdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715345927; x=1715950727; 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=2C/n3zrsGQEl/w7MYTYQqZ44jS2ToMDUKr4rl0zMck8=; b=L7JBu9xBZjUL0Vu/AeNsVXSgtvXoHAAks4Irdd3Z/E2wk1K+9aiiswLM3BEJkUWqQj 9ig/VMWgZb5YtEFkUTMfZUF+BAa2wleCXEsRviFX233bcLvWy/Rnn2m2B5cu/lMFY+0+ R/HmpCC2R2ktrt6hlvsyfL0lYzDXQN/sGcSWj/H2ow8cwfPvX8B65ZU4fkVKXeVH5iDt +yLzkPu32kNUXI7e6FvSPQeBDLBXEXySvj+ErKJBfC58BLeDQsXzSyZxE1Cy/ERzi2Yg iZBRUN1GS0/dXfOeW9mttxMFRm/YerFLqIH0LDPfDy2QwskPziddlpy0aRysOxfO9IZe SDow== X-Forwarded-Encrypted: i=1; AJvYcCVMa4fd06IlU4RpzwnzOrPM1N4MynzlYf6SXAz7Rpn4uCbX+Sv9owgNm9Eb+r9FYEefZhDinz1xDL7FXnPKpyudI3sOoNMI/xiKFx4p X-Gm-Message-State: AOJu0YyrTQjKdy/3rfGtVyGKZsUVg/3/Z5lURY/iEyanrRrvtUhf6klv c7YgQT/60LeY5XGemxBlBSmMOfz6jN3TjgdTTsSib+k4KWDceJ6bktUHoRGVrGc= X-Received: by 2002:a17:907:1b0d:b0:a59:cbb5:e09f with SMTP id a640c23a62f3a-a5a2d65f230mr198156666b.53.1715345926982; Fri, 10 May 2024 05:58:46 -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.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 05:58:46 -0700 (PDT) From: Konrad Dybcio Date: Fri, 10 May 2024 14:58:37 +0200 Subject: [PATCH 08/12] arm64: dts: qcom: sm8250: 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-8-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/sm8250.dtsi | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index 1a1202bdd915..b734aa13fd2e 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -6855,10 +6855,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"; + }; }; }; @@ -6988,10 +7000,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