* [PATCH v2 0/2] arm64: dts: renesas: r8a779f0: Add IPMMU support
@ 2022-05-30 2:46 Yoshihiro Shimoda
2022-05-30 2:46 ` [PATCH v2 1/2] arm64: dts: renesas: r8a779f0: Add IPMMU nodes Yoshihiro Shimoda
2022-05-30 2:46 ` [PATCH v2 2/2] arm64: dts: renesas: r8a779f0: Add iommus in dmac nodes Yoshihiro Shimoda
0 siblings, 2 replies; 7+ messages in thread
From: Yoshihiro Shimoda @ 2022-05-30 2:46 UTC (permalink / raw)
To: geert+renesas, magnus.damm; +Cc: linux-renesas-soc, Yoshihiro Shimoda
This patch series is based on renesas-drivers-2022-05-17-v5.18-rc7.
Changes from v1:
- Rename ipmmu_hsc with ipmmu_hc.
https://lore.kernel.org/all/20220125130021.4144902-1-yoshihiro.shimoda.uh@renesas.com/
Yoshihiro Shimoda (2):
arm64: dts: renesas: r8a779f0: Add IPMMU nodes
arm64: dts: renesas: r8a779f0: Add iommus in dmac nodes
arch/arm64/boot/dts/renesas/r8a779f0.dtsi | 62 +++++++++++++++++++++++
1 file changed, 62 insertions(+)
--
2.25.1
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH v2 1/2] arm64: dts: renesas: r8a779f0: Add IPMMU nodes
2022-05-30 2:46 [PATCH v2 0/2] arm64: dts: renesas: r8a779f0: Add IPMMU support Yoshihiro Shimoda
@ 2022-05-30 2:46 ` Yoshihiro Shimoda
2022-06-07 7:46 ` Geert Uytterhoeven
2022-06-15 10:03 ` Geert Uytterhoeven
2022-05-30 2:46 ` [PATCH v2 2/2] arm64: dts: renesas: r8a779f0: Add iommus in dmac nodes Yoshihiro Shimoda
1 sibling, 2 replies; 7+ messages in thread
From: Yoshihiro Shimoda @ 2022-05-30 2:46 UTC (permalink / raw)
To: geert+renesas, magnus.damm; +Cc: linux-renesas-soc, Yoshihiro Shimoda
Add IPMMU nodes for r8a779f0.
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
---
arch/arm64/boot/dts/renesas/r8a779f0.dtsi | 46 +++++++++++++++++++++++
1 file changed, 46 insertions(+)
diff --git a/arch/arm64/boot/dts/renesas/r8a779f0.dtsi b/arch/arm64/boot/dts/renesas/r8a779f0.dtsi
index df46fb87cffc..512e0b57fd6a 100644
--- a/arch/arm64/boot/dts/renesas/r8a779f0.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a779f0.dtsi
@@ -343,6 +343,52 @@ dmac1: dma-controller@e7351000 {
dma-channels = <16>;
};
+ ipmmu_rt0: iommu@ee480000 {
+ compatible = "renesas,ipmmu-r8a779f0",
+ "renesas,rcar-gen4-ipmmu";
+ reg = <0 0xee480000 0 0x20000>;
+ renesas,ipmmu-main = <&ipmmu_mm 10>;
+ power-domains = <&sysc R8A779F0_PD_ALWAYS_ON>;
+ #iommu-cells = <1>;
+ };
+
+ ipmmu_rt1: iommu@ee4c0000 {
+ compatible = "renesas,ipmmu-r8a779f0",
+ "renesas,rcar-gen4-ipmmu";
+ reg = <0 0xee4c0000 0 0x20000>;
+ renesas,ipmmu-main = <&ipmmu_mm 19>;
+ power-domains = <&sysc R8A779F0_PD_ALWAYS_ON>;
+ #iommu-cells = <1>;
+ };
+
+ ipmmu_ds0: iommu@eed00000 {
+ compatible = "renesas,ipmmu-r8a779f0",
+ "renesas,rcar-gen4-ipmmu";
+ reg = <0 0xeed00000 0 0x20000>;
+ renesas,ipmmu-main = <&ipmmu_mm 0>;
+ power-domains = <&sysc R8A779F0_PD_ALWAYS_ON>;
+ #iommu-cells = <1>;
+ };
+
+ ipmmu_hc: iommu@eed40000 {
+ compatible = "renesas,ipmmu-r8a779f0",
+ "renesas,rcar-gen4-ipmmu";
+ reg = <0 0xeed40000 0 0x20000>;
+ renesas,ipmmu-main = <&ipmmu_mm 2>;
+ power-domains = <&sysc R8A779F0_PD_ALWAYS_ON>;
+ #iommu-cells = <1>;
+ };
+
+ ipmmu_mm: iommu@eefc0000 {
+ compatible = "renesas,ipmmu-r8a779f0",
+ "renesas,rcar-gen4-ipmmu";
+ reg = <0 0xeefc0000 0 0x20000>;
+ interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>;
+ power-domains = <&sysc R8A779F0_PD_ALWAYS_ON>;
+ #iommu-cells = <1>;
+ };
+
gic: interrupt-controller@f1000000 {
compatible = "arm,gic-v3";
#interrupt-cells = <3>;
--
2.25.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH v2 2/2] arm64: dts: renesas: r8a779f0: Add iommus in dmac nodes
2022-05-30 2:46 [PATCH v2 0/2] arm64: dts: renesas: r8a779f0: Add IPMMU support Yoshihiro Shimoda
2022-05-30 2:46 ` [PATCH v2 1/2] arm64: dts: renesas: r8a779f0: Add IPMMU nodes Yoshihiro Shimoda
@ 2022-05-30 2:46 ` Yoshihiro Shimoda
2022-06-07 7:48 ` Geert Uytterhoeven
1 sibling, 1 reply; 7+ messages in thread
From: Yoshihiro Shimoda @ 2022-05-30 2:46 UTC (permalink / raw)
To: geert+renesas, magnus.damm; +Cc: linux-renesas-soc, Yoshihiro Shimoda
Add iommus propaties in the dmac nodes for r8a779f0.
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
---
arch/arm64/boot/dts/renesas/r8a779f0.dtsi | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/arch/arm64/boot/dts/renesas/r8a779f0.dtsi b/arch/arm64/boot/dts/renesas/r8a779f0.dtsi
index 512e0b57fd6a..ad8c77edb126 100644
--- a/arch/arm64/boot/dts/renesas/r8a779f0.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a779f0.dtsi
@@ -306,6 +306,14 @@ dmac0: dma-controller@e7350000 {
resets = <&cpg 709>;
#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@e7351000 {
@@ -341,6 +349,14 @@ dmac1: dma-controller@e7351000 {
resets = <&cpg 710>;
#dma-cells = <1>;
dma-channels = <16>;
+ iommus = <&ipmmu_ds0 16>, <&ipmmu_ds0 17>,
+ <&ipmmu_ds0 18>, <&ipmmu_ds0 19>,
+ <&ipmmu_ds0 20>, <&ipmmu_ds0 21>,
+ <&ipmmu_ds0 22>, <&ipmmu_ds0 23>,
+ <&ipmmu_ds0 24>, <&ipmmu_ds0 25>,
+ <&ipmmu_ds0 26>, <&ipmmu_ds0 27>,
+ <&ipmmu_ds0 28>, <&ipmmu_ds0 29>,
+ <&ipmmu_ds0 30>, <&ipmmu_ds0 31>;
};
ipmmu_rt0: iommu@ee480000 {
--
2.25.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH v2 1/2] arm64: dts: renesas: r8a779f0: Add IPMMU nodes
2022-05-30 2:46 ` [PATCH v2 1/2] arm64: dts: renesas: r8a779f0: Add IPMMU nodes Yoshihiro Shimoda
@ 2022-06-07 7:46 ` Geert Uytterhoeven
2022-06-15 10:03 ` Geert Uytterhoeven
1 sibling, 0 replies; 7+ messages in thread
From: Geert Uytterhoeven @ 2022-06-07 7:46 UTC (permalink / raw)
To: Yoshihiro Shimoda; +Cc: Magnus Damm, Linux-Renesas
On Mon, May 30, 2022 at 4:46 AM Yoshihiro Shimoda
<yoshihiro.shimoda.uh@renesas.com> wrote:
> Add IPMMU nodes for r8a779f0.
>
> Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
i.e. will queue in renesas-devel for v5.20.
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] 7+ messages in thread
* Re: [PATCH v2 2/2] arm64: dts: renesas: r8a779f0: Add iommus in dmac nodes
2022-05-30 2:46 ` [PATCH v2 2/2] arm64: dts: renesas: r8a779f0: Add iommus in dmac nodes Yoshihiro Shimoda
@ 2022-06-07 7:48 ` Geert Uytterhoeven
0 siblings, 0 replies; 7+ messages in thread
From: Geert Uytterhoeven @ 2022-06-07 7:48 UTC (permalink / raw)
To: Yoshihiro Shimoda; +Cc: Magnus Damm, Linux-Renesas
On Mon, May 30, 2022 at 4:46 AM Yoshihiro Shimoda
<yoshihiro.shimoda.uh@renesas.com> wrote:
> Add iommus propaties in the dmac nodes for r8a779f0.
>
> Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
My
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
on v1 is still valid, so will queue in renesas-devel for v5.20.
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] 7+ messages in thread
* Re: [PATCH v2 1/2] arm64: dts: renesas: r8a779f0: Add IPMMU nodes
2022-05-30 2:46 ` [PATCH v2 1/2] arm64: dts: renesas: r8a779f0: Add IPMMU nodes Yoshihiro Shimoda
2022-06-07 7:46 ` Geert Uytterhoeven
@ 2022-06-15 10:03 ` Geert Uytterhoeven
2022-06-16 11:27 ` Yoshihiro Shimoda
1 sibling, 1 reply; 7+ messages in thread
From: Geert Uytterhoeven @ 2022-06-15 10:03 UTC (permalink / raw)
To: Yoshihiro Shimoda; +Cc: Magnus Damm, Linux-Renesas
Hi Shimoda-san,
On Mon, May 30, 2022 at 4:46 AM Yoshihiro Shimoda
<yoshihiro.shimoda.uh@renesas.com> wrote:
> Add IPMMU nodes for r8a779f0.
>
> Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
> ---
> arch/arm64/boot/dts/renesas/r8a779f0.dtsi | 46 +++++++++++++++++++++++
> 1 file changed, 46 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/renesas/r8a779f0.dtsi b/arch/arm64/boot/dts/renesas/r8a779f0.dtsi
> index df46fb87cffc..512e0b57fd6a 100644
> --- a/arch/arm64/boot/dts/renesas/r8a779f0.dtsi
> +++ b/arch/arm64/boot/dts/renesas/r8a779f0.dtsi
> @@ -343,6 +343,52 @@ dmac1: dma-controller@e7351000 {
> dma-channels = <16>;
> };
>
> + ipmmu_rt0: iommu@ee480000 {
> + compatible = "renesas,ipmmu-r8a779f0",
> + "renesas,rcar-gen4-ipmmu";
"renesas,rcar-gen4-ipmmu-vmsa"
I thought I had fixed that while applying, but that was for r8a779a0.
Will fix for good.
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] 7+ messages in thread
* RE: [PATCH v2 1/2] arm64: dts: renesas: r8a779f0: Add IPMMU nodes
2022-06-15 10:03 ` Geert Uytterhoeven
@ 2022-06-16 11:27 ` Yoshihiro Shimoda
0 siblings, 0 replies; 7+ messages in thread
From: Yoshihiro Shimoda @ 2022-06-16 11:27 UTC (permalink / raw)
To: Geert Uytterhoeven; +Cc: Magnus Damm, Linux-Renesas
Hi Geert-san,
> From: Geert Uytterhoeven, Sent: Wednesday, June 15, 2022 7:04 PM
>
> Hi Shimoda-san,
>
> On Mon, May 30, 2022 at 4:46 AM Yoshihiro Shimoda
> <yoshihiro.shimoda.uh@renesas.com> wrote:
> > Add IPMMU nodes for r8a779f0.
> >
> > Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
> > ---
> > arch/arm64/boot/dts/renesas/r8a779f0.dtsi | 46 +++++++++++++++++++++++
> > 1 file changed, 46 insertions(+)
> >
> > diff --git a/arch/arm64/boot/dts/renesas/r8a779f0.dtsi b/arch/arm64/boot/dts/renesas/r8a779f0.dtsi
> > index df46fb87cffc..512e0b57fd6a 100644
> > --- a/arch/arm64/boot/dts/renesas/r8a779f0.dtsi
> > +++ b/arch/arm64/boot/dts/renesas/r8a779f0.dtsi
> > @@ -343,6 +343,52 @@ dmac1: dma-controller@e7351000 {
> > dma-channels = <16>;
> > };
> >
> > + ipmmu_rt0: iommu@ee480000 {
> > + compatible = "renesas,ipmmu-r8a779f0",
> > + "renesas,rcar-gen4-ipmmu";
>
> "renesas,rcar-gen4-ipmmu-vmsa"
>
> I thought I had fixed that while applying, but that was for r8a779a0.
> Will fix for good.
Thank you for pointing it out. I realized the drivers/iommu/ipmmu-vmsa.c
also mistook about the compatible string...
-----
}, {
.compatible = "renesas,rcar-gen4-ipmmu",
.data = &ipmmu_features_rcar_gen4,
}, {
-----
So, I'll fix the driver and dtsi file tomorrow.
Best regards,
Yoshihiro Shimoda
> 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] 7+ messages in thread
end of thread, other threads:[~2022-06-16 11:27 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-30 2:46 [PATCH v2 0/2] arm64: dts: renesas: r8a779f0: Add IPMMU support Yoshihiro Shimoda
2022-05-30 2:46 ` [PATCH v2 1/2] arm64: dts: renesas: r8a779f0: Add IPMMU nodes Yoshihiro Shimoda
2022-06-07 7:46 ` Geert Uytterhoeven
2022-06-15 10:03 ` Geert Uytterhoeven
2022-06-16 11:27 ` Yoshihiro Shimoda
2022-05-30 2:46 ` [PATCH v2 2/2] arm64: dts: renesas: r8a779f0: Add iommus in dmac nodes Yoshihiro Shimoda
2022-06-07 7:48 ` Geert Uytterhoeven
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.