remoteproc: qcom_q6v5_mss: map/unmap metadata region before/after use
authorSibi Sankar <quic_sibis@quicinc.com>
Wed, 11 May 2022 05:57:05 +0000 (11:27 +0530)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 18 Jul 2022 20:32:33 +0000 (15:32 -0500)
commitfc156629b23a21181e473e60341e3a78af25a1d4
treef77ee61691643d6cefec751e2c91dbc4c6e08f2a
parent8672e79d98bc702084f65ef6d118333bd73f09a2
remoteproc: qcom_q6v5_mss: map/unmap metadata region before/after use

The application processor accessing the dynamically assigned metadata
region after assigning it to the remote Q6 would lead to an XPU violation.
Fix this by un-mapping the metadata region post firmware header copy. The
metadata region is freed only after the modem Q6 is done with fw header
authentication.

Signed-off-by: Sibi Sankar <quic_sibis@quicinc.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/1652248625-990-1-git-send-email-quic_sibis@quicinc.com
drivers/remoteproc/qcom_q6v5_mss.c