Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4301590rwd; Tue, 30 May 2023 03:33:02 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6JzdrzoECV7R0dP8ExPOX2jLU1ruNBHICJwsXTxw5lTPhEd0ZfYvagpzUM7m2zEUD3qZiM X-Received: by 2002:a05:6a20:244e:b0:10a:dd89:420f with SMTP id t14-20020a056a20244e00b0010add89420fmr2352059pzc.6.1685442781920; Tue, 30 May 2023 03:33:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685442781; cv=none; d=google.com; s=arc-20160816; b=0G+syNJniYakDdaiv40Opb56QO9AEv/9RrVPIL/yCHJP8iKe7Z1OGs4BZIuuJ91hhQ rEvYKbFElF0b5RDvIfF0eDOdrneN23BL1nOLgky0DP3OxdP6wFXjmxJ3xhDBseDTanRI pZTsEmFP3NbcfgoglvbiITITDtwT6BS3t/Ok/BnIwa1w4A1ODzXFr3c8BHMhnlSVCkzY NIh7oEfAmorH0Qi6KSI3g5Yn5/neHvLZplgCwW0vGyYS+9Pv5/UY0HZEPYHjOaXY7+Ow aAJQ6jquXemsxFUDpW9MYC2wRULIrhnMF3Bx7chLLmvcZ9gvAWNK77JBehPleRQ8SkrK VP8Q== 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=nSWPJR7Y0o7aJ8hLkvaOQi8oy0mTvZP3lN+A7oga/ug=; b=b0WUiMFi/0cI4LWHF2Qx2b5UvGu4k9xzOLmVnU489dsVj7GEmOKcgeuURwHMAKYLWn v2+cLrlcj3pFknK7IUwORzjA1tTG2fBEGyE4NHZ2qBetmOGrDfbfzD2x9wJbV+5SbeNM DHf/QYR4MZQlZc/ppXnbERDoQ02vMuftHc1LqJ+BfJZ8jpdKVnLaYZDt64nxidfJlUQZ NPDQco7CY8PsYi+IgzEH/Vr7ADT+XINaygLcFTsRHND8r2o80FBtSSzUiu/lnU4uvLNF AmPv61DdH42ZSXA0p+ZFWPQiW4m+EbIHvQFABl489dbRpdCSEaJg+3VbcCsorPqdQF59 SE8w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w8-20020a639348000000b0053f19be2174si419760pgm.791.2023.05.30.03.32.50; Tue, 30 May 2023 03:33:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231468AbjE3K0r (ORCPT + 99 others); Tue, 30 May 2023 06:26:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231458AbjE3K0Y (ORCPT ); Tue, 30 May 2023 06:26:24 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 95719E65; Tue, 30 May 2023 03:24:20 -0700 (PDT) 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 C7E79AB6; Tue, 30 May 2023 03:24:02 -0700 (PDT) Received: from [192.168.178.6] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3542F3F67D; Tue, 30 May 2023 03:23:15 -0700 (PDT) Message-ID: <6fc603da-b874-0e38-2402-a112e5c3914d@arm.com> Date: Tue, 30 May 2023 12:23:14 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v2 13/17] PM: EM: Refactor struct em_perf_domain and add default_table Content-Language: en-US To: Lukasz Luba , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, rafael@kernel.org Cc: rui.zhang@intel.com, amit.kucheria@verdurent.com, amit.kachhap@gmail.com, daniel.lezcano@linaro.org, viresh.kumar@linaro.org, len.brown@intel.com, pavel@ucw.cz, Pierre.Gondois@arm.com, ionela.voinescu@arm.com, rostedt@goodmis.org, mhiramat@kernel.org References: <20230512095743.3393563-1-lukasz.luba@arm.com> <20230512095743.3393563-14-lukasz.luba@arm.com> From: Dietmar Eggemann In-Reply-To: <20230512095743.3393563-14-lukasz.luba@arm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,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 On 12/05/2023 11:57, Lukasz Luba wrote: > The Energy Model support runtime modifications. Refactor old > implementation which accessed struct em_perf_state and introduce > em_perf_domain::default_table to clean up the design. This new field > is better aligned with em_perf_domain::runtime_table and helps to > distinguish them better. > > Update all drivers or frameworks which used the old field: > em_perf_domain::table and now should use em_perf_domain::default_table. I still believe that doing this refactoring before the introducation o the new feature `runtime modifiable EM` would do wonders on the tangibility of the other patches in this set. [...]