Messages in this thread Patch in this message | | | From | sjur.brandeland@stericss ... | Subject | [RFC 1/4] remoteproc: Bugfix assign device address to carveout (noiommu) | Date | Fri, 22 Jun 2012 16:31:07 +0200 |
| |
From: Sjur Brændeland <sjur.brandeland@stericsson.com>
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@stericsson.com> --- 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |