]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
remoteproc: qcom: pas: Mark va as io memory
authorSiddharth Gupta <sidgup@codeaurora.org>
Tue, 5 Jul 2022 12:08:15 +0000 (17:38 +0530)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 18 Jul 2022 20:32:34 +0000 (15:32 -0500)
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
drivers/remoteproc/qcom_q6v5_pas.c

index 297700f87fe83a223b50e18912c6f0f10c32f4f1..df13cfc3aeb8526dbb25702f70cd2fe80b735f81 100644 (file)
@@ -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;
 }