[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID:
<TY3PR01MB11346060F7E0DA5B21F822A1586CDA@TY3PR01MB11346.jpnprd01.prod.outlook.com>
Date: Thu, 13 Nov 2025 16:36:29 +0000
From: Biju Das <biju.das.jz@...renesas.com>
To: geert <geert@...ux-m68k.org>
CC: Vinod Koul <vkoul@...nel.org>, Geert Uytterhoeven
<geert+renesas@...der.be>, Prabhakar Mahadev Lad
<prabhakar.mahadev-lad.rj@...renesas.com>, Fabrizio Castro
<fabrizio.castro.jz@...esas.com>, "dmaengine@...r.kernel.org"
<dmaengine@...r.kernel.org>, "linux-kernel@...r.kernel.org"
<linux-kernel@...r.kernel.org>, biju.das.au <biju.das.au@...il.com>,
"linux-renesas-soc@...r.kernel.org" <linux-renesas-soc@...r.kernel.org>,
"stable@...nel.org" <stable@...nel.org>
Subject: RE: [PATCH] dmaengine: sh: rz-dmac: Fix rz_dmac_terminate_all()
Hi Geert,
Thanks for the feedback.
> -----Original Message-----
> From: Geert Uytterhoeven <geert@...ux-m68k.org>
> Sent: 13 November 2025 16:23
> Subject: Re: [PATCH] dmaengine: sh: rz-dmac: Fix rz_dmac_terminate_all()
>
> Hi Biju,
>
> Thanks for your patch!
>
> On Thu, 6 Nov 2025 at 13:53, Biju Das <biju.das.jz@...renesas.com> wrote:
> > After audio full duplex testing, playing the recorded file contains a
> > few playback frames for the first time. The rz_dmac_terminate_all()
> > does not
>
> ... frames from the previous time?
OK, I will fix the commit message as "few playback frames from the previous time" to
make it clear.
Basically, we have a full duplex C test app which output different music to
Left/Right audio channel and capture audio from Mic in parallel to test
Audio channel swap issue.
After capturing the audio, when we played the captured audio, it contains
few playback frames from the previous time. If we play again the same
Captured audio, then it is OK.
Cheers,
Biju
>
> > reset all the hardware descriptors queued previously, leading to the
> > wrong descriptor being picked up during the next DMA transfer. Fix
> > this issue by resetting all descriptor headers for a channel in
> > rz_dmac_terminate_all() as rz_dmac_lmdesc_recycle() points to the
> > proper descriptor header filled by the rz_dmac_prepare_descs_for_slave_sg().
> >
> > Cc: stable@...nel.org
> > Fixes: 5000d37042a6 ("dmaengine: sh: Add DMAC driver for RZ/G2L SoC")
> > Signed-off-by: Biju Das <biju.das.jz@...renesas.com>
>
> The code change LGTM, so
> Reviewed-by: Geert Uytterhoeven <geert+renesas@...der.be>
>
> Gr{oetje,eeting}s,
>
> Geert
>
> --
> Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@...ux-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
Powered by blists - more mailing lists