Re: [PATCH v7 00/10] dmaengine: dw: serialize completion and termination

From: Andy Shevchenko

Date: Mon Nov 16 2026 - 04:05:09 EST


On Sun, Nov 15, 2026 at 12:19:33AM -0700, James Hilliard wrote:
> Keep client callbacks in the controller tasklet while preserving polled
> completion. Serialize descriptor ownership across completion, error
> recovery and termination, and wait for callbacks before a client reuses
> its resources.
>
> The series first serializes completion, error recovery and cookie
> accounting with termination. Separate patches extract hardware-LLP
> residue calculation, calculate it in the status getter, simplify completion
> handling and report queued residue. Channel release and
> device_synchronize then gain tasklet draining before the final patch
> adds deferred notifications and shared completed-descriptor cleanup.
>
> The series adapts Serge Semin's channel-restart and callback fixes [0-2].
> Polling continues to advance cookies and software-LLP blocks, while client
> notifications run from the controller tasklet. Synchronization preserves
> pending tasklet runs from other channels.
>
> Based on dmaengine/fixes at 6628e7d4c6b2.

Most of the patches refer to Fixes tag as an initial commit 3bfb1d20b547.
But some are not. I think the Fixes tag(s) in many patches in this series
is (are) broken and/or incomplete.

Another question, wouldn't move this driver to use virt-dma infra be helpful
to begin with?

--
With Best Regards,
Andy Shevchenko