Received: by 2002:ab2:4a89:0:b0:1f4:a8b6:6e69 with SMTP id w9csp234256lqj; Wed, 10 Apr 2024 08:59:41 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWAYysxPXddq9K3HKIP1OxjB/7JInI52dMpOKkS97CpPalzWgyMyjG7OXHK6vk9VkcuzydWHA39VJGijjzgTBOrTF7lkzOh+yXNKc7jDA== X-Google-Smtp-Source: AGHT+IFp/nPaIqbqhnTJo8r8aCeVOekKIWLc71hmmg4lE4lRh470vQCRZa88LVyAyd+oKVX9nmtL X-Received: by 2002:a50:a688:0:b0:56e:6e0:9f39 with SMTP id e8-20020a50a688000000b0056e06e09f39mr1973797edc.17.1712764781342; Wed, 10 Apr 2024 08:59:41 -0700 (PDT) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id j1-20020a50d001000000b0056c2be5c715si5934227edf.434.2024.04.10.08.59.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 08:59:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-138939-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@kernel.org header.s=k20201202 header.b=f9p+IExG; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-138939-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138939-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id E28C71F255EC for ; Wed, 10 Apr 2024 15:58:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F0498172BA1; Wed, 10 Apr 2024 15:56:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="f9p+IExG" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 199B316F0CC; Wed, 10 Apr 2024 15:56:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712764613; cv=none; b=Aq5bsPEywXBLbs9f47yYN2vFqJH/IDeV0ePr/gsKvaVNcwn6E5fw6OqxV590AqVj4nJyYJBfpij8329vvgBGuaBveHPzlnRZ2Y5/DQih1b5aJDtLmhXCwUUkvWC4Ot8NU+dvW9zqYYKkIqbouuqYBn0Qo6OTHuX+62ufxwjDKbM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712764613; c=relaxed/simple; bh=m7g6XZOrWOR+xcsLIDtcAQGvtbAoitEl0jd9B9aOIXk=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=KaI391Z3QwTBpVn32BkDzXAE2dal5YlqjUTGpT7BFTx5eaPCFuuNBvwIWOdcabryfL4F/l/mW3WeTrBdWTeEot+GHy+GtXaSO3CQIeBPntLC72UQfa9pPPUbDQa0cs13hzYksV+4Q2efLKr112DzrrlsOs76cIUiENuajxLRTiU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=f9p+IExG; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 86243C43330; Wed, 10 Apr 2024 15:56:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712764612; bh=m7g6XZOrWOR+xcsLIDtcAQGvtbAoitEl0jd9B9aOIXk=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=f9p+IExGH7UoaoR1PSv63C7vdJqaK5ru2svSWjFdQwWMYeQ6STdnvVgq+ikK5NP/b ZRubXqjRGCEfmhpu0dpbdozQyXfbvsFfnu3jfsBcJf/UTd4K/j/xA5a+eZkEApgDkv +R25+I6lWvIIcFOatq1a9+tjHoSEy0/VG17oS9i5JruFNP4+B6j+CYs+NGgYg3clBf Y5fyz3MtgSkNKNWjLL5FilryhpmyAA0VFKLHBhLF29HojS+FOqlYn3fmHGRkWD1IRV 4GaSuJ5JAgVWuniBE6rljwnmB1oQAXFOJm6PywLMneQ8ajPuczYKGdUKOuhLEq+URr fr7t6v7CVGnFQ== Received: by mail-oa1-f42.google.com with SMTP id 586e51a60fabf-22ec8db3803so572224fac.1; Wed, 10 Apr 2024 08:56:52 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCXQnjYA3NCb1nP4zE9LG4fXohbqQNsCl5VvCRhAIPx7OfMd4Y25SRCSLwcQtFA+Va7Q4bquGUITm6j0qb78rvPfu7eEfZQwb1bu5PaolUfOM8UPG9jKamfFOeMyhhTpDAVV1JlCmPY= X-Gm-Message-State: AOJu0YzRczUtrKupCLo0ZQpYvukA3/pjue2tcbaSCpiNTtZQVoIUQmGg /Rv9mfAxV5kWqeEMC5lfZzH952YloGIjM9W9NQ9y8+fTG5mQLg7q4CGaVKg2agLGoYYRtc0oVPe aVnEUrL76QjHyLIMzrSp+Bq+0Vv0= X-Received: by 2002:a05:6870:7183:b0:222:81cc:ac9c with SMTP id d3-20020a056870718300b0022281ccac9cmr3023708oah.5.1712764611654; Wed, 10 Apr 2024 08:56:51 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <4558251.LvFx2qVVIh@kreacher> <3556878.iIbC2pHGDl@kreacher> In-Reply-To: From: "Rafael J. Wysocki" Date: Wed, 10 Apr 2024 17:56:40 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 6/6] thermal: core: Relocate critical and hot trip handling To: Lukasz Luba Cc: "Rafael J. Wysocki" , LKML , Srinivas Pandruvada , Daniel Lezcano , AngeloGioacchino Del Regno , "Rafael J. Wysocki" , Linux PM Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Lukasz, On Fri, Apr 5, 2024 at 9:35=E2=80=AFAM Lukasz Luba wr= ote: > > Hi Rafael, > > On 4/4/24 10:03, Rafael J. Wysocki wrote: > > On Tue, Apr 2, 2024 at 9:04=E2=80=AFPM Rafael J. Wysocki wrote: > >> > >> From: Rafael J. Wysocki > >> > >> Modify handle_thermal_trip() to call handle_critical_trips() only afte= r > >> 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.