From patchwork Wed Jan 29 09:43:45 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 13953550 Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (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 AEA5E1ACEB0 for ; Wed, 29 Jan 2025 09:43:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738143835; cv=none; b=P1J0XqpH+aqgkroIKFi9CGtl9rCGnGB0Y34o5jB+96XQxUyvQtu2QEmnylEftx9yhA3wV/pBm8ql2MF0UfdHXr7fJtwvfuuGKGdKbTBohSdedM1bOEem/qtqVAIyFxS38cSHW1iThfguWKZSRB60o70KxSzEw5mlQNzGmcS0pqo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738143835; c=relaxed/simple; bh=Lpvp0u73x3ubU5UrDV0TdedIOkakoM8csxlvAZtxZxM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Fd6iiADaOeea19lH4+4+sgLW7EqCmHsX+PQX1BAluJlyhuWYPaegTJR61bUioJYWD9zUCPkSu4tP5XksLzVEr4wWJlWROUz1M4mIhYn81FI6H4pNTPh+oAqKxlAA2xJBns8eIP4sUNAv75TIP1H6k9rUhg8IHRRPIAn20H9GjNk= 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=FVH4dde0; arc=none smtp.client-ip=209.85.128.49 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="FVH4dde0" Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-4364a37a1d7so67262835e9.3 for ; Wed, 29 Jan 2025 01:43:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1738143831; x=1738748631; 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=AGPRCN+4MJTf9yyHW8IbDG/NcTY8+Z+VttrmJ0Xh5q4=; b=FVH4dde0dcARwoMEGz6WFicmLxo6OH2Kcgjzyh2Fm2zQSesbl1US10pE20YDYlkRy7 5l8dJjg8hnPP2nr5qeRVFxmN+t4HZJlkt6mcOUomHuTQS0z7XonQkGh7Z8bF7BHWJIRi 45QqPyANHR2u+rRJfM/nySYn5qnGFmUubG4+8FbI35o64QfMXnkAf5WdD6eQrDURk91V 1jvNX69z/RJz7CTyR60todYS5kslCL83c0swzQLCwWMSCQ8EJa5dfl47Ve/wnPA/We82 O+3DhJx3FD4Jw0p4kCbdsXUl2XpEr8kOPgPhZSIPWk5wT+3rR34HGCE2eWeCCIOMr0XP 4B4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738143831; x=1738748631; 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=AGPRCN+4MJTf9yyHW8IbDG/NcTY8+Z+VttrmJ0Xh5q4=; b=tnm7uW7M9hdmjg70Y/w1Ss2YLjO2UPVgxNesh3ylBrIARjIEU3ko9rXtoesDfG2x2L J55MoyqOGxxgJxSWA1MfSiUwa+HLLaqzmLsIc5W6I0o8e0isEm0VKA9yrICGi9ZLIExt ezfpm9xz3DkGkmvS3a3HAk1Hrosv+qKL/5G4uaaXQVq/S+Qn0uMdFOwFOIASZOqMoOb/ 82ukGuWm8kBO2qZ57HhfvhDGdI0X9PKIRAoJJLMBfYyMyLfjePTHG66dbuFTRAZsd/0W 61x/R5H6gXxtAnQt7crSS89WV4EBCdtDrHtYI2TAMVpQttexhthUR2hjpmWoTKxcA+dA A2PQ== X-Gm-Message-State: AOJu0YxPWI/kHnp35mGUeJtctO1PaeLStSNb6y/YzFAzul2y/blJ5QKo PaJDWCUJcEHzz80gdr2sD7B0uGdB5ccd530D1pwXNrwTlC/nb/VCNljOm1BK34I= X-Gm-Gg: ASbGncsfwhD4rAw9RG65ofpHN+whowMHL820qcaxnr+9ojDoiyKWsUdAy7F4V9++r0M 0N4Zqtf1+ppEUgICvyb9RT+7D+aPz7I4pvbFz3DNobBTJzNWSMMlxMCdOSAQ+GRvvLx5bJzfCoS 7H7/hVbHIAY0TK1+xqQvUq/N8dN7SsYcYoZGqiVoU4Yr5fbuMcifwpAkayTELbjZt7o4vRbf1fF qCNWkSiYSC82gNg9qqZruxnH2T7jaFQ14Ra2MRfbbjO+iNNwRLHNWkciOZ2RdCqCnLTclvxGDLH 4t118tona7m4e47ZIcIOCud/q3KvZk9VmyPe X-Google-Smtp-Source: AGHT+IEN2ngO7GAumYzVn9bP8TgmurDk2iDLADYdb1I/cK5jNtbtgW+Ug0pwhjqbYsRSW+rnQ+ezdg== X-Received: by 2002:a05:600c:501e:b0:434:f297:8e78 with SMTP id 5b1f17b1804b1-438dc3be859mr18922215e9.7.1738143830804; Wed, 29 Jan 2025 01:43:50 -0800 (PST) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:8261:5fff:fe11:bdda]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-438dcc81589sm16035205e9.33.2025.01.29.01.43.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Jan 2025 01:43:50 -0800 (PST) From: Neil Armstrong Date: Wed, 29 Jan 2025 10:43:45 +0100 Subject: [PATCH v3 1/2] arm64: dts: qcom: sm8650: drop cpu thermal passive trip points Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250129-topic-sm8650-thermal-cpu-idle-v3-1-62ab1a64098d@linaro.org> References: <20250129-topic-sm8650-thermal-cpu-idle-v3-0-62ab1a64098d@linaro.org> In-Reply-To: <20250129-topic-sm8650-thermal-cpu-idle-v3-0-62ab1a64098d@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Neil Armstrong X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=7736; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=Lpvp0u73x3ubU5UrDV0TdedIOkakoM8csxlvAZtxZxM=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBnmfhUXmo+1Z8gF1SlReK4el1VDGkX7YqZtHOLDKtP bbmo8BuJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZ5n4VAAKCRB33NvayMhJ0YyKEA DFubwGD0JHzpfq2NVzV0VyO7mN2P0bPFaDlLJ8Y0HYZP7aLCx+6C8ZEYIOU+ehP1E6CtvHyO9DKCyF mOIF0e5Jf+OqK8G8ZKaADtneta666yYWPHj/jWgnjwW8bh4R4LzIvUDlxksKkUhHP5jc98F/RML/rj kLAWpB1kdJg2/Ti8p65mF9GgqrQErtVKLRiuqBvZdxuXJ/LnYYT+dstWkeMReOvMii0oLpA1YO9Vfz 1vNIvMWdvmODg+fJxGbG+iWkNGSZQI5R+mVyYRpU/VnOrS4syTVHkk6/euOS709QFmd6URNTHtofuM wR1cOfkf0Cv5HUmOXyqwDNwmbW80q7cSFCTSOsT101/QthwtM830lkCtszdanEyjtRnedPei4eXski Fz0wY4xC44Jc0rHG8T5rc9Rix2UVoRWcNSgNJX3aytYoWZvrCh2wv5pa6/7LXs8Y08OXhvjeoxvX8N 8HuWyW/8iF+KdOMomvAAOx30Gi9xYkkGa5zTbVFR1kuqEeSdKxKoBJnTC2Cd5hzOPJ9KNvRv3hfUHG qAe+ZjhL3YtLROfMFeNzUl8Mh5xfeBGWGbnG0uGqGRnbYQGJTmIbpvXGV0zj4d6aeeiC8Bf+HPiLLe MGuWOmqPqUhafZ8NDaM8CkytEtPRep9DX7bltsyqPWndS7QNpML7OOdf7RfQ== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE On the SM8650, the dynamic clock and voltage scaling (DCVS) is done in an hardware controlled loop using the LMH and EPSS blocks with constraints and OPPs programmed in the board firmware. Since the Hardware does a better job at maintaining the CPUs temperature in an acceptable range by taking in account more parameters like the die characteristics or other factory fused values, it makes no sense to try and reproduce a similar set of constraints with the Linux cpufreq thermal core. In addition, the tsens IP is responsible for monitoring the temperature across the SoC and the current settings will heavily trigger the tsens UP/LOW interrupts if the CPU temperatures reaches the hardware thermal constraints which are currently defined in the DT. And since the CPUs are not hooked in the thermal trip points, the potential interrupts and calculations are a waste of system resources. Drop the current passive trip points and only leave the critical trip point that will trigger a software system reboot before an hardware thermal shutdown in the allmost impossible case the hardware DCVS cannot handle the temperature surge. Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/qcom/sm8650.dtsi | 180 ----------------------------------- 1 file changed, 180 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8650.dtsi b/arch/arm64/boot/dts/qcom/sm8650.dtsi index 25e47505adcb790d09f1d2726386438487255824..95509ce2713d4fcc3dbe0c5cd5827312d5681af4 100644 --- a/arch/arm64/boot/dts/qcom/sm8650.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8650.dtsi @@ -5751,18 +5751,6 @@ cpu2-top-thermal { thermal-sensors = <&tsens0 5>; trips { - trip-point0 { - temperature = <90000>; - hysteresis = <2000>; - type = "passive"; - }; - - trip-point1 { - temperature = <95000>; - hysteresis = <2000>; - type = "passive"; - }; - cpu2-critical { temperature = <110000>; hysteresis = <1000>; @@ -5775,18 +5763,6 @@ cpu2-bottom-thermal { thermal-sensors = <&tsens0 6>; trips { - trip-point0 { - temperature = <90000>; - hysteresis = <2000>; - type = "passive"; - }; - - trip-point1 { - temperature = <95000>; - hysteresis = <2000>; - type = "passive"; - }; - cpu2-critical { temperature = <110000>; hysteresis = <1000>; @@ -5799,18 +5775,6 @@ cpu3-top-thermal { thermal-sensors = <&tsens0 7>; trips { - trip-point0 { - temperature = <90000>; - hysteresis = <2000>; - type = "passive"; - }; - - trip-point1 { - temperature = <95000>; - hysteresis = <2000>; - type = "passive"; - }; - cpu3-critical { temperature = <110000>; hysteresis = <1000>; @@ -5823,18 +5787,6 @@ cpu3-bottom-thermal { thermal-sensors = <&tsens0 8>; trips { - trip-point0 { - temperature = <90000>; - hysteresis = <2000>; - type = "passive"; - }; - - trip-point1 { - temperature = <95000>; - hysteresis = <2000>; - type = "passive"; - }; - cpu3-critical { temperature = <110000>; hysteresis = <1000>; @@ -5847,18 +5799,6 @@ cpu4-top-thermal { thermal-sensors = <&tsens0 9>; trips { - trip-point0 { - temperature = <90000>; - hysteresis = <2000>; - type = "passive"; - }; - - trip-point1 { - temperature = <95000>; - hysteresis = <2000>; - type = "passive"; - }; - cpu4-critical { temperature = <110000>; hysteresis = <1000>; @@ -5871,18 +5811,6 @@ cpu4-bottom-thermal { thermal-sensors = <&tsens0 10>; trips { - trip-point0 { - temperature = <90000>; - hysteresis = <2000>; - type = "passive"; - }; - - trip-point1 { - temperature = <95000>; - hysteresis = <2000>; - type = "passive"; - }; - cpu4-critical { temperature = <110000>; hysteresis = <1000>; @@ -5895,18 +5823,6 @@ cpu5-top-thermal { thermal-sensors = <&tsens0 11>; trips { - trip-point0 { - temperature = <90000>; - hysteresis = <2000>; - type = "passive"; - }; - - trip-point1 { - temperature = <95000>; - hysteresis = <2000>; - type = "passive"; - }; - cpu5-critical { temperature = <110000>; hysteresis = <1000>; @@ -5919,18 +5835,6 @@ cpu5-bottom-thermal { thermal-sensors = <&tsens0 12>; trips { - trip-point0 { - temperature = <90000>; - hysteresis = <2000>; - type = "passive"; - }; - - trip-point1 { - temperature = <95000>; - hysteresis = <2000>; - type = "passive"; - }; - cpu5-critical { temperature = <110000>; hysteresis = <1000>; @@ -5943,18 +5847,6 @@ cpu6-top-thermal { thermal-sensors = <&tsens0 13>; trips { - trip-point0 { - temperature = <90000>; - hysteresis = <2000>; - type = "passive"; - }; - - trip-point1 { - temperature = <95000>; - hysteresis = <2000>; - type = "passive"; - }; - cpu6-critical { temperature = <110000>; hysteresis = <1000>; @@ -5967,18 +5859,6 @@ cpu6-bottom-thermal { thermal-sensors = <&tsens0 14>; trips { - trip-point0 { - temperature = <90000>; - hysteresis = <2000>; - type = "passive"; - }; - - trip-point1 { - temperature = <95000>; - hysteresis = <2000>; - type = "passive"; - }; - cpu6-critical { temperature = <110000>; hysteresis = <1000>; @@ -6009,18 +5889,6 @@ cpu7-top-thermal { thermal-sensors = <&tsens1 1>; trips { - trip-point0 { - temperature = <90000>; - hysteresis = <2000>; - type = "passive"; - }; - - trip-point1 { - temperature = <95000>; - hysteresis = <2000>; - type = "passive"; - }; - cpu7-critical { temperature = <110000>; hysteresis = <1000>; @@ -6033,18 +5901,6 @@ cpu7-middle-thermal { thermal-sensors = <&tsens1 2>; trips { - trip-point0 { - temperature = <90000>; - hysteresis = <2000>; - type = "passive"; - }; - - trip-point1 { - temperature = <95000>; - hysteresis = <2000>; - type = "passive"; - }; - cpu7-critical { temperature = <110000>; hysteresis = <1000>; @@ -6057,18 +5913,6 @@ cpu7-bottom-thermal { thermal-sensors = <&tsens1 3>; trips { - trip-point0 { - temperature = <90000>; - hysteresis = <2000>; - type = "passive"; - }; - - trip-point1 { - temperature = <95000>; - hysteresis = <2000>; - type = "passive"; - }; - cpu7-critical { temperature = <110000>; hysteresis = <1000>; @@ -6081,18 +5925,6 @@ cpu0-thermal { thermal-sensors = <&tsens1 4>; trips { - trip-point0 { - temperature = <90000>; - hysteresis = <2000>; - type = "passive"; - }; - - trip-point1 { - temperature = <95000>; - hysteresis = <2000>; - type = "passive"; - }; - cpu0-critical { temperature = <110000>; hysteresis = <1000>; @@ -6105,18 +5937,6 @@ cpu1-thermal { thermal-sensors = <&tsens1 5>; trips { - trip-point0 { - temperature = <90000>; - hysteresis = <2000>; - type = "passive"; - }; - - trip-point1 { - temperature = <95000>; - hysteresis = <2000>; - type = "passive"; - }; - cpu1-critical { temperature = <110000>; hysteresis = <1000>; From patchwork Wed Jan 29 09:43:46 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 13953549 Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.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 798E01ACEC9 for ; Wed, 29 Jan 2025 09:43:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738143835; cv=none; b=fAm7sdg7PTzxw3psKYEeLPJAGwK970bVDi3EFkLwzN6/N5nIpKLDOJhkvrEbqm6ILu5armx8ALNfNuo3CmLC1jzNwfzdzW5OoSLNPdISamO8Pihc+O2bgRaX1WOE+UO/MCtuO4Y4sEkiaXqFmq0zoZNGl4lmgE+UcvucXbft5Ao= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738143835; c=relaxed/simple; bh=ksZqVVWZ+PXeyE/WmXqMiQwQwvesvKOWalvs07xCLEc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=baDVKCAfyY8G3NkaThu7Lj7TWz6ft7ut0+Mz4oFlqGjtuYsdCBw477rCAZCx1DeJY2mMQSy67BQoARWdknN5dyFD453J6AA7HsAmPLeIGLZo3oWvTYb+4oYgiI4POtyM5Eb4JNBzaNRSZ1+CslnEZ+ZkRdLOcBHVQIewVLuCd+Q= 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=G55Jq52z; arc=none smtp.client-ip=209.85.221.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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="G55Jq52z" Received: by mail-wr1-f51.google.com with SMTP id ffacd0b85a97d-38634c35129so5923800f8f.3 for ; Wed, 29 Jan 2025 01:43:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1738143831; x=1738748631; 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=6Xvw2fuwtxpucq2thDNCyLyQjhPYOuUtnvNRZsFhY3g=; b=G55Jq52z68Z4T/VXI3PfTyiUd2HGLYA9Xdoz0i63CnSN7PsoupfghjdXS58Db4oYWU g3YG2nzBeKlUwV7fL2nbyJdkC3gdjYs/F7O5Th8LYH1LzYrumr07GsWxr80e40roSjIF AR2JvXDwgFiCQoCQuB/AMuWdCtXT44IWMg7abnBv6v7CcAO5NxZnxA824kLXTW33tfxM MGAXy7OPp7S9fv9007mEAuC+IUPh/YdPOzCJNrsb2CJj1CgBlV5W4yPkOKEFUIyNAqiw 4A6YGJWeGeLJb2MZR2bzGoy9DeloVs2IxHxWf+nTcATH9RRFPqbUnUVArGJoxHxarRgC 5kww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738143831; x=1738748631; 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=6Xvw2fuwtxpucq2thDNCyLyQjhPYOuUtnvNRZsFhY3g=; b=if3lSzfBilup5yhHCmJ8/d6M8O2ekpLHQHbcVmabjivQyCPe83radaIQcNElBrtcw1 4n6lX3hshd0lf/IJl9KJSjohwzWWZEYop6ySts8iQ1SJ1Q52ZSLEW2vULT46zA/p9UJt 1rqgUsM+1GDDiDviskfv8ZMHpF8Fz6NJwjCg09Q61qUTeljQ20Gw0rPCJ0m0SHIPa+5i bHz+r9I+MBgpERRF37Mmov25Z/bAlQY64kMNa3Jecu11G9xp3+tOn3BTxL1XJHtcCet/ 46irf/EkXgwptySurK8lEcJxf8/Gp+aZWlpWPG9vUsZQKTQ9zk+vJSNoOljPjlyRaiBk Fliw== X-Gm-Message-State: AOJu0YxgOS3TJsoIVUc7JNb2jY8wtabIBEu6qa/GbS3oKKt9njTNgUt5 EcR4iNplnVN1m1tQNs5Av8awZpRKY/6xNV4/ttf5z4AFpCNvbGNvA/Jhx8arqIM= X-Gm-Gg: ASbGncuiDUR73GS1ZbaL8tJvt5GLjNy7ipOKIEjKuguL7XCMU3e2Vbeg3xBCumwu6pc 27QWVfVGbcCiSldvOC/etconsPxoDmzdaRybcUX+DzWt2McJGkkK3Vk7sFoGs61OJrNxugv6zdP qEjvB4UAaIrf8nU0B+vmFcG5HA/wXmMHtECQDjVV/eCMlCH6KO4ehfRUDBRWesdZeP4g2LzQxZt irCK+Yo+zTOWI1hDJb4Ee4XDqQX4OXIwWgVn4QL8zckecwWpS0asgb8kustxibFbd5wJFkvbV/1 PXUvP5VrT74Z4thsauR1DoDluF5RaIlG0JGT X-Google-Smtp-Source: AGHT+IFfAuZaKL4N6rhTvqCDQvxYZslbCF6HL09uYy0B4ru/anjijmlhPdX6FOB+/tFddIo/nxY75Q== X-Received: by 2002:a05:6000:1ac9:b0:38b:d8e0:a862 with SMTP id ffacd0b85a97d-38c52096d91mr1704667f8f.43.1738143831507; Wed, 29 Jan 2025 01:43:51 -0800 (PST) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:8261:5fff:fe11:bdda]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-438dcc81589sm16035205e9.33.2025.01.29.01.43.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Jan 2025 01:43:51 -0800 (PST) From: Neil Armstrong Date: Wed, 29 Jan 2025 10:43:46 +0100 Subject: [PATCH v3 2/2] arm64: dts: qcom: sm8650: setup gpu thermal with higher temperatures Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250129-topic-sm8650-thermal-cpu-idle-v3-2-62ab1a64098d@linaro.org> References: <20250129-topic-sm8650-thermal-cpu-idle-v3-0-62ab1a64098d@linaro.org> In-Reply-To: <20250129-topic-sm8650-thermal-cpu-idle-v3-0-62ab1a64098d@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Neil Armstrong X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=5019; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=ksZqVVWZ+PXeyE/WmXqMiQwQwvesvKOWalvs07xCLEc=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBnmfhV+wZw5NRkXJg1R+ekK4Gtloxz6iy3TVdvL8Ik R8IEgdWJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZ5n4VQAKCRB33NvayMhJ0RUVD/ 9iK4QUsqg4UA+wkGqi1FNt6ChfbVafBaahle2a1GXUS0h00c/I0ZwRi71dBFYWOwOCh/vT9FnZxOTe RKrlBAfccHouiabtv8iIDLhC4dxAwEN1LBD+xe9QPQGJ+WnzB6nUiPRDbpr+voNyqECtOEuRJfFRPM 7tgQccmL0rnYw0v4T1f0qDlCbNmmGUmxLc9plrBcr/A9tspEh9SQTQWNqs192/YHVPDU6/6Z4ivyHA BlAsc3UKjqhxV64hFQkGX6im8ct6CwC2/xSUdM6GdNAkGGquwmbvPBYRmpKzxWaupRvhSe3YUtiRZS l27cxxlXDb9oXul2YwVwiIaC9bLEOqbMjtxADLAgsroAv/zXwzaSHmEk4sYGRoZM+2cBE3vE3Xw+UJ l/LO9Uusl5bf11fj5mVm2WE0m6QJUXHxs4jCV6BKoGp13G98qnkm7t6rjv9hioDm1UCje+9h9MwtUF CXFaiIRfExVf1KZ+WVfJucbzRUMM+nM1JmxbpifGYrg7jpfaw7A95jywJPkkHskgeTpGbVkXsVVa/s pfLWgTGOJP6M/+hYZA5IZPNyxOTuP69P3de9NYCrQP1cpK8MUrp0+WiD4C3GlA/HINVEGzeDJZk4Qv bLYxjhQrhL0TD6oBGUt1zZm7P4xBWHAJkwLO0EyuktIWuxC9XkUmhpGx1ocg== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE On the SM8650, the dynamic clock and voltage scaling (DCVS) for the GPU is done from the HLOS, but the GPU can achieve a much higher temperature before failing according the the reference downstream implementation. Set higher temperatures in the GPU trip points corresponding to the temperatures provided by Qualcomm in the dowstream source, much closer to the junction temperature and with a higher critical temperature trip in the case the HLOS DCVS cannot handle the temperature surge. Fixes: 497624ed5506 ("arm64: dts: qcom: sm8650: Throttle the GPU when overheating") Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/qcom/sm8650.dtsi | 48 ++++++++++++++++++------------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8650.dtsi b/arch/arm64/boot/dts/qcom/sm8650.dtsi index 95509ce2713d4fcc3dbe0c5cd5827312d5681af4..e9fcf05cb084b7979ecf0f4712fed332e9f4b07a 100644 --- a/arch/arm64/boot/dts/qcom/sm8650.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8650.dtsi @@ -6173,19 +6173,19 @@ map0 { trips { gpu0_alert0: trip-point0 { - temperature = <85000>; + temperature = <95000>; hysteresis = <1000>; type = "passive"; }; trip-point1 { - temperature = <90000>; + temperature = <115000>; hysteresis = <1000>; type = "hot"; }; trip-point2 { - temperature = <110000>; + temperature = <125000>; hysteresis = <1000>; type = "critical"; }; @@ -6206,19 +6206,19 @@ map0 { trips { gpu1_alert0: trip-point0 { - temperature = <85000>; + temperature = <95000>; hysteresis = <1000>; type = "passive"; }; trip-point1 { - temperature = <90000>; + temperature = <115000>; hysteresis = <1000>; type = "hot"; }; trip-point2 { - temperature = <110000>; + temperature = <125000>; hysteresis = <1000>; type = "critical"; }; @@ -6239,19 +6239,19 @@ map0 { trips { gpu2_alert0: trip-point0 { - temperature = <85000>; + temperature = <95000>; hysteresis = <1000>; type = "passive"; }; trip-point1 { - temperature = <90000>; + temperature = <115000>; hysteresis = <1000>; type = "hot"; }; trip-point2 { - temperature = <110000>; + temperature = <125000>; hysteresis = <1000>; type = "critical"; }; @@ -6272,19 +6272,19 @@ map0 { trips { gpu3_alert0: trip-point0 { - temperature = <85000>; + temperature = <95000>; hysteresis = <1000>; type = "passive"; }; trip-point1 { - temperature = <90000>; + temperature = <115000>; hysteresis = <1000>; type = "hot"; }; trip-point2 { - temperature = <110000>; + temperature = <125000>; hysteresis = <1000>; type = "critical"; }; @@ -6305,19 +6305,19 @@ map0 { trips { gpu4_alert0: trip-point0 { - temperature = <85000>; + temperature = <95000>; hysteresis = <1000>; type = "passive"; }; trip-point1 { - temperature = <90000>; + temperature = <115000>; hysteresis = <1000>; type = "hot"; }; trip-point2 { - temperature = <110000>; + temperature = <125000>; hysteresis = <1000>; type = "critical"; }; @@ -6338,19 +6338,19 @@ map0 { trips { gpu5_alert0: trip-point0 { - temperature = <85000>; + temperature = <95000>; hysteresis = <1000>; type = "passive"; }; trip-point1 { - temperature = <90000>; + temperature = <115000>; hysteresis = <1000>; type = "hot"; }; trip-point2 { - temperature = <110000>; + temperature = <125000>; hysteresis = <1000>; type = "critical"; }; @@ -6371,19 +6371,19 @@ map0 { trips { gpu6_alert0: trip-point0 { - temperature = <85000>; + temperature = <95000>; hysteresis = <1000>; type = "passive"; }; trip-point1 { - temperature = <90000>; + temperature = <115000>; hysteresis = <1000>; type = "hot"; }; trip-point2 { - temperature = <110000>; + temperature = <125000>; hysteresis = <1000>; type = "critical"; }; @@ -6404,19 +6404,19 @@ map0 { trips { gpu7_alert0: trip-point0 { - temperature = <85000>; + temperature = <95000>; hysteresis = <1000>; type = "passive"; }; trip-point1 { - temperature = <90000>; + temperature = <115000>; hysteresis = <1000>; type = "hot"; }; trip-point2 { - temperature = <110000>; + temperature = <125000>; hysteresis = <1000>; type = "critical"; };