]> git.baikalelectronics.ru Git - kernel.git/commit
dma-debug: teach add_dma_entry() about DMA_ATTR_SKIP_CPU_SYNC
authorHamza Mahfooz <someguy@effective-light.com>
Tue, 12 Oct 2021 05:54:03 +0000 (01:54 -0400)
committerChristoph Hellwig <hch@lst.de>
Mon, 18 Oct 2021 10:46:45 +0000 (12:46 +0200)
commit38e22b80bb716524213e3ae9c529a0541161b847
tree9a5934367e22ed63d72ca2bd4c9c2af493735876
parent33acb3368d69e56b24929e6d3f4dcf814e2489f1
dma-debug: teach add_dma_entry() about DMA_ATTR_SKIP_CPU_SYNC

Mapping something twice should be possible as long as,
DMA_ATTR_SKIP_CPU_SYNC is passed to the strictly speaking second relevant
mapping operation (that attempts to map the same thing). So, don't issue a
warning if the specified condition is met in add_dma_entry().

Signed-off-by: Hamza Mahfooz <someguy@effective-light.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
kernel/dma/debug.c
kernel/dma/debug.h
kernel/dma/mapping.c