Skip to content

arm64: dts: r8a7795: IPMMU upstream integration V3

Magnus Damm linux-renesas-soc 3 versions – In review

Get series with b4
b4 am 148999891819.20118.10698449216124481808.sendpatchset@little-apple

Versions newest first · linked by author and title

  1. v3 Latest9 patches 2 repliesIn review
  2. v22 patches 4 repliesSuperseded
  3. v14 patches 6 repliesSuperseded

Changes in v3 from the cover letter

- Added the iommus property before power domains - thanks Geert!
- Added reviewed-by to patch 2 and 3 from Laurent - thanks!
- Re-added Ethernet and FCPVD patches (They were present in V1 but not V2)
- Added remaining FCP devices such as FCPF, FCPVB and FCPVI
- Added SATA device
- Added final patch to enable various IPMMU devices in the DTS file

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9arm64: dts: r8a7795: Add IPMMU device nodesarch/arm64/boot/dts/renesas/r8a7795.dtsi+113 -00 replies
2/9arm64: dts: r8a7795: Tie Audio/SYS-DMAC to IPMMU-DS0/1 and MP1arch/arm64/boot/dts/renesas/r8a7795.dtsi+40 -00 replies
3/9arm64: dts: r8a7795: Point DU/VSPD via FCPVD to IPMMU-VIarch/arm64/boot/dts/renesas/r8a7795.dtsi+4 -00 replies
4/9arm64: dts: r8a7795: Point FDP1 via FCPF to IPMMU-VParch/arm64/boot/dts/renesas/r8a7795.dtsi+3 -00 replies
5/9arm64: dts: r8a7795: Point VSPBC/VSPBD via FCPVB to IPMMU-VParch/arm64/boot/dts/renesas/r8a7795.dtsi+2 -00 replies
6/9arm64: dts: r8a7795: Point VSPI via FCPVI to IPMMU-VParch/arm64/boot/dts/renesas/r8a7795.dtsi+3 -00 replies
7/9arm64: dts: r8a7795: Connect Ethernet-AVB to IPMMU-DS0arch/arm64/boot/dts/renesas/r8a7795.dtsi+1 -00 replies
8/9arm64: dts: r8a7795: Connect SATA to IPMMU-HCarch/arm64/boot/dts/renesas/r8a7795.dtsi+1 -00 replies
9/9arm64: dts: r8a7795: Enable IPMMU-VI, VP, MP1, DS0, DS1 and MMarch/arm64/boot/dts/renesas/r8a7795.dtsi+0 -60 replies

Reviews trailers per patch

2 of 9 patches have a Reviewed-by or Acked-by.

PatchLaurent Pinchart
1/9R-b
2/9R-b
3/9
4/9
5/9
6/9
7/9
8/9
9/9

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 00/09] arm64: dts: r8a7795: IPMMU upstream integration V3

arm64: dts: r8a7795: IPMMU upstream integration V3

[PATCH v3 01/09] arm64: dts: r8a7795: Add IPMMU device nodes [PATCH v3 02/09] arm64: dts: r8a7795: Tie Audio/SYS-DMAC to IPMMU-DS0/1 and MP1 [PATCH v3 03/09] arm64: dts: r8a7795: Point DU/VSPD via FCPVD to IPMMU-VI [PATCH v3 04/09] arm64: dts: r8a7795: Point FDP1 via FCPF to IPMMU-VP [PATCH v3 05/09] arm64: dts: r8a7795: Point VSPBC/VSPBD via FCPVB to IPMMU-VP [PATCH v3 06/09] arm64: dts: r8a7795: Point VSPI via FCPVI to IPMMU-VP [PATCH v3 07/09] arm64: dts: r8a7795: Connect Ethernet-AVB to IPMMU-DS0 [PATCH v3 08/09] arm64: dts: r8a7795: Connect SATA to IPMMU-HC [PATCH v3 09/09] arm64: dts: r8a7795: Enable IPMMU-VI, VP, MP1, DS0, DS1 and MM

This series adds DT nodes for IPMMU instances on r8a7795 together with connections to various r8a7795 on-chip devices such as Audio-DMAC, SYS-DMAC, Ethernet-AVB, SATA 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 IPMMU driver patch stack consists of the following series:
[PATCH v7 00/07] iommu/ipmmu-vmsa: IPMMU multi-arch update V7 [PATCH v3 00/09] iommu/ipmmu-vmsa: r8a7795 support V3
[PATCH v3 0/3] iommu/ipmmu-vmsa: r8a7796 support V3

The final patch in the series enable IPMMU support for all IPMMU instances on r8a7795 that are used by IPMMU devices listed above with one exception. The exception is the SATA device connected to IPMMU-HC which still is disabled pending IPMMU USB integration support. I expect IPMMU USB integration to be handled as a second step once this series is agreed on.

The DT binding for r8a7795 has since long been included in mainline and this series implements support following such format:

d4e42e7 iommu/ipmmu-vmsa: Add r8a7795 DT binding

Changes since V2:
- Added the iommus property before power domains - thanks Geert!
- Added reviewed-by to patch 2 and 3 from Laurent - thanks!
- Re-added Ethernet and FCPVD patches (They were present in V1 but not V2)
- Added remaining FCP devices such as FCPF, FCPVB and FCPVI
- Added SATA device
- Added final patch to enable various IPMMU devices in the DTS file

Since the DT binding has been merged quite some time ago and the interface seems stable enough I see no reason not to queue these up for upstream merge.

---

Developed on top of renesas-devel-20170313-v4.11-rc2

No special run time or compile time dependencies.

 arch/arm64/boot/dts/renesas/r8a7795.dtsi |  173 ++++++++++++++++++++++++++++--
 1 file changed, 167 insertions(+), 6 deletions(-)