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:50:13 +0000 (17:50 +0200)
commit2b5e61da68e880ab77c423b007a4df2f7deac8ab
tree50c096645fde65de991e0be636c45d92a4e9fd60
parent8a44731af689d5571dcf43eecaf49e1b11ff6b97
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