From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796411337; b=unOx8C8l7KA+AoUO4JtHpjtCqWNrTmCGC/6CPdf8xD4afyHq9kK5bA6R6jpsj94j7v1c EN+3Fb9h/Ya/4ANtwinHCNVYHvHMoxZ6SbiXrsur56sDocT3rJEfSKIPuRm6qHJvI6iTO M616pk60ijgehHk0AxsEofmSnGqcgUnbgxK5KLZWTDhWDHlBnrafLhU0COisVaP++40KQ iZ8HZ8743bOBnxtojjN4TnLCOq22IANUjQND4yzElMqlEhgkGffWfTT+8qbdbNRB07bPa +v2vAn2apHFZHw+aTUisGkbIWFsz+9GXVS1e6vKdGKAT54XPmuPqZQHrmYqrwsup2AA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796411337; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=b+i4Wj1wdH934eLlJDR1Ce/4oR+XUb9aT6qmvrcW7NY=; b=NIULrZKmRpvCL6ZT2VWwKrNyUM4Fy+DYV8yd0gKpFHF1gtwrUkD+Medwx1lTFI8Ru6yC klt9JVUgCBlbIL2BLPAiIWaM6shSJU/wVQdSUFnjOUbQfUQuqwGJg/6DunELpYUp9JSZq Cf+16ZO9GB/YLNizR8q5DEHn7c2rVFQ3HvjMkeWCwY6yzmKm/b1JlnWd1LKk0Oe6g7qy+ ac4cqjFJOW36wSfvyiklet0byuT2w4H8P+hu5QS4ceuzIeecgntmycxE7kQKlsxvI8pxW 1/q7VL5f0nSeTVD//ngT8af0K/tRX97XDo92PQofIyt4LtvdCMFa6G0qktlKb8mwdCg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=FsoSsKd2; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BFA32606A322; Fri, 4 Dec 2026 19:08:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=FsoSsKd2 Received: by smtp.kernel.org (Postfix) with ESMTPSA id AAA4F1F0093B; Fri, 4 Dec 2026 19:08:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796411337; bh=b+i4Wj1wdH934eLlJDR1Ce/4oR+XUb9aT6qmvrcW7NY=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=FsoSsKd2MzMQjgJ0U/j3zvn7W2id2B2ySaxp89ccpw/1xuNpyq05/yWYNVWSQzi4i HngEKTcuLRPqq6/GzkPRkWb3FRv0mbTZltHlxyrxHBczHDJ6ojCQmETeopIEgHeU8Z v3fQ3LPzf6RZ3MshEwcGsYJzLg+96ALtInJ3sed3mFuxJu0CIXHf6d5KwsjzKJPGZX v73+vXKDIodBjpBhAsR9WIUYws0vaaA8MJbFo/HgIafD5sKvz7vhEpTzEGmEF20g7I Qqj6ei59pItQhq1yATl55bA17BLIVQ0mNmMTiY7gpyuR5FKJiGvK80H/TIoUmdYLPI Bf8WCgQnojpZQ== Date: Fri, 4 Dec 2026 13:08:53 -0600 From: Bjorn Andersson To: Gaurav Kohli Cc: Konrad Dybcio , Abel Vesa , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] arm64: dts: qcom: shikra: Raise CPU critical trips Message-ID: References: <20261025-shikra_crit_trip-v2-1-79e429cb9350@oss.qualcomm.com> X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261025-shikra_crit_trip-v2-1-79e429cb9350@oss.qualcomm.com> On Sun, Oct 25, 2026 at 01:33:05PM +0530, Gaurav Kohli wrote: > Shikra firmware starts CPU thermal mitigation at 115 C and also > handles the 117 C threshold, while hardware shutdown is at 120 C. A > Linux critical trip at 115 C overlaps the beginning of firmware > mitigation and can shut the system down before firmware has had a > chance to complete its thermal sequence. > "One of the 67 different firmware images in Shikra performs thermal mitigation at 115C, if we configure the kernel to shut down at the same temperature, the firmware will be sad. Change it a bit so that we can all be happy." > Raise the CPU and CPUSS critical trips to 118 C instead. This keeps a > Linux graceful shutdown path before the hardware cutoff while allowing > the firmware mitigation range to run first. I would expect that we put this at 118C because the design says so, not because it's a random value between "the one that makes firmware happy" and the hardware cutoff. > Leave the hot trips, non-CPU critical trips and GPUSS passive cooling > map unchanged. > Why? How the hot trips relate to the problem that you're describing above? Please describe the problem in terms of how thermal mitigation is expected to work across firmware, Linux, and hardware - not in terms of "let's move numbers around so they don't overlap". Thanks, Bjorn > Signed-off-by: Gaurav Kohli > --- > Changes in v2: > - Move critical support at 118. (Abel) > - Link to v1: https://lore.kernel.org/r/20260924-shikra_crit_trip-v1-1-730c48fa998e@oss.qualcomm.com > --- > arch/arm64/boot/dts/qcom/shikra.dtsi | 14 +++++++------- > 1 file changed, 7 insertions(+), 7 deletions(-) > > diff --git a/arch/arm64/boot/dts/qcom/shikra.dtsi b/arch/arm64/boot/dts/qcom/shikra.dtsi > index c1f06f692f66..c4e1b78e2673 100644 > --- a/arch/arm64/boot/dts/qcom/shikra.dtsi > +++ b/arch/arm64/boot/dts/qcom/shikra.dtsi > @@ -3756,7 +3756,7 @@ trip-point0 { > }; > > cpu00-critical { > - temperature = <115000>; > + temperature = <118000>; > hysteresis = <0>; > type = "critical"; > }; > @@ -3774,7 +3774,7 @@ trip-point0 { > }; > > cpu01-critical { > - temperature = <115000>; > + temperature = <118000>; > hysteresis = <0>; > type = "critical"; > }; > @@ -3792,7 +3792,7 @@ trip-point0 { > }; > > cpu10-critical { > - temperature = <115000>; > + temperature = <118000>; > hysteresis = <0>; > type = "critical"; > }; > @@ -3810,7 +3810,7 @@ trip-point0 { > }; > > cpu11-critical { > - temperature = <115000>; > + temperature = <118000>; > hysteresis = <0>; > type = "critical"; > }; > @@ -3828,7 +3828,7 @@ trip-point0 { > }; > > cpuss0-critical { > - temperature = <115000>; > + temperature = <118000>; > hysteresis = <0>; > type = "critical"; > }; > @@ -3968,7 +3968,7 @@ trip-point0 { > }; > > cpu02-critical { > - temperature = <115000>; > + temperature = <118000>; > hysteresis = <0>; > type = "critical"; > }; > @@ -3986,7 +3986,7 @@ trip-point0 { > }; > > cpuss1-critical { > - temperature = <115000>; > + temperature = <118000>; > hysteresis = <0>; > type = "critical"; > }; > > --- > base-commit: 3d7783543c2646af69ad65825e810060494bea21 > change-id: 20260924-shikra_crit_trip-7a11bbb66b71 > > Best regards, > -- > Gaurav Kohli >