arm64: dts: renesas: IPMMU deferred probe test prototype
Subsystems (3)
Magnus Damm
maintainerPATCH 1/1 arm64: dts: renesas: IPMMU deferred probe test prototype
From: Magnus Damm <[email protected]>
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.
---
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(+)
arch/arm64/boot/dts/renesas/r8a7795.dtsi +1 -0
@@ -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 {
drivers/iommu/ipmmu-vmsa.c +12 -0
@@ -756,6 +756,18 @@ static int ipmmu_init_platform_device(ststatic 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; }
Hi Magnus,
Quoted 8 lines · Magnus Damm
From: Magnus Damm <[email protected]>
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/interruptcounters with the console activity.
Quoted 6 lines
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/interruptscounters associated with the DMAC channels. Audio has not been tested.Not-Signed-off-by Magnus Damm <[email protected]>
Thanks for your patch!
Just wondering from the oneline-summary: where is the deferred probe (not) supposed to happen?
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] 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