[PATCH v2 6/8] dma-mapping: Support batch mode for dma_direct_{map,unmap}_sg
Leon Romanovsky
leon at kernel.org
Sat Dec 27 12:14:06 PST 2025
On Sat, Dec 27, 2025 at 11:52:46AM +1300, Barry Song wrote:
> From: Barry Song <baohua at kernel.org>
>
> 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 <leon at kernel.org>
> Cc: Catalin Marinas <catalin.marinas at arm.com>
> Cc: Will Deacon <will at kernel.org>
> Cc: Marek Szyprowski <m.szyprowski at samsung.com>
> Cc: Robin Murphy <robin.murphy at arm.com>
> Cc: Ada Couprie Diaz <ada.coupriediaz at arm.com>
> Cc: Ard Biesheuvel <ardb at kernel.org>
> Cc: Marc Zyngier <maz at kernel.org>
> Cc: Anshuman Khandual <anshuman.khandual at arm.com>
> Cc: Ryan Roberts <ryan.roberts at arm.com>
> Cc: Suren Baghdasaryan <surenb at google.com>
> Cc: Tangquan Zheng <zhengtangquan at oppo.com>
> Signed-off-by: Barry Song <baohua at kernel.org>
> ---
> 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 <leon at kernel.org>
More information about the linux-arm-kernel
mailing list