Commit Graph

2 Commits

Author SHA1 Message Date
Jerry Snitselaar 58cf47e2ec dma-debug: teach add_dma_entry() about DMA_ATTR_SKIP_CPU_SYNC
Bugzilla: https://bugzilla.redhat.com/2004348
Upstream Status: kernel/git/torvalds/linux.git

commit c2bbf9d1e9ac7d4fdd503b190bc1ba8a6302bc49
Author: Hamza Mahfooz <someguy@effective-light.com>
Date:   Tue Oct 12 01:54:03 2021 -0400

    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>

(cherry picked from commit c2bbf9d1e9ac7d4fdd503b190bc1ba8a6302bc49)
Cc: Donald Dutile <ddutile@redhat.com>
Signed-off-by: Jerry Snitselaar <jsnitsel@redhat.com>
2021-10-27 16:42:13 -07:00
Christoph Hellwig a1fd09e8e6 dma-mapping: move dma-debug.h to kernel/dma/
Most of dma-debug.h is not required by anything outside of kernel/dma.
Move the four declarations needed by dma-mappin.h or dma-ops providers
into dma-mapping.h and dma-map-ops.h, and move the remainder of the
file to kernel/dma/debug.h.

Signed-off-by: Christoph Hellwig <hch@lst.de>
2020-10-06 07:07:05 +02:00