Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1493359pxv; Fri, 25 Jun 2021 14:29:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwAy0dDwONcl50S+e+0r7skKupTRWxG6LO70Gf+idE2vYohE+NoNJmNtooPTcXEVa4RpzTP X-Received: by 2002:a02:3781:: with SMTP id r123mr8045529jar.26.1624656598020; Fri, 25 Jun 2021 14:29:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624656598; cv=none; d=google.com; s=arc-20160816; b=dwiAsz2n5nYxDPsIax2JS8zbZdxNjDMmNRiy2POp8Iw4OyzOYMfzT87He6EJ/ANAH4 psE/Xzq3YqSiipoTO9l9ANZccoEZoelBrsAS540QuMIFz6+PE6AwBJ/H7GciR+sE0UQP WX5mPNUOkpATu0uLPDPTlR915gQE9xR0Ky3BWVHeIaiE7m6a9zjOeAjFnYQqFC2VNrKK eE+VbJzpdbhf6Wly09Aj6oTZpt1orUHiEyooXvN2GbGtUmgFL3PSNa0xmAT+vAxx8q3z vuWDeEgYxQR5jLSSZvzbnwyDEuMdnJzRxh8aRJn5e5pkaMovs8SmR6ZgLaYgD0HcDUzX 6bOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dmarc-filter:sender:dkim-signature; bh=5dPU7wCaoRSEGtGGrTM61+mt3X7vyLAV8Dbh9+xJrHI=; b=ZUtKzqYSknbpgk2lX32vDSTOcIMxIAVfxby/zZEs+F86AYq8MEwLdGd3EK+BjodM2J S/3h4PXkodA5Nvt3IZJT/O6NyP0aW4dJTKHYjpGb4ibsdb+yiOd3fZ1hyJN/UjhHJVL1 MwoRsJsPAACfW7gMk2Q7Dmd0YMJAHNZtxW3ElLDknoSTwM+IWqQr6sN7mF0vy5jjcdpu Kl/N1fRDy5osMHJqY2EHJH1bcISjehcBfSMuG0LyPnBJ8R9xL8H2Sv/S7TmZ18bRkauf oY6S4AIWoZt5uSeW4gdgEghQ/ERzLumNYgvwtkihOnGgqsBGY6Qu1aNyQOPrV4cXmHbM lYVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=CluTrX02; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t21si2761911jai.3.2021.06.25.14.29.45; Fri, 25 Jun 2021 14:29:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=CluTrX02; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230006AbhFYVb0 (ORCPT + 99 others); Fri, 25 Jun 2021 17:31:26 -0400 Received: from so254-9.mailgun.net ([198.61.254.9]:22597 "EHLO so254-9.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229776AbhFYVbU (ORCPT ); Fri, 25 Jun 2021 17:31:20 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1624656539; h=Content-Transfer-Encoding: MIME-Version: References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=5dPU7wCaoRSEGtGGrTM61+mt3X7vyLAV8Dbh9+xJrHI=; b=CluTrX024rqxhCfEDsgYKwPTsSvJFVavzTNSOtU6lZz6CXcQ7VVyg3xuMi/V+lEp1nyYAoy2 k66WTXClPt5JcushxNwEOnAgX4EqNuvvdwTLeTKRkLsIb8I6cCM3zSBK8/VU9QhG+8K3iwxR 2upP6DPhhpbkFabSPz+nL+3gpYU= X-Mailgun-Sending-Ip: 198.61.254.9 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n02.prod.us-west-2.postgun.com with SMTP id 60d64a9a7e5ba0fdc0745a9f (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 25 Jun 2021 21:28:58 GMT Sender: mdtipton=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id C29F9C43460; Fri, 25 Jun 2021 21:28:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL autolearn=no autolearn_force=no version=3.4.0 Received: from hu-mdtipton-lv.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mdtipton) by smtp.codeaurora.org (Postfix) with ESMTPSA id E3817C4338A; Fri, 25 Jun 2021 21:28:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org E3817C4338A Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=mdtipton@codeaurora.org From: Mike Tipton To: djakov@kernel.org Cc: bjorn.andersson@linaro.org, agross@kernel.org, saravanak@google.com, okukatla@codeaurora.org, linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Mike Tipton Subject: [PATCH 1/4] interconnect: Zero initial BW after sync-state Date: Fri, 25 Jun 2021 14:28:36 -0700 Message-Id: <20210625212839.24155-2-mdtipton@codeaurora.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210625212839.24155-1-mdtipton@codeaurora.org> References: <20210625212839.24155-1-mdtipton@codeaurora.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The initial BW values may be used by providers to enforce floors. Zero these values after sync-state so that providers know when to stop enforcing them. Fixes: b1d681d8d324 ("interconnect: Add sync state support") Signed-off-by: Mike Tipton --- drivers/interconnect/core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/interconnect/core.c b/drivers/interconnect/core.c index 8a1e70e00876..945121e18b5c 100644 --- a/drivers/interconnect/core.c +++ b/drivers/interconnect/core.c @@ -1106,6 +1106,8 @@ void icc_sync_state(struct device *dev) dev_dbg(p->dev, "interconnect provider is in synced state\n"); list_for_each_entry(n, &p->nodes, node_list) { if (n->init_avg || n->init_peak) { + n->init_avg = 0; + n->init_peak = 0; aggregate_requests(n); p->set(n, n); } -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project