]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
dma-mapping: Add a new dma_need_sync API
authorChristoph Hellwig <hch@lst.de>
Mon, 29 Jun 2020 13:03:56 +0000 (15:03 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 30 Jun 2020 13:44:03 +0000 (15:44 +0200)
commit3aa91625007807bfca4155df1867a5c924a08662
tree200b5d80ea2b377dcdc560056f1fc247dc18024f
parent2bdeb3ed547d8822b2566797afa6c2584abdb119
dma-mapping: Add a new dma_need_sync API

Add a new API to check if calls to dma_sync_single_for_{device,cpu} are
required for a given DMA streaming mapping.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20200629130359.2690853-2-hch@lst.de
Documentation/core-api/dma-api.rst
include/linux/dma-direct.h
include/linux/dma-mapping.h
kernel/dma/direct.c
kernel/dma/mapping.c