linux-stable/drivers/soc
Maulik Shah 3988a2850b soc: qcom: rpmh-rsc: Enhance check for VRM in-flight request
commit f592cc5794 upstream.

Each RPMh VRM accelerator resource has 3 or 4 contiguous 4-byte aligned
addresses associated with it. These control voltage, enable state, mode,
and in legacy targets, voltage headroom. The current in-flight request
checking logic looks for exact address matches. Requests for different
addresses of the same RPMh resource as thus not detected as in-flight.

Add new cmd-db API cmd_db_match_resource_addr() to enhance the in-flight
request check for VRM requests by ignoring the address offset.

This ensures that only one request is allowed to be in-flight for a given
VRM resource. This is needed to avoid scenarios where request commands are
carried out by RPMh hardware out-of-order leading to LDO regulator
over-current protection triggering.

Fixes: 658628e7ef ("drivers: qcom: rpmh-rsc: add RPMH controller for QCOM SoCs")
Cc: stable@vger.kernel.org
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Tested-by: Elliot Berman <quic_eberman@quicinc.com> # sm8650-qrd
Signed-off-by: Maulik Shah <quic_mkshah@quicinc.com>
Link: https://lore.kernel.org/r/20240215-rpmh-rsc-fixes-v4-1-9cbddfcba05b@quicinc.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-06-16 13:41:33 +02:00
..
actions
amlogic drivers: meson: secure-pwrc: always enable DMA domain 2023-07-19 16:21:33 +02:00
apple
aspeed soc: aspeed: socinfo: Add kfree for kstrdup 2023-08-23 17:52:38 +02:00
atmel
bcm pmdomain: bcm: bcm2835-power: check if the ASB register is equal to enable 2023-11-28 17:07:16 +00:00
canaan
dove
fsl soc: fsl: qbman: Use raw spinlock for cgr_lock 2024-04-03 15:19:36 +02:00
fujitsu
gemini
imx pmdomain: imx: Make imx pgc power domain also set the fwnode 2023-11-28 17:07:16 +00:00
ixp4xx
lantiq
litex
mediatek soc: mediatek: cmdq: Fix typo of CMDQ_JUMP_RELATIVE 2024-06-12 11:03:06 +02:00
microchip soc: microchip: Fix POLARFIRE_SOC_SYS_CTRL input prompt 2024-03-26 18:20:25 -04:00
pxa
qcom soc: qcom: rpmh-rsc: Enhance check for VRM in-flight request 2024-06-16 13:41:33 +02:00
renesas pmdomain: renesas: r8a77980-sysc: CR7 must be always on 2024-03-01 13:26:30 +01:00
rockchip
samsung
sifive
sunxi
tegra
ti
ux500
versatile
xilinx soc: xilinx: fix unhandled SGI warning message 2024-02-05 20:12:50 +00:00
Kconfig
Makefile