OSDN Git Service

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)
commitc2bbf9d1e9ac7d4fdd503b190bc1ba8a6302bc49
tree9a5934367e22ed63d72ca2bd4c9c2af493735876
parent293d92cbbd2418ca2ba43fed07f1b92e884d1c77
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