linux_dsm_epyc7002/drivers/soc
Douglas Anderson be24c6a71e soc: qcom: rpmh-rsc: Don't use ktime for timeout in write_tcs_reg_sync()
The write_tcs_reg_sync() may be called after timekeeping is suspended
so it's not OK to use ktime.  The readl_poll_timeout_atomic() macro
implicitly uses ktime.  This was causing a warning at suspend time.

Change to just loop 1000000 times with a delay of 1 us between loops.
This may give a timeout of more than 1 second but never less and is
safe even if timekeeping is suspended.

NOTE: I don't have any actual evidence that we need to loop here.
It's possibly that all we really need to do is just read the value
back to ensure that the pipes are cleaned and the looping/comparing is
totally not needed.  I never saw the loop being needed in my tests.
However, the loop shouldn't hurt.

Reviewed-by: Stephen Boyd <sboyd@kernel.org>
Reviewed-by: Maulik Shah <mkshah@codeaurora.org>
Fixes: 91160150ab ("soc: qcom: rpmh-rsc: Timeout after 1 second in write_tcs_reg_sync()")
Reported-by: Maulik Shah <mkshah@codeaurora.org>
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Link: https://lore.kernel.org/r/20200528074530.1.Ib86e5b406fe7d16575ae1bb276d650faa144b63c@changeid
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2020-06-24 15:41:32 -07:00
..
actions
amlogic
aspeed treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
atmel
bcm
dove
fsl ARM/SoC: drivers for v5.7 2020-06-04 19:56:20 -07:00
gemini
imx ARM/SoC: drivers for v5.7 2020-06-04 19:56:20 -07:00
ixp4xx
kendryte
lantiq
mediatek ARM/SoC: drivers for v5.7 2020-06-04 19:56:20 -07:00
qcom soc: qcom: rpmh-rsc: Don't use ktime for timeout in write_tcs_reg_sync() 2020-06-24 15:41:32 -07:00
renesas
rockchip
samsung
sifive
sunxi
tegra
ti
ux500
versatile
xilinx
zte
Kconfig
Makefile