diff options
author | Siddharth Gupta <sidgup@codeaurora.org> | 2022-07-05 14:08:15 +0200 |
---|---|---|
committer | Bjorn Andersson <bjorn.andersson@linaro.org> | 2022-07-18 22:32:34 +0200 |
commit | 5ddf5969e9272b01932366202a711dd5f51b4aea (patch) | |
tree | 17af8d3cbbb1a38b75bcf962a269cdf5de34adab /drivers/remoteproc/qcom_q6v5_pas.c | |
parent | remoteproc: qcom: pas: Add decrypt shutdown support for modem (diff) | |
download | linux-5ddf5969e9272b01932366202a711dd5f51b4aea.tar.xz linux-5ddf5969e9272b01932366202a711dd5f51b4aea.zip |
remoteproc: qcom: pas: Mark va as io memory
The pas driver remaps the entire carveout region using the dev_ioremap_wc()
call, which is then used in the adsp_da_to_va() calls made by the rproc
framework. This change marks the va returned by this call as an iomem va.
Signed-off-by: Siddharth Gupta <sidgup@codeaurora.org>
Signed-off-by: Sibi Sankar <quic_sibis@quicinc.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/1657022900-2049-3-git-send-email-quic_sibis@quicinc.com
Diffstat (limited to 'drivers/remoteproc/qcom_q6v5_pas.c')
-rw-r--r-- | drivers/remoteproc/qcom_q6v5_pas.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/remoteproc/qcom_q6v5_pas.c b/drivers/remoteproc/qcom_q6v5_pas.c index 297700f87fe8..df13cfc3aeb8 100644 --- a/drivers/remoteproc/qcom_q6v5_pas.c +++ b/drivers/remoteproc/qcom_q6v5_pas.c @@ -289,6 +289,9 @@ static void *adsp_da_to_va(struct rproc *rproc, u64 da, size_t len, bool *is_iom if (offset < 0 || offset + len > adsp->mem_size) return NULL; + if (is_iomem) + *is_iomem = true; + return adsp->mem_region + offset; } |