Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp153386imw; Thu, 7 Jul 2022 23:45:23 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u3woOq9cqpc0DcfFi6gkz6bJ4jwg17AES113hL7Z80KgxrrjHQjBr/FD4vw8O1wu9MBAvo X-Received: by 2002:a17:902:b947:b0:16a:79b7:21f2 with SMTP id h7-20020a170902b94700b0016a79b721f2mr2164406pls.130.1657262723780; Thu, 07 Jul 2022 23:45:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657262723; cv=none; d=google.com; s=arc-20160816; b=0oPPEf+DCF4h5yf76/Sm/WB8Ws1RNdpsqMVuWudrWkJL+MpBi1xg2rFV2/bTQnsT2+ Z2cIn9hr3FbLnkSqCiKfCUWR97CtimkRYdEOahNVmIwBVWd/PoLjeH0ew5TgSwiUyogy DVc3lu4UTyjK+R7QbVJQWFxKVOMqEdTp21Loxn3R7TaNMpu6mX1pcP4xpH5Pt13xohbs 5qdGgUalnl2OvZv0EwmPyh5Pjz3xq4gZxizNxTW4tksRHAK05hYFjJQirBWjuaknLQid WIMFIVIStck5J8s3E/FKUvJJe7KaOVtpm5eWFhLJg6z/rjn+uSazxuFg5uLjFLJgZvS0 uLBw== 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=H1rFqef4sJqptg9wHlXMkGLnOhStTJVvsg+RpqiXZhk=; b=MnEfSp9M3ZZCf4Uj+V1vFyXRiWwpxdMaDttUog6B7FYRRO9bi5iF9nkmiL1GxKdN+D eZ8egcnW6JhSELon63+kJNA1anpLA41/CKihrOP0hlnzGU1y7TYgr9/bkzqhrGRCjHjE 2HfBmL+XwPRzC+QkVW1YS6XrQ45KQxYlOpwv4c9JNGH4xeEl7JIuIkkb+KlvEoem8LNB OZOB0mY4TEuCUb7kQOf/cU1UcbO1La/CjkEtuuF5hiJpu+E0h1k3PhVt4I0T1pkd39M3 VnSqFWnkGGUbl42ahzoHxMKfzHSxFSQAbOUqYguMxXUln3hu45V3LwXvkhomBkycB2Bj V9IA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jL0OXwDe; 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 e70-20020a636949000000b00411bf36f550si27343268pgc.595.2022.07.07.23.45.09; Thu, 07 Jul 2022 23:45:23 -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=jL0OXwDe; 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 S237068AbiGHGdO (ORCPT + 99 others); Fri, 8 Jul 2022 02:33:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236895AbiGHGdN (ORCPT ); Fri, 8 Jul 2022 02:33:13 -0400 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68E8D24F0B for ; Thu, 7 Jul 2022 23:33:12 -0700 (PDT) Received: by mail-pj1-x102e.google.com with SMTP id fz10so11147734pjb.2 for ; Thu, 07 Jul 2022 23:33:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=H1rFqef4sJqptg9wHlXMkGLnOhStTJVvsg+RpqiXZhk=; b=jL0OXwDeT+1BLLHSd6unR57Dv5PwlNfa7iNaZQD2rw94eOeYM08Qqo1iWM+WwQynIT ccvZC1ZZe0k97NHcgxamAatBF+1h5zfI/O3AkZ6VRHfwdU4tdq4TSz2sFYHVcnmTUC8Q Q5kGajtSsJhMh1eycHPlDVZ1HKN0VErfulPmLtwxDqJq+dR0z0+nX7NSK2nFCG8hrXAW o4S7wtCQpJ1NnYmwlUFiTLxnvedE2uDefGtz2IUI3cTimcANvENK2X4UdmBLRIhxAfy7 JKPR51kqUFwWhmGMVGhWgP2Eq9xCmYm5hHmrqhTwihyVAUDC6sjqgG7t2/8V3gOQAIvn g+UQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=H1rFqef4sJqptg9wHlXMkGLnOhStTJVvsg+RpqiXZhk=; b=euBDbSCTh8bT7VxkCRdy0c74lyZbRTemM0CGfW9/D/RIpUroY1xPAUa1dbTyILwMVq zQUXxkRI1quc4vBKOPiMp7PlUACTJ+ZuY9MKUZdvNtPvjsnUiC5ILv1KOzJH+K//UBlF x8/zVN/7kIWC/aQUPmLWBuUKbZbUTQQ3bs/DEcXym4iogbejfaUOZKIzeY7TM9a5Q2Ft MpAUHjJo5EMWfvhma8wSyVEsjy4eT7lAVrl1VaQOsBJaA51pxtRt2cEB9v+uwKWC6Wsr GplGNRKB0y9ewMRWrYlKwl+4I4E8INvIqstfKcCbz/14/xWvXdkvbcmRD1nUYH9mp3d+ G9eg== X-Gm-Message-State: AJIora96LN3Upjcdl16MJ+eFynsUGG/znLOqKrquMm2XnTIRXDmqx1OQ wKrWvYfGJIb1Zz0GGLJRa9gu9w== X-Received: by 2002:a17:903:32c4:b0:16a:4227:cd68 with SMTP id i4-20020a17090332c400b0016a4227cd68mr1996000plr.173.1657261991495; Thu, 07 Jul 2022 23:33:11 -0700 (PDT) Received: from leoy-ThinkPad-X240s (n058152077182.netvigator.com. [58.152.77.182]) by smtp.gmail.com with ESMTPSA id i11-20020a1709026acb00b001640aad2f71sm28936148plt.180.2022.07.07.23.33.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Jul 2022 23:33:11 -0700 (PDT) Date: Fri, 8 Jul 2022 14:33:07 +0800 From: Leo Yan To: Georgi Djakov Cc: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 5/5] interconnect: qcom: icc-rpm: Set bandwidth and clock for bucket values Message-ID: <20220708063307.GB195591@leoy-ThinkPad-X240s> References: <20220705072336.742703-1-leo.yan@linaro.org> <20220705072336.742703-6-leo.yan@linaro.org> <28bf991f-7b4c-0af1-2780-842500b01a0f@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <28bf991f-7b4c-0af1-2780-842500b01a0f@kernel.org> 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 Thu, Jul 07, 2022 at 05:33:58PM +0300, Georgi Djakov wrote: [...] > > @@ -321,12 +365,11 @@ static int qcom_icc_set(struct icc_node *src, struct icc_node *dst) > > provider = src->provider; > > qp = to_qcom_provider(provider); > > - list_for_each_entry(n, &provider->nodes, node_list) > > - provider->aggregate(n, 0, n->avg_bw, n->peak_bw, > > - &agg_avg, &agg_peak); > > + qcom_icc_bus_aggregate(provider, agg_avg, agg_peak, &max_agg_avg, > > + &max_agg_peak); > > - sum_bw = icc_units_to_bps(agg_avg); > > - max_peak_bw = icc_units_to_bps(agg_peak); > > + sum_bw = icc_units_to_bps(max_agg_avg); > > + max_peak_bw = icc_units_to_bps(max_agg_peak); > > ret = __qcom_icc_set(src, src_qn, sum_bw); > > if (ret) > > @@ -337,12 +380,23 @@ static int qcom_icc_set(struct icc_node *src, struct icc_node *dst) > > return ret; > > } > > - rate = max(sum_bw, max_peak_bw); > > Looks like max_peak_bw is unused now? Yes, will drop it in next spin. Thanks for review. Leo