On Sat, Dec 27, 2025 at 11:52:46AM +1300, Barry Song wrote:
> From: Barry Song <[email protected]>
>
> Leon suggested extending a flush argument to
Let's move this sentence out of the commit message and place it in the
changelog instead.
> dma_direct_unmap_phys(), dma_direct_map_phys(), and
> dma_direct_sync_single_for_cpu(). For single-buffer cases, this
> would use flush=true, while for SG cases flush=false would be
> used, followed by a single flush after all cache operations are
> issued in dma_direct_{map,unmap}_sg().
>
> This ultimately benefits dma_map_sg() and dma_unmap_sg().
>
> Cc: Leon Romanovsky <[email protected]>
> Cc: Catalin Marinas <[email protected]>
> Cc: Will Deacon <[email protected]>
> Cc: Marek Szyprowski <[email protected]>
> Cc: Robin Murphy <[email protected]>
> Cc: Ada Couprie Diaz <[email protected]>
> Cc: Ard Biesheuvel <[email protected]>
> Cc: Marc Zyngier <[email protected]>
> Cc: Anshuman Khandual <[email protected]>
> Cc: Ryan Roberts <[email protected]>
> Cc: Suren Baghdasaryan <[email protected]>
> Cc: Tangquan Zheng <[email protected]>
> Signed-off-by: Barry Song <[email protected]>
> ---
> kernel/dma/direct.c | 17 +++++++++++++----
> kernel/dma/direct.h | 16 ++++++++++------
> kernel/dma/mapping.c | 6 +++---
> 3 files changed, 26 insertions(+), 13 deletions(-)
Thanks,
Reviewed-by: Leon Romanovsky <[email protected]>