remoteproc: imx_rproc: Change to ioremap_wc for dram
authorDong Aisheng <aisheng.dong@nxp.com>
Fri, 10 Sep 2021 09:06:21 +0000 (17:06 +0800)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 27 Sep 2021 23:37:10 +0000 (18:37 -0500)
DRAM is not io memory, so changed to ioremap_wc. This is also
aligned with core io accessories. e.g. memcpy/memset and cpu direct
access.

Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Cc: Peng Fan <peng.fan@nxp.com>
Reviewed-and-tested-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Link: https://lore.kernel.org/r/20210910090621.3073540-7-peng.fan@oss.nxp.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/imx_rproc.c

index ff620688fad94f2e669d4f45a9ac4cdd409cb4c6..4ae416ba50807e6c0134b3c23602d4218b085185 100644 (file)
@@ -597,7 +597,7 @@ static int imx_rproc_addr_init(struct imx_rproc *priv,
                        break;
 
                /* Not use resource version, because we might share region */
-               priv->mem[b].cpu_addr = devm_ioremap(&pdev->dev, res.start, resource_size(&res));
+               priv->mem[b].cpu_addr = devm_ioremap_wc(&pdev->dev, res.start, resource_size(&res));
                if (!priv->mem[b].cpu_addr) {
                        dev_err(dev, "failed to remap %pr\n", &res);
                        return -ENOMEM;