Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3890699imw; Mon, 11 Jul 2022 18:56:56 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tS9pP7vp2cdUNqnDLudEmRTnH7qWElhjmI3x7uoe27Ot3wEelaqvxzwxUbMxoN4y6uFZ9z X-Received: by 2002:aa7:c650:0:b0:43a:2c9a:fd1f with SMTP id z16-20020aa7c650000000b0043a2c9afd1fmr28292315edr.318.1657591016330; Mon, 11 Jul 2022 18:56:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657591016; cv=none; d=google.com; s=arc-20160816; b=nCnsZoLazFNZLuI/Ql1ZW9vYSB45WJlUy+RybpiYpytkyTQ4bMvYeRtYDlriziRunn EcF52BrzwDtrd0NCvVigGyu+37XCnWvmI7aiyrlkil1OOB8p1my2N7IE9v1jThGz5cTf Ssens/OpibQRn9tMjxgaZfT/rtPw+1WpfsN4v9sQwKSNaIVt2HJUxxKHv6JzMTWG99ZY X+9Str8YFd7WMWQhj7qBxkEkT5sYcDz0zcA0DxSHAQwMfxWjF1VA4TTtiiiO8Vpjqijz 6x3TUz4H7jY/m4ifWtxETHa1pjkUsLTpgJPSbDBHNh+LBuIbj18jzDjY3Z92YtUf8RMG F5Eg== 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=c2vyjIbciyVquzlDajX3qmEOd67pfFD4fFZaxPOLy2U=; b=PtJv/okmrhUaurE4HxuJdyY6Ae3A0vSSioLLMH5aX4zTFEOOz8EXmhIa542PBZvoSl uYImqdsZUT59mbbYN8xZhLolsyog9JbhJz0Znf7IrmuRyOZOKol1c56g5APGkdNTQYUX Lc1LVJiOTUYWMmCCzD5bdQpTlk8j9hbcrIEbDJ9670qx3wCGoSbT+keTJ6DPB1EDJtTf gb/sfVRDf7wAfDALo45hczi8i6lfvyW5RXMV/+uVpYy48VHls1GQ0EheIUWEZsXbkL8g gyQvbQWIQNLYMGpCvTDtVb9my2/hZDcScbEF2oUmCRMkBYrxRJSHB9qhFC00MkemlRqY Zn9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=R0rW8hG8; 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 eh7-20020a0564020f8700b00435a061d699si11149832edb.588.2022.07.11.18.56.31; Mon, 11 Jul 2022 18:56:56 -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=R0rW8hG8; 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 S231908AbiGLB2h (ORCPT + 99 others); Mon, 11 Jul 2022 21:28:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230336AbiGLB2e (ORCPT ); Mon, 11 Jul 2022 21:28:34 -0400 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA69A6157 for ; Mon, 11 Jul 2022 18:28:31 -0700 (PDT) Received: by mail-pj1-x102a.google.com with SMTP id a15so6327316pjs.0 for ; Mon, 11 Jul 2022 18:28:31 -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=c2vyjIbciyVquzlDajX3qmEOd67pfFD4fFZaxPOLy2U=; b=R0rW8hG8pcYKfOtv7wArgQWO4c5J5gecTD+iAR430JXAX1rRfxks45tN1PZOo1Lp8A JHvlOivBtB+rUjQ2qULebxMkb3MyOr480SWKomBcypBQ7JjjHMpLl0shHWomPo/xwS58 AfNQ8E9RhYkIwS5JkRAlMgppwClic61i8pUKX+ZK7qNZPQqJWR1DpZz62ZvTmstIQfRR 1jTgUyNUZLw7eGAL36cwqNWELwLO/w2TBQhV6aIvvZrEqdsVys0rulPO0TRpdr0D4/lW Tne3R6dIhYbGuioSNhq9rJUlkC9l4m0do3gQe519qzyHXHKQgWJRq32fJwVIYPgIPF8q HvgQ== 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=c2vyjIbciyVquzlDajX3qmEOd67pfFD4fFZaxPOLy2U=; b=nBB106Qs/MjM/1HjM3J+a1YzXXaE1yPQSk1iH2srt2cGF+OWexOxAVJVmomABKdN73 tGyXBIL08LinL61EEpDIL2dL6oaD/qV8/SK5xAmhuk68Aksao8Jr0kWdnhv8WNL7td9a 6WnPz96ACG8Cw7+H3cuy1pAHJevN9w6eKly196PM5iSpABTcEK8uobQGdtrRyu/RrtbU GYcCOEVMEaSlT5gF2ZAy8Qnvf+pZA/125+ZWoZv4E4I6o6nJ8vRppyS+5u62q8G+4tKI j1ps/hy6uTJgLci34IXdDfQb9lsE6z5KmI5olrQkz9TVqqcFL8GK2hbqz1sU54yxaCgN 53XQ== X-Gm-Message-State: AJIora/LGQEhBve4I89DuCUu5a9jxz2B2L2Nhb3awTmeNsV/pc1j9BN9 nEZ8dCE87NK/8Tdo8WcRZmm7zg== X-Received: by 2002:a17:902:6901:b0:168:9bb4:7adb with SMTP id j1-20020a170902690100b001689bb47adbmr21486583plk.147.1657589311099; Mon, 11 Jul 2022 18:28:31 -0700 (PDT) Received: from leoy-ThinkPad-X240s (n058152077182.netvigator.com. [58.152.77.182]) by smtp.gmail.com with ESMTPSA id z62-20020a17090a6d4400b001ef8dd1315esm7613045pjj.27.2022.07.11.18.28.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jul 2022 18:28:30 -0700 (PDT) Date: Tue, 12 Jul 2022 09:28:23 +0800 From: Leo Yan To: Georgi Djakov Cc: Andy Gross , Bjorn Andersson , Krzysztof Kozlowski , Konrad Dybcio , Rob Herring , Bryan O'Donoghue , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 5/5] interconnect: qcom: icc-rpm: Set bandwidth and clock for bucket values Message-ID: <20220712012823.GA10379@leoy-ThinkPad-X240s> References: <20220711115240.806236-1-leo.yan@linaro.org> <20220711115240.806236-6-leo.yan@linaro.org> <480d38db-3114-29d1-8b81-b35a07623060@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <480d38db-3114-29d1-8b81-b35a07623060@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 Hi Georgi, On Mon, Jul 11, 2022 at 04:53:47PM +0300, Georgi Djakov wrote: [...] > > static int qcom_icc_set(struct icc_node *src, struct icc_node *dst) > > { > > struct qcom_icc_provider *qp; > > struct qcom_icc_node *src_qn = NULL, *dst_qn = NULL; > > struct icc_provider *provider; > > - struct icc_node *n; > > u64 sum_bw; > > - u64 max_peak_bw; > > u64 rate; > > - u32 agg_avg = 0; > > - u32 agg_peak = 0; > > + u64 agg_avg[QCOM_ICC_NUM_BUCKETS], agg_peak[QCOM_ICC_NUM_BUCKETS]; > > + u64 max_agg_avg, max_agg_peak; > > Now max_agg_peak is unused? Sorry for this mistake. Will send new patch series soon. Thanks, Leo