linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: sjur.brandeland@stericsson.com
To: Ohad Ben-Cohen <ohad@wizery.com>
Cc: linux-kernel@vger.kernel.org, "Arnd Bergmann" <arnd@arndb.de>,
	"Linus Walleij" <linus.walleij@linaro.org>,
	"Sjur Brændeland" <sjurbren@gmail.com>,
	"Sjur Brændeland" <sjur.brandeland@stericsson.com>
Subject: [RFC 1/4] remoteproc: Bugfix assign device address to carveout (noiommu)
Date: Fri, 22 Jun 2012 16:31:07 +0200	[thread overview]
Message-ID: <1340375470-13097-2-git-send-email-sjur.brandeland@stericsson.com> (raw)
In-Reply-To: <1340375470-13097-1-git-send-email-sjur.brandeland@stericsson.com>

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


  reply	other threads:[~2012-06-22 14:31 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-22 14:31 [RFC 0/4] STE-modem remoteproc driver sjur.brandeland
2012-06-22 14:31 ` sjur.brandeland [this message]
2012-06-30 14:17   ` [RFC 1/4] remoteproc: Bugfix assign device address to carveout (noiommu) Ohad Ben-Cohen
2012-07-02 15:11     ` Sjur BRENDELAND
2012-07-02 15:14       ` Ohad Ben-Cohen
2012-07-15 10:11         ` Ohad Ben-Cohen
2012-08-08 17:55   ` Sjur Brændeland
2012-08-09 19:54     ` Ohad Ben-Cohen
2012-08-09 20:35       ` Sjur Brændeland
2012-08-10 15:30         ` Ohad Ben-Cohen
2012-08-11 12:34           ` Ohad Ben-Cohen
2012-12-06 19:45             ` Sjur Brændeland
2012-12-10 18:07               ` Ohad Ben-Cohen
2012-06-22 14:31 ` [RFC 2/4] remoteproc: Add custom STE-modem firmware loader sjur.brandeland
2012-06-22 14:31 ` [RFC 3/4] remoteproc: Add API (header file) for kicking STE modems sjur.brandeland
2012-06-22 14:31 ` [RFC 4/4] remoteproc: Add driver for STE Modem sjur.brandeland
2012-07-01 11:32   ` Ohad Ben-Cohen
2012-07-02 15:22     ` Sjur BRENDELAND
2012-07-05 12:13       ` Ohad Ben-Cohen
2012-07-06  9:18         ` Sjur BRENDELAND
2012-07-06 17:55           ` Ohad Ben-Cohen
2012-08-14 17:06         ` Sjur BRENDELAND

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1340375470-13097-2-git-send-email-sjur.brandeland@stericsson.com \
    --to=sjur.brandeland@stericsson.com \
    --cc=arnd@arndb.de \
    --cc=linus.walleij@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ohad@wizery.com \
    --cc=sjurbren@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).