[RFC 1/4] remoteproc: Bugfix assign device address to carveout (noiommu)

From: sjur . brandeland
Date: Fri Jun 22 2012 - 10:31:26 EST


From: Sjur BrÃndeland <sjur.brandeland@xxxxxxxxxxxxxx>

Carveout did not set device address when IOMMU is not supported.
Fix this by assigning dma address to device address to carveout
if IOMMU is not supported.

Signed-off-by: Sjur BrÃndeland <sjur.brandeland@xxxxxxxxxxxxxx>
---
drivers/remoteproc/remoteproc_core.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c
index bee4644..8185c11 100644
--- a/drivers/remoteproc/remoteproc_core.c
+++ b/drivers/remoteproc/remoteproc_core.c
@@ -628,6 +628,10 @@ static int rproc_handle_carveout(struct rproc *rproc,
* dual M3 subsystem).
*/
rsc->pa = dma;
+ } else {
+ rsc->da = dma;
+ dev_dbg(dev, "carveout: %s va %p dma %x\n",
+ rsc->name, va, rsc->da);
}

carveout->va = va;
--
1.7.5.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/