From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 72F3E3EAC84 for ; Mon, 27 Jul 2026 22:12:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785190373; cv=none; b=Ou19BdNomgrzpgd6ybkkPLZHiQ2OI0gkjP3qvBbWkcN4dCn206Y2KDM1bJx60DFmOvAqxmq5VPb0wX2+v6xKjUbnABB20kaG/KUPBbd7WxaZlr/P+afc5/YbfA7wR6HA3HTaNKOGUPpmarFuFTUdvErlYGPZvVrNnwf2wXDulQM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785190373; c=relaxed/simple; bh=q+6jNicYHEog9W5cz/fKmUgJZeWJ1WiJ/ZuiIeV4VVg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=e/jcPFpb7BqBTP2TLywYBbU9nkT+uPDorFhwIcUDXvT9nupCtefBlX2GqLKOci/n5itS/r4FbK1mfQGiCp2QRLYWt1BL3iiHkHWETKq062oS055Xi8ItkdiTGHhvaKXE3Y+hsB3RPW4RsF9ZOguMCMG3al0wvI35TW2BjhBY5Jk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=e0ugPDNo; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=fHuieGt3; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject 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.b="e0ugPDNo"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="fHuieGt3" Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 66RLbfhn693073 for ; Mon, 27 Jul 2026 22:12:51 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= Ry72JwgEvXd73DohO8iBMeZj+t7GqtVGA//x73T4uLA=; b=e0ugPDNo0ISdZDDe cBjCUAPil8HSTyye4XyRI9OnQjLMhrzaJL3URm4tqk4opkB5X0wQG7b61AmzHymG gvH8QaFfaEKWOADlU2UgRVmw+QhxS2jdCQwmCy678HVNHQU5g7GphiJledHuGX/v Qn4c6cBFYr4/g/yWZI5OeY7Y6x0EKM1Ttdc9Fjp1aDdtHGAkAT1Ju+A9K20B03S/ iUbLDJaha8qR9JrH4UzYLK5ZgO6evXX9YRgzzxlOR+Hve2GCuF4jfwzHlFsI7dIl eZwmKYw6plPmb6o3Lu3QdN8j/R54HJz8A17vGEfr52H4ItBTbS1DtVRMfjpJ24k2 3iyCwg== Received: from mail-yw1-f199.google.com (mail-yw1-f199.google.com [209.85.128.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4fp4nbubhc-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 27 Jul 2026 22:12:51 +0000 (GMT) Received: by mail-yw1-f199.google.com with SMTP id 00721157ae682-81ec0eb032aso75280557b3.1 for ; Mon, 27 Jul 2026 15:12:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1785190371; x=1785795171; 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=Ry72JwgEvXd73DohO8iBMeZj+t7GqtVGA//x73T4uLA=; b=fHuieGt39S20mnNpXPMYSPowEJ1sixBvEZRtR1Ya4Fqmt6koJPeJvQMC5v9f4XFP7p i4Au0M2V5YgbrZM1jLQ/uwueV8z5FBCDjYUAfZHLfGQwJ+mMO43B83J6RJaFllb1IB2M hsYzIxBS19NU7dOmV+/cS83yfgH5MeN+mw1N7nnVX4mJP7iblIGaBf8fwAkiZ1W0dvf/ yeSossGNfJkvg02MhxO2wkImM9aoeZ7xOitpccrj1fSGqJMEBNfKI+G3D11nFiBktz/I q9fgXvAfU4K1dKlEPdsUge9CjbSZgYFny8t+PrmdLC196hmUeImenfjpFzpFCEbag5lb YdSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785190371; x=1785795171; 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=Ry72JwgEvXd73DohO8iBMeZj+t7GqtVGA//x73T4uLA=; b=f4N36HTuajp3gXYAr8JmO/gsycWNtawqCnnhxVRoRz1yM0xUlovC9FVf9CetNQT4rh A4JdFotfJfwAwtY9CX31YNqjCccgszD3AYbw8+uAn/eUhWsWDHGW7AphDe9B/5gJd6Ax e3n8phjjWdhVtU8Xo7TaRchhQWMBDCSc0V5Y7HXNJMSEJXflayiQjW3H7dAGfSpGx4uQ B/2WvQenv9VNnUlYQoExN4u9s/Im+FOaPRmisJc+eSHjSuQmw/3VVTGckpGVbe2zrNZb o+Nb7dzsbwty8pmvkqAkq/Aam40L6kSeYSP/WirI/PDqGg7YePzKHCpN/xuTtVQvL1GB jW8g== X-Forwarded-Encrypted: i=1; AHgh+RoCbbmpcKOsiyWPPVN5E4ZsDoGjGuv4iQY+QMjOIuTAhku8GdVwliZIrgBYu693YZ9Gf12LyQAS9+06aKU=@vger.kernel.org X-Gm-Message-State: AOJu0YyfLHa9X9sgstZedaCBzeUhFRUme4EsBiKzxmPuMfHqMEm1NQvc N/kdX56kx3hOCp0DLj37Z0O8/Xu0jVV0reUVPcFcuWdelEDQdE544DnphaP4pRGUETQWcSRu1Us vqFABHiKGOdctX9/DTNc7WzP1WV876riKczHFFqfjTUBfiHcbIvMwK87nNwjTE3YwbXI6ac8TxP mKIA== X-Gm-Gg: AR+sD12GT11nUBRwpqkE2dX7yxpgoLChIIk8PO4CEGCqy9Qcy7zp+5Gq64W1eGfEvPg yxhVJG5rMx5LV6SKYCRYCgzJGtJSYfU56ZdaIVi9eE2FjyAW/BDFq9RPn1QwtZHkYFDiZq3znQr ym2Ue3AmRFlLvZkHte47EdPLX1XAM0o95P1dpqipPxNUTt5e6fi89piYfrly6GqPeQtxsh0sruy Ho/P5Gzmp1nBIJJf9mUPgldguoJ9gLBIJigeC0tjhu57nhENzZe5VOhicBDOhiCahFQOY4J8Q3I i5urEMbwK1w57mJNh5y2hLtVZqXPliKX5ul+nS/EfdMOj0M2iZgFSWY/sTdI1AGCUBcz8qLS3jY /YirBxv5k6GZGL9f6ola8D/ptkd8h9Qa+3BENaTxfnxKFy/QVnGiJ6k1aLFdlvfg3 X-Received: by 2002:a05:690c:6d0a:b0:7d1:dd7b:b71f with SMTP id 00721157ae682-81f69d39a79mr35656197b3.29.1785190370722; Mon, 27 Jul 2026 15:12:50 -0700 (PDT) X-Received: by 2002:a05:690c:6d0a:b0:7d1:dd7b:b71f with SMTP id 00721157ae682-81f69d39a79mr35656127b3.29.1785190370391; Mon, 27 Jul 2026 15:12:50 -0700 (PDT) Received: from ?IPV6:2a01:cde0:108:24ed:713f:91ad:a282:60a7? ([2a01:cde0:108:24ed:713f:91ad:a282:60a7]) by smtp.gmail.com with ESMTPSA id 00721157ae682-81f6576ee52sm38322167b3.3.2026.07.27.15.12.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 27 Jul 2026 15:12:49 -0700 (PDT) Message-ID: Date: Tue, 28 Jul 2026 00:12:48 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] thermal: core: warn on non-critical trips at or above critical temp To: "Rafael J. Wysocki (Intel)" , Gaurav Kohli Cc: Daniel Lezcano , Zhang Rui , Lukasz Luba , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20260710-critical_trip-v1-1-780d0b40bb96@oss.qualcomm.com> Content-Language: en-US From: Daniel Lezcano In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Proofpoint-ORIG-GUID: e1kKaB8seCzFwV4zTXGG7qkgqw_-1pXf X-Authority-Analysis: v=2.4 cv=cJjQdFeN c=1 sm=1 tr=0 ts=6a67d7e3 cx=c_pps a=72HoHk1woDtn7btP4rdmlg==:117 a=xqWC_Br6kY4A:10 a=IkcTkHD0fZMA:10 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_K5XuSEh1TEqbUxoQ0s3:22 a=EUspDBNiAAAA:8 a=SSoG8QFqrpFK9BVNkCgA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=kA6IBgd4cpdPkAWqgNAz:22 X-Proofpoint-Spam-Info: AW1haW4tMjYwNzI3MDIwMCBTYWx0ZWRfXxn6P2ZMlLDP2 np63f0LabfYY1nAjmIWHOCbuL2OXj75VBAgvOYdbxhhwVyb6euRJmvXpL27XBTsWDj+a86jobKL vAxUJvWFQiUJdNQX6hahZcGcxswpGOA= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzI3MDIwMCBTYWx0ZWRfX0260IRd/cfTT heSkF5qpWsOArf+Ii18mJlr8Lifgww6r3CWuzlCFvTVLZqUWRmhwYpxOxDoytTgvyO4kdxcE/5n +1cLuwgjmZ1dy6bZebKQyLdZZsTZVkruRfZGv5TjzQA0pOjKmdYkTWjCz/IbW4XI6kmnfL91SzC 2lEUfyE8Z3DVEFIMYcj0P5b+n6gqSVv3SmrwIoZO+Hf06TPOT6AjtfiwhCxRJMnlgG+g7LtKpR1 cpeQ/RYMtZICDmHC5k7drbY52HXEAYD7csHBIvcvLuagmSrjWGUDtXObGN4HIDLknO26nq5Z8qj ywxjwHQWL1/hTXsZKhhLwtNS7CG+IfSmaBAimmkNgNMaxEpDfpdb0aDmTXlnjaUB8xxO4f9kR61 uwCXXg/K0DkzdKjdXT6SyWYJm/SU++MTYVX/9ey3iP6Crb/gFfBvBZ9siTdGsl6G+m0zBrrNOFI JUN7PiOvLwUpC58ufXA== X-Proofpoint-GUID: e1kKaB8seCzFwV4zTXGG7qkgqw_-1pXf X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-07-27_06,2026-07-27_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 phishscore=0 spamscore=0 adultscore=0 suspectscore=0 clxscore=1015 priorityscore=1501 lowpriorityscore=0 bulkscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607270200 On 7/22/26 21:43, Rafael J. Wysocki (Intel) wrote: > On Fri, Jul 10, 2026 at 11:12 AM Gaurav Kohli > wrote: >> >> Thermal zones can be registered or updated with non-critical trips at or >> above the critical trip temperature. Such trips cannot provide useful >> mitigation before critical trip handling runs, and a HOT trip at that >> temperature can coincide with shutdown. >> >> Warn at registration time and on trip temperature changes to surface >> misconfigured platform data and incorrect dynamic updates early. When >> multiple critical trips exist, warn against the lowest one. >> >> Signed-off-by: Gaurav Kohli > > There are a couple of reasons why I don't like this, the most > important one being the overhead: two walks over all trips added to > every trip temperature update is a bit of a stretch. > > Moreover, the messages produced by this code may not even be noticed > on systems in the field and users may not be able to do anything about > them, so the benefit is questionable. Would it make sense to sort the trip points when they are registered. Then limit the changes to the interval between trip-1 and trip+1 ?