From: Wolfram Sang <wsa+renesas@sang-engineering.com> Date: 2026-09-09 09:40:52
Here is a small series with the needed driver updates to support R-Car
Gen5 and X5H for the SYSC-DMAC. Details are in the patch descriptions,
but it is all small stuff.
It has been tested on an Ironhide board (X5H) and a SparrowHawk (V4H)
for regression testing. The testing branch can be found here:
git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git renesas/x5h/i2c-experimental
The patches here are based on linux-next as of 20260908. DT checks have
also been passed.
Looking forward to comments or approval!
Changes since v1:
* tags added (Thanks Krzysztof, Geert and Frank)
* renamed the ipmmu-flag variable
* some updates to commit messages and comments
Wolfram Sang (4):
dmaengine: sh: rcar-dmac: fix style in struct initialization
dmaengine: sh: rcar-dmac: SMMU doesn't need IPMMU workaround
dt-bindings: renesas,rcar-dmac: Add support for R-Car X5H SoC
dmaengine: sh: rcar-dmac: Add support for R-Car Gen5 SoCs
.../bindings/dma/renesas,rcar-dmac.yaml | 6 +++++
drivers/dma/sh/rcar-dmac.c | 26 ++++++++++++++-----
2 files changed, 26 insertions(+), 6 deletions(-)
--
2.53.0
From: Wolfram Sang <wsa+renesas@sang-engineering.com> Date: 2026-09-09 09:40:52
A new member will be added to the struct. Before that, adhere to coding
style by using a single space when assigning values.
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
Changes since v1:
* tags added (Thanks Geert and Frank)
drivers/dma/sh/rcar-dmac.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
From: Wolfram Sang <wsa+renesas@sang-engineering.com> Date: 2026-09-09 09:40:53
R-Car Gen5 doesn't use an IPMMU anymore, but a SMMU. So, the workaround
for the IPMMU becomes optional. Add a flag to distinguish. No functional
change.
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
---
Changes since v1:
* tags added (Thanks Frank)
* renamed the flag-variable (Thanks Geert)
* added a comment that Gen4 might not be affected
drivers/dma/sh/rcar-dmac.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
@@ -1877,8 +1879,9 @@ static int rcar_dmac_probe(struct platform_device *pdev)*can'tuseitwiththeIPMMU.AstheIOMMUAPIoperatesatthedevice*levelwecan'tdisableitselectively,soignorechannel0fornowif*thedeviceispartofanIOMMUgroup.+*NotapplicableifsystemusessomethingelsethanIPMMUlikeSMMU.*/-if(device_iommu_mapped(&pdev->dev))+if(data->broken_ipmmu_microTLB0&&device_iommu_mapped(&pdev->dev))dmac->channels_mask&=~BIT(0);dmac->channels=devm_kcalloc(&pdev->dev,dmac->n_channels,
@@ -2000,11 +2003,14 @@ static void rcar_dmac_shutdown(struct platform_device *pdev)staticconststructrcar_dmac_of_datarcar_dmac_data={.chan_offset_base=0x8000,.chan_offset_stride=0x80,+.broken_ipmmu_microTLB0=1,};staticconststructrcar_dmac_of_datarcar_gen4_dmac_data={.chan_offset_base=0x0,.chan_offset_stride=0x1000,+/* Set to play safe. Needs testing if Gen4 is really affected */+.broken_ipmmu_microTLB0=1,};staticconststructof_device_idrcar_dmac_of_ids[]={
From: Wolfram Sang <wsa+renesas@sang-engineering.com> Date: 2026-09-09 09:41:00
Also add the familiy compatible because X5H is the first R-Car Gen5 SoC.
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Acked-by: Krzysztof Kozlowski <redacted>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
Changes since v1:
* tags added (Thanks Krzysztof and Geert)
.../devicetree/bindings/dma/renesas,rcar-dmac.yaml | 6 ++++++
1 file changed, 6 insertions(+)
From: Wolfram Sang <wsa+renesas@sang-engineering.com> Date: 2026-09-09 09:41:04
Gen5 is very similar to Gen4. Of interest here is that it has a SMMU
instead of an IPMMU, so there is no need to set the flag for a
workaround. Make the module description more generic while here.
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
Changes since v1:
* reworded commit message to not include "we" (Frank)
* tags added (Thanks Geert)
drivers/dma/sh/rcar-dmac.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
On Wed, 9 Sept 2026 at 11:40, Wolfram Sang
[off-list ref] wrote:
R-Car Gen5 doesn't use an IPMMU anymore, but a SMMU. So, the workaround
for the IPMMU becomes optional. Add a flag to distinguish. No functional
change.
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
---
Changes since v1:
* tags added (Thanks Frank)
* renamed the flag-variable (Thanks Geert)
* added a comment that Gen4 might not be affected
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
On Wed, Sep 09, 2026 at 11:40:13AM +0200, Wolfram Sang wrote:
Gen5 is very similar to Gen4. Of interest here is that it has a SMMU
instead of an IPMMU, so there is no need to set the flag for a
workaround. Make the module description more generic while here.
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
Reviewed-by: Frank Li <Frank.Li@nxp.com>
quoted hunk
Changes since v1:
* reworded commit message to not include "we" (Frank)
* tags added (Thanks Geert)
drivers/dma/sh/rcar-dmac.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
From: Wolfram Sang <wsa+renesas@sang-engineering.com> Date: 2026-10-08 18:46:50
On Wed, Sep 09, 2026 at 11:40:09AM +0200, Wolfram Sang wrote:
Here is a small series with the needed driver updates to support R-Car
Gen5 and X5H for the SYSC-DMAC. Details are in the patch descriptions,
but it is all small stuff.
It has been tested on an Ironhide board (X5H) and a SparrowHawk (V4H)
for regression testing. The testing branch can be found here:
git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git renesas/x5h/i2c-experimental
The patches here are based on linux-next as of 20260908. DT checks have
also been passed.
Looking forward to comments or approval!
Every patch reviewed and tagged twice (thank you, guys!), no complaints
from Sashiko even - can we have this in 7.4 pretty please?
On Wed, 09 Sep 2026 11:40:09 +0200, Wolfram Sang wrote:
Here is a small series with the needed driver updates to support R-Car
Gen5 and X5H for the SYSC-DMAC. Details are in the patch descriptions,
but it is all small stuff.
It has been tested on an Ironhide board (X5H) and a SparrowHawk (V4H)
for regression testing. The testing branch can be found here:
[...]
Applied, thanks!
[1/4] dmaengine: sh: rcar-dmac: fix style in struct initialization
commit: a416b656798317f1c6eb69d7a034b4dc392b3781
[2/4] dmaengine: sh: rcar-dmac: SMMU doesn't need IPMMU workaround
commit: 73812307647a90234cbc1e474f2dec4bfa4ad34f
[3/4] dt-bindings: renesas,rcar-dmac: Add support for R-Car X5H SoC
commit: 8d4237d153174af7cda2b3e45f4f47586a04dc95
[4/4] dmaengine: sh: rcar-dmac: Add support for R-Car Gen5 SoCs
commit: 1d8ae2003de08f61095e4e928b1b8cce6c23cabd
Best regards,
--
~Vinod