Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2914733rwd; Mon, 29 May 2023 02:57:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ78AE5z4FM0KQ3kn+Iq0rpTRlOxUeYLS3zRVU7tvjKay7KMakocbEyhKg3OGZR+8Chwd0hi X-Received: by 2002:a05:6a20:7213:b0:10c:b9ed:6a38 with SMTP id y19-20020a056a20721300b0010cb9ed6a38mr6964839pzb.28.1685354223880; Mon, 29 May 2023 02:57:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685354223; cv=none; d=google.com; s=arc-20160816; b=Zi3Lul2Gr0aLP8aVIAv4Wj88/xK5PB+6ofVzQ+0mlrVZJQXRs1l0O0tZiyW5hRnt2O qfoAUZ4tadwdUL3O0peqXB3Sp6UevPJMlQOVMIE/giX+SR36gnkFtU2azsY/Rqqzf1W8 sAh4NV/8f8UyetEFSysd3IrTL2xeipdlKtcRHvWRLyIH2XergX+5y8EoTzB87mijCIV5 J3aCKWhBQ+fSj7Kpn6hYhohe9bAhdAtEhOwrimIVBoYBh5wunj3/MoDpi61Bewyk7XVA X++9KfwfBxRg8ZWT+x9W+R/cwzX7R9IpC5/YQZjHvkhQkJUMPQiFDXb36m8A1YRyEqo5 mx7A== 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=D1scMJbm+J8SOCLBtYHV08jK5p9nUqNWylfex8fdHi4=; b=BsJPg3UjouAKbeBRPM7zYi2aaBxBpbwHkAOhP8iFaKRrNNS+twMsaycy/fMgDt2rYB MrvDDHTst5wElOL/3K8MJsZ/ufv3HpjxowhnMnZvOdOsxWbpqhiNs7+p4N0mJOm+gIDI tc2LbkzYO8cO67ZGDXbB/bJo10AO0CtColMfxDeEB1tJkDZjZWoA8iYxIxUxOUupod5y acLtsZbBcTXnzrc17aJFYL5ymwI4iZ6kHGwm5UzsJG6MpceQDgSVi91JQyVizOkL7OzP 4EclbNd5/TmvDIHD3dLtAMJDyL6vMwysBWbbIvDN2QvEj9ptlebbYpdluARvhQ9Seik2 GFWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="iV9h0aO/"; 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 h128-20020a636c86000000b0053485da2a68si5489828pgc.669.2023.05.29.02.56.49; Mon, 29 May 2023 02:57:03 -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="iV9h0aO/"; 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 S231699AbjE2JlC (ORCPT + 99 others); Mon, 29 May 2023 05:41:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229453AbjE2Jkx (ORCPT ); Mon, 29 May 2023 05:40:53 -0400 Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D87410A for ; Mon, 29 May 2023 02:40:45 -0700 (PDT) Received: by mail-pl1-x62e.google.com with SMTP id d9443c01a7336-1b01d912924so23802055ad.1 for ; Mon, 29 May 2023 02:40:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685353244; x=1687945244; 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=D1scMJbm+J8SOCLBtYHV08jK5p9nUqNWylfex8fdHi4=; b=iV9h0aO/Fsuqo4rNWd7XwSC0Ryvt+KSIV3T9UC7f+r35Hv3NBFsA/fI65BfscuvJ+e qUnGeKXaZ2tUMnY0bmJPJomOGKNVN74BeDbZYIkUjszgsjA0VofdaCL9XvTJfVUesWPN ajvvOusig+h2yfedFa93k3ceeLTKWwZNI1sXivPr9wrCa8dY38nFqg3XBGBB2R7VBnM+ Bm8DB9rJUxeNtGPio0GG3caDOjFbYlrZHgrXOmHv/lZ3edxSPXR5/SA66NeL5+KGw9Ga z4NXnXUpHVjjNjk9EvOEE49LVO084k9+nDdaCxjSX21nqzIgt8WjlCyiriQqV+csRtqd LssQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685353244; x=1687945244; 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=D1scMJbm+J8SOCLBtYHV08jK5p9nUqNWylfex8fdHi4=; b=W3wkwDZ3nvkW7wPIUZiqpEN9R3AHABB5IT2GRQxUxA48x8GUeDvFuYLpGmmjPs+kj0 mY6T5mp/5SAyicOnj4B/7g4k6Q6HewEFLlD7xNH1r4jW82Fgv+HMEb7/c7uMF/g6hf9d p46VZR1Sdne82vpmb8t2EFxnPZmouznOpNXrSTECRogeypsA+EeDTBbqiBL4CyXiaSz8 kXCgjJ52QEMIj7R9apv/gJw/p24EhPVTxvbCrn7pEW4FEODYZMm2tJkcOjOXQamq4bjJ Q9AgOtFKJdFz+RdA0IbViuNyEbJ63Vfq5wZ630rWGo6dFCEr9vlOdXVt1NGeSWui+V5Q df0g== X-Gm-Message-State: AC+VfDzhYLfiMLV6kGNoj5WR9d8RbJBIeKVgsBPlwnGVRJW+v6DB7D4Q sneoX4aID+ClQoGp7dpciSHUZw== X-Received: by 2002:a17:903:4095:b0:1aa:ee36:40a5 with SMTP id z21-20020a170903409500b001aaee3640a5mr7957734plc.34.1685353244630; Mon, 29 May 2023 02:40:44 -0700 (PDT) Received: from localhost ([122.172.87.195]) by smtp.gmail.com with ESMTPSA id m17-20020a170902db1100b001a65fa33e62sm7758023plx.154.2023.05.29.02.40.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 May 2023 02:40:44 -0700 (PDT) Date: Mon, 29 May 2023 15:10:41 +0530 From: Viresh Kumar To: Konrad Dybcio Cc: Viresh Kumar , Nishanth Menon , Stephen Boyd , "Rafael J. Wysocki" , Marijn Suijten , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] opp: Provide a function for just setting bandwidth Message-ID: <20230529094041.s4fj6gjliivugk3r@vireshk-i7> References: <20230526-topic-opp_bw-v1-1-e881091363af@linaro.org> <20230526105320.pfnu3oxl2cm37ot7@vireshk-i7> <20230529045854.gh36k5my4i35jspc@vireshk-i7> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 29-05-23, 11:35, Konrad Dybcio wrote: > I think I didn't state my intentions correctly.. > > The proposed function would set *just* the bandwidth through OPP, > so it'd be essentially equal to > > loop over num_paths { > icc_get(...) > > icc_set(...) > > icc_put(...) > } Right, but why do you need to do it ? Why isn't this done as part of dev_pm_opp_set_{freq|opp}() ? > but since OPP already picked up these interconnect paths, it makes > little sense to mess with them through raw APIs. I am not sure if I would want to expose an API to just configure part of the entire OPP switching mechanism. I would rather let you do that via ICC APIs, instead of going through the OPP core. Since there is a possibility of accidental misuse of the same here. -- viresh