Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp530528lqp; Fri, 5 Apr 2024 00:36:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU7LlOmmwSIennB3Nx+kWLbPnIpCXuM+9vq384ol8wmNCiP0Uz7qcQdp66ynmr7vSfD8XCkpwjI2V+RGzQ/7lmMKJbPR43orDk/zqVM3w== X-Google-Smtp-Source: AGHT+IEXga3GzrdSx0y/d8AblVeqWhTGefJVzX7OhajQWm4mqWhlSS8HV3riTtjivkh6POnZvmzS X-Received: by 2002:a25:df14:0:b0:dd0:1276:c2d1 with SMTP id w20-20020a25df14000000b00dd01276c2d1mr500414ybg.35.1712302562634; Fri, 05 Apr 2024 00:36:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712302562; cv=pass; d=google.com; s=arc-20160816; b=uq57wzio2rh/PCoFFq5TqTS2MWP+3fc3+l+/72KnR1pXbPixFuahogKmKHjUlJ8Uhc 5Jj40kwfVZF4G3fa3DkKOqZJ1u3qs3zyATAQR5UA76GEnq3wcBy6cpBwbG5QSdZC2iz9 LwDy0I6rUUQayFXjaSADzBZ7Mr3UmwV8tbMMIumK48yFFUfZ4GyL0MTt1H5T0yxRzSyG 8Sea3qOpSeV1AQEX2aw18XZp64i374ICL+gibotooSpe0BILcRDgbzKjjyYp4V5tVpUB TipYZIxzesZQQ8yvHY6xZI8p2X7hPSpgr6qzmv4nDnsO+PrgQNz01jvaDCILMVwNk1aR NXNA== 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=sjY9DLCrbF+cawB9EBpl6NZPQAsExaFKGnrA1MSM4ns=; fh=yz8t9CZrmOF/QJBU52VApyxaa0LeS0vlHEWQST3uyjo=; b=l9i0LtCXojR68I1CVhSfjGSOOyb9XKqPcO9TKMfyaQpOdrNMZXJKbPYdD48JJ9Qfff fuasw4Pilobz1c3329YT2wYZvE/966RAEtzQWD+p+nlO3qMtLKcK4hXZo8oumcFAAuwa HRG5iLpw2ZXS/lMBBehlZmIW0FF+cXMXM6JEE0zeuIQIeiyPO9kfHBJZxWNZGPzA719y BJ8IJCid2H+qjyjOaJMOJ73LLBCuYv0g5UVa4ZHoufZoFi4wHpQlT9Dy0YfjJueWwlBV JC2vVynp629c0jeeS4U5l62JMu56Uk5yh01ZSBglQXzrTM5dK/6JA7iDEpNgjkdhkb7J +5Iw==; 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-132560-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132560-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id f7-20020a0cf7c7000000b006986c5623aesi1178669qvo.428.2024.04.05.00.36.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 00:36:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-132560-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; 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-132560-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132560-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 5C7661C209AB for ; Fri, 5 Apr 2024 07:36:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 578B54AEF5; Fri, 5 Apr 2024 07:35:55 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4C99D481B5; Fri, 5 Apr 2024 07:35:52 +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=1712302554; cv=none; b=WXfPgVj+ZfRTN/4j8UaD0bKpiaKpsz8bI1CjU9q5Tg1bnvvj/tWYKA9lKC9QE1OxChtajg0fZOpkHcE9pKMX8ZF9aciLkabsUkI95GG5axbqSX4s24fAMTaDlPzuFlq3Lq1LNb6zFCNHxZdpWzPYTJK+BSaJjB1Jyp0rQUg/GBE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712302554; c=relaxed/simple; bh=KMKzpMcRFQlWChDCPVjmGk8tQMq9E4Qn6CQPXuiAy9s=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=LFltD4PkDjBnREyKfs9n9pcodiCfo83F5fzeDda0HQxdtmCDTL6Y69/qsY0W4jd8OCOLOtVx6RimJNtmMTDE5R/DHdT//W8Dqc3v4EINyZlZhU7FV9A9+Xvy8q7It9XWKzYM7IAtiEEF8UzDLuVOhil1CmMqm6s516nZ0WtPKnw= 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 784F1FEC; Fri, 5 Apr 2024 00:36:16 -0700 (PDT) Received: from [10.57.74.176] (unknown [10.57.74.176]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C4DD53F64C; Fri, 5 Apr 2024 00:35:44 -0700 (PDT) Message-ID: Date: Fri, 5 Apr 2024 08:35:46 +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 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) Regards, Lukasz