dmaengine Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH 0/9] R8A774E1 SoC enable support for IPMMU, DMAC, GPIO and AVB
@ 2020-07-13 21:35 Lad Prabhakar
  2020-07-13 21:35 ` [PATCH 1/9] dt-bindings: iommu: renesas,ipmmu-vmsa: Add r8a774e1 support Lad Prabhakar
                   ` (8 more replies)
  0 siblings, 9 replies; 33+ messages in thread
From: Lad Prabhakar @ 2020-07-13 21:35 UTC (permalink / raw)
  To: Geert Uytterhoeven, Vinod Koul, Rob Herring, Linus Walleij,
	Bartosz Golaszewski, Joerg Roedel, Sergei Shtylyov,
	David S. Miller, Jakub Kicinski
  Cc: Magnus Damm, Yoshihiro Shimoda, dmaengine, devicetree,
	linux-gpio, iommu, netdev, linux-renesas-soc, linux-kernel,
	Prabhakar

Hi All,

This patch series adds device nodes for IPMMU, DMAC, GPIO
and AVB nodes for RZ/G2H (R8A774E1) SoC.

Cheers,
Prabhakar

Lad Prabhakar (3):
  dt-bindings: iommu: renesas,ipmmu-vmsa: Add r8a774e1 support
  dt-bindings: dma: renesas,rcar-dmac: Document R8A774E1 bindings
  dt-bindings: gpio: renesas,rcar-gpio: Add r8a774e1 support

Marian-Cristian Rotariu (6):
  iommu/ipmmu-vmsa: Hook up R8A774E1 DT matching code
  arm64: dts: renesas: r8a774e1: Add IPMMU device nodes
  arm64: dts: renesas: r8a774e1: Add SYS-DMAC device nodes
  arm64: dts: renesas: r8a774e1: Add GPIO device nodes
  dt-bindings: net: renesas,ravb: Add support for r8a774e1 SoC
  arm64: dts: renesas: r8a774e1: Add Ethernet AVB node

 .../bindings/dma/renesas,rcar-dmac.yaml       |   1 +
 .../bindings/gpio/renesas,rcar-gpio.yaml      |   1 +
 .../bindings/iommu/renesas,ipmmu-vmsa.yaml    |   1 +
 .../devicetree/bindings/net/renesas,ravb.txt  |   1 +
 arch/arm64/boot/dts/renesas/r8a774e1.dtsi     | 361 +++++++++++++++++-
 drivers/iommu/ipmmu-vmsa.c                    |   4 +
 6 files changed, 350 insertions(+), 19 deletions(-)

-- 
2.17.1


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

* [PATCH 1/9] dt-bindings: iommu: renesas,ipmmu-vmsa: Add r8a774e1 support
  2020-07-13 21:35 [PATCH 0/9] R8A774E1 SoC enable support for IPMMU, DMAC, GPIO and AVB Lad Prabhakar
@ 2020-07-13 21:35 ` Lad Prabhakar
  2020-07-14  7:35   ` Geert Uytterhoeven
  2020-07-21  2:02   ` Rob Herring
  2020-07-13 21:35 ` [PATCH 2/9] iommu/ipmmu-vmsa: Hook up R8A774E1 DT matching code Lad Prabhakar
                   ` (7 subsequent siblings)
  8 siblings, 2 replies; 33+ messages in thread
From: Lad Prabhakar @ 2020-07-13 21:35 UTC (permalink / raw)
  To: Geert Uytterhoeven, Vinod Koul, Rob Herring, Linus Walleij,
	Bartosz Golaszewski, Joerg Roedel, Sergei Shtylyov,
	David S. Miller, Jakub Kicinski
  Cc: Magnus Damm, Yoshihiro Shimoda, dmaengine, devicetree,
	linux-gpio, iommu, netdev, linux-renesas-soc, linux-kernel,
	Prabhakar

Document RZ/G2H (R8A774E1) SoC bindings.

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
---
 Documentation/devicetree/bindings/iommu/renesas,ipmmu-vmsa.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/iommu/renesas,ipmmu-vmsa.yaml b/Documentation/devicetree/bindings/iommu/renesas,ipmmu-vmsa.yaml
index e9d28a4060fa..6bfa090fd73a 100644
--- a/Documentation/devicetree/bindings/iommu/renesas,ipmmu-vmsa.yaml
+++ b/Documentation/devicetree/bindings/iommu/renesas,ipmmu-vmsa.yaml
@@ -32,6 +32,7 @@ properties:
           - enum:
               - renesas,ipmmu-r8a774a1 # RZ/G2M
               - renesas,ipmmu-r8a774b1 # RZ/G2N
+              - renesas,ipmmu-r8a774e1 # RZ/G2H
               - renesas,ipmmu-r8a774c0 # RZ/G2E
               - renesas,ipmmu-r8a7795  # R-Car H3
               - renesas,ipmmu-r8a7796  # R-Car M3-W
-- 
2.17.1


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

* [PATCH 2/9] iommu/ipmmu-vmsa: Hook up R8A774E1 DT matching code
  2020-07-13 21:35 [PATCH 0/9] R8A774E1 SoC enable support for IPMMU, DMAC, GPIO and AVB Lad Prabhakar
  2020-07-13 21:35 ` [PATCH 1/9] dt-bindings: iommu: renesas,ipmmu-vmsa: Add r8a774e1 support Lad Prabhakar
@ 2020-07-13 21:35 ` Lad Prabhakar
  2020-07-14  8:09   ` Geert Uytterhoeven
  2020-07-13 21:35 ` [PATCH 3/9] arm64: dts: renesas: r8a774e1: Add IPMMU device nodes Lad Prabhakar
                   ` (6 subsequent siblings)
  8 siblings, 1 reply; 33+ messages in thread
From: Lad Prabhakar @ 2020-07-13 21:35 UTC (permalink / raw)
  To: Geert Uytterhoeven, Vinod Koul, Rob Herring, Linus Walleij,
	Bartosz Golaszewski, Joerg Roedel, Sergei Shtylyov,
	David S. Miller, Jakub Kicinski
  Cc: Magnus Damm, Yoshihiro Shimoda, dmaengine, devicetree,
	linux-gpio, iommu, netdev, linux-renesas-soc, linux-kernel,
	Prabhakar

From: Marian-Cristian Rotariu <marian-cristian.rotariu.rb@bp.renesas.com>

Add support for RZ/G2H (R8A774E1) SoC IPMMUs.

Signed-off-by: Marian-Cristian Rotariu <marian-cristian.rotariu.rb@bp.renesas.com>
Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
---
 drivers/iommu/ipmmu-vmsa.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/iommu/ipmmu-vmsa.c b/drivers/iommu/ipmmu-vmsa.c
index b90cd9ff96f6..cbce88ac5a71 100644
--- a/drivers/iommu/ipmmu-vmsa.c
+++ b/drivers/iommu/ipmmu-vmsa.c
@@ -751,6 +751,7 @@ static const struct soc_device_attribute soc_rcar_gen3[] = {
 static const struct soc_device_attribute soc_rcar_gen3_whitelist[] = {
 	{ .soc_id = "r8a774b1", },
 	{ .soc_id = "r8a774c0", },
+	{ .soc_id = "r8a774e1", },
 	{ .soc_id = "r8a7795", .revision = "ES3.*" },
 	{ .soc_id = "r8a77961", },
 	{ .soc_id = "r8a77965", },
@@ -963,6 +964,9 @@ static const struct of_device_id ipmmu_of_ids[] = {
 	}, {
 		.compatible = "renesas,ipmmu-r8a774c0",
 		.data = &ipmmu_features_rcar_gen3,
+	}, {
+		.compatible = "renesas,ipmmu-r8a774e1",
+		.data = &ipmmu_features_rcar_gen3,
 	}, {
 		.compatible = "renesas,ipmmu-r8a7795",
 		.data = &ipmmu_features_rcar_gen3,
-- 
2.17.1


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

* [PATCH 3/9] arm64: dts: renesas: r8a774e1: Add IPMMU device nodes
  2020-07-13 21:35 [PATCH 0/9] R8A774E1 SoC enable support for IPMMU, DMAC, GPIO and AVB Lad Prabhakar
  2020-07-13 21:35 ` [PATCH 1/9] dt-bindings: iommu: renesas,ipmmu-vmsa: Add r8a774e1 support Lad Prabhakar
  2020-07-13 21:35 ` [PATCH 2/9] iommu/ipmmu-vmsa: Hook up R8A774E1 DT matching code Lad Prabhakar
@ 2020-07-13 21:35 ` Lad Prabhakar
  2020-07-15 10:18   ` Geert Uytterhoeven
  2020-07-21  2:01   ` Rob Herring
  2020-07-13 21:35 ` [PATCH 4/9] dt-bindings: dma: renesas,rcar-dmac: Document R8A774E1 bindings Lad Prabhakar
                   ` (5 subsequent siblings)
  8 siblings, 2 replies; 33+ messages in thread
From: Lad Prabhakar @ 2020-07-13 21:35 UTC (permalink / raw)
  To: Geert Uytterhoeven, Vinod Koul, Rob Herring, Linus Walleij,
	Bartosz Golaszewski, Joerg Roedel, Sergei Shtylyov,
	David S. Miller, Jakub Kicinski
  Cc: Magnus Damm, Yoshihiro Shimoda, dmaengine, devicetree,
	linux-gpio, iommu, netdev, linux-renesas-soc, linux-kernel,
	Prabhakar

From: Marian-Cristian Rotariu <marian-cristian.rotariu.rb@bp.renesas.com>

Add RZ/G2H (R8A774E1) IPMMU nodes.

Signed-off-by: Marian-Cristian Rotariu <marian-cristian.rotariu.rb@bp.renesas.com>
Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
---
 arch/arm64/boot/dts/renesas/r8a774e1.dtsi | 121 ++++++++++++++++++++++
 1 file changed, 121 insertions(+)

diff --git a/arch/arm64/boot/dts/renesas/r8a774e1.dtsi b/arch/arm64/boot/dts/renesas/r8a774e1.dtsi
index 7484ad530068..0fc0d9ff5bc5 100644
--- a/arch/arm64/boot/dts/renesas/r8a774e1.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a774e1.dtsi
@@ -408,6 +408,127 @@
 			/* placeholder */
 		};
 
+		ipmmu_ds0: iommu@e6740000 {
+			compatible = "renesas,ipmmu-r8a774e1";
+			reg = <0 0xe6740000 0 0x1000>;
+			renesas,ipmmu-main = <&ipmmu_mm 0>;
+			power-domains = <&sysc R8A774E1_PD_ALWAYS_ON>;
+			#iommu-cells = <1>;
+		};
+
+		ipmmu_ds1: iommu@e7740000 {
+			compatible = "renesas,ipmmu-r8a774e1";
+			reg = <0 0xe7740000 0 0x1000>;
+			renesas,ipmmu-main = <&ipmmu_mm 1>;
+			power-domains = <&sysc R8A774E1_PD_ALWAYS_ON>;
+			#iommu-cells = <1>;
+		};
+
+		ipmmu_hc: iommu@e6570000 {
+			compatible = "renesas,ipmmu-r8a774e1";
+			reg = <0 0xe6570000 0 0x1000>;
+			renesas,ipmmu-main = <&ipmmu_mm 2>;
+			power-domains = <&sysc R8A774E1_PD_ALWAYS_ON>;
+			#iommu-cells = <1>;
+		};
+
+		ipmmu_mm: iommu@e67b0000 {
+			compatible = "renesas,ipmmu-r8a774e1";
+			reg = <0 0xe67b0000 0 0x1000>;
+			interrupts = <GIC_SPI 196 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 197 IRQ_TYPE_LEVEL_HIGH>;
+			power-domains = <&sysc R8A774E1_PD_ALWAYS_ON>;
+			#iommu-cells = <1>;
+		};
+
+		ipmmu_mp0: iommu@ec670000 {
+			compatible = "renesas,ipmmu-r8a774e1";
+			reg = <0 0xec670000 0 0x1000>;
+			renesas,ipmmu-main = <&ipmmu_mm 4>;
+			power-domains = <&sysc R8A774E1_PD_ALWAYS_ON>;
+			#iommu-cells = <1>;
+		};
+
+		ipmmu_pv0: iommu@fd800000 {
+			compatible = "renesas,ipmmu-r8a774e1";
+			reg = <0 0xfd800000 0 0x1000>;
+			renesas,ipmmu-main = <&ipmmu_mm 6>;
+			power-domains = <&sysc R8A774E1_PD_ALWAYS_ON>;
+			#iommu-cells = <1>;
+		};
+
+		ipmmu_pv1: iommu@fd950000 {
+			compatible = "renesas,ipmmu-r8a774e1";
+			reg = <0 0xfd950000 0 0x1000>;
+			renesas,ipmmu-main = <&ipmmu_mm 7>;
+			power-domains = <&sysc R8A774E1_PD_ALWAYS_ON>;
+			#iommu-cells = <1>;
+		};
+
+		ipmmu_pv2: iommu@fd960000 {
+			compatible = "renesas,ipmmu-r8a774e1";
+			reg = <0 0xfd960000 0 0x1000>;
+			renesas,ipmmu-main = <&ipmmu_mm 8>;
+			power-domains = <&sysc R8A774E1_PD_ALWAYS_ON>;
+			#iommu-cells = <1>;
+		};
+
+		ipmmu_pv3: iommu@fd970000 {
+			compatible = "renesas,ipmmu-r8a774e1";
+			reg = <0 0xfd970000 0 0x1000>;
+			renesas,ipmmu-main = <&ipmmu_mm 9>;
+			power-domains = <&sysc R8A774E1_PD_ALWAYS_ON>;
+			#iommu-cells = <1>;
+		};
+
+		ipmmu_vc0: iommu@fe6b0000 {
+			compatible = "renesas,ipmmu-r8a774e1";
+			reg = <0 0xfe6b0000 0 0x1000>;
+			renesas,ipmmu-main = <&ipmmu_mm 12>;
+			power-domains = <&sysc R8A774E1_PD_A3VC>;
+			#iommu-cells = <1>;
+		};
+
+		ipmmu_vc1: iommu@fe6f0000 {
+			compatible = "renesas,ipmmu-r8a774e1";
+			reg = <0 0xfe6f0000 0 0x1000>;
+			renesas,ipmmu-main = <&ipmmu_mm 13>;
+			power-domains = <&sysc R8A774E1_PD_A3VC>;
+			#iommu-cells = <1>;
+		};
+
+		ipmmu_vi0: iommu@febd0000 {
+			compatible = "renesas,ipmmu-r8a774e1";
+			reg = <0 0xfebd0000 0 0x1000>;
+			renesas,ipmmu-main = <&ipmmu_mm 14>;
+			power-domains = <&sysc R8A774E1_PD_ALWAYS_ON>;
+			#iommu-cells = <1>;
+		};
+
+		ipmmu_vi1: iommu@febe0000 {
+			compatible = "renesas,ipmmu-r8a774e1";
+			reg = <0 0xfebe0000 0 0x1000>;
+			renesas,ipmmu-main = <&ipmmu_mm 15>;
+			power-domains = <&sysc R8A774E1_PD_ALWAYS_ON>;
+			#iommu-cells = <1>;
+		};
+
+		ipmmu_vp0: iommu@fe990000 {
+			compatible = "renesas,ipmmu-r8a774e1";
+			reg = <0 0xfe990000 0 0x1000>;
+			renesas,ipmmu-main = <&ipmmu_mm 16>;
+			power-domains = <&sysc R8A774E1_PD_A3VP>;
+			#iommu-cells = <1>;
+		};
+
+		ipmmu_vp1: iommu@fe980000 {
+			compatible = "renesas,ipmmu-r8a774e1";
+			reg = <0 0xfe980000 0 0x1000>;
+			renesas,ipmmu-main = <&ipmmu_mm 17>;
+			power-domains = <&sysc R8A774E1_PD_A3VP>;
+			#iommu-cells = <1>;
+		};
+
 		avb: ethernet@e6800000 {
 			reg = <0 0xe6800000 0 0x800>;
 			#address-cells = <1>;
-- 
2.17.1


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

* [PATCH 4/9] dt-bindings: dma: renesas,rcar-dmac: Document R8A774E1 bindings
  2020-07-13 21:35 [PATCH 0/9] R8A774E1 SoC enable support for IPMMU, DMAC, GPIO and AVB Lad Prabhakar
                   ` (2 preceding siblings ...)
  2020-07-13 21:35 ` [PATCH 3/9] arm64: dts: renesas: r8a774e1: Add IPMMU device nodes Lad Prabhakar
@ 2020-07-13 21:35 ` Lad Prabhakar
  2020-07-14  7:39   ` Geert Uytterhoeven
  2020-07-15 10:40   ` Vinod Koul
  2020-07-13 21:35 ` [PATCH 5/9] arm64: dts: renesas: r8a774e1: Add SYS-DMAC device nodes Lad Prabhakar
                   ` (4 subsequent siblings)
  8 siblings, 2 replies; 33+ messages in thread
From: Lad Prabhakar @ 2020-07-13 21:35 UTC (permalink / raw)
  To: Geert Uytterhoeven, Vinod Koul, Rob Herring, Linus Walleij,
	Bartosz Golaszewski, Joerg Roedel, Sergei Shtylyov,
	David S. Miller, Jakub Kicinski
  Cc: Magnus Damm, Yoshihiro Shimoda, dmaengine, devicetree,
	linux-gpio, iommu, netdev, linux-renesas-soc, linux-kernel,
	Prabhakar

Renesas RZ/G2H (R8A774E1) SoC also has the R-Car gen3 compatible
DMA controllers, therefore document RZ/G2H specific bindings.

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
---
 Documentation/devicetree/bindings/dma/renesas,rcar-dmac.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/dma/renesas,rcar-dmac.yaml b/Documentation/devicetree/bindings/dma/renesas,rcar-dmac.yaml
index b842dfd96a89..13f1a46be40d 100644
--- a/Documentation/devicetree/bindings/dma/renesas,rcar-dmac.yaml
+++ b/Documentation/devicetree/bindings/dma/renesas,rcar-dmac.yaml
@@ -23,6 +23,7 @@ properties:
           - renesas,dmac-r8a774a1 # RZ/G2M
           - renesas,dmac-r8a774b1 # RZ/G2N
           - renesas,dmac-r8a774c0 # RZ/G2E
+          - renesas,dmac-r8a774e1 # RZ/G2H
           - renesas,dmac-r8a7790  # R-Car H2
           - renesas,dmac-r8a7791  # R-Car M2-W
           - renesas,dmac-r8a7792  # R-Car V2H
-- 
2.17.1


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

* [PATCH 5/9] arm64: dts: renesas: r8a774e1: Add SYS-DMAC device nodes
  2020-07-13 21:35 [PATCH 0/9] R8A774E1 SoC enable support for IPMMU, DMAC, GPIO and AVB Lad Prabhakar
                   ` (3 preceding siblings ...)
  2020-07-13 21:35 ` [PATCH 4/9] dt-bindings: dma: renesas,rcar-dmac: Document R8A774E1 bindings Lad Prabhakar
@ 2020-07-13 21:35 ` Lad Prabhakar
  2020-07-15 10:20   ` Geert Uytterhoeven
  2020-07-13 21:35 ` [PATCH 6/9] dt-bindings: gpio: renesas,rcar-gpio: Add r8a774e1 support Lad Prabhakar
                   ` (3 subsequent siblings)
  8 siblings, 1 reply; 33+ messages in thread
From: Lad Prabhakar @ 2020-07-13 21:35 UTC (permalink / raw)
  To: Geert Uytterhoeven, Vinod Koul, Rob Herring, Linus Walleij,
	Bartosz Golaszewski, Joerg Roedel, Sergei Shtylyov,
	David S. Miller, Jakub Kicinski
  Cc: Magnus Damm, Yoshihiro Shimoda, dmaengine, devicetree,
	linux-gpio, iommu, netdev, linux-renesas-soc, linux-kernel,
	Prabhakar

From: Marian-Cristian Rotariu <marian-cristian.rotariu.rb@bp.renesas.com>

Add sys-dmac[0-2] device nodes for RZ/G2H (R8A774E1) SoC.

Signed-off-by: Marian-Cristian Rotariu <marian-cristian.rotariu.rb@bp.renesas.com>
Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
---
 arch/arm64/boot/dts/renesas/r8a774e1.dtsi | 126 ++++++++++++++++++++++
 1 file changed, 126 insertions(+)

diff --git a/arch/arm64/boot/dts/renesas/r8a774e1.dtsi b/arch/arm64/boot/dts/renesas/r8a774e1.dtsi
index 0fc0d9ff5bc5..9e05d134a295 100644
--- a/arch/arm64/boot/dts/renesas/r8a774e1.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a774e1.dtsi
@@ -408,6 +408,132 @@
 			/* placeholder */
 		};
 
+		dmac0: dma-controller@e6700000 {
+			compatible = "renesas,dmac-r8a774e1",
+				     "renesas,rcar-dmac";
+			reg = <0 0xe6700000 0 0x10000>;
+			interrupts = <GIC_SPI 199 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 200 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 201 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 202 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 203 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 204 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 205 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 206 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 207 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 209 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 210 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 211 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 212 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 213 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 214 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 215 IRQ_TYPE_LEVEL_HIGH>;
+			interrupt-names = "error",
+					  "ch0", "ch1", "ch2", "ch3",
+					  "ch4", "ch5", "ch6", "ch7",
+					  "ch8", "ch9", "ch10", "ch11",
+					  "ch12", "ch13", "ch14", "ch15";
+			clocks = <&cpg CPG_MOD 219>;
+			clock-names = "fck";
+			power-domains = <&sysc R8A774E1_PD_ALWAYS_ON>;
+			resets = <&cpg 219>;
+			#dma-cells = <1>;
+			dma-channels = <16>;
+			iommus = <&ipmmu_ds0 0>, <&ipmmu_ds0 1>,
+				 <&ipmmu_ds0 2>, <&ipmmu_ds0 3>,
+				 <&ipmmu_ds0 4>, <&ipmmu_ds0 5>,
+				 <&ipmmu_ds0 6>, <&ipmmu_ds0 7>,
+				 <&ipmmu_ds0 8>, <&ipmmu_ds0 9>,
+				 <&ipmmu_ds0 10>, <&ipmmu_ds0 11>,
+				 <&ipmmu_ds0 12>, <&ipmmu_ds0 13>,
+				 <&ipmmu_ds0 14>, <&ipmmu_ds0 15>;
+		};
+
+		dmac1: dma-controller@e7300000 {
+			compatible = "renesas,dmac-r8a774e1",
+				     "renesas,rcar-dmac";
+			reg = <0 0xe7300000 0 0x10000>;
+			interrupts = <GIC_SPI 220 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 216 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 217 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 218 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 219 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 308 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 309 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 310 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 311 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 312 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 313 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 314 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 315 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 316 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 317 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 318 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 319 IRQ_TYPE_LEVEL_HIGH>;
+			interrupt-names = "error",
+					  "ch0", "ch1", "ch2", "ch3",
+					  "ch4", "ch5", "ch6", "ch7",
+					  "ch8", "ch9", "ch10", "ch11",
+					  "ch12", "ch13", "ch14", "ch15";
+			clocks = <&cpg CPG_MOD 218>;
+			clock-names = "fck";
+			power-domains = <&sysc R8A774E1_PD_ALWAYS_ON>;
+			resets = <&cpg 218>;
+			#dma-cells = <1>;
+			dma-channels = <16>;
+			iommus = <&ipmmu_ds1 0>, <&ipmmu_ds1 1>,
+				 <&ipmmu_ds1 2>, <&ipmmu_ds1 3>,
+				 <&ipmmu_ds1 4>, <&ipmmu_ds1 5>,
+				 <&ipmmu_ds1 6>, <&ipmmu_ds1 7>,
+				 <&ipmmu_ds1 8>, <&ipmmu_ds1 9>,
+				 <&ipmmu_ds1 10>, <&ipmmu_ds1 11>,
+				 <&ipmmu_ds1 12>, <&ipmmu_ds1 13>,
+				 <&ipmmu_ds1 14>, <&ipmmu_ds1 15>;
+		};
+
+		dmac2: dma-controller@e7310000 {
+			compatible = "renesas,dmac-r8a774e1",
+				     "renesas,rcar-dmac";
+			reg = <0 0xe7310000 0 0x10000>;
+			interrupts = <GIC_SPI 416 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 417 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 418 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 419 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 420 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 421 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 422 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 423 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 424 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 425 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 426 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 427 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 428 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 429 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 430 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 431 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 397 IRQ_TYPE_LEVEL_HIGH>;
+			interrupt-names = "error",
+					  "ch0", "ch1", "ch2", "ch3",
+					  "ch4", "ch5", "ch6", "ch7",
+					  "ch8", "ch9", "ch10", "ch11",
+					  "ch12", "ch13", "ch14", "ch15";
+			clocks = <&cpg CPG_MOD 217>;
+			clock-names = "fck";
+			power-domains = <&sysc R8A774E1_PD_ALWAYS_ON>;
+			resets = <&cpg 217>;
+			#dma-cells = <1>;
+			dma-channels = <16>;
+			iommus = <&ipmmu_ds1 16>, <&ipmmu_ds1 17>,
+				 <&ipmmu_ds1 18>, <&ipmmu_ds1 19>,
+				 <&ipmmu_ds1 20>, <&ipmmu_ds1 21>,
+				 <&ipmmu_ds1 22>, <&ipmmu_ds1 23>,
+				 <&ipmmu_ds1 24>, <&ipmmu_ds1 25>,
+				 <&ipmmu_ds1 26>, <&ipmmu_ds1 27>,
+				 <&ipmmu_ds1 28>, <&ipmmu_ds1 29>,
+				 <&ipmmu_ds1 30>, <&ipmmu_ds1 31>;
+		};
+
 		ipmmu_ds0: iommu@e6740000 {
 			compatible = "renesas,ipmmu-r8a774e1";
 			reg = <0 0xe6740000 0 0x1000>;
-- 
2.17.1


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

* [PATCH 6/9] dt-bindings: gpio: renesas,rcar-gpio: Add r8a774e1 support
  2020-07-13 21:35 [PATCH 0/9] R8A774E1 SoC enable support for IPMMU, DMAC, GPIO and AVB Lad Prabhakar
                   ` (4 preceding siblings ...)
  2020-07-13 21:35 ` [PATCH 5/9] arm64: dts: renesas: r8a774e1: Add SYS-DMAC device nodes Lad Prabhakar
@ 2020-07-13 21:35 ` Lad Prabhakar
  2020-07-14  8:00   ` Geert Uytterhoeven
                     ` (2 more replies)
  2020-07-13 21:35 ` [PATCH 7/9] arm64: dts: renesas: r8a774e1: Add GPIO device nodes Lad Prabhakar
                   ` (2 subsequent siblings)
  8 siblings, 3 replies; 33+ messages in thread
From: Lad Prabhakar @ 2020-07-13 21:35 UTC (permalink / raw)
  To: Geert Uytterhoeven, Vinod Koul, Rob Herring, Linus Walleij,
	Bartosz Golaszewski, Joerg Roedel, Sergei Shtylyov,
	David S. Miller, Jakub Kicinski
  Cc: Magnus Damm, Yoshihiro Shimoda, dmaengine, devicetree,
	linux-gpio, iommu, netdev, linux-renesas-soc, linux-kernel,
	Prabhakar

Document Renesas RZ/G2H (R8A774E1) GPIO blocks compatibility within the
relevant dt-bindings.

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
---
 Documentation/devicetree/bindings/gpio/renesas,rcar-gpio.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/gpio/renesas,rcar-gpio.yaml b/Documentation/devicetree/bindings/gpio/renesas,rcar-gpio.yaml
index 397d9383d15a..a9a9dd0854e7 100644
--- a/Documentation/devicetree/bindings/gpio/renesas,rcar-gpio.yaml
+++ b/Documentation/devicetree/bindings/gpio/renesas,rcar-gpio.yaml
@@ -37,6 +37,7 @@ properties:
              - renesas,gpio-r8a774a1     # RZ/G2M
              - renesas,gpio-r8a774b1     # RZ/G2N
              - renesas,gpio-r8a774c0     # RZ/G2E
+             - renesas,gpio-r8a774e1     # RZ/G2H
              - renesas,gpio-r8a7795      # R-Car H3
              - renesas,gpio-r8a7796      # R-Car M3-W
              - renesas,gpio-r8a77961     # R-Car M3-W+
-- 
2.17.1


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

* [PATCH 7/9] arm64: dts: renesas: r8a774e1: Add GPIO device nodes
  2020-07-13 21:35 [PATCH 0/9] R8A774E1 SoC enable support for IPMMU, DMAC, GPIO and AVB Lad Prabhakar
                   ` (5 preceding siblings ...)
  2020-07-13 21:35 ` [PATCH 6/9] dt-bindings: gpio: renesas,rcar-gpio: Add r8a774e1 support Lad Prabhakar
@ 2020-07-13 21:35 ` Lad Prabhakar
  2020-07-15 10:21   ` Geert Uytterhoeven
  2020-07-13 21:35 ` [PATCH 8/9] dt-bindings: net: renesas,ravb: Add support for r8a774e1 SoC Lad Prabhakar
  2020-07-13 21:35 ` [PATCH 9/9] arm64: dts: renesas: r8a774e1: Add Ethernet AVB node Lad Prabhakar
  8 siblings, 1 reply; 33+ messages in thread
From: Lad Prabhakar @ 2020-07-13 21:35 UTC (permalink / raw)
  To: Geert Uytterhoeven, Vinod Koul, Rob Herring, Linus Walleij,
	Bartosz Golaszewski, Joerg Roedel, Sergei Shtylyov,
	David S. Miller, Jakub Kicinski
  Cc: Magnus Damm, Yoshihiro Shimoda, dmaengine, devicetree,
	linux-gpio, iommu, netdev, linux-renesas-soc, linux-kernel,
	Prabhakar

From: Marian-Cristian Rotariu <marian-cristian.rotariu.rb@bp.renesas.com>

Add GPIO device nodes to the DT of the r8a774e1 SoC.

Signed-off-by: Marian-Cristian Rotariu <marian-cristian.rotariu.rb@bp.renesas.com>
Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
---
 arch/arm64/boot/dts/renesas/r8a774e1.dtsi | 73 +++++++++++++++++------
 1 file changed, 56 insertions(+), 17 deletions(-)

diff --git a/arch/arm64/boot/dts/renesas/r8a774e1.dtsi b/arch/arm64/boot/dts/renesas/r8a774e1.dtsi
index 9e05d134a295..599703d87b56 100644
--- a/arch/arm64/boot/dts/renesas/r8a774e1.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a774e1.dtsi
@@ -246,84 +246,123 @@
 		};
 
 		gpio0: gpio@e6050000 {
+			compatible = "renesas,gpio-r8a774e1",
+				     "renesas,rcar-gen3-gpio";
 			reg = <0 0xe6050000 0 0x50>;
+			interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
 			#gpio-cells = <2>;
 			gpio-controller;
+			gpio-ranges = <&pfc 0 0 16>;
 			#interrupt-cells = <2>;
 			interrupt-controller;
-
-			/* placeholder */
+			clocks = <&cpg CPG_MOD 912>;
+			power-domains = <&sysc R8A774E1_PD_ALWAYS_ON>;
+			resets = <&cpg 912>;
 		};
 
 		gpio1: gpio@e6051000 {
+			compatible = "renesas,gpio-r8a774e1",
+				     "renesas,rcar-gen3-gpio";
 			reg = <0 0xe6051000 0 0x50>;
+			interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
 			#gpio-cells = <2>;
 			gpio-controller;
+			gpio-ranges = <&pfc 0 32 29>;
 			#interrupt-cells = <2>;
 			interrupt-controller;
-
-			/* placeholder */
+			clocks = <&cpg CPG_MOD 911>;
+			power-domains = <&sysc R8A774E1_PD_ALWAYS_ON>;
+			resets = <&cpg 911>;
 		};
 
 		gpio2: gpio@e6052000 {
+			compatible = "renesas,gpio-r8a774e1",
+				     "renesas,rcar-gen3-gpio";
 			reg = <0 0xe6052000 0 0x50>;
+			interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
 			#gpio-cells = <2>;
 			gpio-controller;
+			gpio-ranges = <&pfc 0 64 15>;
 			#interrupt-cells = <2>;
 			interrupt-controller;
-
-			/* placeholder */
+			clocks = <&cpg CPG_MOD 910>;
+			power-domains = <&sysc R8A774E1_PD_ALWAYS_ON>;
+			resets = <&cpg 910>;
 		};
 
 		gpio3: gpio@e6053000 {
-			/* placeholder */
+			compatible = "renesas,gpio-r8a774e1",
+				     "renesas,rcar-gen3-gpio";
 			reg = <0 0xe6053000 0 0x50>;
+			interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
 			#gpio-cells = <2>;
 			gpio-controller;
+			gpio-ranges = <&pfc 0 96 16>;
 			#interrupt-cells = <2>;
 			interrupt-controller;
-
-			/* placeholder */
+			clocks = <&cpg CPG_MOD 909>;
+			power-domains = <&sysc R8A774E1_PD_ALWAYS_ON>;
+			resets = <&cpg 909>;
 		};
 
 		gpio4: gpio@e6054000 {
+			compatible = "renesas,gpio-r8a774e1",
+				     "renesas,rcar-gen3-gpio";
 			reg = <0 0xe6054000 0 0x50>;
+			interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
 			#gpio-cells = <2>;
 			gpio-controller;
+			gpio-ranges = <&pfc 0 128 18>;
 			#interrupt-cells = <2>;
 			interrupt-controller;
-
-			/* placeholder */
+			clocks = <&cpg CPG_MOD 908>;
+			power-domains = <&sysc R8A774E1_PD_ALWAYS_ON>;
+			resets = <&cpg 908>;
 		};
 
 		gpio5: gpio@e6055000 {
+			compatible = "renesas,gpio-r8a774e1",
+				     "renesas,rcar-gen3-gpio";
 			reg = <0 0xe6055000 0 0x50>;
+			interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
 			#gpio-cells = <2>;
 			gpio-controller;
+			gpio-ranges = <&pfc 0 160 26>;
 			#interrupt-cells = <2>;
 			interrupt-controller;
-
-			/* placeholder */
+			clocks = <&cpg CPG_MOD 907>;
+			power-domains = <&sysc R8A774E1_PD_ALWAYS_ON>;
+			resets = <&cpg 907>;
 		};
 
 		gpio6: gpio@e6055400 {
+			compatible = "renesas,gpio-r8a774e1",
+				     "renesas,rcar-gen3-gpio";
 			reg = <0 0xe6055400 0 0x50>;
+			interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
 			#gpio-cells = <2>;
 			gpio-controller;
+			gpio-ranges = <&pfc 0 192 32>;
 			#interrupt-cells = <2>;
 			interrupt-controller;
-
-			/* placeholder */
+			clocks = <&cpg CPG_MOD 906>;
+			power-domains = <&sysc R8A774E1_PD_ALWAYS_ON>;
+			resets = <&cpg 906>;
 		};
 
 		gpio7: gpio@e6055800 {
+			compatible = "renesas,gpio-r8a774e1",
+				     "renesas,rcar-gen3-gpio";
 			reg = <0 0xe6055800 0 0x50>;
+			interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
 			#gpio-cells = <2>;
 			gpio-controller;
+			gpio-ranges = <&pfc 0 224 4>;
 			#interrupt-cells = <2>;
 			interrupt-controller;
-
-			/* placeholder */
+			clocks = <&cpg CPG_MOD 905>;
+			power-domains = <&sysc R8A774E1_PD_ALWAYS_ON>;
+			resets = <&cpg 905>;
 		};
 
 		pfc: pin-controller@e6060000 {
-- 
2.17.1


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

* [PATCH 8/9] dt-bindings: net: renesas,ravb: Add support for r8a774e1 SoC
  2020-07-13 21:35 [PATCH 0/9] R8A774E1 SoC enable support for IPMMU, DMAC, GPIO and AVB Lad Prabhakar
                   ` (6 preceding siblings ...)
  2020-07-13 21:35 ` [PATCH 7/9] arm64: dts: renesas: r8a774e1: Add GPIO device nodes Lad Prabhakar
@ 2020-07-13 21:35 ` Lad Prabhakar
  2020-07-14  7:34   ` Sergei Shtylyov
                     ` (3 more replies)
  2020-07-13 21:35 ` [PATCH 9/9] arm64: dts: renesas: r8a774e1: Add Ethernet AVB node Lad Prabhakar
  8 siblings, 4 replies; 33+ messages in thread
From: Lad Prabhakar @ 2020-07-13 21:35 UTC (permalink / raw)
  To: Geert Uytterhoeven, Vinod Koul, Rob Herring, Linus Walleij,
	Bartosz Golaszewski, Joerg Roedel, Sergei Shtylyov,
	David S. Miller, Jakub Kicinski
  Cc: Magnus Damm, Yoshihiro Shimoda, dmaengine, devicetree,
	linux-gpio, iommu, netdev, linux-renesas-soc, linux-kernel,
	Prabhakar

From: Marian-Cristian Rotariu <marian-cristian.rotariu.rb@bp.renesas.com>

Document RZ/G2H (R8A774E1) SoC bindings.

Signed-off-by: Marian-Cristian Rotariu <marian-cristian.rotariu.rb@bp.renesas.com>
Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
---
 Documentation/devicetree/bindings/net/renesas,ravb.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/net/renesas,ravb.txt b/Documentation/devicetree/bindings/net/renesas,ravb.txt
index 032b76f14f4f..9119f1caf391 100644
--- a/Documentation/devicetree/bindings/net/renesas,ravb.txt
+++ b/Documentation/devicetree/bindings/net/renesas,ravb.txt
@@ -21,6 +21,7 @@ Required properties:
       - "renesas,etheravb-r8a774a1" for the R8A774A1 SoC.
       - "renesas,etheravb-r8a774b1" for the R8A774B1 SoC.
       - "renesas,etheravb-r8a774c0" for the R8A774C0 SoC.
+      - "renesas,etheravb-r8a774e1" for the R8A774E1 SoC.
       - "renesas,etheravb-r8a7795" for the R8A7795 SoC.
       - "renesas,etheravb-r8a7796" for the R8A77960 SoC.
       - "renesas,etheravb-r8a77961" for the R8A77961 SoC.
-- 
2.17.1


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

* [PATCH 9/9] arm64: dts: renesas: r8a774e1: Add Ethernet AVB node
  2020-07-13 21:35 [PATCH 0/9] R8A774E1 SoC enable support for IPMMU, DMAC, GPIO and AVB Lad Prabhakar
                   ` (7 preceding siblings ...)
  2020-07-13 21:35 ` [PATCH 8/9] dt-bindings: net: renesas,ravb: Add support for r8a774e1 SoC Lad Prabhakar
@ 2020-07-13 21:35 ` Lad Prabhakar
  2020-07-15 10:21   ` Geert Uytterhoeven
  8 siblings, 1 reply; 33+ messages in thread
From: Lad Prabhakar @ 2020-07-13 21:35 UTC (permalink / raw)
  To: Geert Uytterhoeven, Vinod Koul, Rob Herring, Linus Walleij,
	Bartosz Golaszewski, Joerg Roedel, Sergei Shtylyov,
	David S. Miller, Jakub Kicinski
  Cc: Magnus Damm, Yoshihiro Shimoda, dmaengine, devicetree,
	linux-gpio, iommu, netdev, linux-renesas-soc, linux-kernel,
	Prabhakar

From: Marian-Cristian Rotariu <marian-cristian.rotariu.rb@bp.renesas.com>

This patch adds the SoC specific part of the Ethernet AVB
device tree node.

Signed-off-by: Marian-Cristian Rotariu <marian-cristian.rotariu.rb@bp.renesas.com>
Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
---
 arch/arm64/boot/dts/renesas/r8a774e1.dtsi | 41 +++++++++++++++++++++--
 1 file changed, 39 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/boot/dts/renesas/r8a774e1.dtsi b/arch/arm64/boot/dts/renesas/r8a774e1.dtsi
index 599703d87b56..caca319aafcf 100644
--- a/arch/arm64/boot/dts/renesas/r8a774e1.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a774e1.dtsi
@@ -695,12 +695,49 @@
 		};
 
 		avb: ethernet@e6800000 {
+			compatible = "renesas,etheravb-r8a774e1",
+				     "renesas,etheravb-rcar-gen3";
 			reg = <0 0xe6800000 0 0x800>;
+			interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
+			interrupt-names = "ch0", "ch1", "ch2", "ch3",
+					  "ch4", "ch5", "ch6", "ch7",
+					  "ch8", "ch9", "ch10", "ch11",
+					  "ch12", "ch13", "ch14", "ch15",
+					  "ch16", "ch17", "ch18", "ch19",
+					  "ch20", "ch21", "ch22", "ch23",
+					  "ch24";
+			clocks = <&cpg CPG_MOD 812>;
+			power-domains = <&sysc R8A774E1_PD_ALWAYS_ON>;
+			resets = <&cpg 812>;
+			phy-mode = "rgmii";
+			iommus = <&ipmmu_ds0 16>;
 			#address-cells = <1>;
 			#size-cells = <0>;
 			status = "disabled";
-
-			/* placeholder */
 		};
 
 		can0: can@e6c30000 {
-- 
2.17.1


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

* Re: [PATCH 8/9] dt-bindings: net: renesas,ravb: Add support for r8a774e1 SoC
  2020-07-13 21:35 ` [PATCH 8/9] dt-bindings: net: renesas,ravb: Add support for r8a774e1 SoC Lad Prabhakar
@ 2020-07-14  7:34   ` Sergei Shtylyov
  2020-07-14  8:01   ` Geert Uytterhoeven
                     ` (2 subsequent siblings)
  3 siblings, 0 replies; 33+ messages in thread
From: Sergei Shtylyov @ 2020-07-14  7:34 UTC (permalink / raw)
  To: Lad Prabhakar, Geert Uytterhoeven, Vinod Koul, Rob Herring,
	Linus Walleij, Bartosz Golaszewski, Joerg Roedel,
	David S. Miller, Jakub Kicinski
  Cc: Magnus Damm, Yoshihiro Shimoda, dmaengine, devicetree,
	linux-gpio, iommu, netdev, linux-renesas-soc, linux-kernel,
	Prabhakar

Hello!

On 14.07.2020 0:35, Lad Prabhakar wrote:

> From: Marian-Cristian Rotariu <marian-cristian.rotariu.rb@bp.renesas.com>
> 
> Document RZ/G2H (R8A774E1) SoC bindings.
> 
> Signed-off-by: Marian-Cristian Rotariu <marian-cristian.rotariu.rb@bp.renesas.com>
> Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>

Reviewed-by: Sergei Shtylyov <sergei.shtylyov@gmail.com>

[...]

MBR, Sergei

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

* Re: [PATCH 1/9] dt-bindings: iommu: renesas,ipmmu-vmsa: Add r8a774e1 support
  2020-07-13 21:35 ` [PATCH 1/9] dt-bindings: iommu: renesas,ipmmu-vmsa: Add r8a774e1 support Lad Prabhakar
@ 2020-07-14  7:35   ` Geert Uytterhoeven
  2020-07-21  2:02   ` Rob Herring
  1 sibling, 0 replies; 33+ messages in thread
From: Geert Uytterhoeven @ 2020-07-14  7:35 UTC (permalink / raw)
  To: Lad Prabhakar
  Cc: Vinod Koul, Rob Herring, Linus Walleij, Bartosz Golaszewski,
	Joerg Roedel, Sergei Shtylyov, David S. Miller, Jakub Kicinski,
	Magnus Damm, Yoshihiro Shimoda, dmaengine,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	open list:GPIO SUBSYSTEM, Linux IOMMU, netdev, Linux-Renesas,
	Linux Kernel Mailing List, Prabhakar

Hi Prabhakar,

On Mon, Jul 13, 2020 at 11:35 PM Lad Prabhakar
<prabhakar.mahadev-lad.rj@bp.renesas.com> wrote:
> Document RZ/G2H (R8A774E1) SoC bindings.
>
> Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>

Thanks for your patch!

> --- a/Documentation/devicetree/bindings/iommu/renesas,ipmmu-vmsa.yaml
> +++ b/Documentation/devicetree/bindings/iommu/renesas,ipmmu-vmsa.yaml
> @@ -32,6 +32,7 @@ properties:
>            - enum:
>                - renesas,ipmmu-r8a774a1 # RZ/G2M
>                - renesas,ipmmu-r8a774b1 # RZ/G2N
> +              - renesas,ipmmu-r8a774e1 # RZ/G2H
>                - renesas,ipmmu-r8a774c0 # RZ/G2E

Please preserve alphabetical sort order.

>                - renesas,ipmmu-r8a7795  # R-Car H3
>                - renesas,ipmmu-r8a7796  # R-Car M3-W

With the above fixed:
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>

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] 33+ messages in thread

* Re: [PATCH 4/9] dt-bindings: dma: renesas,rcar-dmac: Document R8A774E1 bindings
  2020-07-13 21:35 ` [PATCH 4/9] dt-bindings: dma: renesas,rcar-dmac: Document R8A774E1 bindings Lad Prabhakar
@ 2020-07-14  7:39   ` Geert Uytterhoeven
  2020-07-15 10:40   ` Vinod Koul
  1 sibling, 0 replies; 33+ messages in thread
From: Geert Uytterhoeven @ 2020-07-14  7:39 UTC (permalink / raw)
  To: Lad Prabhakar
  Cc: Vinod Koul, Rob Herring, Linus Walleij, Bartosz Golaszewski,
	Joerg Roedel, Sergei Shtylyov, David S. Miller, Jakub Kicinski,
	Magnus Damm, Yoshihiro Shimoda, dmaengine,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	open list:GPIO SUBSYSTEM, Linux IOMMU, netdev, Linux-Renesas,
	Linux Kernel Mailing List, Prabhakar

On Mon, Jul 13, 2020 at 11:35 PM Lad Prabhakar
<prabhakar.mahadev-lad.rj@bp.renesas.com> wrote:
> Renesas RZ/G2H (R8A774E1) SoC also has the R-Car gen3 compatible
> DMA controllers, therefore document RZ/G2H specific bindings.
>
> Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>

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] 33+ messages in thread

* Re: [PATCH 6/9] dt-bindings: gpio: renesas,rcar-gpio: Add r8a774e1 support
  2020-07-13 21:35 ` [PATCH 6/9] dt-bindings: gpio: renesas,rcar-gpio: Add r8a774e1 support Lad Prabhakar
@ 2020-07-14  8:00   ` Geert Uytterhoeven
  2020-07-21  2:02   ` Rob Herring
  2020-08-27 16:39   ` Lad, Prabhakar
  2 siblings, 0 replies; 33+ messages in thread
From: Geert Uytterhoeven @ 2020-07-14  8:00 UTC (permalink / raw)
  To: Lad Prabhakar
  Cc: Vinod Koul, Rob Herring, Linus Walleij, Bartosz Golaszewski,
	Joerg Roedel, Sergei Shtylyov, David S. Miller, Jakub Kicinski,
	Magnus Damm, Yoshihiro Shimoda, dmaengine,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	open list:GPIO SUBSYSTEM, Linux IOMMU, netdev, Linux-Renesas,
	Linux Kernel Mailing List, Prabhakar

On Mon, Jul 13, 2020 at 11:35 PM Lad Prabhakar
<prabhakar.mahadev-lad.rj@bp.renesas.com> wrote:
> Document Renesas RZ/G2H (R8A774E1) GPIO blocks compatibility within the
> relevant dt-bindings.
>
> Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>

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] 33+ messages in thread

* Re: [PATCH 8/9] dt-bindings: net: renesas,ravb: Add support for r8a774e1 SoC
  2020-07-13 21:35 ` [PATCH 8/9] dt-bindings: net: renesas,ravb: Add support for r8a774e1 SoC Lad Prabhakar
  2020-07-14  7:34   ` Sergei Shtylyov
@ 2020-07-14  8:01   ` Geert Uytterhoeven
  2020-07-21  2:03   ` Rob Herring
  2020-08-27 10:28   ` Lad, Prabhakar
  3 siblings, 0 replies; 33+ messages in thread
From: Geert Uytterhoeven @ 2020-07-14  8:01 UTC (permalink / raw)
  To: Lad Prabhakar
  Cc: Vinod Koul, Rob Herring, Linus Walleij, Bartosz Golaszewski,
	Joerg Roedel, Sergei Shtylyov, David S. Miller, Jakub Kicinski,
	Magnus Damm, Yoshihiro Shimoda, dmaengine,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	open list:GPIO SUBSYSTEM, Linux IOMMU, netdev, Linux-Renesas,
	Linux Kernel Mailing List, Prabhakar

On Mon, Jul 13, 2020 at 11:36 PM Lad Prabhakar
<prabhakar.mahadev-lad.rj@bp.renesas.com> wrote:
> From: Marian-Cristian Rotariu <marian-cristian.rotariu.rb@bp.renesas.com>
>
> Document RZ/G2H (R8A774E1) SoC bindings.
>
> Signed-off-by: Marian-Cristian Rotariu <marian-cristian.rotariu.rb@bp.renesas.com>
> Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>

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] 33+ messages in thread

* Re: [PATCH 2/9] iommu/ipmmu-vmsa: Hook up R8A774E1 DT matching code
  2020-07-13 21:35 ` [PATCH 2/9] iommu/ipmmu-vmsa: Hook up R8A774E1 DT matching code Lad Prabhakar
@ 2020-07-14  8:09   ` Geert Uytterhoeven
  2020-07-14  8:30     ` Lad, Prabhakar
  0 siblings, 1 reply; 33+ messages in thread
From: Geert Uytterhoeven @ 2020-07-14  8:09 UTC (permalink / raw)
  To: Lad Prabhakar
  Cc: Vinod Koul, Rob Herring, Linus Walleij, Bartosz Golaszewski,
	Joerg Roedel, Sergei Shtylyov, David S. Miller, Jakub Kicinski,
	Magnus Damm, Yoshihiro Shimoda, dmaengine,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	open list:GPIO SUBSYSTEM, Linux IOMMU, netdev, Linux-Renesas,
	Linux Kernel Mailing List, Prabhakar

Hi Prabhakar,

On Mon, Jul 13, 2020 at 11:35 PM Lad Prabhakar
<prabhakar.mahadev-lad.rj@bp.renesas.com> wrote:
> From: Marian-Cristian Rotariu <marian-cristian.rotariu.rb@bp.renesas.com>
>
> Add support for RZ/G2H (R8A774E1) SoC IPMMUs.
>
> Signed-off-by: Marian-Cristian Rotariu <marian-cristian.rotariu.rb@bp.renesas.com>
> Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>

Thanks for your patch!

> --- a/drivers/iommu/ipmmu-vmsa.c
> +++ b/drivers/iommu/ipmmu-vmsa.c
> @@ -751,6 +751,7 @@ static const struct soc_device_attribute soc_rcar_gen3[] = {
>  static const struct soc_device_attribute soc_rcar_gen3_whitelist[] = {
>         { .soc_id = "r8a774b1", },
>         { .soc_id = "r8a774c0", },
> +       { .soc_id = "r8a774e1", },

Adding an entry to soc_rcar_gen3_whitelist[] doesn't do anything, unless
you also add the same entry to soc_rcar_gen3[].

>         { .soc_id = "r8a7795", .revision = "ES3.*" },
>         { .soc_id = "r8a77961", },
>         { .soc_id = "r8a77965", },
> @@ -963,6 +964,9 @@ static const struct of_device_id ipmmu_of_ids[] = {
>         }, {
>                 .compatible = "renesas,ipmmu-r8a774c0",
>                 .data = &ipmmu_features_rcar_gen3,
> +       }, {
> +               .compatible = "renesas,ipmmu-r8a774e1",
> +               .data = &ipmmu_features_rcar_gen3,
>         }, {
>                 .compatible = "renesas,ipmmu-r8a7795",
>                 .data = &ipmmu_features_rcar_gen3,

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] 33+ messages in thread

* Re: [PATCH 2/9] iommu/ipmmu-vmsa: Hook up R8A774E1 DT matching code
  2020-07-14  8:09   ` Geert Uytterhoeven
@ 2020-07-14  8:30     ` Lad, Prabhakar
  2020-07-14  8:41       ` Geert Uytterhoeven
  0 siblings, 1 reply; 33+ messages in thread
From: Lad, Prabhakar @ 2020-07-14  8:30 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Lad Prabhakar, Vinod Koul, Rob Herring, Linus Walleij,
	Bartosz Golaszewski, Joerg Roedel, Sergei Shtylyov,
	David S. Miller, Jakub Kicinski, Magnus Damm, Yoshihiro Shimoda,
	dmaengine,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	open list:GPIO SUBSYSTEM, Linux IOMMU, netdev, Linux-Renesas,
	Linux Kernel Mailing List


[-- Attachment #1: Type: text/plain, Size: 2283 bytes --]

Hi Geert,

Thank you for the review.

On Tue, Jul 14, 2020 at 9:09 AM Geert Uytterhoeven <geert@linux-m68k.org> wrote:
>
> Hi Prabhakar,
>
> On Mon, Jul 13, 2020 at 11:35 PM Lad Prabhakar
> <prabhakar.mahadev-lad.rj@bp.renesas.com> wrote:
> > From: Marian-Cristian Rotariu <marian-cristian.rotariu.rb@bp.renesas.com>
> >
> > Add support for RZ/G2H (R8A774E1) SoC IPMMUs.
> >
> > Signed-off-by: Marian-Cristian Rotariu <marian-cristian.rotariu.rb@bp.renesas.com>
> > Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
>
> Thanks for your patch!
>
> > --- a/drivers/iommu/ipmmu-vmsa.c
> > +++ b/drivers/iommu/ipmmu-vmsa.c
> > @@ -751,6 +751,7 @@ static const struct soc_device_attribute soc_rcar_gen3[] = {
> >  static const struct soc_device_attribute soc_rcar_gen3_whitelist[] = {
> >         { .soc_id = "r8a774b1", },
> >         { .soc_id = "r8a774c0", },
> > +       { .soc_id = "r8a774e1", },
>
> Adding an entry to soc_rcar_gen3_whitelist[] doesn't do anything, unless
> you also add the same entry to soc_rcar_gen3[].
>
I think the comment "For R-Car Gen3 use a white list to opt-in slave
devices." is misleading.  Booting through the kernel I do see iommu
groups (attached is the logs). Also the recent patch to add
"r8a77961" just adds to soc_rcar_gen3_whitelist.

Cheers,
--Prabhakar

> >         { .soc_id = "r8a7795", .revision = "ES3.*" },
> >         { .soc_id = "r8a77961", },
> >         { .soc_id = "r8a77965", },
> > @@ -963,6 +964,9 @@ static const struct of_device_id ipmmu_of_ids[] = {
> >         }, {
> >                 .compatible = "renesas,ipmmu-r8a774c0",
> >                 .data = &ipmmu_features_rcar_gen3,
> > +       }, {
> > +               .compatible = "renesas,ipmmu-r8a774e1",
> > +               .data = &ipmmu_features_rcar_gen3,
> >         }, {
> >                 .compatible = "renesas,ipmmu-r8a7795",
> >                 .data = &ipmmu_features_rcar_gen3,
>
> 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

[-- Attachment #2: g2h_log.txt --]
[-- Type: text/plain, Size: 27847 bytes --]

[    0.000149] NOTICE:  BL2: RZ G2H Initial Program Loader(CA57)
[    0.004417] NOTICE:  BL2: Initial Program Loader(Rev.2.0.6)
[    0.009949] NOTICE:  BL2: PRR is RZG G2H Ver.3.0
[    0.014530] NOTICE:  BL2: Board is HiHope RZ/G2H Rev.4.0
[    0.019796] NOTICE:  BL2: Boot device is QSPI Flash(40MHz)
[    0.025236] NOTICE:  BL2: LCM state is CM
[    0.029203] NOTICE:  BL2: CH0: 0x400000000 - 0x47fffffff, 2 GiB
[    0.035071] NOTICE:  BL2: CH1: 0x500000000 - 0x57fffffff, 2 GiB
[    0.040957] NOTICE:  BL2: DDR3200(rev.0.40)
[    0.052413] NOTICE:  BL2: [COLD_BOOT]
[    0.058356] NOTICE:  BL2: DRAM Split is 2ch(DDR 3)
[    0.061655] NOTICE:  BL2: QoS is default setting(rev.0.07)
[    0.067098] NOTICE:  BL2: DRAM refresh interval 1.95 usec
[    0.072455] NOTICE:  BL2: Periodic Write DQ Training
[    0.077485] NOTICE:  BL2: Lossy Decomp areas
[    0.081614] NOTICE:       Entry 0: DCMPAREACRAx:0x80000540 DCMPAREACRBx:0x570
[    0.088698] NOTICE:       Entry 1: DCMPAREACRAx:0x40000000 DCMPAREACRBx:0x0
[    0.095611] NOTICE:       Entry 2: DCMPAREACRAx:0x20000000 DCMPAREACRBx:0x0
[    0.102525] NOTICE:  BL2: v1.5(release):af9f429-dirty
[    0.107534] NOTICE:  BL2: Built : 13:06:47, Jun 11 2020
[    0.112722] NOTICE:  BL2: Normal boot
[    0.116360] NOTICE:  BL2: dst=0xe6321100 src=0x8180000 len=512(0x200)
[    0.122850] NOTICE:  BL2: dst=0x43f00000 src=0x8180400 len=6144(0x1800)
[    0.130588] NOTICE:  BL2: dst=0x44000000 src=0x81c0000 len=65536(0x10000)
[    0.149490] NOTICE:  BL2: dst=0x50000000 src=0x8300000 len=1048576(0x100000)
[    0.369751] NOTICE:  BL2: Booting BL31


U-Boot 2018.09 (Jun 11 2020 - 13:06:59 +0000)

CPU: Renesas Electronics R8A774E1 rev 3.0
Model: Hoperun Technology HiHope RZ/G2H platform (hihope-rzg2h)
DRAM:  3.9 GiB
Bank #0: 0x048000000 - 0x0bfffffff, 1.9 GiB
Bank #1: 0x500000000 - 0x57fffffff, 2 GiB

Watchdog: Not found by seq!
WDT:   watchdog@e6020000
Watchdog: Started!
MMC:   sd@ee100000: 0, sd@ee160000: 1
Loading Environment from MMC... OK
In:    serial@e6e88000
Out:   serial@e6e88000
Err:   serial@e6e88000
Net:   eth0: ethernet@e6800000
Hit any key to stop autoboot:  0 
ethernet@e6800000 Waiting for PHY auto negotiation to complete... done
BOOTP broadcast 1
BOOTP broadcast 2
BOOTP broadcast 3
BOOTP broadcast 4
DHCP client bound to address 192.168.10.136 (1798 ms)
Using ethernet@e6800000 device
TFTP from server 192.168.10.1; our IP address is 192.168.10.136
Filename 'g2h/Image.gz'.
Load address: 0x4a080000
Loading: T #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #########
         971.7 KiB/s
done
Bytes transferred = 8705356 (84d54c hex)
Using ethernet@e6800000 device
TFTP from server 192.168.10.1; our IP address is 192.168.10.136
Filename 'g2h/r8a774e1-hihope-rzg2h-ex.dtb'.
Load address: 0x48000000
Loading: ##
         1.5 MiB/s
done
Bytes transferred = 22461 (57bd hex)
Uncompressed size: 20603392 = 0x13A6200
## Flattened Device Tree blob at 48000000
   Booting using the fdt blob at 0x48000000
   Using Device Tree in place at 0000000048000000, end 00000000480087bc

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x411fd073]
[    0.000000] Linux version 5.8.0-rc4-next-20200707-00032-g98ba4606caf0 (prasmi@prasmi) (aarch64-linux-gnu-gcc (Linaro GCC 7.5-2019.12) 7.5.0, GNU ld (Linaro_Binutils-2019.12) 2.28.2.20170706) #8 SMP PREEM0
[    0.000000] Machine model: HopeRun HiHope RZ/G2H with sub board
[    0.000000] efi: UEFI not found.
[    0.000000] cma: Reserved 32 MiB at 0x00000000be000000
[    0.000000] NUMA: No NUMA configuration found
[    0.000000] NUMA: Faking a node at [mem 0x0000000048000000-0x000000057fffffff]
[    0.000000] NUMA: NODE_DATA [mem 0x57f81e100-0x57f81ffff]
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000048000000-0x000000007fffffff]
[    0.000000]   DMA32    [mem 0x0000000080000000-0x00000000ffffffff]
[    0.000000]   Normal   [mem 0x0000000100000000-0x000000057fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000048000000-0x00000000bfffffff]
[    0.000000]   node   0: [mem 0x0000000500000000-0x000000057fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000048000000-0x000000057fffffff]
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.1 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.1
[    0.000000] percpu: Embedded 22 pages/cpu s52952 r8192 d28968 u90112
[    0.000000] Detected PIPT I-cache on CPU0
[    0.000000] CPU features: detected: EL2 vector hardening
[    0.000000] Speculative Store Bypass Disable mitigation not required
[    0.000000] CPU features: detected: ARM errata 1165522, 1319367, or 1530923
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 999936
[    0.000000] Policy zone: Normal
[    0.000000] Kernel command line: ip=dhcp rw rootwait root=/dev/nfs nfsroot=192.168.10.1:/mnt/g2h,vers=4.1,tcp
[    0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[    0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] software IO TLB: mapped [mem 0x7bfff000-0x7ffff000] (64MB)
[    0.000000] Memory: 3863452K/4063232K available (11964K kernel code, 728K rwdata, 4936K rodata, 2432K init, 463K bss, 167012K reserved, 32768K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=8, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU event tracing is enabled.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=8.
[    0.000000]  Trampoline variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=8
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] random: get_random_bytes called from start_kernel+0x314/0x4f0 with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 8.33MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x1ec02923e, max_idle_ns: 440795202125 ns
[    0.000003] sched_clock: 56 bits at 8MHz, resolution 120ns, wraps every 2199023255496ns
[    0.000091] Console: colour dummy device 80x25
[    0.000276] printk: console [tty0] enabled
[    0.000337] Calibrating delay loop (skipped), value calculated using timer frequency.. 16.66 BogoMIPS (lpj=33333)
[    0.000352] pid_max: default: 32768 minimum: 301
[    0.000406] LSM: Security Framework initializing
[    0.000470] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.000501] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.001806] rcu: Hierarchical SRCU implementation.
[    0.002315] Detected Renesas RZ/G2 r8a774e1 ES3.0
[    0.002875] EFI services will not be available.
[    0.003171] smp: Bringing up secondary CPUs ...
[    0.003559] Detected PIPT I-cache on CPU1
[    0.003606] CPU1: Booted secondary processor 0x0000000001 [0x411fd073]
[    0.004035] Detected PIPT I-cache on CPU2
[    0.004060] CPU2: Booted secondary processor 0x0000000002 [0x411fd073]
[    0.004442] Detected PIPT I-cache on CPU3
[    0.004465] CPU3: Booted secondary processor 0x0000000003 [0x411fd073]
[    0.004845] CPU features: detected: ARM erratum 845719
[    0.004860] Detected VIPT I-cache on CPU4
[    0.004903] CPU4: Booted secondary processor 0x0000000100 [0x410fd034]
[    0.005342] Detected VIPT I-cache on CPU5
[    0.005368] CPU5: Booted secondary processor 0x0000000101 [0x410fd034]
[    0.005775] Detected VIPT I-cache on CPU6
[    0.005802] CPU6: Booted secondary processor 0x0000000102 [0x410fd034]
[    0.006205] Detected VIPT I-cache on CPU7
[    0.006231] CPU7: Booted secondary processor 0x0000000103 [0x410fd034]
[    0.006311] smp: Brought up 1 node, 8 CPUs
[    0.006366] SMP: Total of 8 processors activated.
[    0.006373] CPU features: detected: 32-bit EL0 Support
[    0.006380] CPU features: detected: CRC32 instructions
[    0.006386] CPU features: detected: 32-bit EL1 Support
[    0.017954] CPU: All CPU(s) started at EL1
[    0.017998] alternatives: patching kernel code
[    0.019238] devtmpfs: initialized
[    0.021384] KASLR disabled due to lack of seed
[    0.021670] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.021693] futex hash table entries: 2048 (order: 5, 131072 bytes, linear)
[    0.022345] pinctrl core: initialized pinctrl subsystem
[    0.022673] thermal_sys: Registered thermal governor 'step_wise'
[    0.022675] thermal_sys: Registered thermal governor 'power_allocator'
[    0.022857] DMI not present or invalid.
[    0.023211] NET: Registered protocol family 16
[    0.024013] DMA: preallocated 512 KiB GFP_KERNEL pool for atomic allocations
[    0.024132] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.024281] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.024316] audit: initializing netlink subsys (disabled)
[    0.024474] audit: type=2000 audit(0.024:1): state=initialized audit_enabled=0 res=1
[    0.024831] cpuidle: using governor menu
[    0.024954] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.025059] ASID allocator initialised with 65536 entries
[    0.025422] Serial: AMBA PL011 UART driver
[    0.032964] sh-pfc e6060000.pin-controller: r8a774e1_pfc support registered
[    0.037453] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[    0.037465] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
[    0.037473] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.037481] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
[    0.038355] cryptd: max_cpu_qlen set to 1000
[    0.039928] ACPI: Interpreter disabled.
[    0.042130] iommu: Default domain type: Translated 
[    0.042558] ipmmu-vmsa e67b0000.iommu: IPMMU context 0 is reserved
[    0.043630] vgaarb: loaded
[    0.043830] SCSI subsystem initialized
[    0.044076] usbcore: registered new interface driver usbfs
[    0.044101] usbcore: registered new interface driver hub
[    0.044152] usbcore: registered new device driver usb
[    0.044478] pps_core: LinuxPPS API ver. 1 registered
[    0.044486] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.044500] PTP clock support registered
[    0.044573] EDAC MC: Ver: 3.0.0
[    0.045067] FPGA manager framework
[    0.045116] Advanced Linux Sound Architecture Driver Initialized.
[    0.045642] clocksource: Switched to clocksource arch_sys_counter
[    0.045786] VFS: Disk quotas dquot_6.6.0
[    0.045830] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.045959] pnp: PnP ACPI: disabled
[    0.049234] NET: Registered protocol family 2
[    0.049495] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)
[    0.049537] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.049704] TCP bind hash table entries: 32768 (order: 7, 524288 bytes, linear)
[    0.050012] TCP: Hash tables configured (established 32768 bind 32768)
[    0.050133] UDP hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    0.050196] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    0.050347] NET: Registered protocol family 1
[    0.050668] RPC: Registered named UNIX socket transport module.
[    0.050678] RPC: Registered udp transport module.
[    0.050684] RPC: Registered tcp transport module.
[    0.050689] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.050701] PCI: CLS 0 bytes, default 64
[    0.051525] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[    0.051786] hw perfevents: enabled with armv8_cortex_a57 PMU driver, 7 counters available
[    0.052003] kvm [1]: HYP mode not available
[    0.054436] Initialise system trusted keyrings
[    0.054540] workingset: timestamp_bits=44 max_order=20 bucket_order=0
[    0.057567] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.057996] NFS: Registering the id_resolver key type
[    0.058019] Key type id_resolver registered
[    0.058025] Key type id_legacy registered
[    0.058037] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.058151] 9p: Installing v9fs 9p2000 file system support
[    0.084038] Key type asymmetric registered
[    0.084049] Asymmetric key parser 'x509' registered
[    0.084078] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    0.084089] io scheduler mq-deadline registered
[    0.084096] io scheduler kyber registered
[    0.085332] gpio_rcar e6050000.gpio: driving 16 GPIOs
[    0.085546] gpio_rcar e6051000.gpio: driving 29 GPIOs
[    0.085742] gpio_rcar e6052000.gpio: driving 15 GPIOs
[    0.085935] gpio_rcar e6053000.gpio: driving 16 GPIOs
[    0.086119] gpio_rcar e6054000.gpio: driving 18 GPIOs
[    0.086296] gpio_rcar e6055000.gpio: driving 26 GPIOs
[    0.086424] gpio-370 (usb1-reset): hogged as output/low
[    0.086516] gpio_rcar e6055400.gpio: driving 32 GPIOs
[    0.086689] gpio_rcar e6055800.gpio: driving 4 GPIOs
[    0.087581] EINJ: ACPI disabled.
[    0.090056] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.090869] SuperH (H)SCI(F) driver initialized
[    0.091211] e6e88000.serial: ttySC0 at MMIO 0xe6e88000 (irq = 106, base_baud = 0) is a scif
[    1.034137] printk: console [ttySC0] enabled
[    1.045040] loop: module loaded
[    1.048618] megasas: 07.714.04.00-rc1
[    1.053905] libphy: Fixed MDIO Bus: probed
[    1.058336] tun: Universal TUN/TAP device driver, 1.6
[    1.063693] thunder_xcv, ver 1.0
[    1.066945] thunder_bgx, ver 1.0
[    1.070191] nicpf, ver 1.0
[    1.073103] hclge is initializing
[    1.076451] hns3: Hisilicon Ethernet Network Driver for Hip08 Family - version
[    1.083680] hns3: Copyright (c) 2017 Huawei Corporation.
[    1.089021] e1000: Intel(R) PRO/1000 Network Driver
[    1.093902] e1000: Copyright (c) 1999-2006 Intel Corporation.
[    1.099674] e1000e: Intel(R) PRO/1000 Network Driver
[    1.104643] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[    1.110590] igb: Intel(R) Gigabit Ethernet Network Driver
[    1.115995] igb: Copyright (c) 2007-2014 Intel Corporation.
[    1.121588] igbvf: Intel(R) Gigabit Virtual Function Network Driver
[    1.127857] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[    1.133843] sky2: driver version 1.30
[    1.138251] VFIO - User Level meta-driver version: 0.3
[    1.144176] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.150718] ehci-pci: EHCI PCI platform driver
[    1.155181] ehci-platform: EHCI generic platform driver
[    1.160474] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.166670] ohci-pci: OHCI PCI platform driver
[    1.171133] ohci-platform: OHCI generic platform driver
[    1.176582] usbcore: registered new interface driver usb-storage
[    1.183412] i2c /dev entries driver
[    1.187907] sdhci: Secure Digital Host Controller Interface driver
[    1.194093] sdhci: Copyright(c) Pierre Ossman
[    1.247614] renesas_sdhi_internal_dmac ee160000.sd: mmc0 base at 0x00000000ee160000, max clock rate 200 MHz
[    1.257440] Synopsys Designware Multimedia Card Interface Driver
[    1.263756] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.270199] ledtrig-cpu: registered to indicate activity on CPUs
[    1.276630] usbcore: registered new interface driver usbhid
[    1.282209] usbhid: USB HID core driver
[    1.287174] NET: Registered protocol family 17
[    1.291737] 9pnet: Installing 9P2000 support
[    1.296053] Key type dns_resolver registered
[    1.300538] registered taskstats version 1
[    1.304650] Loading compiled-in X.509 certificates
[    1.317235] renesas_irqc e61c0000.interrupt-controller: driving 6 irqs
[    1.325052] rcar-dmac e6700000.dma-controller: Adding to iommu group 0
[    1.331624] rcar-dmac e6700000.dma-controller: Using IPMMU context 1
[    1.340348] rcar-dmac e7300000.dma-controller: Adding to iommu group 1
[    1.346913] rcar-dmac e7300000.dma-controller: Using IPMMU context 2
[    1.355464] rcar-dmac e7310000.dma-controller: Reusing IPMMU context 2
[    1.362017] rcar-dmac e7310000.dma-controller: Adding to iommu group 1
[    1.368557] rcar-dmac e7310000.dma-controller: Reusing IPMMU context 2
[    1.377496] ravb e6800000.ethernet: Reusing IPMMU context 1
[    1.383092] ravb e6800000.ethernet: Adding to iommu group 0
[    1.385664] mmc0: new HS200 MMC card at address 0001
[    1.388672] ravb e6800000.ethernet: Reusing IPMMU context 1
[    1.394038] mmcblk0: mmc0:0001 S0J57X 29.6 GiB 
[    1.399713] libphy: ravb_mii: probed
[    1.403847] mmcblk0boot0: mmc0:0001 S0J57X partition 1 31.5 MiB
[    1.408276] ravb e6800000.ethernet eth0: Base address at 0xe6800000, ac:13:d0:20:87:a3, IRQ 103.
[    1.413355] mmcblk0boot1: mmc0:0001 S0J57X partition 2 31.5 MiB
[    1.428051] mmcblk0rpmb: mmc0:0001 S0J57X partition 3 4.00 MiB, chardev (241:0)
[    1.439223]  mmcblk0: p1
[    1.446421] Generic PHY e6800000.ethernet-ffffffff:00: attached PHY driver [Generic PHY] (mii_bus:phy_addr=e6800000.ethernet-ffffffff:00, irq=POLL)
[    5.534230] ravb e6800000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[    5.561659] Sending DHCP requests ., OK
[    5.581502] IP-Config: Got DHCP answer from 192.168.10.1, my address is 192.168.10.136
[    5.589424] IP-Config: Complete:
[    5.592656]      device=eth0, hwaddr=ac:13:d0:20:87:a3, ipaddr=192.168.10.136, mask=255.255.255.0, gw=192.168.10.1
[    5.603006]      host=192.168.10.136, domain=example.org, nis-domain=(none)
[    5.609967]      bootserver=192.168.10.1, rootserver=192.168.10.1, rootpath=
[    5.609970]      nameserver0=192.168.10.1
[    5.621410] ALSA device list:
[    5.624389]   No soundcards found.
[    5.670597] VFS: Mounted root (nfs4 filesystem) on device 0:20.
[    5.677301] devtmpfs: mounted
[    5.681559] Freeing unused kernel memory: 2432K
[    5.717706] Run /sbin/init as init process
[    5.734023] random: fast init done
[    5.952671] systemd[1]: System time before build time, advancing clock.
[    6.018870] systemd[1]: systemd 234 running in system mode. (+PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -IDN2 )
[    6.040280] systemd[1]: Detected architecture arm64.

Welcome to Poky (Yocto Project Reference Distro) 2.4.3 (rocko)!

[    6.067996] systemd[1]: Set hostname to <hihope-rzg2h>.
[    6.736771] random: systemd: uninitialized urandom read (16 bytes read)
[    6.743543] systemd[1]: Reached target Swap.
[  OK  ] Reached target Swap.
[    6.761770] random: systemd: uninitialized urandom read (16 bytes read)
[    6.769524] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
[    6.793776] random: systemd: uninitialized urandom read (16 bytes read)
[    6.800651] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[  OK  ] Started Dispatch Password Requests to Console Directory Watch.
[    6.826830] systemd[1]: Listening on Journal Socket (/dev/log).
[  OK  ] Listening on Journal Socket (/dev/log).
[    6.847599] systemd[1]: Created slice System Slice.
[  OK  ] Created slice System Slice.
[    6.868955] systemd[1]: Mounting POSIX Message Queue File System...
         Mounting POSIX Message Queue File System...
[    6.896266] systemd[1]: Mounting Temporary Directory (/tmp)...
         Mounting Temporary Directory (/tmp)...
[  OK  ] Created slice system-serial\x2dgetty.slice.
[  OK  ] Listening on Journal Audit Socket.
[  OK  ] Reached target Host and Network Name Lookups.
         Mounting Kernel Debug File System...
[  OK  ] Listening on udev Kernel Socket.
[  OK  ] Started Forward Password Requests to Wall Directory Watch.
[  OK  ] Reached target Paths.
[  OK  ] Listening on udev Control Socket.
[  OK  ] Listening on Network Service Netlink Socket.
[  OK  ] Reached target Remote File Systems.
[  OK  ] Listening on Journal Socket.
         Starting Load Kernel Modules...
         Starting Remount Root and Kernel File Systems...
         Starting Journal Service...
[  OK  ] Created slice User and Session Slice.
[  OK  ] Reached target Slices.
[  OK  ] Created slice system-getty.slice.
         Mounting Huge Pages File System...
[  OK  ] Mounted Kernel Debug File System.
[  OK  ] Mounted POSIX Message Queue File System.
[  OK  ] Mounted Huge Pages File System.
[  OK  ] Mounted Temporary Directory (/tmp).
[  OK  ] Started Journal Service.
[FAILED] Failed to start Load Kernel Modules.
See 'systemctl status systemd-modules-load.service' for details.
[  OK  ] Started Remount Root and Kernel File Systems.
         Starting udev Coldplug all Devices...
         Starting Create Static Device Nodes in /dev...
         Starting Apply Kernel Variables...
         Mounting Kernel Configuration File System...
         Starting Flush Journal to Persistent Storage...
[  OK  ] Mounted Kernel Configuration File System.
[  OK  ] Started Apply Kernel Variables.
[  OK  ] Started Create Static Device Nodes in /dev.
         Starting udev Kernel Device Manager...
[  OK  ] Reached target Local File Systems (Pre).
         Mounting /var/volatile...
[  OK  ] Mounted /var/volatile.
[    7.559899] systemd-journald[219]: Received request to flush runtime journal from PID 1
         Starting Load/Save Random Seed...
[  OK  ] Reached target Local File Systems.
[  OK  ] Started Flush Journal to Persistent Storage.
[  OK  ] Started udev Coldplug all Devices.
[  OK  ] Started Load/Save Random Seed.
[  OK  ] Started udev Kernel Device Manager.
         Starting Create Volatile Files and Directories...
[  OK  ] Started Create Volatile Files and Directories.
[    7.772100] random: crng init done
[    7.775513] random: 7 urandom warning(s) missed due to ratelimiting
[  OK  ] Found device /dev/ttySC0.
         Starting Update UTMP about System Boot/Shutdown...
[  OK  ] Started Update UTMP about System Boot/Shutdown.
[  OK  ] Reached target System Initialization.
[  OK  ] Listening on D-Bus System Message Bus Socket.
         Starting Network Service...
[  OK  ] Started dnf-automatic-install timer.
[  OK  ] Listening on RPCbind Server Activation Socket.
[  OK  ] Started dnf-automatic-download timer.
[  OK  ] Started dnf makecache timer.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Started dnf-automatic-notifyonly timer.
[  OK  ] Reached target Timers.
[  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[  OK  ] Listening on dropbear.socket.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Basic System.
[  OK  ] Reached target Containers.
[  OK  ] Started Bluetooth Audio ALSA Backend.
         Starting Telephony service...
         Starting pvrinit.service...
[  OK  ] Started VIN initializing setting.
         Starting Avahi mDNS/DNS-SD Stack...
         Starting PowerVR consumer services...
[  OK  ] Started optee services.
         Starting Login Service...
[  OK  ] Started D-Bus System Message Bus.
[  OK  ] Started Avahi mDNS/DNS-SD Stack.
[  OK  ] Started Telephony service.
         Starting Connection service...
[  OK  ] Started Network Service.
[  OK  ] Started pvrinit.service.
[  OK  ] Started PowerVR consumer services.
[  OK  ] Started Login Service.
[  OK  ] Started Connection service.
[  OK  ] Reached target Network.
         Starting Permit User Sessions...
         Starting Target Communication Framework agent...
[  OK  ] Started Permit User Sessions.
         Starting Hostname Service...
         Starting WPA supplicant...
[  OK  ] Started Serial Getty on ttySC0.
[  OK  ] Started Getty on tty1.
[  OK  ] Reached target Login Prompts.
[  OK  ] Started Target Communication Framework agent.
[  OK  ] Started Hostname Service.
[  OK  ] Started WPA supplicant.
[  OK  ] Reached target Multi-User System.
         Starting Update UTMP about System Runlevel Changes...
[  OK  ] Started Weston Wayland compositor.
[  OK  ] Started Update UTMP about System Runlevel Changes.
[    9.434816] audit: type=1006 audit(1592389647.479:2): pid=340 uid=0 old-auid=4294967295 auid=0 tty=(none) old-ses=4294967295 ses=1 res=1
[    9.447232] audit: type=1300 audit(1592389647.479:2): arch=c00000b7 syscall=64 success=yes exit=1 a0=8 a1=ffffd094e158 a2=1 a3=ffff90370640 items=0 ppid=1 pid=340 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0)
[    9.473536] audit: type=1327 audit(1592389647.479:2): proctitle="(systemd)"

Poky (Yocto Project Reference Distro) 2.4.3 hihope-rzg2h ttySC0

BSP: RZG2H/HIHOPE-RZG2H/1.0.4
LSI: RZG2H
Version: 1.0.4
hihope-rzg2h login: [   35.805671] USB20_VBUS0: disabling
[   35.809083] wlan-en-regulator: disabling
[   35.813017] SDHI0 VccQ: disabling

Poky (Yocto Project Reference Distro) 2.4.3 hihope-rzg2h ttySC0

BSP: RZG2H/HIHOPE-RZG2H/1.0.4
LSI: RZG2H
Version: 1.0.4
hihope-rzg2h login: root
Last login: Wed Jun 17 10:27:27 UTC 2020 on tty2
[  107.151160] audit: type=1006 audit(1592389745.195:3): pid=374 uid=0 old-auid=4294967295 auid=0 tty=(none) old-ses=4294967295 ses=2 res=1
[  107.163572] audit: type=1300 audit(1592389745.195:3): arch=c00000b7 syscall=64 success=yes exit=1 a0=8 a1=ffffd094e158 a2=1 a3=ffff9049a6f0 items=0 ppid=1 pid=374 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0)
[  107.189918] audit: type=1327 audit(1592389745.195:3): proctitle="(systemd)"
amixer: Mixer attach default error: No such file or directory
amixer: Mixer attach default error: No such file or directory
ls: cannot access /dev/media*: No such file or directory
sed: -e expression #1, char 0: no previous regular expression
sed: -e expression #1, char 0: no previous regular expression
Extreme Low Power mode has already been disabled.
root@hihope-rzg2h:~# 
root@hihope-rzg2h:~# 
root@hihope-rzg2h:~# 
root@hihope-rzg2h:~# dmesg | grep -i iommu
[    0.042130] iommu: Default domain type: Translated 
[    0.042558] ipmmu-vmsa e67b0000.iommu: IPMMU context 0 is reserved
[    1.325052] rcar-dmac e6700000.dma-controller: Adding to iommu group 0
[    1.340348] rcar-dmac e7300000.dma-controller: Adding to iommu group 1
[    1.362017] rcar-dmac e7310000.dma-controller: Adding to iommu group 1
[    1.383092] ravb e6800000.ethernet: Adding to iommu group 0
root@hihope-rzg2h:~# 
root@hihope-rzg2h:~# dmesg | grep -i ipmmu
[    0.042558] ipmmu-vmsa e67b0000.iommu: IPMMU context 0 is reserved
[    1.331624] rcar-dmac e6700000.dma-controller: Using IPMMU context 1
[    1.346913] rcar-dmac e7300000.dma-controller: Using IPMMU context 2
[    1.355464] rcar-dmac e7310000.dma-controller: Reusing IPMMU context 2
[    1.368557] rcar-dmac e7310000.dma-controller: Reusing IPMMU context 2
[    1.377496] ravb e6800000.ethernet: Reusing IPMMU context 1
[    1.388672] ravb e6800000.ethernet: Reusing IPMMU context 1
root@hihope-rzg2h:~# 
root@hihope-rzg2h:~#

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

* Re: [PATCH 2/9] iommu/ipmmu-vmsa: Hook up R8A774E1 DT matching code
  2020-07-14  8:30     ` Lad, Prabhakar
@ 2020-07-14  8:41       ` Geert Uytterhoeven
  2020-07-14 11:42         ` Yoshihiro Shimoda
  0 siblings, 1 reply; 33+ messages in thread
From: Geert Uytterhoeven @ 2020-07-14  8:41 UTC (permalink / raw)
  To: Lad, Prabhakar
  Cc: Lad Prabhakar, Vinod Koul, Rob Herring, Linus Walleij,
	Bartosz Golaszewski, Joerg Roedel, Sergei Shtylyov,
	David S. Miller, Jakub Kicinski, Magnus Damm, Yoshihiro Shimoda,
	dmaengine,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	open list:GPIO SUBSYSTEM, Linux IOMMU, netdev, Linux-Renesas,
	Linux Kernel Mailing List

Hi Prabhakar,

On Tue, Jul 14, 2020 at 10:30 AM Lad, Prabhakar
<prabhakar.csengg@gmail.com> wrote:
> On Tue, Jul 14, 2020 at 9:09 AM Geert Uytterhoeven <geert@linux-m68k.org> wrote:
> > On Mon, Jul 13, 2020 at 11:35 PM Lad Prabhakar
> > <prabhakar.mahadev-lad.rj@bp.renesas.com> wrote:
> > > From: Marian-Cristian Rotariu <marian-cristian.rotariu.rb@bp.renesas.com>
> > >
> > > Add support for RZ/G2H (R8A774E1) SoC IPMMUs.
> > >
> > > Signed-off-by: Marian-Cristian Rotariu <marian-cristian.rotariu.rb@bp.renesas.com>
> > > Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
> >
> > Thanks for your patch!
> >
> > > --- a/drivers/iommu/ipmmu-vmsa.c
> > > +++ b/drivers/iommu/ipmmu-vmsa.c
> > > @@ -751,6 +751,7 @@ static const struct soc_device_attribute soc_rcar_gen3[] = {
> > >  static const struct soc_device_attribute soc_rcar_gen3_whitelist[] = {
> > >         { .soc_id = "r8a774b1", },
> > >         { .soc_id = "r8a774c0", },
> > > +       { .soc_id = "r8a774e1", },
> >
> > Adding an entry to soc_rcar_gen3_whitelist[] doesn't do anything, unless
> > you also add the same entry to soc_rcar_gen3[].
> >
> I think the comment "For R-Car Gen3 use a white list to opt-in slave
> devices." is misleading.  Booting through the kernel I do see iommu
> groups (attached is the logs).

Indeed. Without an entry in soc_rcar_gen3[], the IPMMU is enabled
unconditionally, and soc_rcar_gen3_whitelist[] is ignored.
That's why you want an entry in both, unless you have an R-Car Gen3
SoC where the IPMMU works correctly with all slave devices present.
Perhaps soc_rcar_gen3[] should be renamed to soc_rcar_gen3_greylist[]
(or soc_rcar_gen3_maybelist[]) to make this clear?

> Also the recent patch to add
> "r8a77961" just adds to soc_rcar_gen3_whitelist.

Oops, commit 17fe16181639801b ("iommu/renesas: Add support for r8a77961")
did it wrong, too.

> > >         { .soc_id = "r8a7795", .revision = "ES3.*" },
> > >         { .soc_id = "r8a77961", },
> > >         { .soc_id = "r8a77965", },

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] 33+ messages in thread

* RE: [PATCH 2/9] iommu/ipmmu-vmsa: Hook up R8A774E1 DT matching code
  2020-07-14  8:41       ` Geert Uytterhoeven
@ 2020-07-14 11:42         ` Yoshihiro Shimoda
  2020-07-14 12:39           ` Geert Uytterhoeven
  0 siblings, 1 reply; 33+ messages in thread
From: Yoshihiro Shimoda @ 2020-07-14 11:42 UTC (permalink / raw)
  To: Geert Uytterhoeven, Lad, Prabhakar
  Cc: Prabhakar Mahadev Lad, Vinod Koul, Rob Herring, Linus Walleij,
	Bartosz Golaszewski, Joerg Roedel, Sergei Shtylyov,
	David S. Miller, Jakub Kicinski, Magnus Damm, dmaengine,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	open list:GPIO SUBSYSTEM, Linux IOMMU, netdev, Linux-Renesas,
	Linux Kernel Mailing List

Hi Geert-san,

> From: Geert Uytterhoeven, Sent: Tuesday, July 14, 2020 5:42 PM
> 
> Hi Prabhakar,
> 
> On Tue, Jul 14, 2020 at 10:30 AM Lad, Prabhakar
> <prabhakar.csengg@gmail.com> wrote:
> > On Tue, Jul 14, 2020 at 9:09 AM Geert Uytterhoeven <geert@linux-m68k.org> wrote:
> > > On Mon, Jul 13, 2020 at 11:35 PM Lad Prabhakar
> > > <prabhakar.mahadev-lad.rj@bp.renesas.com> wrote:
> > > > From: Marian-Cristian Rotariu <marian-cristian.rotariu.rb@bp.renesas.com>
> > > >
> > > > Add support for RZ/G2H (R8A774E1) SoC IPMMUs.
> > > >
> > > > Signed-off-by: Marian-Cristian Rotariu <marian-cristian.rotariu.rb@bp.renesas.com>
> > > > Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
> > >
> > > Thanks for your patch!
> > >
> > > > --- a/drivers/iommu/ipmmu-vmsa.c
> > > > +++ b/drivers/iommu/ipmmu-vmsa.c
> > > > @@ -751,6 +751,7 @@ static const struct soc_device_attribute soc_rcar_gen3[] = {
> > > >  static const struct soc_device_attribute soc_rcar_gen3_whitelist[] = {
> > > >         { .soc_id = "r8a774b1", },
> > > >         { .soc_id = "r8a774c0", },
> > > > +       { .soc_id = "r8a774e1", },
> > >
> > > Adding an entry to soc_rcar_gen3_whitelist[] doesn't do anything, unless
> > > you also add the same entry to soc_rcar_gen3[].
> > >
> > I think the comment "For R-Car Gen3 use a white list to opt-in slave
> > devices." is misleading.  Booting through the kernel I do see iommu
> > groups (attached is the logs).
> 
> Indeed. Without an entry in soc_rcar_gen3[], the IPMMU is enabled
> unconditionally, and soc_rcar_gen3_whitelist[] is ignored.
> That's why you want an entry in both, unless you have an R-Car Gen3
> SoC where the IPMMU works correctly with all slave devices present.
> Perhaps soc_rcar_gen3[] should be renamed to soc_rcar_gen3_greylist[]
> (or soc_rcar_gen3_maybelist[]) to make this clear?

I think so (we should rename it).

> > Also the recent patch to add
> > "r8a77961" just adds to soc_rcar_gen3_whitelist.
> 
> Oops, commit 17fe16181639801b ("iommu/renesas: Add support for r8a77961")
> did it wrong, too.

Thank you for the point it out. We should add r8a77961 to the soc_rcar_gen3[].
However, I don't know why I could not realize this issue...
So, I investigated this a little and then, IIUC, glob_match() which
soc_device_match() uses seems to return true, if *pat = "r8a7796" and *str = "r8a77961".

Best regards,
Yoshihiro Shimoda


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

* Re: [PATCH 2/9] iommu/ipmmu-vmsa: Hook up R8A774E1 DT matching code
  2020-07-14 11:42         ` Yoshihiro Shimoda
@ 2020-07-14 12:39           ` Geert Uytterhoeven
  2020-07-16  4:42             ` Yoshihiro Shimoda
  0 siblings, 1 reply; 33+ messages in thread
From: Geert Uytterhoeven @ 2020-07-14 12:39 UTC (permalink / raw)
  To: Yoshihiro Shimoda
  Cc: Lad, Prabhakar, Prabhakar Mahadev Lad, Vinod Koul, Rob Herring,
	Linus Walleij, Bartosz Golaszewski, Joerg Roedel,
	Sergei Shtylyov, David S. Miller, Jakub Kicinski, Magnus Damm,
	dmaengine,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	open list:GPIO SUBSYSTEM, Linux IOMMU, netdev, Linux-Renesas,
	Linux Kernel Mailing List

Hi Shimoda-san,

On Tue, Jul 14, 2020 at 1:42 PM Yoshihiro Shimoda
<yoshihiro.shimoda.uh@renesas.com> wrote:
> > From: Geert Uytterhoeven, Sent: Tuesday, July 14, 2020 5:42 PM
> > On Tue, Jul 14, 2020 at 10:30 AM Lad, Prabhakar
> > <prabhakar.csengg@gmail.com> wrote:
> > > On Tue, Jul 14, 2020 at 9:09 AM Geert Uytterhoeven <geert@linux-m68k.org> wrote:
> > > > On Mon, Jul 13, 2020 at 11:35 PM Lad Prabhakar
> > > Also the recent patch to add
> > > "r8a77961" just adds to soc_rcar_gen3_whitelist.
> >
> > Oops, commit 17fe16181639801b ("iommu/renesas: Add support for r8a77961")
> > did it wrong, too.
>
> Thank you for the point it out. We should add r8a77961 to the soc_rcar_gen3[].
> However, I don't know why I could not realize this issue...
> So, I investigated this a little and then, IIUC, glob_match() which
> soc_device_match() uses seems to return true, if *pat = "r8a7796" and *str = "r8a77961".

Are you sure about this?
I enabled CONFIG_GLOB_SELFTEST, and globtest succeeded.
It does test glob_match("a", "aa"), which is a similar test.

To be 100% sure, I added:

--- a/lib/globtest.c
+++ b/lib/globtest.c
@@ -59,6 +59,7 @@ static char const glob_tests[] __initconst =
        "1" "a\0" "a\0"
        "0" "a\0" "b\0"
        "0" "a\0" "aa\0"
+       "0" "r8a7796\0" "r8a77961\0"
        "0" "a\0" "\0"
        "1" "\0" "\0"
        "0" "\0" "a\0"

and it still succeeded.

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] 33+ messages in thread

* Re: [PATCH 3/9] arm64: dts: renesas: r8a774e1: Add IPMMU device nodes
  2020-07-13 21:35 ` [PATCH 3/9] arm64: dts: renesas: r8a774e1: Add IPMMU device nodes Lad Prabhakar
@ 2020-07-15 10:18   ` Geert Uytterhoeven
  2020-07-21  2:01   ` Rob Herring
  1 sibling, 0 replies; 33+ messages in thread
From: Geert Uytterhoeven @ 2020-07-15 10:18 UTC (permalink / raw)
  To: Lad Prabhakar
  Cc: Vinod Koul, Rob Herring, Linus Walleij, Bartosz Golaszewski,
	Joerg Roedel, Sergei Shtylyov, David S. Miller, Jakub Kicinski,
	Magnus Damm, Yoshihiro Shimoda, dmaengine,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	open list:GPIO SUBSYSTEM, Linux IOMMU, netdev, Linux-Renesas,
	Linux Kernel Mailing List, Prabhakar

On Mon, Jul 13, 2020 at 11:35 PM Lad Prabhakar
<prabhakar.mahadev-lad.rj@bp.renesas.com> wrote:
> From: Marian-Cristian Rotariu <marian-cristian.rotariu.rb@bp.renesas.com>
>
> Add RZ/G2H (R8A774E1) IPMMU nodes.
>
> Signed-off-by: Marian-Cristian Rotariu <marian-cristian.rotariu.rb@bp.renesas.com>
> Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
i.e. will queue in renesas-devel for v5.9.

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] 33+ messages in thread

* Re: [PATCH 5/9] arm64: dts: renesas: r8a774e1: Add SYS-DMAC device nodes
  2020-07-13 21:35 ` [PATCH 5/9] arm64: dts: renesas: r8a774e1: Add SYS-DMAC device nodes Lad Prabhakar
@ 2020-07-15 10:20   ` Geert Uytterhoeven
  0 siblings, 0 replies; 33+ messages in thread
From: Geert Uytterhoeven @ 2020-07-15 10:20 UTC (permalink / raw)
  To: Lad Prabhakar
  Cc: Vinod Koul, Rob Herring, Linus Walleij, Bartosz Golaszewski,
	Joerg Roedel, Sergei Shtylyov, David S. Miller, Jakub Kicinski,
	Magnus Damm, Yoshihiro Shimoda, dmaengine,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	open list:GPIO SUBSYSTEM, Linux IOMMU, netdev, Linux-Renesas,
	Linux Kernel Mailing List, Prabhakar

On Mon, Jul 13, 2020 at 11:35 PM Lad Prabhakar
<prabhakar.mahadev-lad.rj@bp.renesas.com> wrote:
> From: Marian-Cristian Rotariu <marian-cristian.rotariu.rb@bp.renesas.com>
>
> Add sys-dmac[0-2] device nodes for RZ/G2H (R8A774E1) SoC.
>
> Signed-off-by: Marian-Cristian Rotariu <marian-cristian.rotariu.rb@bp.renesas.com>
> Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
i.e. will queue in renesas-devel for v5.9.

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] 33+ messages in thread

* Re: [PATCH 7/9] arm64: dts: renesas: r8a774e1: Add GPIO device nodes
  2020-07-13 21:35 ` [PATCH 7/9] arm64: dts: renesas: r8a774e1: Add GPIO device nodes Lad Prabhakar
@ 2020-07-15 10:21   ` Geert Uytterhoeven
  0 siblings, 0 replies; 33+ messages in thread
From: Geert Uytterhoeven @ 2020-07-15 10:21 UTC (permalink / raw)
  To: Lad Prabhakar
  Cc: Vinod Koul, Rob Herring, Linus Walleij, Bartosz Golaszewski,
	Joerg Roedel, Sergei Shtylyov, David S. Miller, Jakub Kicinski,
	Magnus Damm, Yoshihiro Shimoda, dmaengine,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	open list:GPIO SUBSYSTEM, Linux IOMMU, netdev, Linux-Renesas,
	Linux Kernel Mailing List, Prabhakar

On Mon, Jul 13, 2020 at 11:35 PM Lad Prabhakar
<prabhakar.mahadev-lad.rj@bp.renesas.com> wrote:
> From: Marian-Cristian Rotariu <marian-cristian.rotariu.rb@bp.renesas.com>
>
> Add GPIO device nodes to the DT of the r8a774e1 SoC.
>
> Signed-off-by: Marian-Cristian Rotariu <marian-cristian.rotariu.rb@bp.renesas.com>
> Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
i.e. will queue in renesas-devel for v5.9.

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] 33+ messages in thread

* Re: [PATCH 9/9] arm64: dts: renesas: r8a774e1: Add Ethernet AVB node
  2020-07-13 21:35 ` [PATCH 9/9] arm64: dts: renesas: r8a774e1: Add Ethernet AVB node Lad Prabhakar
@ 2020-07-15 10:21   ` Geert Uytterhoeven
  0 siblings, 0 replies; 33+ messages in thread
From: Geert Uytterhoeven @ 2020-07-15 10:21 UTC (permalink / raw)
  To: Lad Prabhakar
  Cc: Vinod Koul, Rob Herring, Linus Walleij, Bartosz Golaszewski,
	Joerg Roedel, Sergei Shtylyov, David S. Miller, Jakub Kicinski,
	Magnus Damm, Yoshihiro Shimoda, dmaengine,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	open list:GPIO SUBSYSTEM, Linux IOMMU, netdev, Linux-Renesas,
	Linux Kernel Mailing List, Prabhakar

On Mon, Jul 13, 2020 at 11:36 PM Lad Prabhakar
<prabhakar.mahadev-lad.rj@bp.renesas.com> wrote:
> From: Marian-Cristian Rotariu <marian-cristian.rotariu.rb@bp.renesas.com>
>
> This patch adds the SoC specific part of the Ethernet AVB
> device tree node.
>
> Signed-off-by: Marian-Cristian Rotariu <marian-cristian.rotariu.rb@bp.renesas.com>
> Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
i.e. will queue in renesas-devel for v5.9.

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] 33+ messages in thread

* Re: [PATCH 4/9] dt-bindings: dma: renesas,rcar-dmac: Document R8A774E1 bindings
  2020-07-13 21:35 ` [PATCH 4/9] dt-bindings: dma: renesas,rcar-dmac: Document R8A774E1 bindings Lad Prabhakar
  2020-07-14  7:39   ` Geert Uytterhoeven
@ 2020-07-15 10:40   ` Vinod Koul
  1 sibling, 0 replies; 33+ messages in thread
From: Vinod Koul @ 2020-07-15 10:40 UTC (permalink / raw)
  To: Lad Prabhakar
  Cc: Geert Uytterhoeven, Rob Herring, Linus Walleij,
	Bartosz Golaszewski, Joerg Roedel, Sergei Shtylyov,
	David S. Miller, Jakub Kicinski, Magnus Damm, Yoshihiro Shimoda,
	dmaengine, devicetree, linux-gpio, iommu, netdev,
	linux-renesas-soc, linux-kernel, Prabhakar

On 13-07-20, 22:35, Lad Prabhakar wrote:
> Renesas RZ/G2H (R8A774E1) SoC also has the R-Car gen3 compatible
> DMA controllers, therefore document RZ/G2H specific bindings.

Applied, thanks

-- 
~Vinod

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

* RE: [PATCH 2/9] iommu/ipmmu-vmsa: Hook up R8A774E1 DT matching code
  2020-07-14 12:39           ` Geert Uytterhoeven
@ 2020-07-16  4:42             ` Yoshihiro Shimoda
  0 siblings, 0 replies; 33+ messages in thread
From: Yoshihiro Shimoda @ 2020-07-16  4:42 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Lad, Prabhakar, Prabhakar Mahadev Lad, Vinod Koul, Rob Herring,
	Linus Walleij, Bartosz Golaszewski, Joerg Roedel,
	Sergei Shtylyov, David S. Miller, Jakub Kicinski, Magnus Damm,
	dmaengine,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	open list:GPIO SUBSYSTEM, Linux IOMMU, netdev, Linux-Renesas,
	Linux Kernel Mailing List

Hi Geert-san,

> From: Geert Uytterhoeven, Sent: Tuesday, July 14, 2020 9:40 PM
> 
> Hi Shimoda-san,
> 
> On Tue, Jul 14, 2020 at 1:42 PM Yoshihiro Shimoda
> <yoshihiro.shimoda.uh@renesas.com> wrote:
> > > From: Geert Uytterhoeven, Sent: Tuesday, July 14, 2020 5:42 PM
> > > On Tue, Jul 14, 2020 at 10:30 AM Lad, Prabhakar
> > > <prabhakar.csengg@gmail.com> wrote:
> > > > On Tue, Jul 14, 2020 at 9:09 AM Geert Uytterhoeven <geert@linux-m68k.org> wrote:
> > > > > On Mon, Jul 13, 2020 at 11:35 PM Lad Prabhakar
> > > > Also the recent patch to add
> > > > "r8a77961" just adds to soc_rcar_gen3_whitelist.
> > >
> > > Oops, commit 17fe16181639801b ("iommu/renesas: Add support for r8a77961")
> > > did it wrong, too.
> >
> > Thank you for the point it out. We should add r8a77961 to the soc_rcar_gen3[].
> > However, I don't know why I could not realize this issue...
> > So, I investigated this a little and then, IIUC, glob_match() which
> > soc_device_match() uses seems to return true, if *pat = "r8a7796" and *str = "r8a77961".
> 
> Are you sure about this?

I'm very sorry. I completely misunderstood the glob_match() behavior.
And, now I understood why the current code can use IPMMU on r8a77961...
# Since the first soc_device_match() will return false, ipmmu_slave_whitelist()
# will return true and then the ipmmu_of_xlate() will be succeeded.

> I enabled CONFIG_GLOB_SELFTEST, and globtest succeeded.
> It does test glob_match("a", "aa"), which is a similar test.
> 
> To be 100% sure, I added:
> 
> --- a/lib/globtest.c
> +++ b/lib/globtest.c
> @@ -59,6 +59,7 @@ static char const glob_tests[] __initconst =
>         "1" "a\0" "a\0"
>         "0" "a\0" "b\0"
>         "0" "a\0" "aa\0"
> +       "0" "r8a7796\0" "r8a77961\0"
>         "0" "a\0" "\0"
>         "1" "\0" "\0"
>         "0" "\0" "a\0"
> 
> and it still succeeded.

I'm very sorry to waste your time about this...

Best regards,
Yoshihiro Shimoda


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

* Re: [PATCH 3/9] arm64: dts: renesas: r8a774e1: Add IPMMU device nodes
  2020-07-13 21:35 ` [PATCH 3/9] arm64: dts: renesas: r8a774e1: Add IPMMU device nodes Lad Prabhakar
  2020-07-15 10:18   ` Geert Uytterhoeven
@ 2020-07-21  2:01   ` Rob Herring
  1 sibling, 0 replies; 33+ messages in thread
From: Rob Herring @ 2020-07-21  2:01 UTC (permalink / raw)
  To: Lad Prabhakar
  Cc: Geert Uytterhoeven, Vinod Koul, Linus Walleij,
	Bartosz Golaszewski, Joerg Roedel, Sergei Shtylyov,
	David S. Miller, Jakub Kicinski, Magnus Damm, Yoshihiro Shimoda,
	dmaengine, devicetree, linux-gpio, iommu, netdev,
	linux-renesas-soc, linux-kernel, Prabhakar

On Mon, Jul 13, 2020 at 10:35:14PM +0100, Lad Prabhakar wrote:
> From: Marian-Cristian Rotariu <marian-cristian.rotariu.rb@bp.renesas.com>
> 
> Add RZ/G2H (R8A774E1) IPMMU nodes.
> 
> Signed-off-by: Marian-Cristian Rotariu <marian-cristian.rotariu.rb@bp.renesas.com>
> Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
> ---
>  arch/arm64/boot/dts/renesas/r8a774e1.dtsi | 121 ++++++++++++++++++++++
>  1 file changed, 121 insertions(+)

Acked-by: Rob Herring <robh@kernel.org>

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

* Re: [PATCH 1/9] dt-bindings: iommu: renesas,ipmmu-vmsa: Add r8a774e1 support
  2020-07-13 21:35 ` [PATCH 1/9] dt-bindings: iommu: renesas,ipmmu-vmsa: Add r8a774e1 support Lad Prabhakar
  2020-07-14  7:35   ` Geert Uytterhoeven
@ 2020-07-21  2:02   ` Rob Herring
  1 sibling, 0 replies; 33+ messages in thread
From: Rob Herring @ 2020-07-21  2:02 UTC (permalink / raw)
  To: Lad Prabhakar
  Cc: Geert Uytterhoeven, Vinod Koul, Linus Walleij,
	Bartosz Golaszewski, Joerg Roedel, Sergei Shtylyov,
	David S. Miller, Jakub Kicinski, Magnus Damm, Yoshihiro Shimoda,
	dmaengine, devicetree, linux-gpio, iommu, netdev,
	linux-renesas-soc, linux-kernel, Prabhakar

On Mon, Jul 13, 2020 at 10:35:12PM +0100, Lad Prabhakar wrote:
> Document RZ/G2H (R8A774E1) SoC bindings.
> 
> Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
> ---
>  Documentation/devicetree/bindings/iommu/renesas,ipmmu-vmsa.yaml | 1 +
>  1 file changed, 1 insertion(+)

Acked-by: Rob Herring <robh@kernel.org>

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

* Re: [PATCH 6/9] dt-bindings: gpio: renesas,rcar-gpio: Add r8a774e1 support
  2020-07-13 21:35 ` [PATCH 6/9] dt-bindings: gpio: renesas,rcar-gpio: Add r8a774e1 support Lad Prabhakar
  2020-07-14  8:00   ` Geert Uytterhoeven
@ 2020-07-21  2:02   ` Rob Herring
  2020-08-27 16:39   ` Lad, Prabhakar
  2 siblings, 0 replies; 33+ messages in thread
From: Rob Herring @ 2020-07-21  2:02 UTC (permalink / raw)
  To: Lad Prabhakar
  Cc: dmaengine, Vinod Koul, Magnus Damm, Linus Walleij,
	Sergei Shtylyov, Jakub Kicinski, linux-kernel, David S. Miller,
	Yoshihiro Shimoda, Bartosz Golaszewski, Joerg Roedel,
	Rob Herring, netdev, Geert Uytterhoeven, iommu,
	linux-renesas-soc, Prabhakar, linux-gpio, devicetree

On Mon, 13 Jul 2020 22:35:17 +0100, Lad Prabhakar wrote:
> Document Renesas RZ/G2H (R8A774E1) GPIO blocks compatibility within the
> relevant dt-bindings.
> 
> Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
> ---
>  Documentation/devicetree/bindings/gpio/renesas,rcar-gpio.yaml | 1 +
>  1 file changed, 1 insertion(+)
> 

Acked-by: Rob Herring <robh@kernel.org>

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

* Re: [PATCH 8/9] dt-bindings: net: renesas,ravb: Add support for r8a774e1 SoC
  2020-07-13 21:35 ` [PATCH 8/9] dt-bindings: net: renesas,ravb: Add support for r8a774e1 SoC Lad Prabhakar
  2020-07-14  7:34   ` Sergei Shtylyov
  2020-07-14  8:01   ` Geert Uytterhoeven
@ 2020-07-21  2:03   ` Rob Herring
  2020-08-27 10:28   ` Lad, Prabhakar
  3 siblings, 0 replies; 33+ messages in thread
From: Rob Herring @ 2020-07-21  2:03 UTC (permalink / raw)
  To: Lad Prabhakar
  Cc: Magnus Damm, linux-gpio, Linus Walleij, linux-kernel, dmaengine,
	Prabhakar, Vinod Koul, Joerg Roedel, David S. Miller,
	Bartosz Golaszewski, netdev, Yoshihiro Shimoda,
	linux-renesas-soc, Sergei Shtylyov, Rob Herring, iommu,
	Jakub Kicinski, Geert Uytterhoeven, devicetree

On Mon, 13 Jul 2020 22:35:19 +0100, Lad Prabhakar wrote:
> From: Marian-Cristian Rotariu <marian-cristian.rotariu.rb@bp.renesas.com>
> 
> Document RZ/G2H (R8A774E1) SoC bindings.
> 
> Signed-off-by: Marian-Cristian Rotariu <marian-cristian.rotariu.rb@bp.renesas.com>
> Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
> ---
>  Documentation/devicetree/bindings/net/renesas,ravb.txt | 1 +
>  1 file changed, 1 insertion(+)
> 

Acked-by: Rob Herring <robh@kernel.org>

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

* Re: [PATCH 8/9] dt-bindings: net: renesas,ravb: Add support for r8a774e1 SoC
  2020-07-13 21:35 ` [PATCH 8/9] dt-bindings: net: renesas,ravb: Add support for r8a774e1 SoC Lad Prabhakar
                     ` (2 preceding siblings ...)
  2020-07-21  2:03   ` Rob Herring
@ 2020-08-27 10:28   ` Lad, Prabhakar
  3 siblings, 0 replies; 33+ messages in thread
From: Lad, Prabhakar @ 2020-08-27 10:28 UTC (permalink / raw)
  To: David S. Miller
  Cc: Geert Uytterhoeven, Vinod Koul, Rob Herring, Linus Walleij,
	Bartosz Golaszewski, Joerg Roedel, Sergei Shtylyov,
	Jakub Kicinski, Magnus Damm, Yoshihiro Shimoda, dmaengine,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	open list:GPIO SUBSYSTEM, Linux IOMMU, netdev, Linux-Renesas,
	LKML, Lad Prabhakar

Hi David,

On Mon, Jul 13, 2020 at 10:36 PM Lad Prabhakar
<prabhakar.mahadev-lad.rj@bp.renesas.com> wrote:
>
> From: Marian-Cristian Rotariu <marian-cristian.rotariu.rb@bp.renesas.com>
>
> Document RZ/G2H (R8A774E1) SoC bindings.
>
> Signed-off-by: Marian-Cristian Rotariu <marian-cristian.rotariu.rb@bp.renesas.com>
> Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
> ---
>  Documentation/devicetree/bindings/net/renesas,ravb.txt | 1 +
>  1 file changed, 1 insertion(+)
>
Gentle ping, this patch is not queued up yet at [1].

[1] https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/log/

Cheers,
Prabhakar

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

* Re: [PATCH 6/9] dt-bindings: gpio: renesas,rcar-gpio: Add r8a774e1 support
  2020-07-13 21:35 ` [PATCH 6/9] dt-bindings: gpio: renesas,rcar-gpio: Add r8a774e1 support Lad Prabhakar
  2020-07-14  8:00   ` Geert Uytterhoeven
  2020-07-21  2:02   ` Rob Herring
@ 2020-08-27 16:39   ` Lad, Prabhakar
  2020-08-27 19:30     ` Bartosz Golaszewski
  2 siblings, 1 reply; 33+ messages in thread
From: Lad, Prabhakar @ 2020-08-27 16:39 UTC (permalink / raw)
  To: Linus Walleij, Bartosz Golaszewski
  Cc: Geert Uytterhoeven, Vinod Koul, Rob Herring, Joerg Roedel,
	Sergei Shtylyov, David S. Miller, open list:GPIO SUBSYSTEM,
	Jakub Kicinski, Magnus Damm, Yoshihiro Shimoda, dmaengine,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	Linux IOMMU, netdev, Linux-Renesas, LKML, Lad Prabhakar

Hi Linus and Bartosz,

On Mon, Jul 13, 2020 at 10:35 PM Lad Prabhakar
<prabhakar.mahadev-lad.rj@bp.renesas.com> wrote:
>
> Document Renesas RZ/G2H (R8A774E1) GPIO blocks compatibility within the
> relevant dt-bindings.
>
> Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
> ---
>  Documentation/devicetree/bindings/gpio/renesas,rcar-gpio.yaml | 1 +
>  1 file changed, 1 insertion(+)
>
Gentle ping.

Cheers,
Prabhakar

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

* Re: [PATCH 6/9] dt-bindings: gpio: renesas,rcar-gpio: Add r8a774e1 support
  2020-08-27 16:39   ` Lad, Prabhakar
@ 2020-08-27 19:30     ` Bartosz Golaszewski
  0 siblings, 0 replies; 33+ messages in thread
From: Bartosz Golaszewski @ 2020-08-27 19:30 UTC (permalink / raw)
  To: Lad, Prabhakar
  Cc: Linus Walleij, Geert Uytterhoeven, Vinod Koul, Rob Herring,
	Joerg Roedel, Sergei Shtylyov, David S. Miller,
	open list:GPIO SUBSYSTEM, Jakub Kicinski, Magnus Damm,
	Yoshihiro Shimoda, dmaengine,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	Linux IOMMU, netdev, Linux-Renesas, LKML, Lad Prabhakar

On Thu, Aug 27, 2020 at 6:40 PM Lad, Prabhakar
<prabhakar.csengg@gmail.com> wrote:
>
> Hi Linus and Bartosz,
>
> On Mon, Jul 13, 2020 at 10:35 PM Lad Prabhakar
> <prabhakar.mahadev-lad.rj@bp.renesas.com> wrote:
> >
> > Document Renesas RZ/G2H (R8A774E1) GPIO blocks compatibility within the
> > relevant dt-bindings.
> >
> > Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
> > ---
> >  Documentation/devicetree/bindings/gpio/renesas,rcar-gpio.yaml | 1 +
> >  1 file changed, 1 insertion(+)
> >
> Gentle ping.
>
> Cheers,
> Prabhakar

This doesn't apply on top of v5.9-rc1.

Bart

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

end of thread, back to index

Thread overview: 33+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-13 21:35 [PATCH 0/9] R8A774E1 SoC enable support for IPMMU, DMAC, GPIO and AVB Lad Prabhakar
2020-07-13 21:35 ` [PATCH 1/9] dt-bindings: iommu: renesas,ipmmu-vmsa: Add r8a774e1 support Lad Prabhakar
2020-07-14  7:35   ` Geert Uytterhoeven
2020-07-21  2:02   ` Rob Herring
2020-07-13 21:35 ` [PATCH 2/9] iommu/ipmmu-vmsa: Hook up R8A774E1 DT matching code Lad Prabhakar
2020-07-14  8:09   ` Geert Uytterhoeven
2020-07-14  8:30     ` Lad, Prabhakar
2020-07-14  8:41       ` Geert Uytterhoeven
2020-07-14 11:42         ` Yoshihiro Shimoda
2020-07-14 12:39           ` Geert Uytterhoeven
2020-07-16  4:42             ` Yoshihiro Shimoda
2020-07-13 21:35 ` [PATCH 3/9] arm64: dts: renesas: r8a774e1: Add IPMMU device nodes Lad Prabhakar
2020-07-15 10:18   ` Geert Uytterhoeven
2020-07-21  2:01   ` Rob Herring
2020-07-13 21:35 ` [PATCH 4/9] dt-bindings: dma: renesas,rcar-dmac: Document R8A774E1 bindings Lad Prabhakar
2020-07-14  7:39   ` Geert Uytterhoeven
2020-07-15 10:40   ` Vinod Koul
2020-07-13 21:35 ` [PATCH 5/9] arm64: dts: renesas: r8a774e1: Add SYS-DMAC device nodes Lad Prabhakar
2020-07-15 10:20   ` Geert Uytterhoeven
2020-07-13 21:35 ` [PATCH 6/9] dt-bindings: gpio: renesas,rcar-gpio: Add r8a774e1 support Lad Prabhakar
2020-07-14  8:00   ` Geert Uytterhoeven
2020-07-21  2:02   ` Rob Herring
2020-08-27 16:39   ` Lad, Prabhakar
2020-08-27 19:30     ` Bartosz Golaszewski
2020-07-13 21:35 ` [PATCH 7/9] arm64: dts: renesas: r8a774e1: Add GPIO device nodes Lad Prabhakar
2020-07-15 10:21   ` Geert Uytterhoeven
2020-07-13 21:35 ` [PATCH 8/9] dt-bindings: net: renesas,ravb: Add support for r8a774e1 SoC Lad Prabhakar
2020-07-14  7:34   ` Sergei Shtylyov
2020-07-14  8:01   ` Geert Uytterhoeven
2020-07-21  2:03   ` Rob Herring
2020-08-27 10:28   ` Lad, Prabhakar
2020-07-13 21:35 ` [PATCH 9/9] arm64: dts: renesas: r8a774e1: Add Ethernet AVB node Lad Prabhakar
2020-07-15 10:21   ` Geert Uytterhoeven

dmaengine Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/dmaengine/0 dmaengine/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dmaengine dmaengine/ https://lore.kernel.org/dmaengine \
		dmaengine@vger.kernel.org
	public-inbox-index dmaengine

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.dmaengine


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git