Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp215614lqg; Wed, 10 Apr 2024 23:45:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWAG2nylL+h1qOZ0Jsy0aKFwVVAQvkTwpp3Ij6PMs+W1luELqfEqCtKAIYACPmnAX0VPt+B4O45Kth1PSsmYd9qbih3qw1r43RaAieGGw== X-Google-Smtp-Source: AGHT+IGOiC6/NRMQGqd2Sk2B5cMIF7ro3JeR+f63BEZ3SvVtpceJkXQxD8gbfVQcraM/HvfRmA01 X-Received: by 2002:a05:6a20:158b:b0:1a7:7818:720e with SMTP id h11-20020a056a20158b00b001a77818720emr5295217pzj.21.1712817915414; Wed, 10 Apr 2024 23:45:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712817915; cv=pass; d=google.com; s=arc-20160816; b=zCybzlIIfpVqN76xDR/yAwQng5yRmnjKLQe97puGFewrZse5EIPhg5I3uvANFcajFi wyYpYzFReSBM85/129QIb1iH0ievsPltoJztNv8iUWYxB33FUIhqsUXRNmcBhugoOVHI YpmJlNjvSknWYg7QjlaVRn8B0y4eUtjWMCJFOuTs2VY4/LVTtef25Mtw6ZZS+u4aF8t2 wmgxI2OmpApBTazPA8IyNCic3tNjQBRjgwVUwl7ZV4JRiX/Sq9rfNhOGZVhkqkuihIyd dlYZnxsvxEqee2QqssmFTHdJPMYVbtUNF8nBmYC+w15+UvKTB4wORvX6O3aX1giKDY2y Y/4A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=OPxkeGFCuf0xHayq7RH2YiHdpxXPnUHjQJI45ksplxs=; fh=yz8t9CZrmOF/QJBU52VApyxaa0LeS0vlHEWQST3uyjo=; b=rDG61UVhQGCQCY1/NaYMtMakR9FEfwo5Q6a9x7KcheZhbp2efJEPaC8fpGCHwE8Jpa K0fQi1AwpgRl/ogxZjfrqtaGl2tZPUM2P0ba1ET5qAwRu1h7tCs2xJ5p6IjgSKFSSwyW sCUdwvQK/4LGUpvslgISj80Q5UQnIPwKMD6Or5vEX9sllfj/hHEpw0GWe/XH+gyxMdBI SOLJPEfhU7t7/vM3ej5s9W9A7yUFpUazIXSU5lhaSMcTLfGMyds97f79K0avc0bkSdIm 7cc/Ekvvwqt2GEKPFfbJ4Sle4VBUKC87vI3R0RHoF133w/5W6x0hkCw2GuV+a4sjj6nt WTLw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-139858-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139858-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id fn22-20020a056a002fd600b006ecfacbc033si840066pfb.270.2024.04.10.23.45.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 23:45:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-139858-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-139858-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139858-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 157A3B2393C for ; Thu, 11 Apr 2024 06:35:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 86DCA13D53F; Thu, 11 Apr 2024 06:35:39 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4F39E41AAC; Thu, 11 Apr 2024 06:35:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712817339; cv=none; b=hkgbJ5lDHv2NKLW69+JgcD1xA+GPnXaQIHWhnWs2bi+pIcexv9ERkX83JsE97W4zyMMdGfgiCr+xq/aTXcRrsJgRlrPApCQuQQIOjhgsCtlzREKui94KXH7M8hYqymddEOLRd1nuR6Qtm4Hxw+rMyYflHu+rWWuW1tXl7syV94c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712817339; c=relaxed/simple; bh=1MPVI2kYWj1qJxWiiW5osq9U4UgjXlkSWpkwjxb/RRM=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=h0/uA8fblqwa6HcpHaeF6otPx+TQQXBrnOczdD2ZqA5gbLhR9gl8ESofF9lMG/mhRv/5lJtxwpLmGiQXsf7+3ze50bK9jbWj9BgxXSb4wNQPC7uXVHO+B6/hDSq8e/hYn3AIJq8avbMG05K6u1RHH8T0TSJtmsQ0aCCOZMaDYM0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id DEBC1113E; Wed, 10 Apr 2024 23:36:04 -0700 (PDT) Received: from [10.57.75.96] (unknown [10.57.75.96]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1ED863F766; Wed, 10 Apr 2024 23:35:33 -0700 (PDT) Message-ID: <1080e95f-f0ff-471e-b265-8bfd1355ebd8@arm.com> Date: Thu, 11 Apr 2024 07:35:37 +0100 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 v3 6/6] thermal: core: Relocate critical and hot trip handling Content-Language: en-US To: "Rafael J. Wysocki" Cc: LKML , Srinivas Pandruvada , Daniel Lezcano , AngeloGioacchino Del Regno , "Rafael J. Wysocki" , Linux PM References: <4558251.LvFx2qVVIh@kreacher> <3556878.iIbC2pHGDl@kreacher> From: Lukasz Luba In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 4/10/24 16:56, Rafael J. Wysocki wrote: > Hi Lukasz, > > On Fri, Apr 5, 2024 at 9:35 AM Lukasz Luba wrote: >> >> Hi Rafael, >> >> On 4/4/24 10:03, Rafael J. Wysocki wrote: >>> On Tue, Apr 2, 2024 at 9:04 PM Rafael J. Wysocki wrote: >>>> >>>> From: Rafael J. Wysocki >>>> >>>> Modify handle_thermal_trip() to call handle_critical_trips() only after >>>> finding that the trip temperature has been crossed on the way up and >>>> remove the redundant temperature check from the latter. >>>> >>>> Signed-off-by: Rafael J. Wysocki >>> >>> This change is premature, as it will cause handle_non_critical_trips() >>> to be called for hot/critical trips which is questionable, so I'm >>> withdrawing it for now. >>> >>> The rest of the series is still applicable, though. >>> >>> >> >> Could you explain your concerns about this, please? >> Is about the extra execution time for the non-critical trip, >> while we are in section of handling critical ASAP? >> (also it would require that extra sorting there IMO) > > No, it is mostly about exposing the critical and hot trips to the > governor code that may not be ready for seeing them and get somewhat > surprised. In particular, this would cause the User Space governor to > send uevents regarding critical and hot trip points which it has not > been doing so far and so user space may get confused. Got it, thanks!