Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp888040rdh; Thu, 23 Nov 2023 23:45:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IEAmdMDOmw9cOKIPQecH+jZ+YnXw/PxAEm9N7dWw2nqyumvarz3+d9SRjKxf1WjcjPfChgU X-Received: by 2002:a17:902:740a:b0:1cf:9d9f:36e4 with SMTP id g10-20020a170902740a00b001cf9d9f36e4mr1761957pll.40.1700811911320; Thu, 23 Nov 2023 23:45:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700811911; cv=none; d=google.com; s=arc-20160816; b=YaSa8jnu+WkaCdIWrV3+K0auKrU3Bt3jYmc2SyrgxE+m37W0NemsM2K0eeffoATsCx 1vfr7kZaM4mJlFeEXGzPzHkuGdddS63orC/8VjnOfVdESnLxLDt/vQKqzQe9Hr4C0w55 CAlnwquUrCzeVG9MiCIAFZDYbdkmnzR+sQb111RVSEnhI6T7GbHNebLTU21XvthTzKf9 +e37aPDqu9AocuDvnYLT2Ahv3WPfugtFHmZi2WvgRYa5qg+VjJPZQUPAwDXCMLjsuD6a m8rk1M/Xr51fnRHX05/+c3uvnzhilDiOG1r5cjkpRCSqOb6V1fKpaR9FSrj7XFz0n6OC 0kyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=zFvPsVFhHwci94EjlArUSa4PWcLYRt4aktdCj2rjjaY=; fh=s+3ccwKL/Xc2i8uH9tAeSOb9IGpvLhPrVmnBNs/vSzQ=; b=FRhnSQ6/c7rC0GQdcGI3/fKpLWTfS7UjWu2L3wGZRjQ0qud9pakFbma0DjTXdcfDUW +1MiTCqcVlnZhMtnz8dDI++w5SLS0fWx9E8ZQCzA6httBPgB+lWVlnUISHmb3HEONtx1 HgEjHTD6WlTvF3dvfl87EtbQ7FfgwxJPzHhT7xBLLV1NvK6761pu8ue6mIOgNIIR4pNf SFyogvF3wX/tuuKiaVCGDcBLJBjs8KedYjuXpMBcjtcuNUDjrCaBCNtOzBF6T/MP4RUo mcbETq0jrNt9xSM970dWv7DacfNzkVVE2mk8og0K4XqaJGFdo1eR/rUFVV0cbB9GueLk uFLw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id ju12-20020a170903428c00b001b674055d72si2768294plb.621.2023.11.23.23.45.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 23:45:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id C8B1581D7A41; Thu, 23 Nov 2023 23:45:09 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231801AbjKXHoy (ORCPT + 99 others); Fri, 24 Nov 2023 02:44:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231572AbjKXHop (ORCPT ); Fri, 24 Nov 2023 02:44:45 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A9728D40; Thu, 23 Nov 2023 23:44:50 -0800 (PST) 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 B1B0C1063; Thu, 23 Nov 2023 23:45:36 -0800 (PST) Received: from [10.57.4.165] (unknown [10.57.4.165]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 545AA3F73F; Thu, 23 Nov 2023 23:44:49 -0800 (PST) Message-ID: <49344fb7-78c0-4fc8-9687-22d039b5318f@arm.com> Date: Fri, 24 Nov 2023 07:45:48 +0000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 0/7] Minor cleanup for thermal gov power allocator Content-Language: en-US To: "Rafael J. Wysocki" Cc: linux-kernel@vger.kernel.org, daniel.lezcano@linaro.org, linux-pm@vger.kernel.org, rui.zhang@intel.com References: <20231025192225.468228-1-lukasz.luba@arm.com> <5fd9ce52-9216-47ae-9ed3-fabb0f3b02fd@arm.com> From: Lukasz Luba In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 23 Nov 2023 23:45:09 -0800 (PST) On 11/23/23 19:50, Rafael J. Wysocki wrote: > Hi Lukasz, > > On Thu, Nov 23, 2023 at 4:19 PM Lukasz Luba wrote: >> >> Hi Rafael, >> >> Gentle ping >> >> On 10/26/23 13:22, Lukasz Luba wrote: >>> >>> >>> On 10/26/23 09:54, Rafael J. Wysocki wrote: >>>> On Wed, Oct 25, 2023 at 9:21 PM Lukasz Luba wrote: >>>>> >>>>> Hi all, >>>>> >>>>> The patch set does some small clean up for Intelligent Power Allocator. >>>>> Those changes are not expected to alter the general functionality. >>>>> They just >>>>> improve the code reading. Only patch 3/7 might improve the use case for >>>>> binding the governor to thermal zone (very unlikely in real products, >>>>> but >>>>> it's needed for correctness). >>>>> >>>>> The changes are based on top of current PM thermal branch, so with the >>>>> new trip points. >>>>> >>>>> Regards, >>>>> Lukasz >>>>> >>>>> Lukasz Luba (7): >>>>> thermal: gov_power_allocator: Rename trip_max_desired_temperature >>>>> thermal: gov_power_allocator: Setup trip points earlier >>>>> thermal: gov_power_allocator: Check the cooling devices only for >>>>> trip_max >>>>> thermal: gov_power_allocator: Rearrange the order of variables >>>>> thermal: gov_power_allocator: Use shorter variable when possible >>>>> thermal: gov_power_allocator: Remove unneeded local variables >>>>> thermal: gov_power_allocator: Clean needed variables at the beginning >>>>> >>>>> drivers/thermal/gov_power_allocator.c | 123 ++++++++++++++------------ >>>>> 1 file changed, 64 insertions(+), 59 deletions(-) >>>>> >>>>> -- >>>> >>>> The series looks good to me overall, but I'd prefer to make these >>>> changes in the 6.8 cycle, because the 6.7 merge window is around the >>>> corner and there is quite a bit of thermal material in this cycle >>>> already. >>> >>> Thanks for having a look! Yes, I agree, we can wait after the >>> merge window. It just have to be cleaned one day a bit and I postponed >>> this a few times, so no rush ;) >> >> I've seen you've created the new pm/thermal. Could you consider to take >> those in, please? > > Sure, I'll get to them presumably tomorrow and if not then early next week. OK, thank you Rafael! > >> I would send some RFC on top showing the issue with reading back the CPU >> max frequency from the PM_QoS chain. > > Sounds good.