Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp571640rdh; Thu, 23 Nov 2023 11:50:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IHbKOiWURx/a3HvGDXd0RDZagVD6TG9bYHtCBYFrgDoLHiSwseAqHtFieE4aVICjnVzWF/I X-Received: by 2002:a17:90b:1b0e:b0:283:3f5f:b29b with SMTP id nu14-20020a17090b1b0e00b002833f5fb29bmr469058pjb.27.1700769026949; Thu, 23 Nov 2023 11:50:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700769026; cv=none; d=google.com; s=arc-20160816; b=f0xooRDpidOX8wd2e5J6xtRORd/vFcUkJmyZpAlw7Vsox0KqUeRY3GFBAg9jFEE3HG ZznP8rBZjhfWkgqBpjCQ7mWd1RoVfNwrVV0BKB18befg1BOG7WWzcDL0BYQMDrv8TOd/ sIUMqut7Z1LOXVbzCjRbihoe+3Irouo/3d6PCbRfxxRn+CQSOUz8wY92ufIydozOG8cF P3VVy/VGceh0n3+OoInxwLYfaJjEU6pERcwjpN6bggxGVp6v/LKxCJFOjmamTy0e0ANM CUozppnz/OCmbCPw3KcZw7zk8Q7lZFnkLHEGV2FAqXLZdl7pvh8oDzsfhMVlXD8uyoH9 VCyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=S08SH/raW3EDYkTnS8VC0k84GNN/nETdoJeo7NTHug4=; fh=fLk6+zTI9TI7kvGwV4p+BkicOiDGI72hJ735oPZCzIk=; b=DGe3V/owqr5Q+x4V7RLRG7kKMLERUH/P6HZkMPrYjivUGa6bY8Kusuv7NRh2KZxXYY cFqi+P3XrWuB/b7H7gOtTbObrDgSIcqHEV1yxlD9mFYXaL9zqwY1zabEdheDgSsA9Oea 6aX7mmlvh9v5KnUe8SBiMF2GjTGOli6lga9SclVDf5Z75SBqq5hPxTVxXKFVF23ln3yk 1FsD3pXsF1uR9FAf5m83ZwBrn1lhs79iZZZJrVcrcMPbkTryq9tq5S3ya6krb732C+CA dPJThQtjNX+tvKC5Xcx6/obk5Li/C7OVSSVNjDBqbXzsCxjGXCyxuiE0FXZKZCOjLzJM sFOw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id b7-20020a17090a6e0700b0028513871956si1892993pjk.73.2023.11.23.11.50.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 11:50:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 7ED1182AE4B7; Thu, 23 Nov 2023 11:50:24 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229588AbjKWTuJ convert rfc822-to-8bit (ORCPT + 99 others); Thu, 23 Nov 2023 14:50:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229453AbjKWTuI (ORCPT ); Thu, 23 Nov 2023 14:50:08 -0500 Received: from mail-oa1-f45.google.com (mail-oa1-f45.google.com [209.85.160.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA55091; Thu, 23 Nov 2023 11:50:14 -0800 (PST) Received: by mail-oa1-f45.google.com with SMTP id 586e51a60fabf-1efba24b038so279087fac.1; Thu, 23 Nov 2023 11:50:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700769014; x=1701373814; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SPnVIP7WE+e1m6kbF0iZl32seDul9DiRZGTrCiOrxg0=; b=FNIWBW2c7Kj6ZofayiRNXObglnaSc+VU/SNbg0ft6JE7UTzJc5Mebgwio3mbx1OjpK 6zs8uu89SJPbQRvoflVlE8chKohmuZgGOgSR9+5PXUXDWawDo8Tf8MgMZyPCKM9JJ1f4 GvlDXoxOEI0JMhAYQrhvBq+hWEZC9vXXmmvZFIp/+ht1a2qNnPJXYhmhaEkpS8TC4zpD Y4OdVYauiQ7/HaUyK9oQFpWhtuOwEv2I0IbJ3F7MpArbSnF5PO8wVKnsHWq8HbVtsvom leRFITfw7BAGE3PhPFRFVsXS6J336C04r3Fhf24HrS+cktjJnSFn4KCjt/s8hvqYi29M awug== X-Gm-Message-State: AOJu0YzMXzcUP4hmO2AxCShoIGz0fHgEORzW1hXUyAlY1rAzyYuOLYMy WVBIOiBWF0GWAUg3fptvOEqaNRQuRgBOOa8pg931+S1/ X-Received: by 2002:a05:6871:530f:b0:1d0:e372:6cf8 with SMTP id hx15-20020a056871530f00b001d0e3726cf8mr463783oac.2.1700769014104; Thu, 23 Nov 2023 11:50:14 -0800 (PST) MIME-Version: 1.0 References: <20231025192225.468228-1-lukasz.luba@arm.com> <5fd9ce52-9216-47ae-9ed3-fabb0f3b02fd@arm.com> In-Reply-To: <5fd9ce52-9216-47ae-9ed3-fabb0f3b02fd@arm.com> From: "Rafael J. Wysocki" Date: Thu, 23 Nov 2023 20:50:01 +0100 Message-ID: Subject: Re: [PATCH 0/7] Minor cleanup for thermal gov power allocator To: Lukasz Luba Cc: "Rafael J. Wysocki" , linux-kernel@vger.kernel.org, daniel.lezcano@linaro.org, linux-pm@vger.kernel.org, rui.zhang@intel.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email 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 (agentk.vger.email [0.0.0.0]); Thu, 23 Nov 2023 11:50:24 -0800 (PST) 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. > I would send some RFC on top showing the issue with reading back the CPU > max frequency from the PM_QoS chain. Sounds good.