soc: qcom: llcc: Fix slice configuration values for SC8280XP
Subsystems (3)
PATCH v3 1/1 soc: qcom: llcc: Fix slice configuration values for SC8280XP
The slice IDs for CVPFW, CPUSS1 and CPUWHT currently overflow the 32bit LLCC config registers. Fix that by using the slice ID values taken from the latest LLCC SC table.
---
The v2 is here:
https://lore.kernel.org/all/[email protected]/
Changes since v2:
* specifically mentioned the 3 slice IDs that are being fixed and what is happening without this patch
* added stabke Cc line
* added Juerg's T-b tag
* added Sai's R-b tag
* added Konrad's A-b tag
Changes since v1:
* dropped the LLCC_GPU and LLCC_WRCACHE max_cap changes
* took the new values from documentatio this time rather than downstream kernel
drivers/soc/qcom/llcc-qcom.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/soc/qcom/llcc-qcom.c +3 -3
@@ -191,9 +191,9 @@ static const struct llcc_slice_config sc8280xp_data[] = { { LLCC_CVP, 28, 512, 3, 1, 0xfff, 0x0, 0, 0, 0, 1, 0, 0 }, { LLCC_APTCM, 30, 1024, 3, 1, 0x0, 0x1, 1, 0, 0, 1, 0, 0 }, { LLCC_WRCACHE, 31, 1024, 1, 1, 0xfff, 0x0, 0, 0, 0, 0, 1, 0 }, - { LLCC_CVPFW, 32, 512, 1, 0, 0xfff, 0x0, 0, 0, 0, 1, 0, 0 }, - { LLCC_CPUSS1, 33, 2048, 1, 1, 0xfff, 0x0, 0, 0, 0, 1, 0, 0 }, - { LLCC_CPUHWT, 36, 512, 1, 1, 0xfff, 0x0, 0, 0, 0, 0, 1, 0 }, + { LLCC_CVPFW, 17, 512, 1, 0, 0xfff, 0x0, 0, 0, 0, 1, 0, 0 }, + { LLCC_CPUSS1, 3, 2048, 1, 1, 0xfff, 0x0, 0, 0, 0, 1, 0, 0 }, + { LLCC_CPUHWT, 5, 512, 1, 1, 0xfff, 0x0, 0, 0, 0, 0, 1, 0 }, }; static const struct llcc_slice_config sdm845_data[] = {
Signature · 1 line
2.34.1
Quoted 3 lines · Abel Vesa
The slice IDs for CVPFW, CPUSS1 and CPUWHT currently overflow the 32bit LLCC config registers. Fix that by using the slice ID values taken from the latest LLCC SC table.
This still doesn't really explain what the impact of this bug is (e.g. for people doing backports), but I guess this will do.
Quoted 6 lines
Fixes ec69dfbdc426 ("soc: qcom: llcc: Add sc8180x and sc8280xp configurations")Cc [email protected] # 5.19+Signed-off-by Abel Vesa <[email protected]>Tested-by Juerg Haefliger <[email protected]>Reviewed-by Sai Prakash Ranjan <[email protected]>Acked-by Konrad Dybcio <[email protected]>
Quoted 38 lines
---
The v2 is here:
https://lore.kernel.org/all/[email protected]/Changes since v2:
* specifically mentioned the 3 slice IDs that are being fixed and what is happening without this patch
* added stabke Cc line
* added Juerg's T-b tag
* added Sai's R-b tag
* added Konrad's A-b tagChanges since v1:
* dropped theLLCC_GPUandLLCC_WRCACHEmax_capchanges
* took the new values from documentatio this time rather than downstream kerneldrivers/soc/qcom/llcc-qcom.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)drivers/soc/qcom/llcc-qcom.c +3
-3@@ -191,9 +191,9 @@ static const struct llcc_slice_config sc8280xp_data[] = { { LLCC_CVP, 28, 512, 3, 1, 0xfff, 0x0, 0, 0, 0, 1, 0, 0 }, { LLCC_APTCM, 30, 1024, 3, 1, 0x0, 0x1, 1, 0, 0, 1, 0, 0 }, { LLCC_WRCACHE, 31, 1024, 1, 1, 0xfff, 0x0, 0, 0, 0, 0, 1, 0 }, - { LLCC_CVPFW, 32, 512, 1, 0, 0xfff, 0x0, 0, 0, 0, 1, 0, 0 }, - { LLCC_CPUSS1, 33, 2048, 1, 1, 0xfff, 0x0, 0, 0, 0, 1, 0, 0 }, - { LLCC_CPUHWT, 36, 512, 1, 1, 0xfff, 0x0, 0, 0, 0, 0, 1, 0 }, + { LLCC_CVPFW, 17, 512, 1, 0, 0xfff, 0x0, 0, 0, 0, 1, 0, 0 }, + { LLCC_CPUSS1, 3, 2048, 1, 1, 0xfff, 0x0, 0, 0, 0, 1, 0, 0 }, + { LLCC_CPUHWT, 5, 512, 1, 1, 0xfff, 0x0, 0, 0, 0, 0, 1, 0 }, }; static const struct llcc_slice_config sdm845_data[] = {
Quoted 8 lines · Johan Hovold
Quoted 3 lines · Abel Vesa
The slice IDs for CVPFW, CPUSS1 and CPUWHT currently overflow the 32bit LLCC config registers. Fix that by using the slice ID values taken from the latest LLCC SC table.
This still doesn't really explain what the impact of this bug is (e.g. for people doing backports), but I guess this will do.
Sent a v4 here:
https://lore.kernel.org/all/[email protected]/
Quoted 8 lines
Quoted 6 lines
Fixes ec69dfbdc426 ("soc: qcom: llcc: Add sc8180x and sc8280xp configurations")Cc [email protected] # 5.19+Signed-off-by Abel Vesa <[email protected]>Tested-by Juerg Haefliger <[email protected]>Reviewed-by Sai Prakash Ranjan <[email protected]>Acked-by Konrad Dybcio <[email protected]>Reviewed-by Johan Hovold <[email protected]>
Added your R-b tag.
Thanks.
Quoted 39 lines
Quoted 39 lines
---
The v2 is here:
https://lore.kernel.org/all/[email protected]/Changes since v2:
* specifically mentioned the 3 slice IDs that are being fixed and what is happening without this patch
* added stabke Cc line
* added Juerg's T-b tag
* added Sai's R-b tag
* added Konrad's A-b tagChanges since v1:
* dropped theLLCC_GPUandLLCC_WRCACHEmax_capchanges
* took the new values from documentatio this time rather than downstream kerneldrivers/soc/qcom/llcc-qcom.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)drivers/soc/qcom/llcc-qcom.c +3
-3@@ -191,9 +191,9 @@ static const struct llcc_slice_config sc8280xp_data[] = { { LLCC_CVP, 28, 512, 3, 1, 0xfff, 0x0, 0, 0, 0, 1, 0, 0 }, { LLCC_APTCM, 30, 1024, 3, 1, 0x0, 0x1, 1, 0, 0, 1, 0, 0 }, { LLCC_WRCACHE, 31, 1024, 1, 1, 0xfff, 0x0, 0, 0, 0, 0, 1, 0 }, - { LLCC_CVPFW, 32, 512, 1, 0, 0xfff, 0x0, 0, 0, 0, 1, 0, 0 }, - { LLCC_CPUSS1, 33, 2048, 1, 1, 0xfff, 0x0, 0, 0, 0, 1, 0, 0 }, - { LLCC_CPUHWT, 36, 512, 1, 1, 0xfff, 0x0, 0, 0, 0, 0, 1, 0 }, + { LLCC_CVPFW, 17, 512, 1, 0, 0xfff, 0x0, 0, 0, 0, 1, 0, 0 }, + { LLCC_CPUSS1, 3, 2048, 1, 1, 0xfff, 0x0, 0, 0, 0, 1, 0, 0 }, + { LLCC_CPUHWT, 5, 512, 1, 1, 0xfff, 0x0, 0, 0, 0, 0, 1, 0 }, }; static const struct llcc_slice_config sdm845_data[] = {
Quoted 6 lines · Abel Vesa
Quoted 5 lines · Johan Hovold
Quoted 3 lines · Abel Vesa
The slice IDs for CVPFW, CPUSS1 and CPUWHT currently overflow the 32bit LLCC config registers. Fix that by using the slice ID values taken from the latest LLCC SC table.
Quoted 6 lines
Quoted 3 lines
This still doesn't really explain what the impact of this bug is (e.g. for people doing backports), but I guess this will do.
Sent a v4 here:
https://lore.kernel.org/all/[email protected]/
Looks good, thanks!
Johan
Quoted 5 lines · Abel Vesa
The slice IDs for CVPFW, CPUSS1 and CPUWHT currently overflow the 32bit LLCC config registers. Fix that by using the slice ID values taken from the latest LLCC SC table.
Applied, thanks!
[1/1] soc: qcom: llcc: Fix slice configuration values for SC8280XP
commit: 77bf4b3ed42e31d29b255fcd6530fb7a1e217e89
Best regards,
Signature · 1 line
Bjorn Andersson <[email protected]>