Skip to content

Commit

Permalink
remoteproc: qcom: pas: Mark va as io memory
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Siddharth Gupta authored and andersson committed Jul 18, 2022
1 parent 86590c3 commit 5ddf596
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/remoteproc/qcom_q6v5_pas.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 5ddf596

Please sign in to comment.