Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp3767477pxt; Tue, 10 Aug 2021 10:51:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzkrlqBTBz/ciyqYxUP3jtaawcgQA8wpNVNjzPrGlDYtPJBLc1FKc81fr98t7UYf5BbOm1i X-Received: by 2002:a02:ba87:: with SMTP id g7mr28680769jao.110.1628617874507; Tue, 10 Aug 2021 10:51:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628617874; cv=none; d=google.com; s=arc-20160816; b=ZXkpm3f/T0AsNOYrIskziXueZg/B9o5pS1YbzaKwPl2XqDCWjt20kB7HfzQEudfreg /WiTLKU4EgISB/8ioIA3CFXlfx4eROoutT64eOO7forMdDJehs3AwTxHxw5P/2GgdRIr oS33gp8XcDwPGKxCbXfbrBBUr656pSOXclIanSvZOvaClnst27UUZYHIodYNoZ91W0Sj O85taW5szCfU2zMMFTALA1yrtQmxGeODs2ZHx1WMLV7wmcC88dYaKzc7osmxljgF3GFx fRDEuKnlw7CdBxJtNrIJdtLi+G32zf9cJP6FLxIek4GiwPY3zbbdBXV97i4wvL9TRcAZ dVCQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=1o1sx1k3WKq+RLWFaSncekzXXrixX+IWya3EQR4DLHQ=; b=nQIBGDtSZSP+tFU+juWrnb7roRggs0/1G8PeJNG5Y/fzAAZf8ShpXgjxay33NnZN/f /OhncnMfch5JZYeT6nVTUd+AEmcxfK2M63jyxG8soNIeX9eXXacJRjrWluiLw4C8lQWv Zi4AAfxUNl8XicZj2gKFCVG3AlZA9VUu7YMC5lYCS71w4OHB9FXwUH8iPbzX5O4poLhl VJtMQHsDTVjjM6JIAPTFob8ZQg1F+/9xyOB8SaYoiaxTSLW4bJVrieBnC71AKVHl5iGW cPyRItkRO4WU2F90Bs6UnG7VzHSeal+LQCxFqVwCeJNsvxwslCq3RLYq1SVNZS3ZCAHQ ATQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=acBTDO1V; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q10si24024388ilu.60.2021.08.10.10.51.03; Tue, 10 Aug 2021 10:51:14 -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=@linuxfoundation.org header.s=korg header.b=acBTDO1V; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232109AbhHJRuf (ORCPT + 99 others); Tue, 10 Aug 2021 13:50:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:55516 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234161AbhHJRrj (ORCPT ); Tue, 10 Aug 2021 13:47:39 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 977FB604D7; Tue, 10 Aug 2021 17:41:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1628617261; bh=RppSVzZqd8zSzFsHTKg6i3gLtAu1TbuZZDHjEaEfkS8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=acBTDO1VLhzti/25gqkCCt2Knrv95uJdXOg/aHJSh81hrgt3tidNXWBZqzb9aRt0f UEZSnMhNuGQcBLFXCgcVk1z3WJ8zXI3CjCWfN63OMlV3EOnV8FzX1FWvefmxvLm+Uv iiARjS2RGMwy6Zsk0d4K4m/tIdrmtejonMURxjbo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mike Tipton , Georgi Djakov Subject: [PATCH 5.10 117/135] interconnect: Zero initial BW after sync-state Date: Tue, 10 Aug 2021 19:30:51 +0200 Message-Id: <20210810172959.771794600@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210810172955.660225700@linuxfoundation.org> References: <20210810172955.660225700@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Mike Tipton commit 456a9dace42ecfcec7ce6e17c18d1985d628dcd0 upstream. 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 Link: https://lore.kernel.org/r/20210721175432.2119-2-mdtipton@codeaurora.org Signed-off-by: Georgi Djakov Signed-off-by: Greg Kroah-Hartman --- drivers/interconnect/core.c | 2 ++ 1 file changed, 2 insertions(+) --- 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); }