linux_dsm_epyc7002/drivers/soc/qcom
Douglas Anderson 1143c36656 soc: qcom: rpmh-rsc: Correctly ignore CPU_CLUSTER_PM notifications
Our switch statement doesn't have entries for CPU_CLUSTER_PM_ENTER,
CPU_CLUSTER_PM_ENTER_FAILED, and CPU_CLUSTER_PM_EXIT and doesn't have
a default.  This means that we'll try to do a flush in those cases but
we won't necessarily be the last CPU down.  That's not so ideal since
our (lack of) locking assumes we're on the last CPU.

Luckily this isn't as big a problem as you'd think since (at least on
the SoC I tested) we don't get these notifications except on full
system suspend.  ...and on full system suspend we get them on the last
CPU down.  That means that the worst problem we hit is flushing twice.
Still, it's good to make it correct.

Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Fixes: 985427f997 ("soc: qcom: rpmh: Invoke rpmh_flush() for dirty caches")
Reported-by: Stephen Boyd <swboyd@chromium.org>
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Link: https://lore.kernel.org/r/20200504104917.v6.1.Ic7096b3b9b7828cdd41cd5469a6dee5eb6abf549@changeid
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2020-05-15 11:42:29 -07:00
..
apr.c soc: qcom: apr: Add avs/audio tracking functionality 2020-03-14 22:38:50 -07:00
cmd-db.c soc: qcom: cmd-db: Properly endian swap the slv_id for debugfs 2020-04-19 23:06:29 -07:00
glink_ssr.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 284 2019-06-05 17:36:37 +02:00
Kconfig soc: qcom: rpmpd: Allow RPMPD driver to be loaded as a module 2020-04-14 15:39:56 -07:00
llcc-qcom.c soc: qcom: llcc: Add configuration data for SC7180 2019-10-20 19:15:20 -07:00
Makefile soc: qcom: Introduce Protection Domain Restart helpers 2020-03-14 22:38:42 -07:00
mdt_loader.c remoteproc updates for v5.3 2019-07-17 11:44:41 -07:00
ocmem.c soc: qcom: add OCMEM driver 2019-10-07 08:17:33 -07:00
pdr_interface.c soc: qcom: pdr: Remove impossible error condition 2020-04-20 23:57:58 -07:00
pdr_internal.h soc: qcom: Introduce Protection Domain Restart helpers 2020-03-14 22:38:42 -07:00
qcom_aoss.c soc: qcom: aoss: Add SM8250 compatible 2020-05-11 17:17:23 -07:00
qcom_gsbi.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 409 2019-06-05 17:37:14 +02:00
qcom-geni-se.c soc: qcom: geni: Provide parameter error checking 2019-09-06 11:08:08 +02:00
qmi_encdec.c soc: qcom: Introduce QMI encoder/decoder 2017-12-20 15:38:34 -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: Caller handles tcs_invalidate() exclusivity 2020-04-13 22:09:43 -07:00
rpmh-rsc.c soc: qcom: rpmh-rsc: Correctly ignore CPU_CLUSTER_PM notifications 2020-05-15 11:42:29 -07:00
rpmh.c soc: qcom: rpmh: Dirt can only make you dirtier, not cleaner 2020-04-20 23:54:15 -07:00
rpmhpd.c soc: qcom: rpmhpd: Add SM8250 power domains 2020-04-20 23:31:48 -07:00
rpmpd.c soc: qcom: rpmpd: Allow RPMPD driver to be loaded as a module 2020-04-14 15:39:56 -07:00
smd-rpm.c soc: qcom: smd-rpm: Add MSM8976 compatible 2019-10-04 21:20:10 -07:00
smem_state.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 284 2019-06-05 17:36:37 +02:00
smem.c soc: qcom: smem: Update max processor count 2019-08-21 15:58:01 -07:00
smp2p.c soc: qcom: smp2p: Delete an error message in qcom_smp2p_probe() 2020-04-13 18:10:12 -07:00
smsm.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 284 2019-06-05 17:36:37 +02:00
socinfo.c soc: qcom: socinfo: add msm8936/39 and apq8036/39 soc ids 2020-05-11 17:32:07 -07:00
spm.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 284 2019-06-05 17:36:37 +02:00
trace-rpmh.h drivers: qcom: rpmh-rsc: log RPMH requests in FTRACE 2018-07-21 13:32:31 -05:00
wcnss_ctrl.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 284 2019-06-05 17:36:37 +02:00