Received: by 2002:a05:7208:3003:b0:81:def:69cd with SMTP id f3csp4296950rba; Tue, 2 Apr 2024 12:43:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVRRX2RjZqH18Nto/sTtfCPth6iIe++2HaIpqJZOx6s7HJbAlrXSJw8AVz5alQwUlGVgcSpViGbPUEjCNv/Uxs3dujVYgCmhJCqqgUvLA== X-Google-Smtp-Source: AGHT+IErqCSstIfIKm443eWqjWha7kz4zeOXb0G1MqEWZgRo/lsh2HeEIACTq1LcdzvsMbtz43Ro X-Received: by 2002:a05:6512:39c3:b0:515:c190:140f with SMTP id k3-20020a05651239c300b00515c190140fmr514329lfu.14.1712087003308; Tue, 02 Apr 2024 12:43:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712087003; cv=pass; d=google.com; s=arc-20160816; b=p53AyCi5sjU6FsDdalwLbjZHd0VMWrYVhVhXUkvIXqsvR+3dDM02SqUV07XB0aSrbH oExyEnypkrThYYQVP+ILlKWhS4j6BrGIsheaFTbya2IL9KgnJZs7R52CVoQNCM6TxCtt 0gNOae4XEUBEklvgGQeJrim1OLV2bUkTxMvP+SdZ11IwoedLvP1XKFDKy1Op/kSrkKch nBI9mkAC1S5hIWCuiisvO/fWyrJ/vd4C7Ma7D3K4gfjmTKB2Ina+eLjm69YoMtrCqCFj HYE3dHgKzLkh8oGUHyWWczLpnxMUVY+JCtWPTEceTs5cd5/kTamxOY87Xxub/vu38SL0 X2nw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=3F9mJm5n/LL19QFSvP2KII6CznJT1FqdBiWNoTrEHxI=; fh=YSt8wRsMHdH2iFIrF7Cfk7F+F40LSChh9DTZiqin8jY=; b=FTZu1MSvKstkfZkDxtP9NGHCcSWK6GFJeR79gDFTBwzMKh/yklny/Q8zEcDw2VD2Yu t6qjnlQYrRFMQxD2ns7VtLvZMg+grpw1327qAM5DN0Dj48LmFRDJ52zEwUp0jb+5R8Ov TPSKCOAW2ONwOtGV4hIxRqXhwDUcvN9Jan28IR70EIVRVCMEyDDPwbXgbAOESuq4O7/i beE2buBWfqyrN+T2KbsRI6vsFDvN8j7YTvVkMFhEPo+G9bKfHHfCfn6BQWZnzIQan2rg Dkk6pcUP+a4bV9ue1bqtGSrNyZuGzFuTNOEJMm1fDZLrfrG+SDPHgaHNYRHFQpwTaaxz XBBg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=n79RWDNd; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-128601-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128601-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id u7-20020a17090626c700b00a45efe0c97csi5817451ejc.984.2024.04.02.12.43.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 12:43:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-128601-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=n79RWDNd; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-128601-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128601-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 10DF41F221D1 for ; Tue, 2 Apr 2024 19:43:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 258DB15D5AD; Tue, 2 Apr 2024 19:43:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="n79RWDNd" 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 486A915CD78; Tue, 2 Apr 2024 19:43:03 +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=1712086984; cv=none; b=WtuxPUrfYtTQRHiahUAzzBm48afbhM2d2fw5vYb3vF6E3VC1KV60mpVmCB2kOdydpZRTdv+u2opDxUN+gma00br7y2fty/t6N5M3T6Dg9oAwlgmHdPWmfAR0Hmm8elbSY7ueSwN19s4BLAyPjjXHDF72gA1Ep/EqOe33cOS+wZ0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712086984; c=relaxed/simple; bh=hux++m/Dx5FlfAfpKCTL72iTbUT8Ywm8K3OkJ/onX1E=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=jgBDRBE2/coGxvbygAJfUA6hpJ5fyHZLOmd739d3XePmWAbrbnB5ieNZhGozkmetFv1sEKTXs/BrT0fdxXFJHjxb19uYY6Aow31uFDPiLc2qhtzV+W+apSEnxiy3O22lOv0lttRhJUC9fhkCz2wdR4sJ7JrabLq5MrapnZSy1Vs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=n79RWDNd; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C1AEDC43601; Tue, 2 Apr 2024 19:43:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712086983; bh=hux++m/Dx5FlfAfpKCTL72iTbUT8Ywm8K3OkJ/onX1E=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=n79RWDNdQ5jOejZzKpbWUX5cdLm9tDIsgvqhBfpj+Pgu2MGV3YkXLg+24mDi4ls3W nUb59vF/2Kcruciot+DRMca9y/IJLGpRXfurhwuy8RcbY8+sE7kxlTq05LwjIiHtzA CZy31RIgPKdzgKuLEQa5d4IyBWsG0msWf69Z52QzQUlkI0noGHdzfqPDg3F2FA0Epp CpFzrW+2G64IAuKYjtdOsYqhCETPP7mynXEHSyBqRpJc6Q6i0SsITpXoO+pDwDyKIX CJXUdqxin21h5pGsV6dBFJx7QC9jGGuz91AYn9d6/M5gdRMO8ZA4Uzr/nM/KohernR BrngJ4HBu+7HA== Received: by mail-oo1-f49.google.com with SMTP id 006d021491bc7-5a4930d9c48so1089577eaf.1; Tue, 02 Apr 2024 12:43:03 -0700 (PDT) X-Gm-Message-State: AOJu0YwKaz2CxziMGQjSv08gjca6bVTwq/2S83pFtb0W12F0MfDFbFEy JPY8pfi2KMAa7VrP881JXjXsCLIhoPLFEhh1j78sJHzHm1xwsdDzzPL80yUJeYHmBsQmCkg4q74 8bYRVpwTmRxK196pwqg9zrL/heRM= X-Received: by 2002:a05:6820:2289:b0:5a4:6e23:e335 with SMTP id ck9-20020a056820228900b005a46e23e335mr15520012oob.0.1712086983154; Tue, 02 Apr 2024 12:43:03 -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> In-Reply-To: <4558251.LvFx2qVVIh@kreacher> From: "Rafael J. Wysocki" Date: Tue, 2 Apr 2024 21:42:52 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 0/6] thermal: More separation between the core and drivers To: Linux PM Cc: LKML , Srinivas Pandruvada , Daniel Lezcano , Lukasz Luba , AngeloGioacchino Del Regno , "Rafael J. Wysocki" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Apr 2, 2024 at 9:04=E2=80=AFPM Rafael J. Wysocki wrote: > > Hi Everyone, > > This is an update of > > https://lore.kernel.org/linux-pm/4558384.LvFx2qVVIh@kreacher/ > > and > > https://lore.kernel.org/linux-pm/2331888.ElGaqSPkdT@kreacher/ > > which rebases the first patch on top of 6.9-rc2, adds 3 patches and adjus= ts > the third patch from v2. > > The original description of the first two patches still applies: > > > Patch [1/2] is based on the observation that the threshold field in str= uct > > thermal_trip really should be core-internal and to make that happen it > > introduces a wrapper structure around struct thermal_trip for internal > > use in the core. > > > > Patch [2/2] moves the definition of the new structure and the struct > > thermal_zone_device one to a local header file in the core to enforce > > more separation between the core and drivers. > > > > The patches are not expected to introduce any observable differences in > > behavior, so please let me know if you see any of that. > > Note that these patches were first sent before the merge window and have = not > really changed since then (except for a minor rebase of the first patch i= n > this series). Moreover, no comments regarding the merit of these patches > have been made shared, so if this continues, I will be considering them a= s > good to go by the end of this week. > > Patch [3/6] is a rewrite of comments regarding trip crossing and threshol= d > computations. > > Patch [4/6] updates the trip crossing detection code to consolidate the > threshold initialization with trip crossing on the way up. > > Patch [5/6] ([3/3] in v2) adds a mechanism to sort notifications and debu= g > calls taking place during one invocation of __thermal_zone_device_update(= ) so > they always go in temperature order. > > Patch [6/6] relocates the critical and trip point handling to avoid a > redundant temperature check. > > The series applies on top of 6.9-rc2 and I'm planning to create a test > branch containing it. As promised: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git/log/?h= =3Dthermal-core-testing