]> www.infradead.org Git - users/dwmw2/linux.git/commit
remoteproc: qcom_q6v5_mss: map/unmap mpss segments before/after use
authorSibi Sankar <sibis@codeaurora.org>
Wed, 15 Apr 2020 07:16:18 +0000 (12:46 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jun 2020 15:48:22 +0000 (17:48 +0200)
commit19f8bac059b1e2ad6f40d3e2ab7bd9598d56b3aa
tree1edc3442beb1a412e70abbec4e8585175fc75bc7
parent34044514dc596c888fe898d953eef54e37990fab
remoteproc: qcom_q6v5_mss: map/unmap mpss segments before/after use

[ Upstream commit be050a3429f46ecf13eb2b80f299479f8bb823fb ]

The application processor accessing the mpss region when the Q6 modem is
running will lead to an XPU violation. Fix this by un-mapping the mpss
segments post copy during mpss authentication and coredumps.

Tested-by: Evan Green <evgreen@chromium.org>
Signed-off-by: Sibi Sankar <sibis@codeaurora.org>
Link: https://lore.kernel.org/r/20200415071619.6052-1-sibis@codeaurora.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/remoteproc/qcom_q6v5_mss.c