Received: by 2002:ab2:2441:0:b0:1f3:1f8c:d0c6 with SMTP id k1csp205130lqe; Thu, 4 Apr 2024 04:30:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWKIBcKVnOpw7gnz9H1ywW+qw16+4DEfgXHlkiv3M+xMxb3g1ueiQZVwwc+FYyJiFGlKtpr5SMoaesgHEBURzhtcYuBOogsw4OX2RWvYg== X-Google-Smtp-Source: AGHT+IHIK2t9CM+Nav3uqC6TPFuIMSor+dtloXF89dTv4CAH95xABJ4NPirLXONXMiTP4dzTNIYt X-Received: by 2002:a05:6a20:8409:b0:1a7:19f:2c3a with SMTP id c9-20020a056a20840900b001a7019f2c3amr3744843pzd.7.1712230253562; Thu, 04 Apr 2024 04:30:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712230253; cv=pass; d=google.com; s=arc-20160816; b=f84HW6zdcj+VtKqJC0BOR8PLpToaje2EkoKAwJvPYcg5v3JY8q3XlBz4vkrhYNHEYO ZR9s8XlLpUXUamkfluABRsvIGFFENgPLekRpWXBcQBcQH2hLCzRocjXsbAi86sGHFKPF hYBHoE7zp07XJefRlC2gpT88drrlXUpkYeaEThiVP5eF8VpOgcxE3dyBjsrxttXvo0OO 6RIGRg8WoTBvm/S+NWuwDgL55WvrkbqDHaxnLjQ2TmRzP0G+1pGSV+17C0oT3/0Q3Jfl pjCgRgC767Hfefpi3HN8SyIeGySk7VEDBZ7QyAz/7dNy1S4j/69Isg4vaUVgQ/H/ezEm VhHQ== 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=vxOGCGsvHlVEQ6GtSq8Nn1gLXZj6tWSqNDwMBYnX+j8=; fh=yz8t9CZrmOF/QJBU52VApyxaa0LeS0vlHEWQST3uyjo=; b=ZqXaYVMkV2wrpjAoudvGtkng+RrTybM7yV5VveQdXzRxWJde08JLrhoVPCuZpuyf/0 v+dEINwEJNy7F9+SLCLcvD7zDuYUw3HOctndcLQAnkIYw4pKkZtoP2I7QXc414LJy8Bp v/pscjyZTR50hAEPrpGHAhIBctx1fku36Msf+jizzi5EXrsA7+DzQK5iC8knoRyY8Bu1 k/+wqpiez+8UUdlFDnjDb/7QCE+kux/BROsfSUklxZsQytR7xyx02OYymKAcDEewUW9f eLDsDY97le4Bo11Z2/V6I7rmpzLbDv12qYL988FPz2f+qwKZ0m+X+h6TMw0bZj9Zgx2L SICw==; 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-131313-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131313-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id b10-20020a655cca000000b005f0568900dasi15462703pgt.560.2024.04.04.04.30.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 04:30:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-131313-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; 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-131313-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131313-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 06E8A28894B for ; Thu, 4 Apr 2024 11:30:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4E22C839E2; Thu, 4 Apr 2024 11:30:47 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E721880BF7; Thu, 4 Apr 2024 11:30:44 +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=1712230246; cv=none; b=DHJmDwkGFl0uoVd2Z1y2kQPMqEZ64oYjWVtZ5gkgN4rTZtWGntAAy6toxc2kQXJlnMx5WVP/A6idh+gtHCuOv/c1629NzG2r9/+gKQroUOpqjwPwMqmNfohML+v5vYaqfgZQnUmmLQuc6LGMs06jEWbdagwYqnuQSzsRfyVv0jI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712230246; c=relaxed/simple; bh=pLVCf5e5q5NTHQHwxvNXS0PZwUAJ8fkbWjKNs0T5vac=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Ki1CbEAA0bB3H3piRH0ItB0ac64f3u/JPDn449vJd6J8ELM0HC4jtO7jFQ8f64KUz+/Ovmoei/L3L9mwnykxySKNXxVucxggNIOiJtANx4kVt4gYTxCWD8Fl8zZmIIkRN8dgfBLyhkW8/35hOJy/Hv9IJRAAEXwt+z11IQ/mMD0= 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 D9F60FEC; Thu, 4 Apr 2024 04:31:14 -0700 (PDT) Received: from [10.57.73.43] (unknown [10.57.73.43]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D0ACE3F7B4; Thu, 4 Apr 2024 04:30:42 -0700 (PDT) Message-ID: Date: Thu, 4 Apr 2024 12:30:43 +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 0/6] thermal: More separation between the core and drivers 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> From: Lukasz Luba In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 4/2/24 20:42, Rafael J. Wysocki wrote: > On Tue, Apr 2, 2024 at 9:04 PM 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 adjusts >> 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 struct >>> 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 in >> this series). Moreover, no comments regarding the merit of these patches >> have been made shared, so if this continues, I will be considering them as >> good to go by the end of this week. >> >> Patch [3/6] is a rewrite of comments regarding trip crossing and threshold >> 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 debug >> 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=thermal-core-testing Thanks Rafael for the handy branch. I'll play with it today. Regards, Lukasz