All of lore.kernel.org
 help / color / mirror / Atom feed
From: Magnus Damm <magnus.damm@gmail.com>
To: linux-renesas-soc@vger.kernel.org
Cc: Magnus Damm <magnus.damm@gmail.com>
Subject: [PATCH/RFC 03/03] iommu/ipmmu-vmsa: Add SYS-DMAC devices as whitelist
Date: Wed, 20 Dec 2017 21:24:13 +0900	[thread overview]
Message-ID: <151377265378.17613.6585544315769524309.sendpatchset@little-apple> (raw)
In-Reply-To: <151377262568.17613.8610167192375932687.sendpatchset@little-apple>

From: Magnus Damm <damm+renesas@opensource.se>

For testing purpose add a list of allowed SYS-DMAC devices to
the IPMMU driver. These may be used together with SCIF serial
ports to validate some basic operation.

Not-Yet-Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
---

 drivers/iommu/ipmmu-vmsa.c |    7 +++++++
 1 file changed, 7 insertions(+)

--- 0024/drivers/iommu/ipmmu-vmsa.c
+++ work/drivers/iommu/ipmmu-vmsa.c	2017-11-22 13:26:36.270607110 +0900
@@ -756,6 +756,13 @@ static int ipmmu_init_platform_device(st
 
 static bool ipmmu_slave_whitelist(struct device *dev)
 {
+	if (!strcmp(dev_name(dev), "e6700000.dma-controller"))
+		return true;
+	if (!strcmp(dev_name(dev), "e7300000.dma-controller"))
+		return true;
+	if (!strcmp(dev_name(dev), "e7310000.dma-controller"))
+		return true;
+  
 	/* By default, do not allow use of IPMMU */
 	return false;
 }

      parent reply	other threads:[~2017-12-20 12:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-20 12:23 [PATCH/RFC 00/03] iommu/ipmmu-vmsa: IPMMU prototyping on r8a77965 Magnus Damm
2017-12-20 12:23 ` [PATCH/RFC 01/03] arm64: dts: r8a77965: Enable IPMMU MM, DS0 and DS1 Magnus Damm
2017-12-20 12:24 ` [PATCH/RFC 02/03] iommu/ipmmu-vmsa: Detect r8a77965 compat strings Magnus Damm
2017-12-20 12:24 ` Magnus Damm [this message]

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=151377265378.17613.6585544315769524309.sendpatchset@little-apple \
    --to=magnus.damm@gmail.com \
    --cc=linux-renesas-soc@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.