]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
remoteproc: qcom_q6v5_mss: Re-order writes to the IMEM region
authorSibi Sankar <quic_sibis@quicinc.com>
Mon, 19 Aug 2024 07:30:20 +0000 (13:00 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2024 18:51:07 +0000 (19:51 +0100)
commit74b5756de7324f07caa06a43070a9f762a585e12
tree79454c44a82f90e5bc226024191faacf16c03bb7
parent3dbb7e68669d08e6180dfa8bb853beb8abf83c75
remoteproc: qcom_q6v5_mss: Re-order writes to the IMEM region

[ Upstream commit 7b22b7719fc17d5979a991c918c868ab041be5c8 ]

Any write access to the IMEM region when the Q6 is setting up XPU
protection on it will result in a XPU violation. Fix this by ensuring
IMEM writes related to the MBA post-mortem logs happen before the Q6
is brought out of reset.

Fixes: 318130cc9362 ("remoteproc: qcom_q6v5_mss: Add MBA log extraction support")
Signed-off-by: Sibi Sankar <quic_sibis@quicinc.com>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Tested-by: Douglas Anderson <dianders@chromium.org>
Link: https://lore.kernel.org/r/20240819073020.3291287-1-quic_sibis@quicinc.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/remoteproc/qcom_q6v5_mss.c