Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp478067lqo; Fri, 10 May 2024 06:02:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVTrpdcxYhzymaYCnsUS24rPLf4nzIkGwC2kdRI3ndNJvbAVZdcg0TVSMX9wQJpXbkIlOBdNHj6pU4mbN22WKsomSSfa62WP3oWh/tM3A== X-Google-Smtp-Source: AGHT+IGpOBzNd8H68c0cbB2anX5sPgMoXDhuuqfsuZAT8MkWw8BUQkYUtuciXsY5Md/QpcVyAQr5 X-Received: by 2002:a17:90a:9f8c:b0:2b1:99fd:91f3 with SMTP id 98e67ed59e1d1-2b6cd0e7afdmr2384211a91.41.1715346135942; Fri, 10 May 2024 06:02:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715346135; cv=pass; d=google.com; s=arc-20160816; b=DQ6C/dau3aO85vkJFuG+cnWbbb0RBpwWpRhu3xVDRx9j8ZYkPnhdpjQCoYgEEoXy46 jX03jn+hCFrXLqFXve5MINrbe9mF8C/xx/RPoVLboeUaZcDVJ48MWJ6IwTjdCviZWj5G ks3+nf84J1+qK+vMJoIzKN3xijw+eR1UsBWgm2/uxvFL8Wi7rjy8fvLtN8zNGTFr51Ej xF/fRYx+2OW22cCFaKhDXPctk645oHCjhEtgLYCkXDotgNcITRu7nAAmW1pumZvU07Gm gbYPCGl5KaxqdyckC0g3cyeTHEbbZyhsJA/iW+KBtlZdqwVopTBDCcmsaq2dWH1rugbY TLkw== 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=REOe2/rSmMpWIuGPFH1QLzss9p7iDlF03Wz1gvDMeLQ=; fh=GJ7+q9vIpobO0+1Ghj60NP6AMSioit8y/QySrdus6sk=; b=FvRWwR106ai9Js2byWhK6EnGW1BcruyzhD/isNbFgE9LSThXcOkeKCmkj5jz4d4rJU txzeUPym3xTANY3aIBONGaVDgTIP3lEHSyooTnjdmHmevN1tAw2BdoIisdbgqqw/z063 91yZWH7ppnwA9+SWfIZWb00eS4P8fMTq9L8gd1EJNoZF0R/2ei2YVYfNBDRH3W9j0Ioa Jv2TCDH4qXCEHyMk1lQxBzFma4gien0SN/4E9KzlouDl9+yZTAXtx9nsNhRPx/cibs8m OWH1xpUAk5Wrz7F5X6ee1AOeB+TvhTYHCn3KFPwhhaGZ5hSuv9YlK749f2txFiGjr4Kh aaHg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wLqRh2Zw; 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-175805-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175805-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2b6c678f5d4si2151613a91.169.2024.05.10.06.02.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 06:02:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175805-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wLqRh2Zw; 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-175805-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175805-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id AF5F8287BDB for ; Fri, 10 May 2024 13:00:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1AA041708A3; Fri, 10 May 2024 12:58:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="wLqRh2Zw" 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 98BD0170899 for ; Fri, 10 May 2024 12:58:49 +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=1715345931; cv=none; b=R5uhZWApJjNms8cVC6GYKBjOjtaAT6x7Ote51o+oAwB+QFkx7eWJ2oC1iYvPl04FjxsTBhP/DfQzDaqy8jncBYsFLiTxVh8npF/BPOkE60nW4RxpSTcCDg17IjRM+kGAokIJGXl4URythiYcpMpzMt13jBfpBgtiTXdB3s8Hw9Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715345931; c=relaxed/simple; bh=M8G2mN4TaffnfNOqtxWoho4eYoLY7YRmtFMMoVV0Cck=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ttg7BNHVTNAo1oUo5LOLYP2gNPJRJWgzdFqjF3Ps6V/+ZQPhIOAYEZj0b/p3vQ66LtNgudaeidxWNCcIxbfazb+fS9vqaApmrpDnctDAL6Mi2vCy2ERiIzwqM4igmYV20xVp+g0oy5+OlR8YpJ5kLad4nnCbR38oLmRlAivoy5Q= 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=wLqRh2Zw; 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-a59ab4f60a6so443829766b.0 for ; Fri, 10 May 2024 05:58:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715345928; x=1715950728; 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=REOe2/rSmMpWIuGPFH1QLzss9p7iDlF03Wz1gvDMeLQ=; b=wLqRh2Zwo5rAoi6K76+WiC37pSaDINzFaw2m6kbOMtsu5MHXlVqrJcLuo90hzPunNs +Rk9dpmda4lGaM2EkLJNQXBgS5GjZ+abmp3l85FPJy1D3mLl+P7W3saMUj/zOiWOR2MB 5lvgVz5ROxMGhAhF+lILDbjRNTexWSEc2lHkGWrNmKFZx71wqdj6MqXAW3zS8VVrVkA2 H19z78kgG6cKnm9bUEGmfI2HgxWX5IlFcCEfVUlN6mv48m/7yB9SwMqMKdYEm4tsprOk DHOJ6HMEr4lQt3x4HKcf85OxUJRBZ97EDwEnu3tUOrXuFCMsIHvgaBgeK1ARuLA4Kk2w Zfrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715345928; x=1715950728; 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=REOe2/rSmMpWIuGPFH1QLzss9p7iDlF03Wz1gvDMeLQ=; b=X8DlFtYxUgENE0ALsIGWDwHeOVrqL34UPQy7S8sEUmC549i3XzSCrUIqlsZ9yGQ2yi 0PejNZTdbNrf0JHfR6cUeT4dzNaP55daiLwtOWKULsARaxd1HUbcxRmZJNg+fiJ0J35o o7GHUeebDynerfVFjn7Qvi4FYLDmK9JfNBvWmcPTEE3MBC/ne+yPEbstr6I0uVfLgZAk EBa237FKxXQlqxiEdVnSyX4z8wR99YlMdQC3B9ObKhYM96h+VkoF+2qoqQ4sdZzrJYAN sjI8x387dZr0QiRiVO7eGymlFGYnTd9xaUxDOy/wduMsZWQHFnPjirj/ICx3aVrImB3T 7SCw== X-Forwarded-Encrypted: i=1; AJvYcCWSOsfkUDDK9C2nMdpFs126upAzSyZiTrwf5h8Qeyb89rjAjvnU4FVeF3CQu99CNx+FNbjO0JJP7q8pkZYl5+eJw8RuLoTKp97AHMWG X-Gm-Message-State: AOJu0YzXLwXlqpiEyrUvDa38s34rkLan5iL3Zq2gNY2YzmuDitD/wQI9 FqZaYIL0Es6QzHKg86lOPB6x9LO09pYIpifT7uU8ksFdsuprMWzqXV1eBYUrWRo= X-Received: by 2002:a17:906:1992:b0:a5a:15f6:157e with SMTP id a640c23a62f3a-a5a2d53adcamr235180366b.11.1715345928254; Fri, 10 May 2024 05:58:48 -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.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 05:58:47 -0700 (PDT) From: Konrad Dybcio Date: Fri, 10 May 2024 14:58:38 +0200 Subject: [PATCH 09/12] arm64: dts: qcom: sm8350: 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-9-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/sm8350.dtsi | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi b/arch/arm64/boot/dts/qcom/sm8350.dtsi index 526d3c92eae8..94782180bce7 100644 --- a/arch/arm64/boot/dts/qcom/sm8350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8350.dtsi @@ -4259,10 +4259,22 @@ map0 { trips { gpu_top_alert0: trip-point0 { + temperature = <85000>; + hysteresis = <1000>; + type = "passive"; + }; + + trip-point1 { temperature = <90000>; hysteresis = <1000>; type = "hot"; }; + + trip-point2 { + temperature = <110000>; + hysteresis = <1000>; + type = "critical"; + }; }; }; @@ -4280,10 +4292,22 @@ map0 { trips { gpu_bottom_alert0: trip-point0 { + temperature = <85000>; + hysteresis = <1000>; + type = "passive"; + }; + + trip-point1 { temperature = <90000>; hysteresis = <1000>; type = "hot"; }; + + trip-point2 { + temperature = <110000>; + hysteresis = <1000>; + type = "critical"; + }; }; }; -- 2.40.1