From: Simon Horman <hidden> Date: 2017-11-10 13:26:05
This series adds DT nodes for IPMMU instances on r8a7796 together with
connections to various r8a7796 on-chip devices such as Audio-DMAC, SYS-DMAC,
Ethernet-AVB and a bunch of multimedia devices that make use of FCP.
With these patches applied a white list enabled IPMMU driver may be used
to check silicon revision and then enable IPMMU in the known working cases.
The recommended test stack for this patchset is a merge of
* The iommu/next branch of the vfio tree
* renesas-devel-20171110-v4.14-rc8 tag of the renesas tree
With the following applied:
[PATCH v4 0/3] iommu/ipmmu-vmsa: r8a7796 support V4
The final patch in the series enable IPMMU support for all IPMMU
instances on r8a7796 that are used by IPMMU devices listed above.
The DT binding for r8a7796 have been acked (as part of the r8a7796 series
noted above) but have not yet been merged.
Changes since V1:
* Drop mostly redundant comments from nodes
* Add power domains
Based on work by Magnus Damm.
Based on renesas-devel-20171110-v4.14-rc8
Magnus Damm (3):
arm64: dts: renesas: r8a7796: Add IPMMU device nodes
arm64: dts: renesas: r8a7796: Tie SYS-DMAC to IPMMU-DS0/1
arm64: dts: renesas: r8a7796: Enable IPMMU-DS0, DS1, MP, VI0, VC0 and
MM
Simon Horman (4):
arm64: dts: renesas: r8a7796: Tie Audio-DMAC to IPMMU-MP
arm64: dts: renesas: r8a7796: Point FDP1 via FCPF to IPMMU-VI0
arm64: dts: renesas: r8a7796: Point VSPI via FCPVI to IPMMU-VC0
arm64: dts: renesas: r8a7796: Connect Ethernet-AVB to IPMMU-DS0
arch/arm64/boot/dts/renesas/r8a7796.dtsi | 138 +++++++++++++++++++++++++++++++
1 file changed, 138 insertions(+)
--
2.11.0
From: Simon Horman <hidden> Date: 2017-11-10 13:26:07
From: Magnus Damm <redacted>
Hook up r8a7796 DMAC nodes to the IPMMUs. In particular SYS-DMAC0
gets tied to IPMMU-DS0, and SYS-DMAC1 and SYS-DMAC2 get tied to IPMMU-DS1.
Signed-off-by: Magnus Damm <redacted>
Signed-off-by: Simon Horman <redacted>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
v2 [Simon Horman]
* Added reviewed by tag from Geert Uytterhoeven
v1 [Simon Horman]
v0 [Magnus Damm]
---
arch/arm64/boot/dts/renesas/r8a7796.dtsi | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
From: Simon Horman <hidden> Date: 2017-11-10 13:26:08
Hook up r8a7796 Audio-DMAC nodes to the IPMMU-MP.
Based on work for the r8a7795 by Magnus Damm.
Signed-off-by: Simon Horman <redacted>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
v2
* Added reviewed by tag from Geert Uytterhoeven
---
arch/arm64/boot/dts/renesas/r8a7796.dtsi | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
From: Simon Horman <hidden> Date: 2017-11-10 13:26:09
Hook up the FCPF devices to allow use of FDP1 with IPMMU-VI0.
Based on work by Magnus Damm for the r8a7795.
Signed-off-by: Simon Horman <redacted>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
v2
* Added reviewed by tag from Geert Uytterhoeven
---
arch/arm64/boot/dts/renesas/r8a7796.dtsi | 3 +++
1 file changed, 3 insertions(+)
From: Simon Horman <hidden> Date: 2017-11-10 13:26:10
Hook up the FCPVI devices to allow use of VSPI with IPMMU-VC0.
Based on work for the r8a7795 by Magnus Damm.
Signed-off-by: Simon Horman <redacted>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
v2
* Added reviewed by tag from Geert Uytterhoeven
---
arch/arm64/boot/dts/renesas/r8a7796.dtsi | 1 +
1 file changed, 1 insertion(+)
From: Simon Horman <hidden> Date: 2017-11-10 13:26:11
Add IPMMU-DS0 to the Ethernet-AVB device node.
Based on work by Magnus Damm for the r8a7795.
Signed-off-by: Simon Horman <redacted>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
v2
* Added reviewed by tag from Geert Uytterhoeven
---
arch/arm64/boot/dts/renesas/r8a7796.dtsi | 1 +
1 file changed, 1 insertion(+)
Hi Simon,
On Fri, Nov 10, 2017 at 2:26 PM, Simon Horman
[off-list ref] wrote:
From: Magnus Damm <redacted>
Add r8a7796 IPMMU nodes and keep all disabled by default.
Signed-off-by: Magnus Damm <redacted>
Signed-off-by: Simon Horman <redacted>
---
v2 [Simon Horman]
* Drop mostly redundant comments from nodes
* Add power domains
Thanks for the update!
With the below fixed:
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at 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
On Wed, Nov 15, 2017 at 03:41:14PM +0100, Geert Uytterhoeven wrote:
Hi Simon,
On Fri, Nov 10, 2017 at 2:26 PM, Simon Horman
[off-list ref] wrote:
quoted
From: Magnus Damm <redacted>
Add r8a7796 IPMMU nodes and keep all disabled by default.
Signed-off-by: Magnus Damm <redacted>
Signed-off-by: Simon Horman <redacted>
---
v2 [Simon Horman]
* Drop mostly redundant comments from nodes
* Add power domains
Thanks for the update!
With the below fixed:
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Thanks, I have applied this patch with those fixes and your tag.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at 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
On Fri, Nov 10, 2017 at 02:26:05PM +0100, Simon Horman wrote:
This series adds DT nodes for IPMMU instances on r8a7796 together with
connections to various r8a7796 on-chip devices such as Audio-DMAC, SYS-DMAC,
Ethernet-AVB and a bunch of multimedia devices that make use of FCP.
With these patches applied a white list enabled IPMMU driver may be used
to check silicon revision and then enable IPMMU in the known working cases.
The recommended test stack for this patchset is a merge of
* The iommu/next branch of the vfio tree
* renesas-devel-20171110-v4.14-rc8 tag of the renesas tree
With the following applied:
[PATCH v4 0/3] iommu/ipmmu-vmsa: r8a7796 support V4
The final patch in the series enable IPMMU support for all IPMMU
instances on r8a7796 that are used by IPMMU devices listed above.
The DT binding for r8a7796 have been acked (as part of the r8a7796 series
noted above) but have not yet been merged.
Changes since V1:
* Drop mostly redundant comments from nodes
* Add power domains
Based on work by Magnus Damm.
Based on renesas-devel-20171110-v4.14-rc8