]> git.dujemihanovic.xyz Git - linux.git/commit
interconnect: qcom: icc-rpmh: Ensure floor BW is enforced for all nodes
authorMike Tipton <mdtipton@codeaurora.org>
Wed, 21 Jul 2021 17:54:31 +0000 (10:54 -0700)
committerGeorgi Djakov <djakov@kernel.org>
Fri, 30 Jul 2021 13:50:40 +0000 (16:50 +0300)
commitce5a595744126be4f1327e29e3c5ae9aac6b38d5
tree1b742c41661390f2e5ba8df41476010e3185bc96
parent73606ba9242f8e32023699b500b7922b4cf2993c
interconnect: qcom: icc-rpmh: Ensure floor BW is enforced for all nodes

We currently only enforce BW floors for a subset of nodes in a path.
All BCMs that need updating are queued in the pre_aggregate/aggregate
phase. The first set() commits all queued BCMs and subsequent set()
calls short-circuit without committing anything. Since the floor BW
isn't set in sum_avg/max_peak until set(), then some BCMs are committed
before their associated nodes reflect the floor.

Set the floor as each node is being aggregated. This ensures that all
all relevant floors are set before the BCMs are committed.

Fixes: 266cd33b5913 ("interconnect: qcom: Ensure that the floor bandwidth value is enforced")
Signed-off-by: Mike Tipton <mdtipton@codeaurora.org>
Link: https://lore.kernel.org/r/20210721175432.2119-4-mdtipton@codeaurora.org
[georgi: Removed unused variable]
Signed-off-by: Georgi Djakov <djakov@kernel.org>
drivers/interconnect/qcom/icc-rpmh.c