All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arm64: dts: renesas: IPMMU deferred probe test prototype
@ 2018-06-17 10:54 Magnus Damm
  2018-06-18  7:13 ` Geert Uytterhoeven
  0 siblings, 1 reply; 2+ messages in thread
From: Magnus Damm @ 2018-06-17 10:54 UTC (permalink / raw)
  To: linux-renesas-soc; +Cc: Magnus Damm

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

Here's my local modification to test IPMMU with SYS-DMAC and the SCIF
console on r8a7795 H3ULCB. The dmac1 and dmac2 devices together with
audio dmacs are added to the IPMMU white list. The dmac0 device is
disabled in DT to easily be able to associate the /proc/interrupt
counters with the console activity.

A quick test has been performed by checking the console boot log output
(no errors and DMACs are assigned to the IPMMU) and also validating that
SCIF console activity results in incrementing /proc/interrupts counters
associated with the DMAC channels. Audio has not been tested.

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

 Used together with renesas-drivers-2018-06-05-v4.17

 arch/arm64/boot/dts/renesas/r8a7795.dtsi |    1 +
 drivers/iommu/ipmmu-vmsa.c               |   12 ++++++++++++
 2 files changed, 13 insertions(+)

--- 0001/arch/arm64/boot/dts/renesas/r8a7795.dtsi
+++ work/arch/arm64/boot/dts/renesas/r8a7795.dtsi
@@ -839,6 +839,7 @@
 			       <&ipmmu_ds0 10>, <&ipmmu_ds0 11>,
 			       <&ipmmu_ds0 12>, <&ipmmu_ds0 13>,
 			       <&ipmmu_ds0 14>, <&ipmmu_ds0 15>;
+			status = "disabled";
 		};
 
 		dmac1: dma-controller@e7300000 {
--- 0001/drivers/iommu/ipmmu-vmsa.c
+++ work/drivers/iommu/ipmmu-vmsa.c
@@ -756,6 +756,18 @@ static int ipmmu_init_platform_device(st
 
 static bool ipmmu_slave_whitelist(struct device *dev)
 {
+  	if (!strcmp(dev_name(dev), "e7300000.dma-controller"))
+  		return true;
+  
+	if (!strcmp(dev_name(dev), "e7310000.dma-controller"))
+		return true;
+
+  	if (!strcmp(dev_name(dev), "ec700000.dma-controller"))
+  		return true;
+
+	if (!strcmp(dev_name(dev), "ec720000.dma-controller"))
+		return true;
+  
 	/* By default, do not allow use of IPMMU */
 	return false;
 }

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] arm64: dts: renesas: IPMMU deferred probe test prototype
  2018-06-17 10:54 [PATCH] arm64: dts: renesas: IPMMU deferred probe test prototype Magnus Damm
@ 2018-06-18  7:13 ` Geert Uytterhoeven
  0 siblings, 0 replies; 2+ messages in thread
From: Geert Uytterhoeven @ 2018-06-18  7:13 UTC (permalink / raw)
  To: Magnus Damm; +Cc: Linux-Renesas

Hi Magnus,

On Sun, Jun 17, 2018 at 12:52 PM Magnus Damm <magnus.damm@gmail.com> wrote:
> From: Magnus Damm <damm+renesas@opensource.se>
>
> Here's my local modification to test IPMMU with SYS-DMAC and the SCIF
> console on r8a7795 H3ULCB. The dmac1 and dmac2 devices together with
> audio dmacs are added to the IPMMU white list. The dmac0 device is
> disabled in DT to easily be able to associate the /proc/interrupt
> counters with the console activity.
>
> A quick test has been performed by checking the console boot log output
> (no errors and DMACs are assigned to the IPMMU) and also validating that
> SCIF console activity results in incrementing /proc/interrupts counters
> associated with the DMAC channels. Audio has not been tested.
>
> Not-Signed-off-by: Magnus Damm <damm+renesas@opensource.se>

Thanks for your patch!

Just wondering from the oneline-summary: where is the deferred probe (not)
supposed to happen?

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-06-18  7:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-17 10:54 [PATCH] arm64: dts: renesas: IPMMU deferred probe test prototype Magnus Damm
2018-06-18  7:13 ` Geert Uytterhoeven

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.