Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3921786rdh; Tue, 28 Nov 2023 07:17:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IFI76xJ4JtOOcg+KqHVZ2PmJfsgcLjOopHtk+2Yl12IARk0DbVApiGbtxGBvcdsV7ez/Qcd X-Received: by 2002:a17:902:8e8c:b0:1cc:6cc3:d9eb with SMTP id bg12-20020a1709028e8c00b001cc6cc3d9ebmr14969908plb.68.1701184667109; Tue, 28 Nov 2023 07:17:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701184667; cv=none; d=google.com; s=arc-20160816; b=hZ8I6p1bgje+8W2OTogF93aWmgpX5AMGR/Y2mSjanVblQpVvQGz6+1ct+5yTYV2VX4 1vYiLBnk9mobVvEYOkSUk2k2h479+KfXs5MQio5sGesN6S3Ea1MCbGjda78DkhxvGPsb 5FNxGpUrrhAc2wmxnHHBC2HOu2+0jOu4ak1NwNGn+pzACdPoZ2MqOwpdwCklBOoBr9qi OXTHZ47/S2qCc0SEKPFmD5aOjUSOC2jCcHsmGNDotixAUdbPMSJf4XURvS3NocLvmeEM tE7uYkjmXIeonLf5k3YNDa6t1W+3QtQp+BukydaRVZhQ1E/o5bjBoGxQbH4sTn7Zbpzj cn/Q== 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=AJdOezDUOd09pGauYTyOJiHMVNMGjOE4ebbDiYuq1C4=; fh=fLk6+zTI9TI7kvGwV4p+BkicOiDGI72hJ735oPZCzIk=; b=ny04T6hNuf0qmJhEUVZG4fOZfXa6pyGS9uob0Z0VdrbFa4D2DAX5PL/vVp7bmZs5zb qLOYEs6sHNj45hmYdB1w310/TDfv1IlNO+dIgRUBH5f/BOxFbZYGDDAfEa5iFzYvOYgx /7d4v4xXSHA444uuTo+DIlvpXTEg6uPY6hIBFmdvjfw+V7FiStWDzg/9tMIxB2i3YbB1 TYrCAlKp3Ig1SVH4oKaIKD6UTWcFsOqUrJ/8GXTmSrqlj6qV7csHRdHg/O2jPUSX5qxh YQzVl+rDh9KMOpVnPuDATugsqSmEtGkIEj7M6Zywf0FNbPRMw0LzLJ34GmzJAOcfYNOW 4MnA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id s10-20020a170902ea0a00b001cfb14b8184si8966599plg.478.2023.11.28.07.17.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 07:17:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id CF44A80ABB31; Tue, 28 Nov 2023 07:17:39 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346714AbjK1PRL convert rfc822-to-8bit (ORCPT + 99 others); Tue, 28 Nov 2023 10:17:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346712AbjK1PRK (ORCPT ); Tue, 28 Nov 2023 10:17:10 -0500 Received: from mail-oa1-f53.google.com (mail-oa1-f53.google.com [209.85.160.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E4ED10D2; Tue, 28 Nov 2023 07:17:16 -0800 (PST) Received: by mail-oa1-f53.google.com with SMTP id 586e51a60fabf-1d542f05b9aso848519fac.1; Tue, 28 Nov 2023 07:17:16 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701184635; x=1701789435; 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=iEkj8M4mMYU4cH7Z21tsJI4k0QP7SojOHiRyJb1hJ0I=; b=GH3I69rfOjvaEPmWQZ+42r0t2fjX1WkF6cVT+4W+jOJ3ya57Tzat2uBcxtkbSJARJh 98Z3rfBhxV3LLEJyMlmCBni7ihaeTtK/BAi8Xaug3gd6s3OqCl9za8pb1w0zoKJlh9+g NpXcx75FBH4JkdiQZSdcMpkGzOdUr7Up6b81bBjAjwV/XMycv+Ke76aGlSCOJg6ZbOMG 6hqTNYGwiRMNc1ln629QTBw/pImUTJsQ4JKN31FV9Ta7VKvMktp+rFSThygWeN8Kym+K l9ppGVUF0s3dLzOq1dPwZtsJooLUrPTPF5A3yvfYrq2zVs5Uaddr8gnG2daMnqBDSSS2 p7Ug== X-Gm-Message-State: AOJu0YzZ1hwest/yAQ4e6fOQ+mzadJ3Jcb5R0u4+P1onzwedgYpVNj/z 5uyvQhL8ErbUj4yA8IkmewvQyxcA8Xg3/LbU+SYi8tNj X-Received: by 2002:a05:6871:e710:b0:1fa:3480:bf2c with SMTP id qa16-20020a056871e71000b001fa3480bf2cmr13343158oac.0.1701184635409; Tue, 28 Nov 2023 07:17:15 -0800 (PST) MIME-Version: 1.0 References: <20231025192225.468228-1-lukasz.luba@arm.com> <5fd9ce52-9216-47ae-9ed3-fabb0f3b02fd@arm.com> <49344fb7-78c0-4fc8-9687-22d039b5318f@arm.com> In-Reply-To: <49344fb7-78c0-4fc8-9687-22d039b5318f@arm.com> From: "Rafael J. Wysocki" Date: Tue, 28 Nov 2023 16:17:04 +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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Tue, 28 Nov 2023 07:17:40 -0800 (PST) On Fri, Nov 24, 2023 at 8:44 AM Lukasz Luba wrote: > > > > 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've queued up the whole lot for 6.8 and in the process I've edited all of the changelogs and some subjects for clarity and English grammar improvements. Thanks!