OpenCloudOS-Kernel/drivers/soc/qcom
AngeloGioacchino Del Regno 60f3692b5f cpuidle: qcom_spm: Detach state machine from main SPM handling
In commit a871be6b8e ("cpuidle: Convert Qualcomm SPM driver to a generic
CPUidle driver") the SPM driver has been converted to a
generic CPUidle driver: that was mainly made to simplify the
driver and that was a great accomplishment;
Though, at that time, this driver was only applicable to ARM 32-bit SoCs,
lacking logic about the handling of newer generation SAW.

In preparation for the enablement of SPM features on AArch64/ARM64,
split the cpuidle-qcom-spm driver in two: the CPUIdle related
state machine (currently used only on ARM SoCs) stays there, while
the SPM communication handling lands back in soc/qcom/spm.c and
also making sure to not discard the simplifications that were
introduced in the aforementioned commit.

Since now the "two drivers" are split, the SCM dependency in the
main SPM handling is gone and for this reason it was also possible
to move the SPM initialization early: this will also make sure that
whenever the SAW CPUIdle driver is getting initialized, the SPM
driver will be ready to do the job.

Please note that the anticipation of the SPM initialization was
also done to optimize the boot times on platforms that have their
CPU/L2 idle states managed by other means (such as PSCI), while
needing SAW initialization for other purposes, like AVS control.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org>
Reviewed-by: Stephan Gerhold <stephan@gerhold.net>
Tested-by: Stephan Gerhold <stephan@gerhold.net>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20210729155609.608159-2-angelogioacchino.delregno@somainline.org
2021-09-21 17:41:48 -05:00
..
Kconfig cpuidle: qcom_spm: Detach state machine from main SPM handling 2021-09-21 17:41:48 -05:00
Makefile cpuidle: qcom_spm: Detach state machine from main SPM handling 2021-09-21 17:41:48 -05:00
apr.c bus: Make remove callback return void 2021-07-21 11:53:42 +02:00
cmd-db.c soc: qcom: cmd-db: allow loading as a module 2020-10-26 16:02:29 -05:00
cpr.c PM: AVS: qcom-cpr: Use nvmem_cell_read_variable_le_u32() 2021-08-03 18:00:18 -05:00
kryo-l2-accessors.c soc: qcom: kryo-l2-accessors: Fix misnaming of 'val' 2020-11-10 23:23:02 -06:00
llcc-qcom.c soc: qcom: llcc: Add configuration data for SM6350 2021-09-21 17:41:47 -05:00
mdt_loader.c soc: qcom: mdt_loader: be more informative on errors 2021-08-04 22:01:56 -05:00
ocmem.c soc: qcom: ocmem: don't return NULL in of_get_ocmem 2021-02-02 15:39:13 -06:00
pdr_interface.c soc: qcom: pdr: Fix error return code in pdr_register_listener 2021-04-07 22:31:39 -05:00
pdr_internal.h soc: qcom: pdr: Fixup array type of get_domain_list_resp message 2020-09-14 23:53:29 +00:00
qcom-geni-se.c soc: qcom: geni: Add support for gpi dma 2021-08-04 14:23:31 -05:00
qcom_aoss.c soc: qcom: aoss: Fix the out of bound usage of cooling_devs 2021-07-19 15:20:55 -05:00
qcom_gsbi.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 409 2019-06-05 17:37:14 +02:00
qmi_encdec.c soc: qcom: Fix typos in the file qmi_encdec.c 2021-03-11 20:22:20 -06:00
qmi_interface.c soc: qcom: qmi: Return EPROBE_DEFER if no address family 2019-12-10 22:44:34 -08:00
rmtfs_mem.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 284 2019-06-05 17:36:37 +02:00
rpmh-internal.h soc: qcom: rpmh-rsc: Sleep waiting for tcs slots to be free 2020-09-10 16:56:12 +00:00
rpmh-rsc.c soc: qcom: rpmh-rsc: Fold WARN_ON() into if condition 2021-03-11 20:22:21 -06:00
rpmh.c soc: qcom: rpmh: Use __fill_rpmh_msg API during rpmh_write() 2020-11-26 11:43:00 -06:00
rpmhpd.c soc: qcom: rpmhpd: Add SM6350 2021-09-21 17:41:47 -05:00
rpmpd.c drivers: soc: qcom: rpmpd: Add SM6115 RPM Power Domains 2021-07-19 17:32:50 -05:00
smd-rpm.c soc: qcom: smd-rpm: Add SM6115 compatible 2021-08-04 18:22:22 -05:00
smem.c soc: qcom: smem: Update max processor count 2021-03-11 20:22:20 -06:00
smem_state.c soc: qcom: smem_state: Add devm_qcom_smem_state_get() 2021-06-23 13:35:12 -05:00
smp2p.c soc: qcom: smp2p: Remove unused struct attribute provide another 2020-11-10 23:20:44 -06:00
smsm.c soc: qcom: smsm: Fix missed interrupts if state changes while masked 2021-08-04 22:20:09 -05:00
socinfo.c soc: qcom: socinfo: Don't print anything if nothing found 2021-07-19 15:20:54 -05:00
spm.c cpuidle: qcom_spm: Detach state machine from main SPM handling 2021-09-21 17:41:48 -05:00
trace-rpmh.h drivers: qcom: rpmh-rsc: log RPMH requests in FTRACE 2018-07-21 13:32:31 -05:00
wcnss_ctrl.c soc: qcom: wcnss_ctrl: Allow reading firmware-name from DT 2021-04-05 22:35:06 -05:00