* [PATCH 5.10.y-cip 00/11] Renesas: Backport audio and serial support
@ 2026-11-26 15:25 Claudiu Beznea
2026-11-26 15:25 ` [PATCH 5.10.y-cip 01/11] ASoC: renesas: rz-ssi: Add a check for negative sample_space Claudiu Beznea
` (12 more replies)
0 siblings, 13 replies; 15+ messages in thread
From: Claudiu Beznea @ 2026-11-26 15:25 UTC (permalink / raw)
To: nobuhiro.iwamatsu.x90, pavel; +Cc: cip-dev
From: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Hi,
This series switches the rz-ssi driver to use cyclic DMA. Along with
it a DMA fix was added. This fix needs to be applied after the rz-ssi is
switched to use cyclic DMA, to avoid any regression.
For bisectability reasons, this series needs to be applied on top of
series https://lore.kernel.org/cip-dev/20261126152204.1297798-1-claudiu.beznea@tuxon.dev/T/#t.
I tried to limit the number of patches per series. Please let me know
if this needs to be further improved and will consider it for the
future sumissions.
Thank you,
Claudiu
Claudiu Beznea (9):
ASoC: renesas: rz-ssi: Simplify the logic in rz_ssi_stream_is_play()
ASoC: renesas: rz-ssi: Drop unnecessary if condition
ASoC: renesas: rz-ssi: Drop the & operator in front of function name
ASoC: renesas: rz-ssi: Drop goto label
ASoC: renesas: rz-ssi: Fix playback and capture
ASoC: renesas: rz-ssi: Add pause support
ASoC: renesas: rz-ssi: Use generic PCM dmaengine APIs
dmaengine: sh: rz-dmac: Set the Link End (LE) bit on the last
descriptor
arm64: dts: renesas: r9a07g044: Add DMA properties to serial nodes
Dan Carpenter (1):
ASoC: renesas: rz-ssi: Add a check for negative sample_space
Kuninori Morimoto (1):
ASoC: renesas: rz-ssi: Use guard() for spin locks
arch/arm64/boot/dts/renesas/r9a07g044.dtsi | 10 +
drivers/dma/sh/rz-dmac.c | 5 +-
sound/soc/sh/Kconfig | 1 +
sound/soc/sh/rz-ssi.c | 446 +++++++--------------
4 files changed, 169 insertions(+), 293 deletions(-)
--
2.43.0
^ permalink raw reply [flat|nested] 15+ messages in thread
* [PATCH 5.10.y-cip 01/11] ASoC: renesas: rz-ssi: Add a check for negative sample_space
2026-11-26 15:25 [PATCH 5.10.y-cip 00/11] Renesas: Backport audio and serial support Claudiu Beznea
@ 2026-11-26 15:25 ` Claudiu Beznea
2026-11-26 15:25 ` [PATCH 5.10.y-cip 02/11] ASoC: renesas: rz-ssi: Use guard() for spin locks Claudiu Beznea
` (11 subsequent siblings)
12 siblings, 0 replies; 15+ messages in thread
From: Claudiu Beznea @ 2026-11-26 15:25 UTC (permalink / raw)
To: nobuhiro.iwamatsu.x90, pavel; +Cc: cip-dev
From: Dan Carpenter <dan.carpenter@linaro.org>
commit 82a0a3e6f8c02b3236b55e784a083fa4ee07c321 upstream.
My static checker rule complains about this code. The concern is that
if "sample_space" is negative then the "sample_space >= runtime->channels"
condition will not work as intended because it will be type promoted to a
high unsigned int value.
strm->fifo_sample_size is SSI_FIFO_DEPTH (32). The SSIFSR_TDC_MASK is
0x3f. Without any further context it does seem like a reasonable warning
and it can't hurt to add a check for negatives.
Cc: stable@vger.kernel.org
Fixes: 03e786bd4341 ("ASoC: sh: Add RZ/G2L SSIF-2 driver")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://patch.msgid.link/e07c3dc5-d885-4b04-a742-71f42243f4fd@stanley.mountain
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
---
sound/soc/sh/rz-ssi.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sound/soc/sh/rz-ssi.c b/sound/soc/sh/rz-ssi.c
index 0c2dbc7528f2..0c3146d92691 100644
--- a/sound/soc/sh/rz-ssi.c
+++ b/sound/soc/sh/rz-ssi.c
@@ -571,6 +571,8 @@ static int rz_ssi_pio_send(struct rz_ssi_priv *ssi, struct rz_ssi_stream *strm)
sample_space = strm->fifo_sample_size;
ssifsr = rz_ssi_reg_readl(ssi, SSIFSR);
sample_space -= (ssifsr >> SSIFSR_TDC_SHIFT) & SSIFSR_TDC_MASK;
+ if (sample_space < 0)
+ return -EINVAL;
/* Only add full frames at a time */
while (frames_left && (sample_space >= runtime->channels)) {
--
2.43.0
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH 5.10.y-cip 02/11] ASoC: renesas: rz-ssi: Use guard() for spin locks
2026-11-26 15:25 [PATCH 5.10.y-cip 00/11] Renesas: Backport audio and serial support Claudiu Beznea
2026-11-26 15:25 ` [PATCH 5.10.y-cip 01/11] ASoC: renesas: rz-ssi: Add a check for negative sample_space Claudiu Beznea
@ 2026-11-26 15:25 ` Claudiu Beznea
2026-11-26 15:25 ` [PATCH 5.10.y-cip 03/11] ASoC: renesas: rz-ssi: Simplify the logic in rz_ssi_stream_is_play() Claudiu Beznea
` (10 subsequent siblings)
12 siblings, 0 replies; 15+ messages in thread
From: Claudiu Beznea @ 2026-11-26 15:25 UTC (permalink / raw)
To: nobuhiro.iwamatsu.x90, pavel; +Cc: cip-dev
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
commit 7d083666123a425ba9f81dff1a52955b1f226540 upstream.
Clean up the code using guard() for spin locks.
Merely code refactoring, and no behavior change.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Message-ID: <87frcx1yp5.wl-kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
---
sound/soc/sh/rz-ssi.c | 14 ++++----------
1 file changed, 4 insertions(+), 10 deletions(-)
diff --git a/sound/soc/sh/rz-ssi.c b/sound/soc/sh/rz-ssi.c
index 0c3146d92691..38398994e5f3 100644
--- a/sound/soc/sh/rz-ssi.c
+++ b/sound/soc/sh/rz-ssi.c
@@ -206,24 +206,18 @@ static void rz_ssi_set_substream(struct rz_ssi_stream *strm,
struct snd_pcm_substream *substream)
{
struct rz_ssi_priv *ssi = strm->priv;
- unsigned long flags;
- spin_lock_irqsave(&ssi->lock, flags);
+ guard(spinlock_irqsave)(&ssi->lock);
+
strm->substream = substream;
- spin_unlock_irqrestore(&ssi->lock, flags);
}
static bool rz_ssi_stream_is_valid(struct rz_ssi_priv *ssi,
struct rz_ssi_stream *strm)
{
- unsigned long flags;
- bool ret;
-
- spin_lock_irqsave(&ssi->lock, flags);
- ret = strm->substream && strm->substream->runtime;
- spin_unlock_irqrestore(&ssi->lock, flags);
+ guard(spinlock_irqsave)(&ssi->lock);
- return ret;
+ return strm->substream && strm->substream->runtime;
}
static inline bool rz_ssi_is_stream_running(struct rz_ssi_stream *strm)
--
2.43.0
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH 5.10.y-cip 03/11] ASoC: renesas: rz-ssi: Simplify the logic in rz_ssi_stream_is_play()
2026-11-26 15:25 [PATCH 5.10.y-cip 00/11] Renesas: Backport audio and serial support Claudiu Beznea
2026-11-26 15:25 ` [PATCH 5.10.y-cip 01/11] ASoC: renesas: rz-ssi: Add a check for negative sample_space Claudiu Beznea
2026-11-26 15:25 ` [PATCH 5.10.y-cip 02/11] ASoC: renesas: rz-ssi: Use guard() for spin locks Claudiu Beznea
@ 2026-11-26 15:25 ` Claudiu Beznea
2026-11-26 15:25 ` [PATCH 5.10.y-cip 04/11] ASoC: renesas: rz-ssi: Drop unnecessary if condition Claudiu Beznea
` (9 subsequent siblings)
12 siblings, 0 replies; 15+ messages in thread
From: Claudiu Beznea @ 2026-11-26 15:25 UTC (permalink / raw)
To: nobuhiro.iwamatsu.x90, pavel; +Cc: cip-dev
From: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
commit 53dfb2ad6fcff111f58aa506afbbf6fd82f32cb1 upstream.
The code in rz_ssi_stream_is_play() checks whether substream->stream is
different from SNDRV_PCM_STREAM_PLAYBACK and returns the capture
struct rz_ssi_stream in that case. The logic is easier to follow if
substream->stream is compared directly against SNDRV_PCM_STREAM_CAPTURE
and return the capture struct rz_ssi_stream.
Use the conditional operator to simplify the code.
Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Link: https://patch.msgid.link/20260119195252.3362486-2-claudiu.beznea.uj@bp.renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
---
sound/soc/sh/rz-ssi.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/sound/soc/sh/rz-ssi.c b/sound/soc/sh/rz-ssi.c
index 38398994e5f3..1068e3a82d97 100644
--- a/sound/soc/sh/rz-ssi.c
+++ b/sound/soc/sh/rz-ssi.c
@@ -189,12 +189,7 @@ static inline bool rz_ssi_stream_is_play(struct snd_pcm_substream *substream)
static inline struct rz_ssi_stream *
rz_ssi_stream_get(struct rz_ssi_priv *ssi, struct snd_pcm_substream *substream)
{
- struct rz_ssi_stream *stream = &ssi->playback;
-
- if (substream->stream != SNDRV_PCM_STREAM_PLAYBACK)
- stream = &ssi->capture;
-
- return stream;
+ return (ssi->playback.substream == substream) ? &ssi->playback : &ssi->capture;
}
static inline bool rz_ssi_is_dma_enabled(struct rz_ssi_priv *ssi)
--
2.43.0
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH 5.10.y-cip 04/11] ASoC: renesas: rz-ssi: Drop unnecessary if condition
2026-11-26 15:25 [PATCH 5.10.y-cip 00/11] Renesas: Backport audio and serial support Claudiu Beznea
` (2 preceding siblings ...)
2026-11-26 15:25 ` [PATCH 5.10.y-cip 03/11] ASoC: renesas: rz-ssi: Simplify the logic in rz_ssi_stream_is_play() Claudiu Beznea
@ 2026-11-26 15:25 ` Claudiu Beznea
2026-11-26 15:25 ` [PATCH 5.10.y-cip 05/11] ASoC: renesas: rz-ssi: Drop the & operator in front of function name Claudiu Beznea
` (8 subsequent siblings)
12 siblings, 0 replies; 15+ messages in thread
From: Claudiu Beznea @ 2026-11-26 15:25 UTC (permalink / raw)
To: nobuhiro.iwamatsu.x90, pavel; +Cc: cip-dev
From: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
commit 9e0e337cc6c7f30a5986dd44dac5c0a0e30d971f upstream.
The is_stopped variable can be initialized directly at declaration,
removing the need for an extra if condition. Drop the if condition and
initialize is_stopped at declaration.
Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Link: https://patch.msgid.link/20260119195252.3362486-3-claudiu.beznea.uj@bp.renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
---
sound/soc/sh/rz-ssi.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/sound/soc/sh/rz-ssi.c b/sound/soc/sh/rz-ssi.c
index 1068e3a82d97..568c6a892ffc 100644
--- a/sound/soc/sh/rz-ssi.c
+++ b/sound/soc/sh/rz-ssi.c
@@ -615,7 +615,8 @@ static irqreturn_t rz_ssi_interrupt(int irq, void *data)
return IRQ_HANDLED; /* Left over TX/RX interrupt */
if (irq == ssi->irq_int) { /* error or idle */
- bool is_stopped = false;
+ bool is_stopped = !!(ssisr & (SSISR_RUIRQ | SSISR_ROIRQ |
+ SSISR_TUIRQ | SSISR_TOIRQ));
int i, count;
if (rz_ssi_is_dma_enabled(ssi))
@@ -623,9 +624,6 @@ static irqreturn_t rz_ssi_interrupt(int irq, void *data)
else
count = 1;
- if (ssisr & (SSISR_RUIRQ | SSISR_ROIRQ | SSISR_TUIRQ | SSISR_TOIRQ))
- is_stopped = true;
-
if (ssi->capture.substream && is_stopped) {
if (ssisr & SSISR_RUIRQ)
strm_capture->uerr_num++;
--
2.43.0
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH 5.10.y-cip 05/11] ASoC: renesas: rz-ssi: Drop the & operator in front of function name
2026-11-26 15:25 [PATCH 5.10.y-cip 00/11] Renesas: Backport audio and serial support Claudiu Beznea
` (3 preceding siblings ...)
2026-11-26 15:25 ` [PATCH 5.10.y-cip 04/11] ASoC: renesas: rz-ssi: Drop unnecessary if condition Claudiu Beznea
@ 2026-11-26 15:25 ` Claudiu Beznea
2026-11-26 15:25 ` [PATCH 5.10.y-cip 06/11] ASoC: renesas: rz-ssi: Drop goto label Claudiu Beznea
` (7 subsequent siblings)
12 siblings, 0 replies; 15+ messages in thread
From: Claudiu Beznea @ 2026-11-26 15:25 UTC (permalink / raw)
To: nobuhiro.iwamatsu.x90, pavel; +Cc: cip-dev
From: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
commit c7a4c368e7135046c358ff15c4f7897e2522dedc upstream.
There is no need for & operator in front of the function name. Drop it.
Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Link: https://patch.msgid.link/20260119195252.3362486-4-claudiu.beznea.uj@bp.renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
---
sound/soc/sh/rz-ssi.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/sound/soc/sh/rz-ssi.c b/sound/soc/sh/rz-ssi.c
index 568c6a892ffc..1d93dbfb5149 100644
--- a/sound/soc/sh/rz-ssi.c
+++ b/sound/soc/sh/rz-ssi.c
@@ -1197,7 +1197,7 @@ static int rz_ssi_probe(struct platform_device *pdev)
goto err_release_dma_chs;
}
- ret = devm_request_irq(dev, ssi->irq_int, &rz_ssi_interrupt,
+ ret = devm_request_irq(dev, ssi->irq_int, rz_ssi_interrupt,
0, dev_name(dev), ssi);
if (ret < 0) {
dev_err_probe(dev, ret, "irq request error (int_req)\n");
@@ -1214,7 +1214,7 @@ static int rz_ssi_probe(struct platform_device *pdev)
return ssi->irq_rt;
ret = devm_request_irq(dev, ssi->irq_rt,
- &rz_ssi_interrupt, 0,
+ rz_ssi_interrupt, 0,
dev_name(dev), ssi);
if (ret < 0)
return dev_err_probe(dev, ret,
@@ -1227,14 +1227,14 @@ static int rz_ssi_probe(struct platform_device *pdev)
return ssi->irq_rx;
ret = devm_request_irq(dev, ssi->irq_tx,
- &rz_ssi_interrupt, 0,
+ rz_ssi_interrupt, 0,
dev_name(dev), ssi);
if (ret < 0)
return dev_err_probe(dev, ret,
"irq request error (dma_tx)\n");
ret = devm_request_irq(dev, ssi->irq_rx,
- &rz_ssi_interrupt, 0,
+ rz_ssi_interrupt, 0,
dev_name(dev), ssi);
if (ret < 0)
return dev_err_probe(dev, ret,
--
2.43.0
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH 5.10.y-cip 06/11] ASoC: renesas: rz-ssi: Drop goto label
2026-11-26 15:25 [PATCH 5.10.y-cip 00/11] Renesas: Backport audio and serial support Claudiu Beznea
` (4 preceding siblings ...)
2026-11-26 15:25 ` [PATCH 5.10.y-cip 05/11] ASoC: renesas: rz-ssi: Drop the & operator in front of function name Claudiu Beznea
@ 2026-11-26 15:25 ` Claudiu Beznea
2026-11-26 15:25 ` [PATCH 5.10.y-cip 07/11] ASoC: renesas: rz-ssi: Fix playback and capture Claudiu Beznea
` (6 subsequent siblings)
12 siblings, 0 replies; 15+ messages in thread
From: Claudiu Beznea @ 2026-11-26 15:25 UTC (permalink / raw)
To: nobuhiro.iwamatsu.x90, pavel; +Cc: cip-dev
From: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
commit cafadbf430f4b2f3ca4158de48ef6ba4d97fbf17 upstream.
There is no need to jump to a label just to return. Return directly
instead.
Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Link: https://patch.msgid.link/20260119195252.3362486-5-claudiu.beznea.uj@bp.renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
---
sound/soc/sh/rz-ssi.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/sound/soc/sh/rz-ssi.c b/sound/soc/sh/rz-ssi.c
index 1d93dbfb5149..d2dd2e4a4ccd 100644
--- a/sound/soc/sh/rz-ssi.c
+++ b/sound/soc/sh/rz-ssi.c
@@ -892,7 +892,7 @@ static int rz_ssi_dai_trigger(struct snd_pcm_substream *substream, int cmd,
for (i = 0; i < num_transfer; i++) {
ret = strm->transfer(ssi, strm);
if (ret)
- goto done;
+ return ret;
}
ret = rz_ssi_start(ssi, strm);
@@ -908,7 +908,6 @@ static int rz_ssi_dai_trigger(struct snd_pcm_substream *substream, int cmd,
break;
}
-done:
return ret;
}
--
2.43.0
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH 5.10.y-cip 07/11] ASoC: renesas: rz-ssi: Fix playback and capture
2026-11-26 15:25 [PATCH 5.10.y-cip 00/11] Renesas: Backport audio and serial support Claudiu Beznea
` (5 preceding siblings ...)
2026-11-26 15:25 ` [PATCH 5.10.y-cip 06/11] ASoC: renesas: rz-ssi: Drop goto label Claudiu Beznea
@ 2026-11-26 15:25 ` Claudiu Beznea
2026-11-26 15:25 ` [PATCH 5.10.y-cip 08/11] ASoC: renesas: rz-ssi: Add pause support Claudiu Beznea
` (5 subsequent siblings)
12 siblings, 0 replies; 15+ messages in thread
From: Claudiu Beznea @ 2026-11-26 15:25 UTC (permalink / raw)
To: nobuhiro.iwamatsu.x90, pavel; +Cc: cip-dev
From: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
commit 82e3265487c018814b789e251fb8aee8e683674c upstream.
In the current codebase the rz_ssi_stream_get() is called at the beginning
of rz_ssi_dai_trigger() before rz_ssi_stream_init() is called.
Since rz_ssi_stream_init() sets the ssi->{playback, capture}->substream,
relying on it in rz_ssi_stream_get() is incorrect. Fix this by checking
substream->stream instead as the original code did.
Fixes: 53dfb2ad6fcf ("ASoC: renesas: rz-ssi: Simplify the logic in rz_ssi_stream_is_play()")
Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Link: https://patch.msgid.link/20260213172434.3801015-1-claudiu.beznea.uj@bp.renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
---
sound/soc/sh/rz-ssi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/sh/rz-ssi.c b/sound/soc/sh/rz-ssi.c
index d2dd2e4a4ccd..6e045dba2003 100644
--- a/sound/soc/sh/rz-ssi.c
+++ b/sound/soc/sh/rz-ssi.c
@@ -189,7 +189,7 @@ static inline bool rz_ssi_stream_is_play(struct snd_pcm_substream *substream)
static inline struct rz_ssi_stream *
rz_ssi_stream_get(struct rz_ssi_priv *ssi, struct snd_pcm_substream *substream)
{
- return (ssi->playback.substream == substream) ? &ssi->playback : &ssi->capture;
+ return (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ? &ssi->playback : &ssi->capture;
}
static inline bool rz_ssi_is_dma_enabled(struct rz_ssi_priv *ssi)
--
2.43.0
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH 5.10.y-cip 08/11] ASoC: renesas: rz-ssi: Add pause support
2026-11-26 15:25 [PATCH 5.10.y-cip 00/11] Renesas: Backport audio and serial support Claudiu Beznea
` (6 preceding siblings ...)
2026-11-26 15:25 ` [PATCH 5.10.y-cip 07/11] ASoC: renesas: rz-ssi: Fix playback and capture Claudiu Beznea
@ 2026-11-26 15:25 ` Claudiu Beznea
2026-11-26 15:25 ` [PATCH 5.10.y-cip 09/11] ASoC: renesas: rz-ssi: Use generic PCM dmaengine APIs Claudiu Beznea
` (4 subsequent siblings)
12 siblings, 0 replies; 15+ messages in thread
From: Claudiu Beznea @ 2026-11-26 15:25 UTC (permalink / raw)
To: nobuhiro.iwamatsu.x90, pavel; +Cc: cip-dev
From: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
commit b4d34819a53964648bc53cabaa3ba9890d4fdf9c upstream.
Add pause support as a preparatory step to switch to PCM dmaengine APIs.
Acked-by: Mark Brown <broonie@kernel.org>
Tested-by: John Madieu <john.madieu.xa@bp.renesas.com>
Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Link: https://patch.msgid.link/20260526084710.3491480-17-claudiu.beznea@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
---
sound/soc/sh/rz-ssi.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/sound/soc/sh/rz-ssi.c b/sound/soc/sh/rz-ssi.c
index 6e045dba2003..1f0d25905631 100644
--- a/sound/soc/sh/rz-ssi.c
+++ b/sound/soc/sh/rz-ssi.c
@@ -858,6 +858,7 @@ static int rz_ssi_dai_trigger(struct snd_pcm_substream *substream, int cmd,
switch (cmd) {
case SNDRV_PCM_TRIGGER_RESUME:
+ case SNDRV_PCM_TRIGGER_PAUSE_RELEASE:
ret = rz_ssi_trigger_resume(ssi, strm);
if (ret)
return ret;
@@ -899,6 +900,7 @@ static int rz_ssi_dai_trigger(struct snd_pcm_substream *substream, int cmd,
break;
case SNDRV_PCM_TRIGGER_SUSPEND:
+ case SNDRV_PCM_TRIGGER_PAUSE_PUSH:
rz_ssi_stop(ssi, strm);
break;
@@ -1065,7 +1067,8 @@ static const struct snd_pcm_hardware rz_ssi_pcm_hardware = {
.info = SNDRV_PCM_INFO_INTERLEAVED |
SNDRV_PCM_INFO_MMAP |
SNDRV_PCM_INFO_MMAP_VALID |
- SNDRV_PCM_INFO_RESUME,
+ SNDRV_PCM_INFO_RESUME |
+ SNDRV_PCM_INFO_PAUSE,
.buffer_bytes_max = PREALLOC_BUFFER,
.period_bytes_min = 32,
.period_bytes_max = 8192,
--
2.43.0
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH 5.10.y-cip 09/11] ASoC: renesas: rz-ssi: Use generic PCM dmaengine APIs
2026-11-26 15:25 [PATCH 5.10.y-cip 00/11] Renesas: Backport audio and serial support Claudiu Beznea
` (7 preceding siblings ...)
2026-11-26 15:25 ` [PATCH 5.10.y-cip 08/11] ASoC: renesas: rz-ssi: Add pause support Claudiu Beznea
@ 2026-11-26 15:25 ` Claudiu Beznea
2026-12-02 13:22 ` Pavel Machek
2026-11-26 15:25 ` [PATCH 5.10.y-cip 10/11] dmaengine: sh: rz-dmac: Set the Link End (LE) bit on the last descriptor Claudiu Beznea
` (3 subsequent siblings)
12 siblings, 1 reply; 15+ messages in thread
From: Claudiu Beznea @ 2026-11-26 15:25 UTC (permalink / raw)
To: nobuhiro.iwamatsu.x90, pavel; +Cc: cip-dev
From: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
commit 9fcaec81ac56c9d2c5d779ffb5a76b622b4d0590 upstream.
On Renesas RZ/G2L and RZ/G3S SoCs (where this was tested), captured audio
files occasionally contained random spikes when viewed with a tool such
as Audacity. These spikes were also audible as popping noises.
Using cyclic DMA resolves this issue. The driver was reworked to use the
existing support provided by the generic PCM dmaengine APIs. In addition
to eliminating the random spikes, the following issues were addressed:
- blank periods at the beginning of recorded files, which occurred
intermittently, are no longer present
- no overruns or underruns were observed when continuously recording
short audio files (e.g. 5 seconds long) in a loop
- concurrency issues in the SSI driver when enqueuing DMA requests were
eliminated; previously, DMA requests could be prepared and submitted
both from the DMA completion callback and the interrupt handler, which
led to crashes after several hours of testing
- the SSI driver logic is simplified
- the number of generated interrupts is reduced by approximately 250%
In the SSI platform driver probe function, the following changes were
made:
- the driver-specific DMA configuration was removed in favor of the
generic PCM dmaengine APIs. As a result, explicit cleanup goto labels
are no longer required and the driver remove callback was dropped,
since resource management is now handled via devres helpers
- special handling was added for IP variants operating in half-duplex
mode, where the DMA channel name in the device tree is "rt"; this DMA
channel name is taken into account and passed to the generic PCM
dmaengine configuration data
All code previously responsible for preparing and completing DMA
transfers was removed, as this functionality is now handled entirely by
the generic PCM dmaengine APIs.
Since DMA channels must be paused and resumed during recovery paths
(overruns and underruns reported by the hardware), the DMA channel
references are stored in rz_ssi_hw_params().
The logic in rz_ssi_is_dma_enabled() was updated to reflect that the
driver no longer manages DMA transfers directly.
To avoid software reported underruns (e.g. when running aplay during
consecutive suspend/resume cycles, or when the CPU is nearly 100%
loaded), rz_ssi_pcm_hardware.buffer_bytes_max was increased to 192K.
At the same time, rz_ssi_pcm_hardware.period_bytes_max was set to 48K
to reduce interrupt overhead.
Finally, rz_ssi_stream_is_play() was removed, as it had only a single
remaining user after this rework, and its logic was inlined at the call
site.
Acked-by: Mark Brown <broonie@kernel.org>
Tested-by: John Madieu <john.madieu.xa@bp.renesas.com>
Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Link: https://patch.msgid.link/20260526084710.3491480-18-claudiu.beznea@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
[claudiu.beznea:
- fixed conflict by dropping the code dropped by the backported commit
- dropped legacy_dai_naming initialization in rz_ssi_soc_component_pio
since it is NA in v5.10 CIP
- used .pcm_construct() instad of .pcm_new() in rz_ssi_soc_component_pio
- moved snd_soc_dai_ops::probe() initialization to snd_soc_dai_driver::probe()
since the former is NA in v5.10 CIP]
Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
---
sound/soc/sh/Kconfig | 1 +
sound/soc/sh/rz-ssi.c | 401 +++++++++++++++---------------------------
2 files changed, 138 insertions(+), 264 deletions(-)
diff --git a/sound/soc/sh/Kconfig b/sound/soc/sh/Kconfig
index 96d9d7160f30..a3182ced8f61 100644
--- a/sound/soc/sh/Kconfig
+++ b/sound/soc/sh/Kconfig
@@ -47,6 +47,7 @@ config SND_SOC_RCAR
config SND_SOC_RZ
tristate "RZ/G2L series SSIF-2 support"
depends on ARCH_RZG2L || COMPILE_TEST
+ select SND_SOC_GENERIC_DMAENGINE_PCM
help
This option enables RZ/G2L SSIF-2 sound support.
diff --git a/sound/soc/sh/rz-ssi.c b/sound/soc/sh/rz-ssi.c
index 1f0d25905631..09f4f7744a56 100644
--- a/sound/soc/sh/rz-ssi.c
+++ b/sound/soc/sh/rz-ssi.c
@@ -14,6 +14,8 @@
#include <linux/of_device.h>
#include <linux/pm_runtime.h>
#include <linux/reset.h>
+#include <sound/dmaengine_pcm.h>
+#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include <sound/soc.h>
@@ -88,8 +90,6 @@ struct rz_ssi_stream {
struct rz_ssi_priv *priv;
struct snd_pcm_substream *substream;
int fifo_sample_size; /* sample capacity of SSI FIFO */
- int dma_buffer_pos; /* The address for the next DMA descriptor */
- int completed_dma_buf_pos; /* The address of the last completed DMA descriptor. */
int period_counter; /* for keeping track of periods transferred */
int buffer_pos; /* current frame position in the buffer */
int running; /* 0=stopped, 1=running */
@@ -97,8 +97,6 @@ struct rz_ssi_stream {
int uerr_num;
int oerr_num;
- struct dma_chan *dma_ch;
-
int (*transfer)(struct rz_ssi_priv *ssi, struct rz_ssi_stream *strm);
};
@@ -109,7 +107,6 @@ struct rz_ssi_priv {
struct clk *sfr_clk;
struct clk *clk;
- phys_addr_t phys;
int irq_int;
int irq_tx;
int irq_rx;
@@ -149,9 +146,10 @@ struct rz_ssi_priv {
unsigned int sample_width;
unsigned int sample_bits;
} hw_params_cache;
-};
-static void rz_ssi_dma_complete(void *data);
+ struct snd_dmaengine_dai_dma_data dma_dais[SNDRV_PCM_STREAM_LAST + 1];
+ struct dma_chan *dmas[SNDRV_PCM_STREAM_LAST + 1];
+};
static void rz_ssi_reg_writel(struct rz_ssi_priv *priv, uint reg, u32 data)
{
@@ -181,11 +179,6 @@ rz_ssi_get_dai(struct snd_pcm_substream *substream)
return asoc_rtd_to_cpu(rtd, 0);
}
-static inline bool rz_ssi_stream_is_play(struct snd_pcm_substream *substream)
-{
- return substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
-}
-
static inline struct rz_ssi_stream *
rz_ssi_stream_get(struct rz_ssi_priv *ssi, struct snd_pcm_substream *substream)
{
@@ -194,7 +187,7 @@ rz_ssi_stream_get(struct rz_ssi_priv *ssi, struct snd_pcm_substream *substream)
static inline bool rz_ssi_is_dma_enabled(struct rz_ssi_priv *ssi)
{
- return (ssi->playback.dma_ch && (ssi->dma_rt || ssi->capture.dma_ch));
+ return !ssi->playback.transfer && !ssi->capture.transfer;
}
static void rz_ssi_set_substream(struct rz_ssi_stream *strm,
@@ -224,8 +217,6 @@ static void rz_ssi_stream_init(struct rz_ssi_stream *strm,
struct snd_pcm_substream *substream)
{
rz_ssi_set_substream(strm, substream);
- strm->dma_buffer_pos = 0;
- strm->completed_dma_buf_pos = 0;
strm->period_counter = 0;
strm->buffer_pos = 0;
@@ -251,12 +242,13 @@ static void rz_ssi_stream_quit(struct rz_ssi_priv *ssi,
dev_info(dai->dev, "underrun = %d\n", strm->uerr_num);
}
-static int rz_ssi_clk_setup(struct rz_ssi_priv *ssi, unsigned int rate,
- unsigned int channels)
+static int rz_ssi_clk_setup(struct rz_ssi_priv *ssi, struct snd_pcm_substream *substream,
+ unsigned int rate, unsigned int channels)
{
static u8 ckdv[] = { 1, 2, 4, 8, 16, 32, 64, 128, 6, 12, 24, 48, 96 };
unsigned int channel_bits = 32; /* System Word Length */
unsigned long bclk_rate = rate * channels * channel_bits;
+ struct snd_dmaengine_dai_dma_data *dma_dai;
unsigned int div;
unsigned int i;
u32 ssicr = 0;
@@ -299,6 +291,8 @@ static int rz_ssi_clk_setup(struct rz_ssi_priv *ssi, unsigned int rate,
return -EINVAL;
}
+ dma_dai = &ssi->dma_dais[substream->stream];
+
/*
* DWL: Data Word Length = {16, 24, 32} bits
* SWL: System Word Length = 32 bits
@@ -307,12 +301,15 @@ static int rz_ssi_clk_setup(struct rz_ssi_priv *ssi, unsigned int rate,
switch (ssi->hw_params_cache.sample_width) {
case 16:
ssicr |= SSICR_DWL(1);
+ dma_dai->addr_width = DMA_SLAVE_BUSWIDTH_2_BYTES;
break;
case 24:
ssicr |= SSICR_DWL(5) | SSICR_PDTA;
+ dma_dai->addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES;
break;
case 32:
ssicr |= SSICR_DWL(6);
+ dma_dai->addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES;
break;
default:
dev_err(ssi->dev, "Not support %u data width",
@@ -355,7 +352,7 @@ static void rz_ssi_set_idle(struct rz_ssi_priv *ssi)
static int rz_ssi_start(struct rz_ssi_priv *ssi, struct rz_ssi_stream *strm)
{
- bool is_play = rz_ssi_stream_is_play(strm->substream);
+ bool is_play = strm->substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
bool is_full_duplex;
u32 ssicr, ssifcr;
@@ -434,14 +431,6 @@ static int rz_ssi_stop(struct rz_ssi_priv *ssi, struct rz_ssi_stream *strm)
/* Disable TX/RX */
rz_ssi_reg_mask_setl(ssi, SSICR, SSICR_TEN | SSICR_REN, 0);
- /* Cancel all remaining DMA transactions */
- if (rz_ssi_is_dma_enabled(ssi)) {
- if (ssi->playback.dma_ch)
- dmaengine_terminate_async(ssi->playback.dma_ch);
- if (ssi->capture.dma_ch)
- dmaengine_terminate_async(ssi->capture.dma_ch);
- }
-
rz_ssi_set_idle(ssi);
return 0;
@@ -469,10 +458,6 @@ static void rz_ssi_pointer_update(struct rz_ssi_stream *strm, int frames)
snd_pcm_period_elapsed(strm->substream);
strm->period_counter = current_period;
}
-
- strm->completed_dma_buf_pos += runtime->period_size;
- if (strm->completed_dma_buf_pos >= runtime->buffer_size)
- strm->completed_dma_buf_pos = 0;
}
static int rz_ssi_pio_recv(struct rz_ssi_priv *ssi, struct rz_ssi_stream *strm)
@@ -617,12 +602,6 @@ static irqreturn_t rz_ssi_interrupt(int irq, void *data)
if (irq == ssi->irq_int) { /* error or idle */
bool is_stopped = !!(ssisr & (SSISR_RUIRQ | SSISR_ROIRQ |
SSISR_TUIRQ | SSISR_TOIRQ));
- int i, count;
-
- if (rz_ssi_is_dma_enabled(ssi))
- count = 4;
- else
- count = 1;
if (ssi->capture.substream && is_stopped) {
if (ssisr & SSISR_RUIRQ)
@@ -642,19 +621,41 @@ static irqreturn_t rz_ssi_interrupt(int irq, void *data)
rz_ssi_stop(ssi, strm_playback);
}
+ if (!rz_ssi_is_stream_running(&ssi->playback) &&
+ !rz_ssi_is_stream_running(&ssi->capture) &&
+ rz_ssi_is_dma_enabled(ssi) && is_stopped) {
+ if (ssi->playback.substream &&
+ ssi->dmas[SNDRV_PCM_STREAM_PLAYBACK])
+ dmaengine_pause(ssi->dmas[SNDRV_PCM_STREAM_PLAYBACK]);
+ if (ssi->capture.substream &&
+ ssi->dmas[SNDRV_PCM_STREAM_CAPTURE] &&
+ /* Avoid calling pause twice in case of half duplex. */
+ ssi->dmas[SNDRV_PCM_STREAM_PLAYBACK] !=
+ ssi->dmas[SNDRV_PCM_STREAM_CAPTURE])
+ dmaengine_pause(ssi->dmas[SNDRV_PCM_STREAM_CAPTURE]);
+ }
+
/* Clear all flags */
rz_ssi_reg_mask_setl(ssi, SSISR, SSISR_TOIRQ | SSISR_TUIRQ |
SSISR_ROIRQ | SSISR_RUIRQ, 0);
/* Add/remove more data */
if (ssi->capture.substream && is_stopped) {
- for (i = 0; i < count; i++)
+ if (rz_ssi_is_dma_enabled(ssi)) {
+ if (ssi->dmas[SNDRV_PCM_STREAM_CAPTURE])
+ dmaengine_resume(ssi->dmas[SNDRV_PCM_STREAM_CAPTURE]);
+ } else {
strm_capture->transfer(ssi, strm_capture);
+ }
}
if (ssi->playback.substream && is_stopped) {
- for (i = 0; i < count; i++)
+ if (rz_ssi_is_dma_enabled(ssi)) {
+ if (ssi->dmas[SNDRV_PCM_STREAM_PLAYBACK])
+ dmaengine_resume(ssi->dmas[SNDRV_PCM_STREAM_PLAYBACK]);
+ } else {
strm_playback->transfer(ssi, strm_playback);
+ }
}
/* Resume */
@@ -690,153 +691,11 @@ static irqreturn_t rz_ssi_interrupt(int irq, void *data)
return IRQ_HANDLED;
}
-static int rz_ssi_dma_slave_config(struct rz_ssi_priv *ssi,
- struct dma_chan *dma_ch, bool is_play)
-{
- struct dma_slave_config cfg;
-
- memset(&cfg, 0, sizeof(cfg));
-
- cfg.direction = is_play ? DMA_MEM_TO_DEV : DMA_DEV_TO_MEM;
- cfg.dst_addr = ssi->phys + SSIFTDR;
- cfg.src_addr = ssi->phys + SSIFRDR;
- if (ssi->hw_params_cache.sample_width == 16) {
- cfg.src_addr_width = DMA_SLAVE_BUSWIDTH_2_BYTES;
- cfg.dst_addr_width = DMA_SLAVE_BUSWIDTH_2_BYTES;
- } else {
- cfg.src_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES;
- cfg.dst_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES;
- }
-
- return dmaengine_slave_config(dma_ch, &cfg);
-}
-
-static int rz_ssi_dma_transfer(struct rz_ssi_priv *ssi,
- struct rz_ssi_stream *strm)
-{
- struct snd_pcm_substream *substream = strm->substream;
- struct dma_async_tx_descriptor *desc;
- struct snd_pcm_runtime *runtime;
- enum dma_transfer_direction dir;
- u32 dma_paddr, dma_size;
- int amount;
-
- if (!rz_ssi_stream_is_valid(ssi, strm))
- return -EINVAL;
-
- runtime = substream->runtime;
- if (runtime->status->state == SNDRV_PCM_STATE_DRAINING)
- /*
- * Stream is ending, so do not queue up any more DMA
- * transfers otherwise we play partial sound clips
- * because we can't shut off the DMA quick enough.
- */
- return 0;
-
- dir = rz_ssi_stream_is_play(substream) ? DMA_MEM_TO_DEV : DMA_DEV_TO_MEM;
-
- /* Always transfer 1 period */
- amount = runtime->period_size;
-
- /* DMA physical address and size */
- dma_paddr = runtime->dma_addr + frames_to_bytes(runtime,
- strm->dma_buffer_pos);
- dma_size = frames_to_bytes(runtime, amount);
- desc = dmaengine_prep_slave_single(strm->dma_ch, dma_paddr, dma_size,
- dir,
- DMA_PREP_INTERRUPT | DMA_CTRL_ACK);
- if (!desc) {
- dev_err(ssi->dev, "dmaengine_prep_slave_single() fail\n");
- return -ENOMEM;
- }
-
- desc->callback = rz_ssi_dma_complete;
- desc->callback_param = strm;
-
- if (dmaengine_submit(desc) < 0) {
- dev_err(ssi->dev, "dmaengine_submit() fail\n");
- return -EIO;
- }
-
- /* Update DMA pointer */
- strm->dma_buffer_pos += amount;
- if (strm->dma_buffer_pos >= runtime->buffer_size)
- strm->dma_buffer_pos = 0;
-
- /* Start DMA */
- dma_async_issue_pending(strm->dma_ch);
-
- return 0;
-}
-
-static void rz_ssi_dma_complete(void *data)
-{
- struct rz_ssi_stream *strm = (struct rz_ssi_stream *)data;
-
- if (!strm->running || !strm->substream || !strm->substream->runtime)
- return;
-
- /* Note that next DMA transaction has probably already started */
- rz_ssi_pointer_update(strm, strm->substream->runtime->period_size);
-
- /* Queue up another DMA transaction */
- rz_ssi_dma_transfer(strm->priv, strm);
-}
-
-static void rz_ssi_release_dma_channels(struct rz_ssi_priv *ssi)
-{
- if (ssi->playback.dma_ch) {
- dma_release_channel(ssi->playback.dma_ch);
- ssi->playback.dma_ch = NULL;
- if (ssi->dma_rt)
- ssi->dma_rt = false;
- }
-
- if (ssi->capture.dma_ch) {
- dma_release_channel(ssi->capture.dma_ch);
- ssi->capture.dma_ch = NULL;
- }
-}
-
-static int rz_ssi_dma_request(struct rz_ssi_priv *ssi, struct device *dev)
-{
- ssi->playback.dma_ch = dma_request_chan(dev, "tx");
- if (IS_ERR(ssi->playback.dma_ch))
- ssi->playback.dma_ch = NULL;
-
- ssi->capture.dma_ch = dma_request_chan(dev, "rx");
- if (IS_ERR(ssi->capture.dma_ch))
- ssi->capture.dma_ch = NULL;
-
- if (!ssi->playback.dma_ch && !ssi->capture.dma_ch) {
- ssi->playback.dma_ch = dma_request_chan(dev, "rt");
- if (IS_ERR(ssi->playback.dma_ch)) {
- ssi->playback.dma_ch = NULL;
- goto no_dma;
- }
-
- ssi->dma_rt = true;
- }
-
- if (!rz_ssi_is_dma_enabled(ssi))
- goto no_dma;
-
- return 0;
-
-no_dma:
- rz_ssi_release_dma_channels(ssi);
-
- return -ENODEV;
-}
-
static int rz_ssi_trigger_resume(struct rz_ssi_priv *ssi, struct rz_ssi_stream *strm)
{
struct snd_pcm_substream *substream = strm->substream;
- struct snd_pcm_runtime *runtime = substream->runtime;
int ret;
- strm->dma_buffer_pos = strm->completed_dma_buf_pos + runtime->period_size;
-
if (rz_ssi_is_stream_running(&ssi->playback) ||
rz_ssi_is_stream_running(&ssi->capture))
return 0;
@@ -845,7 +704,7 @@ static int rz_ssi_trigger_resume(struct rz_ssi_priv *ssi, struct rz_ssi_stream *
if (ret)
return ret;
- return rz_ssi_clk_setup(ssi, ssi->hw_params_cache.rate,
+ return rz_ssi_clk_setup(ssi, substream, ssi->hw_params_cache.rate,
ssi->hw_params_cache.channels);
}
@@ -854,7 +713,7 @@ static int rz_ssi_dai_trigger(struct snd_pcm_substream *substream, int cmd,
{
struct rz_ssi_priv *ssi = snd_soc_dai_get_drvdata(dai);
struct rz_ssi_stream *strm = rz_ssi_stream_get(ssi, substream);
- int ret = 0, i, num_transfer = 1;
+ int ret = 0;
switch (cmd) {
case SNDRV_PCM_TRIGGER_RESUME:
@@ -869,28 +728,7 @@ static int rz_ssi_dai_trigger(struct snd_pcm_substream *substream, int cmd,
if (cmd == SNDRV_PCM_TRIGGER_START)
rz_ssi_stream_init(strm, substream);
- if (rz_ssi_is_dma_enabled(ssi)) {
- bool is_playback = rz_ssi_stream_is_play(substream);
-
- if (ssi->dma_rt)
- ret = rz_ssi_dma_slave_config(ssi, ssi->playback.dma_ch,
- is_playback);
- else
- ret = rz_ssi_dma_slave_config(ssi, strm->dma_ch,
- is_playback);
-
- /* Fallback to pio */
- if (ret < 0) {
- ssi->playback.transfer = rz_ssi_pio_send;
- ssi->capture.transfer = rz_ssi_pio_recv;
- rz_ssi_release_dma_channels(ssi);
- } else {
- /* For DMA, queue up multiple DMA descriptors */
- num_transfer = 4;
- }
- }
-
- for (i = 0; i < num_transfer; i++) {
+ if (!rz_ssi_is_dma_enabled(ssi)) {
ret = strm->transfer(ssi, strm);
if (ret)
return ret;
@@ -986,6 +824,8 @@ static void rz_ssi_shutdown(struct snd_pcm_substream *substream,
ssi->dup.tx_active = false;
else
ssi->dup.rx_active = false;
+
+ ssi->dmas[substream->stream] = NULL;
}
static bool rz_ssi_is_valid_hw_params(struct rz_ssi_priv *ssi, unsigned int rate,
@@ -1037,6 +877,12 @@ static int rz_ssi_dai_hw_params(struct snd_pcm_substream *substream,
return -EINVAL;
}
+ /* Save the DMA channels for recovery. */
+ if (rz_ssi_is_dma_enabled(ssi))
+ ssi->dmas[substream->stream] = snd_dmaengine_pcm_get_chan(substream);
+ else
+ ssi->dmas[substream->stream] = NULL;
+
if (rz_ssi_is_stream_running(&ssi->playback) ||
rz_ssi_is_stream_running(&ssi->capture)) {
if (rz_ssi_is_valid_hw_params(ssi, rate, channels, sample_width, sample_bits))
@@ -1052,7 +898,17 @@ static int rz_ssi_dai_hw_params(struct snd_pcm_substream *substream,
if (ret)
return ret;
- return rz_ssi_clk_setup(ssi, rate, channels);
+ return rz_ssi_clk_setup(ssi, substream, rate, channels);
+}
+
+static int rz_ssi_dai_probe(struct snd_soc_dai *dai)
+{
+ struct rz_ssi_priv *ssi = snd_soc_dai_get_drvdata(dai);
+
+ snd_soc_dai_init_dma_data(dai, &ssi->dma_dais[SNDRV_PCM_STREAM_PLAYBACK],
+ &ssi->dma_dais[SNDRV_PCM_STREAM_CAPTURE]);
+
+ return 0;
}
static const struct snd_soc_dai_ops rz_ssi_dai_ops = {
@@ -1069,9 +925,9 @@ static const struct snd_pcm_hardware rz_ssi_pcm_hardware = {
SNDRV_PCM_INFO_MMAP_VALID |
SNDRV_PCM_INFO_RESUME |
SNDRV_PCM_INFO_PAUSE,
- .buffer_bytes_max = PREALLOC_BUFFER,
+ .buffer_bytes_max = 192 * 1024,
.period_bytes_min = 32,
- .period_bytes_max = 8192,
+ .period_bytes_max = 48 * 1024,
.channels_min = SSI_CHAN_MIN,
.channels_max = SSI_CHAN_MAX,
.periods_min = 1,
@@ -1079,8 +935,8 @@ static const struct snd_pcm_hardware rz_ssi_pcm_hardware = {
.fifo_size = 32 * 2,
};
-static int rz_ssi_pcm_open(struct snd_soc_component *component,
- struct snd_pcm_substream *substream)
+static int rz_ssi_pcm_open_pio(struct snd_soc_component *component,
+ struct snd_pcm_substream *substream)
{
snd_soc_set_runtime_hwparams(substream, &rz_ssi_pcm_hardware);
@@ -1088,6 +944,13 @@ static int rz_ssi_pcm_open(struct snd_soc_component *component,
SNDRV_PCM_HW_PARAM_PERIODS);
}
+static int rz_ssi_pcm_open_dma(struct snd_soc_component *component,
+ struct snd_pcm_substream *substream)
+{
+ return snd_pcm_hw_constraint_integer(substream->runtime,
+ SNDRV_PCM_HW_PARAM_PERIODS);
+}
+
static snd_pcm_uframes_t rz_ssi_pcm_pointer(struct snd_soc_component *component,
struct snd_pcm_substream *substream)
{
@@ -1103,7 +966,8 @@ static int rz_ssi_pcm_new(struct snd_soc_component *component,
{
snd_pcm_set_managed_buffer_all(rtd->pcm, SNDRV_DMA_TYPE_DEV,
rtd->card->snd_card->dev,
- PREALLOC_BUFFER, PREALLOC_BUFFER_MAX);
+ rz_ssi_pcm_hardware.buffer_bytes_max,
+ rz_ssi_pcm_hardware.buffer_bytes_max);
return 0;
}
@@ -1123,18 +987,32 @@ static struct snd_soc_dai_driver rz_ssi_soc_dai[] = {
.channels_max = SSI_CHAN_MAX,
},
.ops = &rz_ssi_dai_ops,
+ .probe = rz_ssi_dai_probe,
},
};
-static const struct snd_soc_component_driver rz_ssi_soc_component = {
- .name = "rz-ssi",
- .open = rz_ssi_pcm_open,
- .pointer = rz_ssi_pcm_pointer,
- .pcm_construct = rz_ssi_pcm_new,
+static const struct snd_soc_component_driver rz_ssi_soc_component_pio = {
+ .name = "rz-ssi",
+ .open = rz_ssi_pcm_open_pio,
+ .pointer = rz_ssi_pcm_pointer,
+ .pcm_construct = rz_ssi_pcm_new,
+};
+
+static const struct snd_soc_component_driver rz_ssi_soc_component_dma = {
+ .name = "rz-ssi",
+ .open = rz_ssi_pcm_open_dma,
+};
+
+static const struct snd_dmaengine_pcm_config rz_ssi_dmaengine_pcm_conf = {
+ .pcm_hardware = &rz_ssi_pcm_hardware,
+ .prealloc_buffer_size = 192 * 1024,
+ .prepare_slave_config = snd_dmaengine_pcm_prepare_slave_config,
};
static int rz_ssi_probe(struct platform_device *pdev)
{
+ const struct snd_soc_component_driver *component_driver;
+ struct device_node *np = pdev->dev.of_node;
struct device *dev = &pdev->dev;
struct rz_ssi_priv *ssi;
struct clk *audio_clk;
@@ -1150,7 +1028,6 @@ static int rz_ssi_probe(struct platform_device *pdev)
if (IS_ERR(ssi->base))
return PTR_ERR(ssi->base);
- ssi->phys = res->start;
ssi->clk = devm_clk_get(dev, "ssi");
if (IS_ERR(ssi->clk))
return PTR_ERR(ssi->clk);
@@ -1174,16 +1051,43 @@ static int rz_ssi_probe(struct platform_device *pdev)
ssi->audio_mck = ssi->audio_clk_1 ? ssi->audio_clk_1 : ssi->audio_clk_2;
- /* Detect DMA support */
- ret = rz_ssi_dma_request(ssi, dev);
- if (ret < 0) {
+ ssi->dma_dais[SNDRV_PCM_STREAM_PLAYBACK].addr = (dma_addr_t)res->start + SSIFTDR;
+ ssi->dma_dais[SNDRV_PCM_STREAM_CAPTURE].addr = (dma_addr_t)res->start + SSIFRDR;
+
+ if (of_property_present(np, "dma-names")) {
+ struct snd_dmaengine_pcm_config *config;
+ unsigned int flags = 0;
+
+ config = devm_kzalloc(dev, sizeof(*config), GFP_KERNEL);
+ if (!config)
+ return -ENOMEM;
+
+ config->pcm_hardware = rz_ssi_dmaengine_pcm_conf.pcm_hardware;
+ config->prealloc_buffer_size = rz_ssi_dmaengine_pcm_conf.prealloc_buffer_size;
+ config->prepare_slave_config = rz_ssi_dmaengine_pcm_conf.prepare_slave_config;
+
+ if (of_property_match_string(np, "dma-names", "rt") == 0) {
+ flags = SND_DMAENGINE_PCM_FLAG_HALF_DUPLEX;
+ config->chan_names[SNDRV_PCM_STREAM_PLAYBACK] = "rt";
+ } else {
+ config->chan_names[SNDRV_PCM_STREAM_PLAYBACK] = "tx";
+ config->chan_names[SNDRV_PCM_STREAM_CAPTURE] = "rx";
+ }
+ ret = devm_snd_dmaengine_pcm_register(&pdev->dev, config, flags);
+ } else {
+ ret = -ENODEV;
+ }
+
+ if (ret == -EPROBE_DEFER) {
+ return ret;
+ } else if (ret) {
dev_warn(dev, "DMA not available, using PIO\n");
ssi->playback.transfer = rz_ssi_pio_send;
ssi->capture.transfer = rz_ssi_pio_recv;
+ component_driver = &rz_ssi_soc_component_pio;
} else {
- dev_info(dev, "DMA enabled");
- ssi->playback.transfer = rz_ssi_dma_transfer;
- ssi->capture.transfer = rz_ssi_dma_transfer;
+ dev_info(dev, "DMA enabled\n");
+ component_driver = &rz_ssi_soc_component_dma;
}
ssi->playback.priv = ssi;
@@ -1194,17 +1098,13 @@ static int rz_ssi_probe(struct platform_device *pdev)
/* Error Interrupt */
ssi->irq_int = platform_get_irq_byname(pdev, "int_req");
- if (ssi->irq_int < 0) {
- ret = ssi->irq_int;
- goto err_release_dma_chs;
- }
+ if (ssi->irq_int < 0)
+ return ssi->irq_int;
ret = devm_request_irq(dev, ssi->irq_int, rz_ssi_interrupt,
0, dev_name(dev), ssi);
- if (ret < 0) {
- dev_err_probe(dev, ret, "irq request error (int_req)\n");
- goto err_release_dma_chs;
- }
+ if (ret < 0)
+ return dev_err_probe(dev, ret, "irq request error (int_req)\n");
if (!rz_ssi_is_dma_enabled(ssi)) {
/* Tx and Rx interrupts (pio only) */
@@ -1245,45 +1145,19 @@ static int rz_ssi_probe(struct platform_device *pdev)
}
ssi->rstc = devm_reset_control_get_exclusive(dev, NULL);
- if (IS_ERR(ssi->rstc)) {
- ret = PTR_ERR(ssi->rstc);
- goto err_release_dma_chs;
- }
+ if (IS_ERR(ssi->rstc))
+ return dev_err_probe(dev, PTR_ERR(ssi->rstc), "Failed to get reset\n");
/* Default 0 for power saving. Can be overridden via sysfs. */
pm_runtime_set_autosuspend_delay(dev, 0);
pm_runtime_use_autosuspend(dev);
ret = devm_pm_runtime_enable(dev);
- if (ret < 0) {
- dev_err(dev, "Failed to enable runtime PM!\n");
- goto err_release_dma_chs;
- }
-
- ret = devm_snd_soc_register_component(dev, &rz_ssi_soc_component,
- rz_ssi_soc_dai,
- ARRAY_SIZE(rz_ssi_soc_dai));
- if (ret < 0) {
- dev_err(dev, "failed to register snd component\n");
- goto err_release_dma_chs;
- }
-
- return 0;
-
-err_release_dma_chs:
- rz_ssi_release_dma_channels(ssi);
+ if (ret < 0)
+ return dev_err_probe(dev, ret, "Failed to enable runtime PM!\n");
- return ret;
-}
-
-static int rz_ssi_remove(struct platform_device *pdev)
-{
- struct rz_ssi_priv *ssi = dev_get_drvdata(&pdev->dev);
-
- rz_ssi_release_dma_channels(ssi);
-
- reset_control_assert(ssi->rstc);
-
- return 0;
+ return devm_snd_soc_register_component(dev, component_driver,
+ rz_ssi_soc_dai,
+ ARRAY_SIZE(rz_ssi_soc_dai));
}
static const struct of_device_id rz_ssi_of_match[] = {
@@ -1318,7 +1192,6 @@ static struct platform_driver rz_ssi_driver = {
.pm = pm_ptr(&rz_ssi_pm_ops),
},
.probe = rz_ssi_probe,
- .remove = rz_ssi_remove,
};
module_platform_driver(rz_ssi_driver);
--
2.43.0
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH 5.10.y-cip 10/11] dmaengine: sh: rz-dmac: Set the Link End (LE) bit on the last descriptor
2026-11-26 15:25 [PATCH 5.10.y-cip 00/11] Renesas: Backport audio and serial support Claudiu Beznea
` (8 preceding siblings ...)
2026-11-26 15:25 ` [PATCH 5.10.y-cip 09/11] ASoC: renesas: rz-ssi: Use generic PCM dmaengine APIs Claudiu Beznea
@ 2026-11-26 15:25 ` Claudiu Beznea
2026-11-26 15:25 ` [PATCH 5.10.y-cip 11/11] arm64: dts: renesas: r9a07g044: Add DMA properties to serial nodes Claudiu Beznea
` (2 subsequent siblings)
12 siblings, 0 replies; 15+ messages in thread
From: Claudiu Beznea @ 2026-11-26 15:25 UTC (permalink / raw)
To: nobuhiro.iwamatsu.x90, pavel; +Cc: cip-dev
From: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
commit cd2d36e8ae61832aaac3bddf5aafdab72821e6b9 upstream.
On an RZ/G2L-based system, it has been observed that when the DMA channels
for all enabled IPs are active (TX and RX for one serial IP, TX and RX for
one audio IP, and TX and RX for one SPI IP), shortly after all of them are
started, the system can become irrecoverably blocked. In one debug session
the system did not block, and the DMA HW registers were inspected. It was
found that the DER (Descriptor Error) bit in the CHSTAT register for one of
the SPI DMA channels was set.
According to the RZ/G2L HW Manual, Rev. 1.30, chapter 14.4.7 Channel
Status Register n/nS (CHSTAT_n/nS), description of the DER bit, the DER
bit is set when the LV (Link Valid) value loaded with a descriptor in link
mode is 0. This means that the DMA engine has loaded an invalid
descriptor (as defined in Table 14.14, Header Area, of the same manual).
The same chapter states that when a descriptor error occurs, the transfer
is stopped, but no DMA error interrupt is generated.
Set the LE bit on the last descriptor of a transfer. This informs the DMA
engine that this is the final descriptor for the transfer.
Tested-by: John Madieu <john.madieu.xa@bp.renesas.com>
Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Tested-by: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com>
Link: https://patch.msgid.link/20260526084710.3491480-19-claudiu.beznea@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
---
drivers/dma/sh/rz-dmac.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/dma/sh/rz-dmac.c b/drivers/dma/sh/rz-dmac.c
index 5d5109510110..547e14d2b6e6 100644
--- a/drivers/dma/sh/rz-dmac.c
+++ b/drivers/dma/sh/rz-dmac.c
@@ -185,6 +185,7 @@ struct rz_dmac {
/* LINK MODE DESCRIPTOR */
#define HEADER_LV BIT(0)
+#define HEADER_LE BIT(1)
#define HEADER_WBD BIT(2)
#define RZ_DMAC_MAX_CHAN_DESCRIPTORS 16
@@ -354,7 +355,7 @@ static void rz_dmac_prepare_desc_for_memcpy(struct rz_dmac_chan *channel)
lmdesc->chcfg = chcfg;
lmdesc->chitvl = 0;
lmdesc->chext = 0;
- lmdesc->header = HEADER_LV;
+ lmdesc->header = HEADER_LV | HEADER_LE;
rz_dmac_set_dmars_register(dmac, channel->index, 0);
@@ -397,7 +398,7 @@ static void rz_dmac_prepare_descs_for_slave_sg(struct rz_dmac_chan *channel)
lmdesc->chext = 0;
if (i == (sg_len - 1)) {
lmdesc->chcfg = (channel->chcfg & ~CHCFG_DEM);
- lmdesc->header = HEADER_LV;
+ lmdesc->header = HEADER_LV | HEADER_LE;
} else {
lmdesc->chcfg = channel->chcfg;
lmdesc->header = HEADER_LV;
--
2.43.0
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH 5.10.y-cip 11/11] arm64: dts: renesas: r9a07g044: Add DMA properties to serial nodes
2026-11-26 15:25 [PATCH 5.10.y-cip 00/11] Renesas: Backport audio and serial support Claudiu Beznea
` (9 preceding siblings ...)
2026-11-26 15:25 ` [PATCH 5.10.y-cip 10/11] dmaengine: sh: rz-dmac: Set the Link End (LE) bit on the last descriptor Claudiu Beznea
@ 2026-11-26 15:25 ` Claudiu Beznea
2026-12-01 22:23 ` [PATCH 5.10.y-cip 00/11] Renesas: Backport audio and serial support Pavel Machek
2026-12-02 13:23 ` Pavel Machek
12 siblings, 0 replies; 15+ messages in thread
From: Claudiu Beznea @ 2026-11-26 15:25 UTC (permalink / raw)
To: nobuhiro.iwamatsu.x90, pavel; +Cc: cip-dev
From: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
commit d61a35b0a3e43ea91781c41e02046b7d73fb3f1e upstream.
Add DMA properties to the serial nodes on the RZ/G2L SoC.
Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://patch.msgid.link/20260520132315.944117-1-claudiu.beznea@kernel.org
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
---
arch/arm64/boot/dts/renesas/r9a07g044.dtsi | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/arch/arm64/boot/dts/renesas/r9a07g044.dtsi b/arch/arm64/boot/dts/renesas/r9a07g044.dtsi
index e14728d70cfb..fd26afb97386 100644
--- a/arch/arm64/boot/dts/renesas/r9a07g044.dtsi
+++ b/arch/arm64/boot/dts/renesas/r9a07g044.dtsi
@@ -389,6 +389,8 @@ scif0: serial@1004b800 {
"bri", "dri", "tei";
clocks = <&cpg CPG_MOD R9A07G044_SCIF0_CLK_PCK>;
clock-names = "fck";
+ dmas = <&dmac 0x4e79>, <&dmac 0x4e7a>;
+ dma-names = "tx", "rx";
power-domains = <&cpg>;
resets = <&cpg R9A07G044_SCIF0_RST_SYSTEM_N>;
status = "disabled";
@@ -407,6 +409,8 @@ scif1: serial@1004bc00 {
"bri", "dri", "tei";
clocks = <&cpg CPG_MOD R9A07G044_SCIF1_CLK_PCK>;
clock-names = "fck";
+ dmas = <&dmac 0x4e7d>, <&dmac 0x4e7e>;
+ dma-names = "tx", "rx";
power-domains = <&cpg>;
resets = <&cpg R9A07G044_SCIF1_RST_SYSTEM_N>;
status = "disabled";
@@ -425,6 +429,8 @@ scif2: serial@1004c000 {
"bri", "dri", "tei";
clocks = <&cpg CPG_MOD R9A07G044_SCIF2_CLK_PCK>;
clock-names = "fck";
+ dmas = <&dmac 0x4e81>, <&dmac 0x4e82>;
+ dma-names = "tx", "rx";
power-domains = <&cpg>;
resets = <&cpg R9A07G044_SCIF2_RST_SYSTEM_N>;
status = "disabled";
@@ -443,6 +449,8 @@ scif3: serial@1004c400 {
"bri", "dri", "tei";
clocks = <&cpg CPG_MOD R9A07G044_SCIF3_CLK_PCK>;
clock-names = "fck";
+ dmas = <&dmac 0x4e85>, <&dmac 0x4e86>;
+ dma-names = "tx", "rx";
power-domains = <&cpg>;
resets = <&cpg R9A07G044_SCIF3_RST_SYSTEM_N>;
status = "disabled";
@@ -461,6 +469,8 @@ scif4: serial@1004c800 {
"bri", "dri", "tei";
clocks = <&cpg CPG_MOD R9A07G044_SCIF4_CLK_PCK>;
clock-names = "fck";
+ dmas = <&dmac 0x4e89>, <&dmac 0x4e8a>;
+ dma-names = "tx", "rx";
power-domains = <&cpg>;
resets = <&cpg R9A07G044_SCIF4_RST_SYSTEM_N>;
status = "disabled";
--
2.43.0
^ permalink raw reply related [flat|nested] 15+ messages in thread
* Re: [PATCH 5.10.y-cip 00/11] Renesas: Backport audio and serial support
2026-11-26 15:25 [PATCH 5.10.y-cip 00/11] Renesas: Backport audio and serial support Claudiu Beznea
` (10 preceding siblings ...)
2026-11-26 15:25 ` [PATCH 5.10.y-cip 11/11] arm64: dts: renesas: r9a07g044: Add DMA properties to serial nodes Claudiu Beznea
@ 2026-12-01 22:23 ` Pavel Machek
2026-12-02 13:23 ` Pavel Machek
12 siblings, 0 replies; 15+ messages in thread
From: Pavel Machek @ 2026-12-01 22:23 UTC (permalink / raw)
To: Claudiu Beznea; +Cc: nobuhiro.iwamatsu.x90, pavel, cip-dev
[-- Attachment #1: Type: text/plain, Size: 798 bytes --]
Hi!
> This series switches the rz-ssi driver to use cyclic DMA. Along with
> it a DMA fix was added. This fix needs to be applied after the rz-ssi is
> switched to use cyclic DMA, to avoid any regression.
>
> For bisectability reasons, this series needs to be applied on top of
> series https://lore.kernel.org/cip-dev/20261126152204.1297798-1-claudiu.beznea@tuxon.dev/T/#t.
>
> I tried to limit the number of patches per series. Please let me know
> if this needs to be further improved and will consider it for the
> future sumissions.
This looks okay to me.
Reviewed-by: Pavel Machek <pavel@nabladev.com>
I can apply the series if it passes testing and there are no other
comments.
Best regards,
Pavel
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH 5.10.y-cip 09/11] ASoC: renesas: rz-ssi: Use generic PCM dmaengine APIs
2026-11-26 15:25 ` [PATCH 5.10.y-cip 09/11] ASoC: renesas: rz-ssi: Use generic PCM dmaengine APIs Claudiu Beznea
@ 2026-12-02 13:22 ` Pavel Machek
0 siblings, 0 replies; 15+ messages in thread
From: Pavel Machek @ 2026-12-02 13:22 UTC (permalink / raw)
To: Claudiu Beznea; +Cc: nobuhiro.iwamatsu.x90, pavel, cip-dev
[-- Attachment #1: Type: text/plain, Size: 1624 bytes --]
Hi!
> On Renesas RZ/G2L and RZ/G3S SoCs (where this was tested), captured audio
> files occasionally contained random spikes when viewed with a tool such
> as Audacity. These spikes were also audible as popping noises.
>
> Using cyclic DMA resolves this issue. The driver was reworked to use the
> existing support provided by the generic PCM dmaengine APIs. In addition
> to eliminating the random spikes, the following issues were addressed:
...
> - the number of generated interrupts is reduced by approximately 250%
I don't think you can reduce anything by 250%.
> +++ b/sound/soc/sh/rz-ssi.c
> @@ -642,19 +621,41 @@ static irqreturn_t rz_ssi_interrupt(int irq, void *data)
> rz_ssi_stop(ssi, strm_playback);
> }
>
> + if (!rz_ssi_is_stream_running(&ssi->playback) &&
> + !rz_ssi_is_stream_running(&ssi->capture) &&
> + rz_ssi_is_dma_enabled(ssi) && is_stopped) {
> + if (ssi->playback.substream &&
> + ssi->dmas[SNDRV_PCM_STREAM_PLAYBACK])
> + dmaengine_pause(ssi->dmas[SNDRV_PCM_STREAM_PLAYBACK]);
> + if (ssi->capture.substream &&
> + ssi->dmas[SNDRV_PCM_STREAM_CAPTURE] &&
> + /* Avoid calling pause twice in case of half duplex. */
> + ssi->dmas[SNDRV_PCM_STREAM_PLAYBACK] !=
> + ssi->dmas[SNDRV_PCM_STREAM_CAPTURE])
> + dmaengine_pause(ssi->dmas[SNDRV_PCM_STREAM_CAPTURE]);
> + }
You are hitting line length limits here; it would be better to push it
into helper function to reduce indentation level, and to place "!=" at
beggining of next line so it is clear what is going on.
Best regards,
Pavel
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH 5.10.y-cip 00/11] Renesas: Backport audio and serial support
2026-11-26 15:25 [PATCH 5.10.y-cip 00/11] Renesas: Backport audio and serial support Claudiu Beznea
` (11 preceding siblings ...)
2026-12-01 22:23 ` [PATCH 5.10.y-cip 00/11] Renesas: Backport audio and serial support Pavel Machek
@ 2026-12-02 13:23 ` Pavel Machek
12 siblings, 0 replies; 15+ messages in thread
From: Pavel Machek @ 2026-12-02 13:23 UTC (permalink / raw)
To: Claudiu Beznea; +Cc: nobuhiro.iwamatsu.x90, pavel, cip-dev
[-- Attachment #1: Type: text/plain, Size: 256 bytes --]
Hi!
> This series switches the rz-ssi driver to use cyclic DMA. Along with
> it a DMA fix was added. This fix needs to be applied after the rz-ssi is
> switched to use cyclic DMA, to avoid any regression.
Thank you, applied.
Best regards,
Pavel
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2026-12-02 13:23 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-26 15:25 [PATCH 5.10.y-cip 00/11] Renesas: Backport audio and serial support Claudiu Beznea
2026-11-26 15:25 ` [PATCH 5.10.y-cip 01/11] ASoC: renesas: rz-ssi: Add a check for negative sample_space Claudiu Beznea
2026-11-26 15:25 ` [PATCH 5.10.y-cip 02/11] ASoC: renesas: rz-ssi: Use guard() for spin locks Claudiu Beznea
2026-11-26 15:25 ` [PATCH 5.10.y-cip 03/11] ASoC: renesas: rz-ssi: Simplify the logic in rz_ssi_stream_is_play() Claudiu Beznea
2026-11-26 15:25 ` [PATCH 5.10.y-cip 04/11] ASoC: renesas: rz-ssi: Drop unnecessary if condition Claudiu Beznea
2026-11-26 15:25 ` [PATCH 5.10.y-cip 05/11] ASoC: renesas: rz-ssi: Drop the & operator in front of function name Claudiu Beznea
2026-11-26 15:25 ` [PATCH 5.10.y-cip 06/11] ASoC: renesas: rz-ssi: Drop goto label Claudiu Beznea
2026-11-26 15:25 ` [PATCH 5.10.y-cip 07/11] ASoC: renesas: rz-ssi: Fix playback and capture Claudiu Beznea
2026-11-26 15:25 ` [PATCH 5.10.y-cip 08/11] ASoC: renesas: rz-ssi: Add pause support Claudiu Beznea
2026-11-26 15:25 ` [PATCH 5.10.y-cip 09/11] ASoC: renesas: rz-ssi: Use generic PCM dmaengine APIs Claudiu Beznea
2026-12-02 13:22 ` Pavel Machek
2026-11-26 15:25 ` [PATCH 5.10.y-cip 10/11] dmaengine: sh: rz-dmac: Set the Link End (LE) bit on the last descriptor Claudiu Beznea
2026-11-26 15:25 ` [PATCH 5.10.y-cip 11/11] arm64: dts: renesas: r9a07g044: Add DMA properties to serial nodes Claudiu Beznea
2026-12-01 22:23 ` [PATCH 5.10.y-cip 00/11] Renesas: Backport audio and serial support Pavel Machek
2026-12-02 13:23 ` Pavel Machek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox