linux-stable/drivers/soc
Bjorn Andersson 7a7cb5266b pmdomain: qcom: rpmhpd: Fix enabled_corner aggregation
commit 2a93c6cbd5 upstream.

Commit 'e3e56c050ab6 ("soc: qcom: rpmhpd: Make power_on actually enable
the domain")' aimed to make sure that a power-domain that is being
enabled without any particular performance-state requested will at least
turn the rail on, to avoid filling DeviceTree with otherwise unnecessary
required-opps properties.

But in the event that aggregation happens on a disabled power-domain, with
an enabled peer without performance-state, both the local and peer
corner are 0. The peer's enabled_corner is not considered, with the
result that the underlying (shared) resource is disabled.

One case where this can be observed is when the display stack keeps mmcx
enabled (but without a particular performance-state vote) in order to
access registers and sync_state happens in the rpmhpd driver. As mmcx_ao
is flushed the state of the peer (mmcx) is not considered and mmcx_ao
ends up turning off "mmcx.lvl" underneath mmcx. This has been observed
several times, but has been painted over in DeviceTree by adding an
explicit vote for the lowest non-disabled performance-state.

Fixes: e3e56c050a ("soc: qcom: rpmhpd: Make power_on actually enable the domain")
Reported-by: Johan Hovold <johan@kernel.org>
Closes: https://lore.kernel.org/linux-arm-msm/ZdMwZa98L23mu3u6@hovoldconsulting.com/
Cc:  <stable@vger.kernel.org>
Signed-off-by: Bjorn Andersson <quic_bjorande@quicinc.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Tested-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Tested-by: Johan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20240226-rpmhpd-enable-corner-fix-v1-1-68c004cec48c@quicinc.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-03-06 14:37:50 +00:00
..
actions
amlogic drivers: meson: secure-pwrc: always enable DMA domain 2023-07-27 08:43:55 +02:00
aspeed
atmel
bcm
dove
fsl soc/fsl/qe: fix usb.c build errors 2023-07-27 08:43:49 +02:00
gemini
imx
ixp4xx
kendryte
lantiq
mediatek
qcom pmdomain: qcom: rpmhpd: Fix enabled_corner aggregation 2024-03-06 14:37:50 +00:00
renesas pmdomain: renesas: r8a77980-sysc: CR7 must be always on 2024-03-01 13:16:45 +01:00
rockchip
samsung
sifive
sunxi soc: sunxi: sram: Fix debugfs info for A64 SRAM C 2022-10-05 10:38:41 +02:00
tegra soc/tegra: fuse: Drop Kconfig dependency on TEGRA20_APB_DMA 2022-10-26 13:25:29 +02:00
ti soc: ti: pm33xx: Fix refcount leak in am33xx_pm_probe 2023-05-17 11:47:39 +02:00
ux500 ARM: ux500: do not directly dereference __iomem 2023-01-14 10:16:30 +01:00
versatile
xilinx
zte
Kconfig
Makefile