android_kernel_xiaomi_sm8450/drivers/interconnect
Mike Tipton 4e74179a16 interconnect: qcom: icc-rpmh: Add BCMs to commit list in pre_aggregate
commit b95b668eaaa2574e8ee72f143c52075e9955177e upstream.

We're only adding BCMs to the commit list in aggregate(), but there are
cases where pre_aggregate() is called without subsequently calling
aggregate(). In particular, in icc_sync_state() when a node with initial
BW has zero requests. Since BCMs aren't added to the commit list in
these cases, we don't actually send the zero BW request to HW. So the
resources remain on unnecessarily.

Add BCMs to the commit list in pre_aggregate() instead, which is always
called even when there are no requests.

Signed-off-by: Mike Tipton <mdtipton@codeaurora.org>
[georgi: remove icc_sync_state for platforms with incomplete support]
Link: https://lore.kernel.org/r/20211125174751.25317-1-djakov@kernel.org
Signed-off-by: Georgi Djakov <djakov@kernel.org>
[dianders: dropped sm8350.c which isn't present in 5.10]
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Acked-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-09-28 11:10:28 +02:00
..
imx interconnect: imx: fix max_node_id 2022-08-21 15:16:00 +02:00
qcom interconnect: qcom: icc-rpmh: Add BCMs to commit list in pre_aggregate 2022-09-28 11:10:28 +02:00
bulk.c interconnect: Add bulk API helpers 2020-09-08 16:28:49 +03:00
core.c interconnect: Restore sync state by ignoring ipa-virt in provider count 2022-06-14 18:32:47 +02:00
internal.h interconnect: Add helpers for enabling/disabling a path 2020-05-10 18:30:37 +03:00
Kconfig Merge branch 'icc-get-by-index' into icc-next 2020-05-15 10:46:18 +03:00
Makefile interconnect: Add bulk API helpers 2020-09-08 16:28:49 +03:00
trace.h interconnect: Add basic tracepoints 2019-12-16 09:25:23 +02:00