Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4036312rwl; Sun, 2 Apr 2023 21:30:07 -0700 (PDT) X-Google-Smtp-Source: AK7set/43gebGIn5Ry5+9rWMRSQ1tplUZ7j4eEN0psZpXH5vaxt36zghuAFACVtsj4YJhzd8CCca X-Received: by 2002:a05:6a20:c41f:b0:db:6237:e76 with SMTP id en31-20020a056a20c41f00b000db62370e76mr28955267pzb.15.1680496207540; Sun, 02 Apr 2023 21:30:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680496207; cv=none; d=google.com; s=arc-20160816; b=s+7u8F3KEFb87wJXiBbzqmoXgv9vzoZcuPSZaBvptsIfexYG72a24Mfyj5nrlt0pUl RZ5RxOMqw101+4rsfqN3zWJ1Mhpz8vOx8jpaPsOmml7hjzPPZTJjxYwaVSJ2VA9cf05C LRKQXnVVWzLFG/MkFRh6bUfUumTDEgRcn+0bXmH2FwhPF8vBTeHPIGIebwY23e11Taie hqW1HvcOefGyPzqI9bZ9/tDwaF9GSCB5sdJ/pwDArH88czrsCCczoG1wkd8oxHsVFY60 pXSv6VjLdP+dBW024LEd+4nkxjcEpK2/h0uCPgrztPp+MDmAYgR9gzyPnNsXr825Xsup AZIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=MILQu40Gh4yj7702Jdu6F34VVeOYqufLKnQvxf105Ts=; b=BtF9qDdIU3gHrz6bH3MmjqZF702H8iLaJQKmn1UZXvKn0XjQa3TgnOb8iv3TekhT7c bM1VYX4m9X+G1rgijJSFnGBxaxqwtYNSLV8L0qc6cEUdtYzs+FmFjk8+wh7aeYhMkP1R X+pnkHyZ/JfkXh4tSuq0vqAS/RIng4FGWnq+IYmyHlPqJWu1pDgvW46K52A2h+MFRmHp OZCjG7hQH/kc+P4mYcqzcG1V2GOnt1SzMdG9MTQYemsfVYOTAhtduBhVrDXN4ygkGkuo +XXhdCaUPZ4hsGIDxnNcKHVEEeisVqKJ0YTAJuproZj7Z/X5HnQlDiHYn01ZjBBrQkt0 6NZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=q41nz+2B; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 6-20020a630206000000b00513f1464b0esi1367713pgc.618.2023.04.02.21.29.56; Sun, 02 Apr 2023 21:30:07 -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; dkim=pass header.i=@linaro.org header.s=google header.b=q41nz+2B; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231354AbjDCE3P (ORCPT + 99 others); Mon, 3 Apr 2023 00:29:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230090AbjDCE3N (ORCPT ); Mon, 3 Apr 2023 00:29:13 -0400 Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 826EE869B for ; Sun, 2 Apr 2023 21:29:12 -0700 (PDT) Received: by mail-pf1-x42d.google.com with SMTP id u38so18179832pfg.10 for ; Sun, 02 Apr 2023 21:29:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680496151; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=MILQu40Gh4yj7702Jdu6F34VVeOYqufLKnQvxf105Ts=; b=q41nz+2B1XoLmAa2N7p2FiyUBnDkEtrf8PU/OpuuhBFb4BYKVkztPpcvXBF0inDCj1 rCnrAYs8SyWflKFTByMcFUgo/Yl+MIAsFZlXmq+zItRUJx9DC697PX/E0B8TK5vWoBY5 oMYNAovMkY3GeCMflmRXSlIzp0Mm2wJBGRQjNVZJ7jAeOMghkIhaNSFbtnIj6mixRpWv HATXclyhrO8f38QjStUjb7x5TvAf1pTiloxEHqo1z6hqCNxrkUx9gb7na9+x1GAZHowV bRhv03cHZAs6SI6IuTnvD11s47IHhzLd5E0/vSq1gNKhaqBnAOzw9FWWrxERMNevvSJY rWtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680496151; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=MILQu40Gh4yj7702Jdu6F34VVeOYqufLKnQvxf105Ts=; b=6mhRN4p3wo3pyPrH/hLoOw2mcyqnPTTKLr6ejGechMZpxaVZcxkM+l33eHLLwpjp0U JpzthRRx3zjFayldC0C6JVXVL2dbZJqr+OLsLhjUF/ldi3TLYRcmxy4+KFk8zzlFw2Py ZWPpEgBA/ExN5d0r7w/k7i454D0V6flfSEEVsyKqWcXkEF0QjJjRFzCVCblBQZGFcnjs 4wuOoWVU2ralmAVIF8xnBWVTBzWEKC/cejFA0jguRY7ej3LAqCTRy9b7Llj1OhgQi8ma b6mrdvQEINDAKmvwgwtnHYYvRy3akk/Pl3E+fZfwLhmw+RudDy7iYEjWCpp/xFMJpUfs vJKw== X-Gm-Message-State: AAQBX9eRTndGs93zU6JlZHFal4Yabs3KEE7BkLWWkH8GwBRoq9v2jsEj MccoKpftYw0Sd3gm1MkMbQ0XJg== X-Received: by 2002:aa7:95a9:0:b0:62d:af5a:27bf with SMTP id a9-20020aa795a9000000b0062daf5a27bfmr16211432pfk.6.1680496150910; Sun, 02 Apr 2023 21:29:10 -0700 (PDT) Received: from localhost ([122.172.85.168]) by smtp.gmail.com with ESMTPSA id s14-20020aa7828e000000b005a8bf239f5csm5745261pfm.193.2023.04.02.21.29.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Apr 2023 21:29:10 -0700 (PDT) Date: Mon, 3 Apr 2023 09:59:08 +0530 From: Viresh Kumar To: Ulf Hansson Cc: Jun Nie , Viresh Kumar , Nishanth Menon , Stephen Boyd , linux-pm@vger.kernel.org, Vincent Guittot , "Rafael J. Wysocki" , Manivannan Sadhasivam , linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/3] OPP: Move required opps configuration to specialized callback Message-ID: <20230403042908.x4jpoywmalfbveia@vireshk-i7> References: <56b9926836652e9dbf56ca6b7628e836cddca351.1677063656.git.viresh.kumar@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 01-03-23, 14:06, Ulf Hansson wrote: > On Wed, 22 Feb 2023 at 12:07, Viresh Kumar wrote: > > > > The required-opps configuration is closely tied to genpd and performance > > states at the moment and it is not very obvious that required-opps can > > live without genpds. Though we don't support configuring required-opps > > for non-genpd cases currently. > > > > This commit aims at separating these parts, where configuring genpds > > would be a special case of configuring the required-opps. > > > > Add a specialized callback, set_required_opps(), to the opp table and > > set it to different callbacks accordingly. > > > > This shouldn't result in any functional changes for now. > > > > Signed-off-by: Viresh Kumar > > This looks reasonable to me, but I guess it also depends on whether > you will land patch3 or not? Not necessarily, its better to have a clear error path to avoid unnecessary confusion. I have applied first two patches now. Thanks. -- viresh