]> git.baikalelectronics.ru Git - kernel.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)
commit9df6bd3f7b390ddd3549345f467d19625cc416cc
tree1b742c41661390f2e5ba8df41476010e3185bc96
parent0254c436d442a1d83370953149334a1273d7a28c
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: d3728af57fd2 ("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