From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=205.220.180.131 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796453517; b=w1YHfFsJTFHXSCJDGfalfGbelFgu1qrIiSyGEOWbDC4ZZii2XaqR/MQ3bwcrTzOmerso ubo4GP+dRsxPBF71LfMCea2xdb1pcaRpZ18OzWl/k+HPKkVOoF2axJJjmnhp1Wr3B49QQ AHJyPHuuUDu5OGY0r3ypq59N2y9w+ifZuY80Fgb/s2GelO+H+jzpIXgKXeJM+Izdk2N2x 5/rCWCyKAqyXnAkfdcH6K4kpJuM8o1iCan6Z4/Nno7DNCLbE8i1UPX8hP+vYABPD+db8N v83R1OZxUhSL8JIwQ6MJxjrdu21p54GOwFlHuYf/JWbgyIoopdW9i0A1VALA0SAiDPg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796453517; h=DMARC-Filter:Received:DKIM-Signature:Received:Received: DKIM-Signature:X-Google-DKIM-Signature:X-Forwarded-Encrypted: X-Gm-Message-State:X-Gm-Gg:X-Received:X-Received:Received:Message-ID: Date:MIME-Version:User-Agent:Subject:To:Cc:References: Content-Language:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:X-Proofpoint-ORIG-GUID:X-Authority-Analysis: X-Proofpoint-Spam-Details-Enc:X-Proofpoint-Spam-Info: X-Proofpoint-GUID:X-Proofpoint-Virus-Version: X-Proofpoint-Spam-Details; bh=qcHJEdoc2C43qp8WCaCBietmPeBuejiliXsZNDirGGA=; b=UwGcMCuQRNVGeuuNPWijnIxcMGJgLe223u+eMjKMKOFGlETMJPGDiUCxUS684EDHWHJT FjsLIJvpOoNS6+K+WXb/5sYGitDIKsdgeqptCD1JD9XivN2dATyEU7792sg1psCRb+zRG QgnRVw12fkW8l7BspeQ5wnCsTVlB6sNiTKgaYqOVr64juf8BZPTvaOjOa/BDxJOHTROQq BB8d3gm4CExqsR6pf064grK/XbXgFz/YwVLT1FFlKxtqmqhIGrgSU4mDHr1JrilgZpy6n O8fCVT32bQ5Oo0FEBVHPLWbJbsv+H9caiQGqQB5uMjijBFWldV8y7RPR1Uw/MI/tfTA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=O54OuZNS; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b="g/zOWGvk"; arc=none smtp.remote-ip=205.220.180.131 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B0005606A322 for ; Sat, 5 Dec 2026 06:51:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B0005606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=O54OuZNS; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=g/zOWGvk Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6B55GE542524921 for ; Sat, 5 Dec 2026 06:51:55 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= qcHJEdoc2C43qp8WCaCBietmPeBuejiliXsZNDirGGA=; b=O54OuZNSWWqXLcFO J5eiC1IKcBasP0+5gSQ8/9sQyQ5ftvzo6X+wrNsGQK0F54XiGDDcSIIOb2Ka7xcV 4CAqJBCdR4fdLeucJSAZwo8OmA1/dIjWD9lhYs4fW0Ghnr82JUoYBcCVgCRhce9R 8Ngk8ESuQLmbQ4RH5lr7Vy27VptxxvCSdngTucNVMm03jawSzj1HvFaNZ2O+S5+/ 3Ybf9vxVdEMsKAgl6mkaE/3LjuLy3y62BXgNETqMSLfPBCRKE+9QPAUosehQzFW2 KnKGy3BhD4jDwQJjfJ85ee22s6AUhOXpjL9FsH8qQYHuxJBncXn8IX/7gn1r2iSV 6iZ72A== Received: from mail-pg1-f198.google.com (mail-pg1-f198.google.com [209.85.215.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4jcbpr083d-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Sat, 05 Dec 2026 06:51:55 +0000 (GMT) Received: by mail-pg1-f198.google.com with SMTP id 41be03b00d2f7-cd65070d3feso969859a12.0 for ; Fri, 04 Dec 2026 22:51:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1796453514; x=1797058314; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=qcHJEdoc2C43qp8WCaCBietmPeBuejiliXsZNDirGGA=; b=g/zOWGvkNtsW+DA8/vba8RMWFgwni0GhonLAojCJdmwteLKh76rINWeSwJJnOVFqj4 2BND3eJhdudjDjECoFRVUM3fGTHo3pJlzhlcEk6WJE9UXhP9iySgfKNQnMV8SHNeqUD3 4i6dDB6c6GVRcjlvUIm6a7wmQJAWjV9Dd8fn/1V4yivtqnqdPzGXmHlZSDQ4IHXHfqmt iZXeG+O8ZJxuz/wc7IcutikgUz1LRaG5DxMorepoOhbw3SGbAZ4nG6MgWI0z2WEF/nD5 HlPXXnmdy4W6AzgdAv/b4ET0utamlGtWFal9iv3XR32mO0U6ljUKQgEcBDrr+luCjAC3 dzvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796453514; x=1797058314; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=qcHJEdoc2C43qp8WCaCBietmPeBuejiliXsZNDirGGA=; b=BvWQ65EYobp/R8xWiP0ou/um85AU66nR4hRvNFm1jWwpR1pd7Ej62u6T5lWcDmpL0z kXZPqmmUmUdgckU7CXR2S4DYtZflaArNgPHboYHdRnjZnTi52V7aIIV9/X1oN2R4sqLX JOi2Cu3WVWvSf3TZe2Dj7yQ2dU0Eg6NwkSe3tLI3nNIudU27fqXq5PROI0/NRX/jjpqx PB7RoCTHhyfyqKsmNYOS2p0NZlbIiiBgzT/gyM481HldyUlZln6UWbcPZKD0ziZXATSW Xe6j2YdDVSm0Zs0TLZyWjAwCyoxjPuWz3BlQaWHcgZQ6bJmQyqmruBEewlC8IaSMR9IJ y9bw== X-Forwarded-Encrypted: i=1; AL+hErGhmyYFmmaSFdeefklw6Hxx1qcjO5ULuICdIwN7RuxNAWbZ3FIPMg74+j2kC2QbUFru9C0/JnS2QzBfo8k=@vger.kernel.org X-Gm-Message-State: AB4q+uFjICGaoyjNYOJkQzuAP8PL7JC9gLXkL1K66PQtUCPQeGzD9syV GMivKh7leL2HaqyhgZZMpm//PMjIt7IdiiBAQrQ35FdscvkPggH59d15N13ox7ElVBH8wqkgz8l wsKe24cJWRjjdXS+htMsUZ+Jj65jy+cycf7NIXPvr5Alfg/XvVkbuqoa5jj83Q7MZIEU= X-Gm-Gg: AZFdTZesw4j88ZSt3Y78SUvkr0c4BN1gHJp8CGytnkaFxH3HGFgAF9AqrK5nEN8pKCH duE+C2cw5Xa7ca6J4Oc/ruzl3+zhFKEQLqPls5B/2m9tnK6G3Ho0BUSKWvaMLN8w9CCVD470tIw HEmOCbbsrftxSUqfWM/4/ESSzA/6Mv+UITa0M7XHAogjv/vUkjwfE4kADsMgVnNvkRfk2/3yYDk Yr9YQ9D8R0TtkJIIJhj2qh1uj7Qe7tYnqzFyupGmdQJ/BckgZ+ypPz0B9R2UjNQwOFb374KlKdO byo/QzQyq4/gMqcAXcYi6GaaZy8qWagg924FiejPzwTx0UAZA9AildBUlkjSJdxPOQo8keULKGm NxuDNDEodhHl2x2HpB5meDQ4TmfFe637I+gsCOqgp7GbXI3aS/hjhw7bXLPccwwcnMm7tNdWbMy 9xQg== X-Received: by 2002:a17:90b:5690:b0:3ad:7f4d:2839 with SMTP id 98e67ed59e1d1-3b5e061a0dfmr2366056a91.14.1796453514246; Fri, 04 Dec 2026 22:51:54 -0800 (PST) X-Received: by 2002:a17:90b:5690:b0:3ad:7f4d:2839 with SMTP id 98e67ed59e1d1-3b5e061a0dfmr2366048a91.14.1796453513766; Fri, 04 Dec 2026 22:51:53 -0800 (PST) Received: from [192.168.1.7] ([106.222.235.116]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b5ddc37998sm7600319a91.10.2026.12.04.22.51.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 04 Dec 2026 22:51:53 -0800 (PST) Message-ID: <174ab819-eb86-436b-b74e-61b59b0f0168@oss.qualcomm.com> Date: Sat, 5 Dec 2026 12:21:48 +0530 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] arm64: dts: qcom: shikra: Raise CPU critical trips To: Bjorn Andersson 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 References: <20261025-shikra_crit_trip-v2-1-79e429cb9350@oss.qualcomm.com> Content-Language: en-US From: Gaurav Kohli In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Proofpoint-ORIG-GUID: bUT_hhJJ7ik1wmyZCFBm-HncUOWmeLZu X-Authority-Analysis: v=2.4 cv=Aup7T+9P c=1 sm=1 tr=0 ts=6b13b48b cx=c_pps a=Qgeoaf8Lrialg5Z894R3/Q==:117 a=SYo2sVvyZeVuW0nyWEYhkA==:17 a=IkcTkHD0fZMA:10 a=pUM-KoujPXoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=3WHJM1ZQz_JShphwDgj5:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=4pki3Mp8tUzMaSNneRYA:9 a=QEXdDO2ut3YA:10 a=x9snwWr2DeNwDh03kgHS:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjA1MDAyNyBTYWx0ZWRfX+1HkVXhU1nRb j5OQ82fmFRb3W13AqOQhIjZsc3PVDtEywjB04uNfpJxamofms48lH8LPDxjvKmgYf0ij9Mc8feK QlXZXgZMtn0cdQTD2kh8tF/XIeZuH7x6+vlkJZsEUae+8Q+B1AqWjhpfdt9OeMlsZDbDLrIZwb5 WiIeod0o1IlNRBZf1qHeNPwj6fEdsPJc5dDmqCYS0OEk2sl5K3Yqc+hfb0mMrBjCXco86jFNofr 9Zugd4ABaM9ahs5uJn40+gJyu39vPb19HZJti8gxLz4bZNCiQmnafBYRPP6ruo+L7TawYaP96R7 C9QJucnaVHqRgg2Ta13qUafN8yXHX0ItjMCDXzelPzhv/JS2YTVotKc1qHe8v4+Y/3YyaeZancv OSE4wrw15pGVbuWv5x05Rv3HV813bg8oDhALRA2gpwhHHkOpeIb9SrMZTIKVJWmo/O19Bc4ekVN dJk0NhVowPDkY9XUoXg== X-Proofpoint-Spam-Info: AW1haW4tMjYxMjA1MDAyNyBTYWx0ZWRfX+OQMFYFRPn9X iVxfdqyCHK4zTkcPTUrdOB3pe1Ex09/B1d2g5nG91EyZyc7z2moYBYGfIoPwoYWSU9d2ur1TOw2 IzJAmMH7wyx7/30TQCUaJxW4dEt10k0= X-Proofpoint-GUID: bUT_hhJJ7ik1wmyZCFBm-HncUOWmeLZu X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-12-05_02,2026-12-03_04,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 phishscore=0 adultscore=0 lowpriorityscore=0 priorityscore=1501 spamscore=0 bulkscore=0 malwarescore=0 impostorscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2612040000 definitions=main-2612050027 On 12/5/2026 12:38 AM, Bjorn Andersson wrote: > 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? will drop this. > > > 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 for review, will send the new version. > > 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 >>