OpenCloudOS-Kernel/include/linux/soc/qcom
Manivannan Sadhasivam ee13b50087 qcom: llcc/edac: Fix the base address used for accessing LLCC banks
The Qualcomm LLCC/EDAC drivers were using a fixed register stride for
accessing the (Control and Status Registers) CSRs of each LLCC bank.
This stride only works for some SoCs like SDM845 for which driver
support was initially added.

But the later SoCs use different register stride that vary between the
banks with holes in-between. So it is not possible to use a single register
stride for accessing the CSRs of each bank. By doing so could result in a
crash.

For fixing this issue, let's obtain the base address of each LLCC bank from
devicetree and get rid of the fixed stride. This also means, there is no
need to rely on reg-names property and the base addresses can be obtained
using the index.

First index is LLCC bank 0 and last index is LLCC broadcast. If the SoC
supports more than one bank, then those need to be defined in devicetree
for index from 1..N-1.

Reported-by: Parikshit Pareek <quic_ppareek@quicinc.com>
Tested-by: Luca Weiss <luca.weiss@fairphone.com>
Tested-by: Steev Klimaszewski <steev@kali.org> # Thinkpad X13s
Tested-by: Andrew Halaney <ahalaney@redhat.com> # sa8540p-ride
Reviewed-by: Borislav Petkov (AMD) <bp@alien8.de>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230314080443.64635-13-manivannan.sadhasivam@linaro.org
2023-03-15 15:17:08 -07:00
..
apr.h soc: qcom: apr: make remove callback of apr driver void returned 2023-01-06 11:50:13 -06:00
geni-se.h soc: qcom: geni-se: Update Tx and Rx fifo depth based on QUP HW version 2023-03-13 17:15:12 -07:00
irq.h soc: qcom: address kernel-doc warnings 2021-03-29 22:49:54 -05:00
llcc-qcom.h qcom: llcc/edac: Fix the base address used for accessing LLCC banks 2023-03-15 15:17:08 -07:00
mdt_loader.h soc: qcom: mdt_loader: Extract PAS operations 2022-02-03 21:54:48 -06:00
pdr.h
pmic_glink.h soc: qcom: pmic_glink: Introduce base PMIC GLINK driver 2023-02-04 10:54:30 -08:00
qcom_aoss.h soc: qcom: aoss: Expose send for generic usecase 2021-09-21 17:31:18 -05:00
qmi.h soc: qcom: qmi: use const for struct qmi_elem_info 2022-08-29 17:33:01 -05:00
smd-rpm.h clk: qcom: smd-rpm: remove duplication between MMXI and MMAXI defines 2022-12-28 12:26:14 -06:00
smem.h
smem_state.h soc: qcom: smem_state: Add devm_qcom_smem_state_get() 2021-06-23 13:35:12 -05:00
wcnss_ctrl.h