From nobody Fri Oct 10 21:43:09 2025 Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.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 F03FE204F98 for ; Mon, 3 Feb 2025 13:23:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738589006; cv=none; b=PYQV3abwtxifVevfXsfzSjC329UmnIXusWglySeWtI702LQ5voOYDjrrsRb4LrhT7NrgEan7ZW4O0WUbxwtqpPhIZ4Oh7L/AFNhX1mfI9yzdZUV8k6FQq446eLRPQqe7h9daOU3G3122ZxS0G54EntH5K6KWUNBn69IuVZkjeZI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738589006; c=relaxed/simple; bh=Lpvp0u73x3ubU5UrDV0TdedIOkakoM8csxlvAZtxZxM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=dMPL/hD1OQLjynGgwUJr2ouFov50EqP7I/T5/7Of2Io8UqpCAFPyzywgLDI6llDdBUuXocA8UwX7yeziLBGQiaNjSp2i4eMPgbjaHOxBhFTaku/qQxTE2hBGs5/IxXF/UsMeI/j6xC8Ux0FdQfzdWUQAF3hxNsrX007Fc56iwTg= 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=Sjoo1cYn; arc=none smtp.client-ip=209.85.128.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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Sjoo1cYn" Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-438a3216fc2so44316065e9.1 for ; Mon, 03 Feb 2025 05:23:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1738589002; x=1739193802; 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=Sjoo1cYnRxS7ogH4R7/aiNZ4nBtVGX6g5wD6pst26FVZiwoqto08ey98L/3qGbB4NL 86GwxUXzPIqvqIaPrREdz8Vng6Tr4med/GcRiLemE0pOz1cQE4ZXrR0wECIbZbv1TvTW Tad2PbtxIS+FiKrxkciYgduBEkhz3oRwOph59VQ6LFXuFt5rQRU0ahunbqprEP24RZdL wHL6skxgSrq4WATogdLvJ0J6hQON1hvusDFz8sSHaR9x7U53sOPG6VyL9VnarF6q6gOu hlNHO4flugthmcooOJviYAhJgaU33ckDRu8XFrqHQEYw4J51ddWUpjSGYgbSKGNp+2yZ jy6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738589002; x=1739193802; 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=lleMM5jwnKTEktO6cDaX/8oVawNgYzcEqxcH7n19mWQwHj59vBPvdkOUUxtGVD0ouK IML6k/XDgw1huqm+FuO8N8Ae9DnhpYkRGZYj8xmGflHNPQctlXKVnoouVAFWDHhnxZM3 RetHJbE49LFZj1BVXMVsFOIc5JIKMN7iwu2eOIIUaMnusLreqJytINKbNByOC2D71kcM MLMJbBoZmGlbLHohlzfDtvL8TUch8dK2tihmIcrk5j9rCgZZIsDhBmSLsCUi30WkW1z9 J7yIoj7iJCErXVsmQ28SVwFPall0a6LgzgfBUM5ZI44boi9smaAZlKQGNx40CTBv5UwF q26g== X-Forwarded-Encrypted: i=1; AJvYcCVLO/yUrV1/+E6sl7DOQrb73f6d0zQNerx0FwJ1vwPBAMctGuuUykT29JDhLvqIH6WxUfngJTBfY389rVM=@vger.kernel.org X-Gm-Message-State: AOJu0YyrMxhVXvg6vF/D6fCmzmHI7rcr6UODbBZBjtLuikIdbyLJk/98 3MewUr6+zuW7Fd30oWEfSLZNIHHczlQEmpgP26SYgvlCNZELRj+uS1NUC34AP/8= X-Gm-Gg: ASbGncvHXhh/lsRtHklw8vQbBVkOcVfzw1plkBw4eisZ42irQ4xwdguraohpfKfFGK4 GGur/K6gUBAAqHq595xvXxTjOHdi+QkOBEj/EmlrTnlIfALhVTnB73PIe3sOx8p3jLgozuAaphT xK0aLTTm1baNWlwo3YuwspPMiidoBJ/XJMQa7siuiYIDhLQcjdtYmBNXcO+o3u7a5VbkMrwKX0M /OYHYIgAq2WOTC+NQP84A6lSP8g4ijmtefBh70TLGDS1wQI+JMyD59vr7KodtqQ0WwRsZ6X89yc twyPL6GiWHZvtxMSVCxlVfxBj/3XA3v/zShW X-Google-Smtp-Source: AGHT+IHSrVoAeR8CvFOpm/KLo/lYQGLkfOymi8NjX1llKLvGV9X7F5CzwyX6n14Q64FZPjBje8QrFA== X-Received: by 2002:a05:6000:1a8c:b0:38c:5bb2:b932 with SMTP id ffacd0b85a97d-38c5bb2bc01mr13239406f8f.3.1738589002167; Mon, 03 Feb 2025 05:23:22 -0800 (PST) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:8261:5fff:fe11:bdda]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38c5c0ece21sm12570858f8f.20.2025.02.03.05.23.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Feb 2025 05:23:21 -0800 (PST) From: Neil Armstrong Date: Mon, 03 Feb 2025 14:23:17 +0100 Subject: [PATCH v4 1/4] arm64: dts: qcom: sm8650: drop cpu thermal passive trip points 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: quoted-printable Message-Id: <20250203-topic-sm8650-thermal-cpu-idle-v4-1-65e35f307301@linaro.org> References: <20250203-topic-sm8650-thermal-cpu-idle-v4-0-65e35f307301@linaro.org> In-Reply-To: <20250203-topic-sm8650-thermal-cpu-idle-v4-0-65e35f307301@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/ZANAwAKAXfc29rIyEnRAcsmYgBnoMNHnDH9SXi8/O6onFwXjR+RUWCBjAN0CF3aYDVm x7nerpCJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZ6DDRwAKCRB33NvayMhJ0df1D/ 9JJ4j4yzw7qLaOa/zo8b2tr0DZ5quNAhNduTVELukS+B9Zdsol/ehArfdQdoNooHi2R9rcs11kR3rq 9utELawz19DPaDXNBOeIfc0KM8lwgStbrvAu31+Bh9ot+F28bzgiDjH6v17Doc05kRjr2wm/EOd9gV Lof/AsE6sUYWqZDTRBVd0HA6QG8DdMl4Z6yqF4pLGxlSyAG6bhAiNSv1yyQS3dF/gI5XHteFwKnU2Q zbLAt8VnalN+Jfswelm/LZ9qn232VK5aqik5ksbWS/lldAQmX4iViV7+4LSIwFlE91ztdFhLQxRZo1 ukHsxb6VUc2iKLc5JyJvhQHD0KozUBW2JgTF/VbRR1pFfVwR6pmoUCa77CPZZSsTovvHF5o7CIJf8P +jMsl+5MZfAmbjAk60Hqp/htHAXhG60TnQagWmNJ6dn9KTL9RSS+eFgMC+q5s/51K/4C0wpi7PquiF vIuEsHSlO3MrWKJoJQ3cJ3dN+LIYZymtceFd9yycUx4BkZ5LSEe4i5fNKxqpB6AzymoCLPCdH9RtqU RvRpxjrwJb1pmekBGgevWc77NIeKRcfX0VwoNBGl5Sh9mDvqT+fc2yFrl1ARoI1YDsTFNQ7cqGmtHy un9b7w4ZGIMlaU3N3SUa6tBqrHg56wmo1DQm7cubKCmSLTivWT+Zn+dI8ZSA== 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 Reviewed-by: Konrad Dybcio --- 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/qco= m/sm8650.dtsi index 25e47505adcb790d09f1d2726386438487255824..95509ce2713d4fcc3dbe0c5cd58= 27312d5681af4 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 =3D <&tsens0 5>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - - trip-point1 { - temperature =3D <95000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - cpu2-critical { temperature =3D <110000>; hysteresis =3D <1000>; @@ -5775,18 +5763,6 @@ cpu2-bottom-thermal { thermal-sensors =3D <&tsens0 6>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - - trip-point1 { - temperature =3D <95000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - cpu2-critical { temperature =3D <110000>; hysteresis =3D <1000>; @@ -5799,18 +5775,6 @@ cpu3-top-thermal { thermal-sensors =3D <&tsens0 7>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - - trip-point1 { - temperature =3D <95000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - cpu3-critical { temperature =3D <110000>; hysteresis =3D <1000>; @@ -5823,18 +5787,6 @@ cpu3-bottom-thermal { thermal-sensors =3D <&tsens0 8>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - - trip-point1 { - temperature =3D <95000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - cpu3-critical { temperature =3D <110000>; hysteresis =3D <1000>; @@ -5847,18 +5799,6 @@ cpu4-top-thermal { thermal-sensors =3D <&tsens0 9>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - - trip-point1 { - temperature =3D <95000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - cpu4-critical { temperature =3D <110000>; hysteresis =3D <1000>; @@ -5871,18 +5811,6 @@ cpu4-bottom-thermal { thermal-sensors =3D <&tsens0 10>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - - trip-point1 { - temperature =3D <95000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - cpu4-critical { temperature =3D <110000>; hysteresis =3D <1000>; @@ -5895,18 +5823,6 @@ cpu5-top-thermal { thermal-sensors =3D <&tsens0 11>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - - trip-point1 { - temperature =3D <95000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - cpu5-critical { temperature =3D <110000>; hysteresis =3D <1000>; @@ -5919,18 +5835,6 @@ cpu5-bottom-thermal { thermal-sensors =3D <&tsens0 12>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - - trip-point1 { - temperature =3D <95000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - cpu5-critical { temperature =3D <110000>; hysteresis =3D <1000>; @@ -5943,18 +5847,6 @@ cpu6-top-thermal { thermal-sensors =3D <&tsens0 13>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - - trip-point1 { - temperature =3D <95000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - cpu6-critical { temperature =3D <110000>; hysteresis =3D <1000>; @@ -5967,18 +5859,6 @@ cpu6-bottom-thermal { thermal-sensors =3D <&tsens0 14>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - - trip-point1 { - temperature =3D <95000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - cpu6-critical { temperature =3D <110000>; hysteresis =3D <1000>; @@ -6009,18 +5889,6 @@ cpu7-top-thermal { thermal-sensors =3D <&tsens1 1>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - - trip-point1 { - temperature =3D <95000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - cpu7-critical { temperature =3D <110000>; hysteresis =3D <1000>; @@ -6033,18 +5901,6 @@ cpu7-middle-thermal { thermal-sensors =3D <&tsens1 2>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - - trip-point1 { - temperature =3D <95000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - cpu7-critical { temperature =3D <110000>; hysteresis =3D <1000>; @@ -6057,18 +5913,6 @@ cpu7-bottom-thermal { thermal-sensors =3D <&tsens1 3>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - - trip-point1 { - temperature =3D <95000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - cpu7-critical { temperature =3D <110000>; hysteresis =3D <1000>; @@ -6081,18 +5925,6 @@ cpu0-thermal { thermal-sensors =3D <&tsens1 4>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - - trip-point1 { - temperature =3D <95000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - cpu0-critical { temperature =3D <110000>; hysteresis =3D <1000>; @@ -6105,18 +5937,6 @@ cpu1-thermal { thermal-sensors =3D <&tsens1 5>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - - trip-point1 { - temperature =3D <95000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - cpu1-critical { temperature =3D <110000>; hysteresis =3D <1000>; --=20 2.34.1 From nobody Fri Oct 10 21:43:09 2025 Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.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 A5EBC2054E8 for ; Mon, 3 Feb 2025 13:23:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738589006; cv=none; b=vFRGX9HJ6izI1nxUkyxPjqtUou5LyegyK/qJl8Kkl7GwFbBi4suQjLj54NzhXxMOdwmhwzlhLsbvR23qT7oYfmpvsykwOnBdu9Jyk4D9rUKuiEzOTmwkwAv7U+mCbWOMYh1kheJ5ZHo4f107DAyZtS0Tmo+o2MVCSbHOgLSn6q8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738589006; c=relaxed/simple; bh=S8q+TIWZ+6jhcRx3cQFyDGrj0Isfh+TywUhy0JgV3yg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=azpNpck6unbha4alSvMLzoVg9ZIBTjuHC0Qy5fumqkTo/GzEMjcB/njd4ZM8Xd1spLZ/JjCJ+RcLJ7qUl8origIcPCzdO9hSGcU1gqPZ4dZjnqXxvMLriedAOPotELr1k3A3XhZLKRH1mBTTFuX+Sk17mUu6RnJwAarIyP18WDs= 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=fbhsQXwj; arc=none smtp.client-ip=209.85.128.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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="fbhsQXwj" Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-4362f61757fso45493085e9.2 for ; Mon, 03 Feb 2025 05:23:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1738589003; x=1739193803; 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=qAlNrAp2yNY+2FbO9eG2u77uRfhroZ4ozx09mJK67n0=; b=fbhsQXwjvlJAZl2gWIDTC4gJoKh+sRaXyo9//USeQVl/yl7T6MCSYOEX8p13HUN7zH y1E8Ks5iinmpxoZ1M90Jp8kXSmxZ1UPe/BWkhw4VDRNZrzSaq052DsguY6Q0fKAhJ3dd mnrO8tkbwklSaihUCbfb4vr+t/HaNJualGar/B3B02kIYqFIlxkwnhD5e5J7a8NwYnSk 4Zoabh+pSnQQLP8QwQTaTglY5AB/COLwj9x8cnppGr7S1cX0y1o1KMhiPGPrNQucmkRe /uGnWANqX/TAaIjEHRJvTRVcgeE20qKyz0xPjwSDhBjBw6+DKv9UQaazMf6qu+qKXRfr CeYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738589003; x=1739193803; 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=qAlNrAp2yNY+2FbO9eG2u77uRfhroZ4ozx09mJK67n0=; b=msZvgIypVg09Amwll9LAHFiGGj5Y1aaorBu4dg3j8x8JyBmDQXebJduxyQmX6bP5xY /sKXjAMq+OrE9wv1BdYJ+fVC128rOVyLImSJOojcT6mtPtThl9o0VsEmMKfpsfWZofKa hwrHhGrQHDmjFZU3yfoa04WjNBSS10HABuWGTKWcYiWQmxHX+oT2IjG40EWcoifG+YSu Qocn2wOH27PGvkDnbZ/srF6RdF2+pkTKPg7UY4Boemj3msDLxrjqaM1AXbCwpVoSkF2W N3xrLdW6gjdqjkqXMZrnpIfrJOtvp/kf/HqGlx8mqbIJApFn0K3nIfURfhOgNyEA7d+t syyA== X-Forwarded-Encrypted: i=1; AJvYcCXBpGjIjGTPGaY9raMURlxfJ9xOh3F193uO2OBDWWxZC+PY3RPCa3IUqk2048Ktg8zsO5O2+Gr/CZT8lo4=@vger.kernel.org X-Gm-Message-State: AOJu0YyBefNcOYrb7qp5ZaBoDolM50CBGqTUS7CtZTDNzXQbLzCYNE82 z5YPIbD9ljlt+9+jXELG2rQElMLkhekvpMt6YTA10f6JyxATaz5AyDx2++EenoQ= X-Gm-Gg: ASbGnctUZasmZ81X/R8UnrVA9/0+5/kHrrmI30VzzizQPmt+WsRJS30KpFskD17t0dE jV0xC7Pc7b4I1ADRHGPTqnO5F72lUSJn+5u8nb1Z4tdquIklndLBANwuR+ohygyici/x+fNxrqT 2THM3iieRmvhjozaPAgnHeadsvqBsF+yvF2k59IY5A5AGcsUAMc+74M81fuiv/k5FpbS+Zl8coL kKjLISUwCcFNZv08nGcU+JeStpYJhaMBSzkj92BvdLGYSMFpLUbzVRd3W1fxxIPLTiGWgZHdzZB fSY1Ej5Yvafc50E2LPCmmVwvQ9wDgu3ZcRRu X-Google-Smtp-Source: AGHT+IFeKiqPz3dVen86NG2ZC84qmAaTNPnxYHo6EqOFkS6fMLHCNzQhpW2cHSV7COHrzuaTPTB8RQ== X-Received: by 2002:a05:600c:3c88:b0:434:9c60:95a3 with SMTP id 5b1f17b1804b1-438dc3c2992mr238045955e9.11.1738589002862; Mon, 03 Feb 2025 05:23:22 -0800 (PST) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:8261:5fff:fe11:bdda]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38c5c0ece21sm12570858f8f.20.2025.02.03.05.23.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Feb 2025 05:23:22 -0800 (PST) From: Neil Armstrong Date: Mon, 03 Feb 2025 14:23:18 +0100 Subject: [PATCH v4 2/4] arm64: dts: qcom: sm8650: setup gpu thermal with higher temperatures 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: quoted-printable Message-Id: <20250203-topic-sm8650-thermal-cpu-idle-v4-2-65e35f307301@linaro.org> References: <20250203-topic-sm8650-thermal-cpu-idle-v4-0-65e35f307301@linaro.org> In-Reply-To: <20250203-topic-sm8650-thermal-cpu-idle-v4-0-65e35f307301@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=5461; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=S8q+TIWZ+6jhcRx3cQFyDGrj0Isfh+TywUhy0JgV3yg=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBnoMNH1nYKO9ihEK2wwAskGHBtjdOtIHOGuQP6XerG IwEXcb2JAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZ6DDRwAKCRB33NvayMhJ0RdfD/ 9Q6lp22drBWf9UEuq5ko0vH9cAnnlh+0qdJodOrzhAWZMO+BsmLkuUaqNqmICLWkYvBnoGkjUeyZR9 Gh0y/7Jvu2fBM6wxU39P2HR36S1BuIoXgzeJ/RISlMxLLrsbkSUX4SDBrOHsJDMWFML9V51vksyAoR ysQDJBQbo1H4KGuzV7kdzjnebq5gtTzaujIyFGDW/OQno+WVMsY0HblzH4SpWH1OWVNXAwQAYOYz0m 1Ztsi0IjphFuBkgEG5r9TmtXGzegOtBY6ZVbl665Ml2iWEecHVsiHR6oOhvK431hnrgYgRf7CGbANy 5luX657YBOtm5D+tLnWvYVNbKtRkoIYZQFeD+Fd74PUENPcObDjGA2sC3s13gzSThu1ng0pdtjon+F Cs6w/E0UMiBRmuUZLOhKNfPuabNfML52AXHEyM5qH7zTxup0a79CuoyjCvGOoXZIf4dLhmGHukGpmY dk2MhOhuZ5vCeo1AfLQ1KuqY10gCEi8Y39wMD70TUOY6diVNSyvWqM+zfjIJVqCp4FfLRtsxIfx3Wx PkiTC3SVrpPBUrfpHv71oNJh51PfmjWavqiV/wBgd4XvF/6Rt0E/n+p/Kh0rfhAU5KVTUzSmAnVtq7 2Y9FDBUBK0EFuJvO8OLqljvbHMGCcBniTX7E8giDitB4Sv+eX1JABLdiCYlw== 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 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. The tsens MAX_THRESHOLD is set to 120C on those platforms, so set the hot to 110C to leave a chance to HLOS to react and critical to 115C to avoid the monitor thermal shutdown. Fixes: 497624ed5506 ("arm64: dts: qcom: sm8650: Throttle the GPU when overh= eating") Signed-off-by: Neil Armstrong Reviewed-by: Konrad Dybcio Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm8650.dtsi | 64 ++++++++++++++++++--------------= ---- 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8650.dtsi b/arch/arm64/boot/dts/qco= m/sm8650.dtsi index 95509ce2713d4fcc3dbe0c5cd5827312d5681af4..798265e0300e7c7934e04cd971e= 3b9d3d55e3bec 100644 --- a/arch/arm64/boot/dts/qcom/sm8650.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8650.dtsi @@ -6173,20 +6173,20 @@ map0 { =20 trips { gpu0_alert0: trip-point0 { - temperature =3D <85000>; + temperature =3D <95000>; hysteresis =3D <1000>; type =3D "passive"; }; =20 trip-point1 { - temperature =3D <90000>; + temperature =3D <110000>; hysteresis =3D <1000>; type =3D "hot"; }; =20 trip-point2 { - temperature =3D <110000>; - hysteresis =3D <1000>; + temperature =3D <115000>; + hysteresis =3D <0>; type =3D "critical"; }; }; @@ -6206,20 +6206,20 @@ map0 { =20 trips { gpu1_alert0: trip-point0 { - temperature =3D <85000>; + temperature =3D <95000>; hysteresis =3D <1000>; type =3D "passive"; }; =20 trip-point1 { - temperature =3D <90000>; + temperature =3D <110000>; hysteresis =3D <1000>; type =3D "hot"; }; =20 trip-point2 { - temperature =3D <110000>; - hysteresis =3D <1000>; + temperature =3D <115000>; + hysteresis =3D <0>; type =3D "critical"; }; }; @@ -6239,20 +6239,20 @@ map0 { =20 trips { gpu2_alert0: trip-point0 { - temperature =3D <85000>; + temperature =3D <95000>; hysteresis =3D <1000>; type =3D "passive"; }; =20 trip-point1 { - temperature =3D <90000>; + temperature =3D <110000>; hysteresis =3D <1000>; type =3D "hot"; }; =20 trip-point2 { - temperature =3D <110000>; - hysteresis =3D <1000>; + temperature =3D <115000>; + hysteresis =3D <0>; type =3D "critical"; }; }; @@ -6272,20 +6272,20 @@ map0 { =20 trips { gpu3_alert0: trip-point0 { - temperature =3D <85000>; + temperature =3D <95000>; hysteresis =3D <1000>; type =3D "passive"; }; =20 trip-point1 { - temperature =3D <90000>; + temperature =3D <110000>; hysteresis =3D <1000>; type =3D "hot"; }; =20 trip-point2 { - temperature =3D <110000>; - hysteresis =3D <1000>; + temperature =3D <115000>; + hysteresis =3D <0>; type =3D "critical"; }; }; @@ -6305,20 +6305,20 @@ map0 { =20 trips { gpu4_alert0: trip-point0 { - temperature =3D <85000>; + temperature =3D <95000>; hysteresis =3D <1000>; type =3D "passive"; }; =20 trip-point1 { - temperature =3D <90000>; + temperature =3D <110000>; hysteresis =3D <1000>; type =3D "hot"; }; =20 trip-point2 { - temperature =3D <110000>; - hysteresis =3D <1000>; + temperature =3D <115000>; + hysteresis =3D <0>; type =3D "critical"; }; }; @@ -6338,20 +6338,20 @@ map0 { =20 trips { gpu5_alert0: trip-point0 { - temperature =3D <85000>; + temperature =3D <95000>; hysteresis =3D <1000>; type =3D "passive"; }; =20 trip-point1 { - temperature =3D <90000>; + temperature =3D <110000>; hysteresis =3D <1000>; type =3D "hot"; }; =20 trip-point2 { - temperature =3D <110000>; - hysteresis =3D <1000>; + temperature =3D <115000>; + hysteresis =3D <0>; type =3D "critical"; }; }; @@ -6371,20 +6371,20 @@ map0 { =20 trips { gpu6_alert0: trip-point0 { - temperature =3D <85000>; + temperature =3D <95000>; hysteresis =3D <1000>; type =3D "passive"; }; =20 trip-point1 { - temperature =3D <90000>; + temperature =3D <110000>; hysteresis =3D <1000>; type =3D "hot"; }; =20 trip-point2 { - temperature =3D <110000>; - hysteresis =3D <1000>; + temperature =3D <115000>; + hysteresis =3D <0>; type =3D "critical"; }; }; @@ -6404,20 +6404,20 @@ map0 { =20 trips { gpu7_alert0: trip-point0 { - temperature =3D <85000>; + temperature =3D <95000>; hysteresis =3D <1000>; type =3D "passive"; }; =20 trip-point1 { - temperature =3D <90000>; + temperature =3D <110000>; hysteresis =3D <1000>; type =3D "hot"; }; =20 trip-point2 { - temperature =3D <110000>; - hysteresis =3D <1000>; + temperature =3D <115000>; + hysteresis =3D <0>; type =3D "critical"; }; }; --=20 2.34.1 From nobody Fri Oct 10 21:43:09 2025 Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (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 82D2A2054F6 for ; Mon, 3 Feb 2025 13:23:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738589007; cv=none; b=aQvjpxEqDZUdI/vdgphH+59b/F8rfkSDtrm/SIcaxMWwhHsinqDh5vU3j0+fnkVD+YzNUtqBXwjfXroW/TWjjYk5TxDGrqV8VuYu9d7n/ui73o5lDieWQG6lrPNNNzuB0c+mHPOO77HMMQuo/eG+ge8Mp/Qj+Hbe3J2/MWqKmVA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738589007; c=relaxed/simple; bh=EOIT5wasTuCdnIGFj+C+v7Imz8Bay8RvnyftNqd+jIs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=oaJstYK9uiyyrUFzztHBreSbwPo8uFxgoD5ofVweQn5kdFVmt3Bha01gbXUz37gXAElJynMc/iXjWRZSY+glfNNldcEO8czbcENoS5jNYLDq0S3eBZwuMvVohAxUUho+NQlVfJeN4E2kF4fBy5zqI8w8SznnY/G+iYx8n0fbfN4= 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=iGAnwtdW; arc=none smtp.client-ip=209.85.128.46 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="iGAnwtdW" Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-438a39e659cso30217535e9.2 for ; Mon, 03 Feb 2025 05:23:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1738589003; x=1739193803; 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=BXfDylpmdi5Gu6DnNa4S+BfTwzb2q5/gQueEk5XiMs0=; b=iGAnwtdWx16IqVgGu+I8PN78UTvofchjMNOWwm/m8uiAzY7jO2xEp/MByIZdL1fomp txcMQjx1ksGvU0Y+94SLmduNlpO8GfF0soGu2e10SePlGXTFZ3dsnwlRqHxJ+IblOAQt wPbJ99zb/tvbDEOrkbqJhNQbV7TFe6lzcHCu/2IlAnuq1wUUE7X4m6mm9bnubMN/Ko2U t4XvzuWbkiVdlzhOlmfXe2HLkUhCKpiOTTZ7SJUj1kK/ScoPbeHZDtM4LWvau+F/QVy7 FgGI91rIkyVQwGt8WyECwGkaQvvc7rlj/F5Zhjrivp87bP/eAw0EOx3TqXdQN5OMlo/Z xA8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738589003; x=1739193803; 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=BXfDylpmdi5Gu6DnNa4S+BfTwzb2q5/gQueEk5XiMs0=; b=EMl3AUg8ZC1bgx2IbY/tVjLGG2KHSFMr2FPuamekfwLaD958ifBuEvswxmhxa5lcT3 1GqHn1aVQ2mqXvNH4BhK2ac0URMr7eqkyZ3uuDRnKU85nRn2NBdE/JGUlp5PAKzZm1/N qHCa3yeJ5dj1KOL9ETc8Zvi32OqUfrcR/7+os8P+geZysH/DFCHnPbA+I0WxsiY4WzDd 0N43WMnMdDjYcBJxvH8aLmCEoyJiQDxQF+3/ilsJwZP1YT2Zr+E3ntC3eIOzU7SQViAF 8Js6tkHbqBpYciRhK9rGa3UDbKZqICYDpoGjubm/nipmjkwkM0Qamv1Aublkp014nW3O TyYA== X-Forwarded-Encrypted: i=1; AJvYcCWq9oQulur1oMTO+YQR+5DxHW6hxj5MdaXwdO/kqLxnb4SRmL+7VjTvyU2xQVYXOsUBSs4ZdHsLmMTi+mM=@vger.kernel.org X-Gm-Message-State: AOJu0YyBhp5HsWTZvKK0fUMgIb0m330AjqFLB2wCWmWg10eXmYjN1QaH aPSPrxbc5c8egWKr1VnC+k2YbjHHXApWOTEFsCm3N4JN0wXcPmLtD/+c+5vFsuE= X-Gm-Gg: ASbGncsfH/6EDBIvIzpbIov+2W7YH8M2hNyNpa3eqm1fhbYbmQh00TMZe/32NudNngY Mh0Z/hpLk3T5ed0Ovfqp9gAaaur0Q2yRzJWEiSD5hXK8fJn0RuBaexO1qeFFj7XYxBhspL8unSJ FnwXa6QvqeHF2MQZMu1wJddQzaDsBWDbVJR2AX57cfOEcPVQojaKF36sdhsfNNZPvlCQIiB0KfG LcIsulidlWrPveI8hyHnOI4Nb0OgkBdYzDMZ8u+SdWWDLSUR785fYjCQlk1v7s9wa9VFFTOWMSr rNjdv6Tqi+i/4hBrPivCFQ9vRpig5gJRdDWC X-Google-Smtp-Source: AGHT+IE5GJHn5FYb7QOdVTzlwabnZlpVmi7aKybmkPH4eiiM8cXeslT2VUEAaTnmNv6/TZDnvtlCsw== X-Received: by 2002:a05:600c:c87:b0:434:f1e9:afb3 with SMTP id 5b1f17b1804b1-438e0d879fdmr154434155e9.3.1738589003503; Mon, 03 Feb 2025 05:23:23 -0800 (PST) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:8261:5fff:fe11:bdda]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38c5c0ece21sm12570858f8f.20.2025.02.03.05.23.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Feb 2025 05:23:23 -0800 (PST) From: Neil Armstrong Date: Mon, 03 Feb 2025 14:23:19 +0100 Subject: [PATCH v4 3/4] arm64: dts: qcom: sm8650: harmonize all unregulated thermal trip points 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: quoted-printable Message-Id: <20250203-topic-sm8650-thermal-cpu-idle-v4-3-65e35f307301@linaro.org> References: <20250203-topic-sm8650-thermal-cpu-idle-v4-0-65e35f307301@linaro.org> In-Reply-To: <20250203-topic-sm8650-thermal-cpu-idle-v4-0-65e35f307301@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=10297; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=EOIT5wasTuCdnIGFj+C+v7Imz8Bay8RvnyftNqd+jIs=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBnoMNHq3GRUG9dYxOl47nngw5nliHhpEMM3iIhL1d0 o1jLzHqJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZ6DDRwAKCRB33NvayMhJ0R9tEA CFpRY1iDFpPmKDW6/3YvU4j5G4OE/sioIEF+jtcexa0Pc5nx5vTBnJj28uvsjyqIMn6Gu23G5AgWoN hsjPgO+1WaYnfqj/58Etul9FvxObfVHzJQBD+HHksZHf/uRctsXW1u7GQ6c94As+O4ra8Hbu8ez3mA g9jRcD3WIPkgQqThrPiwvvOUXrvIZM32M1K7CVNHow02U044xa2p1ziv3R57pIdLkED6bxSzBHbaOy gsRL4cJJJ0EIHXtEhRyBgeQVVDvXodkfjnMwClCqzRtU7nGBKHwExuHFC/9Ek38bhi6DLI6mkRKfSy smBPAH4wbJqGnumI9Qtmju55vD6s5ethIQ6GpAswp99zi13xaY0S8GEGEV5dHZx0kwFTqsVXBNgkFC 8mcvoD7OuJLJVZYMTs7DrEQN3S1S9Aqm+B02qNKqIG0YHUSas4J/Y1jUGorNpUM9Hz/Z0A6Jjbi7Um BBv5SzOjxttThhbDVwABoMBwj4B7NuPN6TZ7VwzZQgCBBILgcaov+oAap8F+dYV7Ux8vBDgKH31yQX mN4mMJtP8JQnMUY7jl3qiR26lMm2O+LR8QBBtSKZAcgrb/a2Tlw9tkLeZ5v055b0CqAV5AMtit6jhR dG72gld9mYYjG7Yza1KTG2lyefmC6us5v9sYwQiiZHMHK54rpz9rqaawnHpQ== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE While the CPUs thermal is handled by the LMH, and GPU has a passive cooldowm via the HLOS DCVS, all the other thermal blocks only have hot and critical and no passive/active trip points. Passive or active thermal management for those blocks should be either defined if somehow we can express those in DT or in the board definition if there's an active cooling device available. The tsens MAX_THRESHOLD is set to 120C on those platforms, so set the hot to 110C to leave a chance to HLOS to react and critical to 115C to avoid the monitor thermal shutdown. In the case a passive or active cooling device would be available, the downstream reference implementation uses the 95C "tj" trip point, as we already use for the gpuss thermal blocks. Signed-off-by: Neil Armstrong Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm8650.dtsi | 170 +++++++++++++++++--------------= ---- 1 file changed, 85 insertions(+), 85 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8650.dtsi b/arch/arm64/boot/dts/qco= m/sm8650.dtsi index 798265e0300e7c7934e04cd971e3b9d3d55e3bec..24070d99b6f097f38e618330414= b5a04734e7e32 100644 --- a/arch/arm64/boot/dts/qcom/sm8650.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8650.dtsi @@ -5661,14 +5661,14 @@ aoss0-thermal { thermal-sensors =3D <&tsens0 0>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; + aoss0-hot { + temperature =3D <110000>; + hysteresis =3D <1000>; type =3D "hot"; }; =20 aoss0-critical { - temperature =3D <110000>; + temperature =3D <115000>; hysteresis =3D <0>; type =3D "critical"; }; @@ -5679,14 +5679,14 @@ cpuss0-thermal { thermal-sensors =3D <&tsens0 1>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; + cpuss0-hot { + temperature =3D <110000>; + hysteresis =3D <1000>; type =3D "hot"; }; =20 cpuss0-critical { - temperature =3D <110000>; + temperature =3D <115000>; hysteresis =3D <0>; type =3D "critical"; }; @@ -5697,14 +5697,14 @@ cpuss1-thermal { thermal-sensors =3D <&tsens0 2>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; + cpuss1-hot { + temperature =3D <110000>; + hysteresis =3D <1000>; type =3D "hot"; }; =20 cpuss1-critical { - temperature =3D <110000>; + temperature =3D <115000>; hysteresis =3D <0>; type =3D "critical"; }; @@ -5715,14 +5715,14 @@ cpuss2-thermal { thermal-sensors =3D <&tsens0 3>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; + cpuss2-hot { + temperature =3D <110000>; + hysteresis =3D <1000>; type =3D "hot"; }; =20 cpuss2-critical { - temperature =3D <110000>; + temperature =3D <115000>; hysteresis =3D <0>; type =3D "critical"; }; @@ -5733,14 +5733,14 @@ cpuss3-thermal { thermal-sensors =3D <&tsens0 4>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; + cpuss3-hot { + temperature =3D <110000>; + hysteresis =3D <1000>; type =3D "hot"; }; =20 cpuss3-critical { - temperature =3D <110000>; + temperature =3D <115000>; hysteresis =3D <0>; type =3D "critical"; }; @@ -5871,14 +5871,14 @@ aoss1-thermal { thermal-sensors =3D <&tsens1 0>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; + aoss1-hot { + temperature =3D <110000>; + hysteresis =3D <1000>; type =3D "hot"; }; =20 aoss1-critical { - temperature =3D <110000>; + temperature =3D <115000>; hysteresis =3D <0>; type =3D "critical"; }; @@ -5951,14 +5951,14 @@ nsphvx0-thermal { thermal-sensors =3D <&tsens2 6>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; + nsphvx0-hot { + temperature =3D <110000>; + hysteresis =3D <1000>; type =3D "hot"; }; =20 - nsphvx1-critical { - temperature =3D <110000>; + nsphvx0-critical { + temperature =3D <115000>; hysteresis =3D <0>; type =3D "critical"; }; @@ -5971,14 +5971,14 @@ nsphvx1-thermal { thermal-sensors =3D <&tsens2 7>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; + nsphvx1-hot { + temperature =3D <110000>; + hysteresis =3D <1000>; type =3D "hot"; }; =20 nsphvx1-critical { - temperature =3D <110000>; + temperature =3D <115000>; hysteresis =3D <0>; type =3D "critical"; }; @@ -5991,14 +5991,14 @@ nsphmx0-thermal { thermal-sensors =3D <&tsens2 8>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; + nsphmx0-hot { + temperature =3D <110000>; + hysteresis =3D <1000>; type =3D "hot"; }; =20 nsphmx0-critical { - temperature =3D <110000>; + temperature =3D <115000>; hysteresis =3D <0>; type =3D "critical"; }; @@ -6011,14 +6011,14 @@ nsphmx1-thermal { thermal-sensors =3D <&tsens2 9>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; + nsphmx1-hot { + temperature =3D <110000>; + hysteresis =3D <1000>; type =3D "hot"; }; =20 nsphmx1-critical { - temperature =3D <110000>; + temperature =3D <115000>; hysteresis =3D <0>; type =3D "critical"; }; @@ -6031,14 +6031,14 @@ nsphmx2-thermal { thermal-sensors =3D <&tsens2 10>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; + nsphmx2-hot { + temperature =3D <110000>; + hysteresis =3D <1000>; type =3D "hot"; }; =20 nsphmx2-critical { - temperature =3D <110000>; + temperature =3D <115000>; hysteresis =3D <0>; type =3D "critical"; }; @@ -6051,14 +6051,14 @@ nsphmx3-thermal { thermal-sensors =3D <&tsens2 11>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; + nsphmx3-hot { + temperature =3D <110000>; + hysteresis =3D <1000>; type =3D "hot"; }; =20 nsphmx3-critical { - temperature =3D <110000>; + temperature =3D <115000>; hysteresis =3D <0>; type =3D "critical"; }; @@ -6071,14 +6071,14 @@ video-thermal { thermal-sensors =3D <&tsens1 12>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; + video-hot { + temperature =3D <110000>; + hysteresis =3D <1000>; type =3D "hot"; }; =20 video-critical { - temperature =3D <110000>; + temperature =3D <115000>; hysteresis =3D <0>; type =3D "critical"; }; @@ -6091,14 +6091,14 @@ ddr-thermal { thermal-sensors =3D <&tsens1 13>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; + ddr-hot { + temperature =3D <110000>; + hysteresis =3D <1000>; type =3D "hot"; }; =20 ddr-critical { - temperature =3D <110000>; + temperature =3D <115000>; hysteresis =3D <0>; type =3D "critical"; }; @@ -6109,14 +6109,14 @@ camera0-thermal { thermal-sensors =3D <&tsens1 14>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; + camera0-hot { + temperature =3D <110000>; + hysteresis =3D <1000>; type =3D "hot"; }; =20 camera0-critical { - temperature =3D <110000>; + temperature =3D <115000>; hysteresis =3D <0>; type =3D "critical"; }; @@ -6127,14 +6127,14 @@ camera1-thermal { thermal-sensors =3D <&tsens1 15>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; + camera1-hot { + temperature =3D <110000>; + hysteresis =3D <1000>; type =3D "hot"; }; =20 camera1-critical { - temperature =3D <110000>; + temperature =3D <115000>; hysteresis =3D <0>; type =3D "critical"; }; @@ -6145,14 +6145,14 @@ aoss2-thermal { thermal-sensors =3D <&tsens2 0>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; + aoss2-hot { + temperature =3D <110000>; + hysteresis =3D <1000>; type =3D "hot"; }; =20 aoss2-critical { - temperature =3D <110000>; + temperature =3D <115000>; hysteresis =3D <0>; type =3D "critical"; }; @@ -6427,14 +6427,14 @@ modem0-thermal { thermal-sensors =3D <&tsens2 9>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; + modem0-hot { + temperature =3D <110000>; + hysteresis =3D <1000>; type =3D "hot"; }; =20 modem0-critical { - temperature =3D <110000>; + temperature =3D <115000>; hysteresis =3D <0>; type =3D "critical"; }; @@ -6445,14 +6445,14 @@ modem1-thermal { thermal-sensors =3D <&tsens2 10>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; + modem1-hot { + temperature =3D <110000>; + hysteresis =3D <1000>; type =3D "hot"; }; =20 modem1-critical { - temperature =3D <110000>; + temperature =3D <115000>; hysteresis =3D <0>; type =3D "critical"; }; @@ -6463,14 +6463,14 @@ modem2-thermal { thermal-sensors =3D <&tsens2 11>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; + modem2-hot { + temperature =3D <110000>; + hysteresis =3D <1000>; type =3D "hot"; }; =20 modem2-critical { - temperature =3D <110000>; + temperature =3D <115000>; hysteresis =3D <0>; type =3D "critical"; }; @@ -6481,14 +6481,14 @@ modem3-thermal { thermal-sensors =3D <&tsens2 12>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; + modem3-hot { + temperature =3D <110000>; + hysteresis =3D <1000>; type =3D "hot"; }; =20 modem3-critical { - temperature =3D <110000>; + temperature =3D <115000>; hysteresis =3D <0>; type =3D "critical"; }; --=20 2.34.1 From nobody Fri Oct 10 21:43:09 2025 Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.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 BA26B2054FD for ; Mon, 3 Feb 2025 13:23:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738589007; cv=none; b=ZLXSWmMmmAzoM6PwCK3rx5CnFceVUH1x1ed/Q7YtH9vK9wPtCUOOEKFh2RMpsoiB0hJifaS2cPkeOTbZG87eyypKmZ/CGKYxB/p9XXAKGn6sRNp0TGWHB4+f8mcYpaR1VRrUQanYKByFiKqPuadoNLI0iLbKMI3bYlmNh7G15+s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738589007; c=relaxed/simple; bh=pPPjHSDlRSmjJrvtmUx5gQ6ccWOFtnt4ixNEfY9ZZY0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=PzYTyzv+CMYeh1gf04qT8uKNOK5vYjaBMoGMMqzZcIL3o4H5MDmDS+ZgpMFX9qAeBgrZbVuSdF8Hm8UgKTEbfnsL10XZVg2ySbkL9M1CktbSF1P3NUJEff7+Vfvm8IHFgS5RqaSLvuVsiXgIceH14SGiw87WR+q+6eKek1DjtIw= 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=kM+1DtZ2; arc=none smtp.client-ip=209.85.128.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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="kM+1DtZ2" Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-43625c4a50dso30328935e9.0 for ; Mon, 03 Feb 2025 05:23:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1738589004; x=1739193804; 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=pStKCDB+ZVSjuAmkijk1NSz9iCb562SIhP18Ki4b/24=; b=kM+1DtZ2wZzSbEH5wNwc2pBXQllMLsAXo9PHkbFXnh0uo6ApeRV1fQbMIHmCS2iqBo AUmpn7H2vpjO2gJW4MGwfRekHq26BAuHqwd1VrMmeWeHN3ZYuC1mtPJjVchJr4+q6KrB v4b2GUhjEc/IgwaAN3HIIaMyaAMdezZmmTd+djoyIGdn0aepp1p0hy1h2rO2eGMEHcUh fHxy7vyMrCkMVtoiX/mpwJijET7SLBL80Sx8mLPfwFtr3UI8yABk4aeuUd+AREESiuVE DZ9GYK4V7bNa7sJk93A5s+MolDHeZRDbxijsIGN8fajmNYA02VgIuMPlmPjGyEJiMRpd j8Ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738589004; x=1739193804; 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=pStKCDB+ZVSjuAmkijk1NSz9iCb562SIhP18Ki4b/24=; b=CUsfpig0H3g1I48WHRCLx5KRtWTJZlq9ll92/zoZi5y1i3km8IXHhFmaKUz6i1jaj2 V8zOdOfaOTVr12wONLYvXIlDJACxedqOyhxSAWFO0UmETEEPr0H/6L/USZ0BrSbDJJ8b NyrA60COMd91ZFmWHRUGG0U2AOHH/9L6wzMca69mTwM0pTmWLHMwPkHsPMluxNcKjgCk tksZSBlzE7lret7xfKMgvQjPMgbyCz8Q2xhuHT3wx6SrGsck+TKuW9B6LqB5BeYAJ/0q CDubIIQux7EyJi+KYQLnYIjmx72fGrWdcDOJ+MsdxSF/5ZOLg2oMn6Kp4sKArIpnDGTq UPRg== X-Forwarded-Encrypted: i=1; AJvYcCULGRPpWxfyLV9TefPVs56pGGKg3t8gZzTkIQKVlbFIrjHAMVPvSmTHaPstuTK/bZDx1VkvPruvPlXn2I8=@vger.kernel.org X-Gm-Message-State: AOJu0YzEBe+C1JMM5A3NJSNYnoBT797o63jx7gGRgELQDMY2rv3At+Hu xJQpMLxlSHD53RLSXWXi+QCVO4ws4xtEpxpccFR/7t53SV1NrihuMdcu90kvTkM= X-Gm-Gg: ASbGnctcFsMH1LWkkWAi6Ouz5oY4zhHkCqFLM2qNGifIKAOBeC7QqKN6rhhtougGcQD FW+99p2z33miyW8JMFUHdhaVXBbxNa7XFt6Qi8I7YBHraB1DguYenqFAmLJ0vx8WJfCTYm6/vky WJvsgffEqcWh1qrVIdC3Gd6ebE8XLAQ6L69sJCABxzxUDMtPkZcAIM31xfuNQFa/NkJ3PVQaYXO auhQ7jRwQ16PhTmqfHnneD+lvgACoY25opQXD02sICZA4IgrffMSvwNomWLaMBHvmO9bkowudpT BMidgjXMsJkFEDhq4Qxcvgk6trMXGUyDlmFI X-Google-Smtp-Source: AGHT+IGi1i7MJSMei3cRyd6gVuDoDAXBw+NwD99CJnh3gnme2OXRMwsfSBqppZabd8Tow8tx72cGCw== X-Received: by 2002:a5d:6d0c:0:b0:38a:888c:676f with SMTP id ffacd0b85a97d-38c5194a531mr17599558f8f.15.1738589004144; Mon, 03 Feb 2025 05:23:24 -0800 (PST) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:8261:5fff:fe11:bdda]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38c5c0ece21sm12570858f8f.20.2025.02.03.05.23.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Feb 2025 05:23:23 -0800 (PST) From: Neil Armstrong Date: Mon, 03 Feb 2025 14:23:20 +0100 Subject: [PATCH v4 4/4] arm64: dts: qcom: sm8650: drop remaining polling-delay-passive properties 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: quoted-printable Message-Id: <20250203-topic-sm8650-thermal-cpu-idle-v4-4-65e35f307301@linaro.org> References: <20250203-topic-sm8650-thermal-cpu-idle-v4-0-65e35f307301@linaro.org> In-Reply-To: <20250203-topic-sm8650-thermal-cpu-idle-v4-0-65e35f307301@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 , Konrad Dybcio X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1925; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=pPPjHSDlRSmjJrvtmUx5gQ6ccWOFtnt4ixNEfY9ZZY0=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBnoMNI9Pfur6NrZMPxDPFuNSQbD8wmGMgmBZmYhtoG shPghTiJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZ6DDSAAKCRB33NvayMhJ0QjGD/ 4/47vXC7TO5rJY0wWg/gNOHojZXR2rrpR1xajt/Hv5e0fssJw627GeOwl41yrFU+eLQ6gsVmJA9UR4 A8CykJZHeX2WXVhaBOr9dqov6Jn2s7P/MWTmQ4/Ab/aS7zK7Ci3IMatC3J0QDNwt6zyr5vPMzceOGd 8hwfaFpiyZrRgJJLQRqYk3+nUEf1j/9QqBMSNwwTyxxP+p/2aT0F2rrHxBXQhU0qiXjrQmf51Fs/r4 dUGWjD2oNqTcGVCOQAyS5JrFCCxVUVbMWq5NewYnbG2KT73/IQhivuX9Gr/aYw3cQdhj0LjsgJr2Wx 0x0s6zMoZBqP4raVIlpZbpRNAD1Bx7eWCYPaHNDI51xiZVwPJvCcniKaHPhp2GIIBObBItHPv9gPz1 XbRRTyTDK+BlLAUcVXe6P2hdLZet2dsz5JVBj9dV+0roFAl6CXhHpLUen5f1YocwC1pGeWJT/6CERu c35QOSuimhixNyx6gSMrMyV62wuQKwHxvvUGbMQN3Cze3iGiSxxG2xuvtLXYefQTHZXAfftgJ1pmfh cCW1uP6YuEgZRtzVc9pAy2UM/wXTkEORI53daSkLsxXya2YP7JeY/kyX4dgazQt6ViNqsMDxxpeGGb +rW94KR94l9ILhEgGc5Aew+FsH4qMwKPC8WyptV/MFYK9MDRl1tpNc5eRiUg== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE Remove the remaining polling-delay-passive properties from thermal nodes without a passive trip point. Suggested-by: Konrad Dybcio Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/qcom/sm8650.dtsi | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8650.dtsi b/arch/arm64/boot/dts/qco= m/sm8650.dtsi index 24070d99b6f097f38e618330414b5a04734e7e32..fbceb66969156052467473e7bf6= 37c762df03147 100644 --- a/arch/arm64/boot/dts/qcom/sm8650.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8650.dtsi @@ -5946,8 +5946,6 @@ cpu1-critical { }; =20 nsphvx0-thermal { - polling-delay-passive =3D <10>; - thermal-sensors =3D <&tsens2 6>; =20 trips { @@ -5966,8 +5964,6 @@ nsphvx0-critical { }; =20 nsphvx1-thermal { - polling-delay-passive =3D <10>; - thermal-sensors =3D <&tsens2 7>; =20 trips { @@ -5986,8 +5982,6 @@ nsphvx1-critical { }; =20 nsphmx0-thermal { - polling-delay-passive =3D <10>; - thermal-sensors =3D <&tsens2 8>; =20 trips { @@ -6006,8 +6000,6 @@ nsphmx0-critical { }; =20 nsphmx1-thermal { - polling-delay-passive =3D <10>; - thermal-sensors =3D <&tsens2 9>; =20 trips { @@ -6026,8 +6018,6 @@ nsphmx1-critical { }; =20 nsphmx2-thermal { - polling-delay-passive =3D <10>; - thermal-sensors =3D <&tsens2 10>; =20 trips { @@ -6046,8 +6036,6 @@ nsphmx2-critical { }; =20 nsphmx3-thermal { - polling-delay-passive =3D <10>; - thermal-sensors =3D <&tsens2 11>; =20 trips { @@ -6066,8 +6054,6 @@ nsphmx3-critical { }; =20 video-thermal { - polling-delay-passive =3D <10>; - thermal-sensors =3D <&tsens1 12>; =20 trips { @@ -6086,8 +6072,6 @@ video-critical { }; =20 ddr-thermal { - polling-delay-passive =3D <10>; - thermal-sensors =3D <&tsens1 13>; =20 trips { --=20 2.34.1