Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp475779lqo; Fri, 10 May 2024 05:59:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUXiIECIxqDeyBP+oOc7xU3ff4MHN3fg6VOUjijLr9HSY7OPeWBLEwi+LVA2Nq1Zw1BaA7Bpd4a8WJHYDktUlgDLQ8qLqXsISN7NTGK5w== X-Google-Smtp-Source: AGHT+IH8O6tachdOX07+LSS7EeuvBvoU4vWll4Netj6Te72WhP2NsZbof/ba2LfykuZxUgRKquZg X-Received: by 2002:a05:6808:13d5:b0:3c9:6f32:48ae with SMTP id 5614622812f47-3c9970b9d46mr3384375b6e.47.1715345966361; Fri, 10 May 2024 05:59:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715345966; cv=pass; d=google.com; s=arc-20160816; b=vy7dSEWecAanaQzfJt/vf6Ay0kBGCZPR7az6KxPJiTpELb/6Emn5JDlufR7G8MBdaQ GgENGTaAI0yrsdio04feBYsOyJ6WbPH8cFfGrO93tPvJHr37REDfW7vv3P4AAymZ8Wd6 Dp85iASgjGQMIhpFOgP7Y84BMsv0Snu+PmiJD32TUVZ1dfR0VlPy01WgjYIRLR1I61kC X9qaFMuJvbroG27CRDfNTHurvuR3ycIrK5W1Oq6wN/P/LR+a2WwUDJD4G6TUwTXzEzYk 9doNf8WUUEahPjK2q0NCkX7IeAmV9DVjsCjw8aOSkVrIPEnJF9MSXqoBkXjPV+Av4YmQ dxFw== 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=omxBI0Bjh6xff6OPmVoFkepIHS+IMVrSRXQYKvKXjaE=; fh=VvhYbYAUndxcDJ+/hPlLYmAM/VxY+gpGJ1vrSX6KsMs=; b=DgU8zR1M3NDLuDyi0k3WCclKE9Gup8RK86ZW8wN3yqB7ILyU73bS7Cx9t5rBagHQyN sAHUKRYUsiCapaQfkCHNwCQoDkFzoDfURNkwJ8A/DPyMoyE3kMWm+OhWaT875GaNUSTY 6B0ixNFQx7sbUxcAuNTd/ie9lJMZjlB7/9yfObajjNNenDkZfV/6ZX2bcJISnTcvMYjT WXHCwwYXa8T0FVoFdT0iMVaZWE6LCUfSkbGwQm7yXMoKIZRypF0CaYx61IR7c2iiKhjZ 0NMCfLRmwWk8ycrw/9Hg4jGKkQscJAdacAWUImFzmdT8484rEiYAENvUY3cuoAmmW147 0Djg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PvrJTpeL; 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-175799-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175799-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6a15f2b65d3si36382746d6.362.2024.05.10.05.59.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 05:59:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175799-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PvrJTpeL; 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-175799-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175799-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 E7BF31C2246C for ; Fri, 10 May 2024 12:59:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0C24712CD8A; Fri, 10 May 2024 12:58:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="PvrJTpeL" Received: from mail-ej1-f51.google.com (mail-ej1-f51.google.com [209.85.218.51]) (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 65D8212C46E for ; Fri, 10 May 2024 12:58:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715345923; cv=none; b=X+lcHXEhWXSRwaB7e/Pk33HiqgbjiIKKcFXMflnZ/zUa8nKP60L/d65VIoCF7Aq3C9x5YK9FVVV6ohjbLTCXJY9oBPRTviR5Ad6uDyCjOFupts3/ci2e5XCCN/ifKXp5548/hkW4HMOfq1RyBy98lpjVfOZas3MDdHFKDlqetmM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715345923; c=relaxed/simple; bh=xVhNv64UVnKsgiv5jGfQjveKNiXOY36HNZeDOAduTEQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=sttwVY5I82h19dbxJLTnCUSrtDcPqy/z6sLO07kmV95hqQ9Cd+W5s+dxc/rz8m7sZM1S6IKbS08jtew7WMbJH0UANpTs/SGqTMEUQQ3dC/w2wEp3j9X5Xr8g71Dhu1M2R3jKE08zC8caA8LKSGzbTs7OXFBceHM4fxzhMbDA7NY= 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=PvrJTpeL; arc=none smtp.client-ip=209.85.218.51 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-f51.google.com with SMTP id a640c23a62f3a-a59ce1e8609so531533066b.0 for ; Fri, 10 May 2024 05:58:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715345920; x=1715950720; 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=omxBI0Bjh6xff6OPmVoFkepIHS+IMVrSRXQYKvKXjaE=; b=PvrJTpeLluf8xx3uvHv7x8bFwliFB6K8br4b/Wcq3idr+9eE97IMZV0PbJ7YPnJ2rH IRMzHRova5OCXDTbCQvdD799/qmqnzeWMLQBsalNSTrMthirsukdw65Z8PdZeTRIVsE0 lDqOILK9irljJpG+YqCyFPc2RMI7TWwsXq1wgVk0SqQW71qsZs/khMaJAKdbipdZoSmX eptQmexRKtP5PzHO5w6LFa/hqqLRagwkDuv6S3c0CM+YYkKZDiljvdGSglNS+jLXqiW1 mu2sgU4QQhJGCN2Lye7FkyorLU6Y3pcAAMGjIU+cqKi8P1ZZMgDYrLl2zXqAQHWxLhyU Pwzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715345920; x=1715950720; 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=omxBI0Bjh6xff6OPmVoFkepIHS+IMVrSRXQYKvKXjaE=; b=Jr9mdzfUb4OCYMyko8QIS+eHyzUol3YmR0shgrbxE8UBaV9ARfjMUJNmWOARmg0tkL eJW6e47VLz2k1OWEhoxcOH2zOvB43iAeLYpDFdpflc37i2bS2Rxhy+WJASJk3bVq2e+A 2pdDtUdLdPc0jGp8YDBg3K+1JZ4mjFe0+ZqDXkkqbF7hVj2zRY3k10h3YOht4rOLi3jp AVp4aTGXLZX5S93rXVKWsBwnD05m0JaXt5XlpBMF0RkWyVcdtOJAng9kw5cnXJ2lBkuD 9/12VGmrDKLQi8A0IbYckkDLtUD6+ldd74yst5HIbYx6LHzyoR+P2EZMU/SysX189Ysa hkrg== X-Forwarded-Encrypted: i=1; AJvYcCXzgJQFHhWUG31oMjO7NECdycOm5Ht+gOEsnHrvEN9T7gnE/WC/YgdhLZqU+X5gGlYggzJgoFUFsijUsPcQbOQFjelU2HYA1q7gGbpX X-Gm-Message-State: AOJu0YxMMblypA2T+ypvPOQLaNu4wYWTLJca0e/ICU5ZJiQS1GpLgHu2 loZgplSvYjAwUOCbORJnr1hAh87C9OslE3fxBe0TYqtXIaMGLlK0jYXWavsg07o= X-Received: by 2002:a17:906:f116:b0:a59:9a42:b7de with SMTP id a640c23a62f3a-a5a2d31702emr209323766b.36.1715345919812; Fri, 10 May 2024 05:58:39 -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.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 05:58:39 -0700 (PDT) From: Konrad Dybcio Date: Fri, 10 May 2024 14:58:32 +0200 Subject: [PATCH 03/12] arm64: dts: qcom: sdm630: 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-3-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/sdm630.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm630.dtsi b/arch/arm64/boot/dts/qcom/sdm630.dtsi index 7702d42e82c1..a46dbe725e54 100644 --- a/arch/arm64/boot/dts/qcom/sdm630.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm630.dtsi @@ -2582,10 +2582,22 @@ map0 { trips { gpu_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