soc: qcom: llcc: Fix slice configuration values for SC8280XP
authorAbel Vesa <abel.vesa@linaro.org>
Mon, 6 Mar 2023 13:55:27 +0000 (15:55 +0200)
committerBjorn Andersson <andersson@kernel.org>
Tue, 7 Mar 2023 03:42:04 +0000 (19:42 -0800)
commit77bf4b3ed42e31d29b255fcd6530fb7a1e217e89
treec1a15d0957d03e9be3c8c9260ad0f7d9e8da0a10
parentfe15c26ee26efa11741a7b632e9f23b01aca4cc6
soc: qcom: llcc: Fix slice configuration values for SC8280XP

The slice IDs for CVPFW, CPUSS1 and CPUWHT currently overflow the 32bit
LLCC config registers, which means it is writing beyond the upper limit
of the ATTR0_CFGn and ATTR1_CFGn range of registers. But the most obvious
impact is the fact that the mentioned slices do not get configured at all,
which will result in reduced performance. Fix that by using the slice ID
values taken from the latest LLCC SC table.

Fixes: ec69dfbdc426 ("soc: qcom: llcc: Add sc8180x and sc8280xp configurations")
Cc: stable@vger.kernel.org # 5.19+
Signed-off-by: Abel Vesa <abel.vesa@linaro.org>
Tested-by: Juerg Haefliger <juerg.haefliger@canonical.com>
Reviewed-by: Sai Prakash Ranjan <quic_saipraka@quicinc.com>
Acked-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Reviewed-by: Johan Hovold <johan+linaro@kernel.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230306135527.509796-1-abel.vesa@linaro.org
drivers/soc/qcom/llcc-qcom.c