OSDN Git Service

dma-mapping: bypass indirect calls for dma-direct
authorChristoph Hellwig <hch@lst.de>
Thu, 6 Dec 2018 21:39:32 +0000 (13:39 -0800)
committerChristoph Hellwig <hch@lst.de>
Thu, 13 Dec 2018 20:06:18 +0000 (21:06 +0100)
commit356da6d0cde3323236977fce54c1f9612a742036
tree87ad8176833266fbaa038780d67aebcc490d0d64
parent190d4e5916a2d70a11009022b968fca948fb5dc7
dma-mapping: bypass indirect calls for dma-direct

Avoid expensive indirect calls in the fast path DMA mapping
operations by directly calling the dma_direct_* ops if we are using
the directly mapped DMA operations.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Jesper Dangaard Brouer <brouer@redhat.com>
Tested-by: Jesper Dangaard Brouer <brouer@redhat.com>
Tested-by: Tony Luck <tony.luck@intel.com>
20 files changed:
arch/alpha/include/asm/dma-mapping.h
arch/arc/mm/cache.c
arch/arm/include/asm/dma-mapping.h
arch/arm/mm/dma-mapping-nommu.c
arch/arm64/mm/dma-mapping.c
arch/ia64/hp/common/hwsw_iommu.c
arch/ia64/hp/common/sba_iommu.c
arch/ia64/kernel/dma-mapping.c
arch/mips/include/asm/dma-mapping.h
arch/parisc/kernel/setup.c
arch/sparc/include/asm/dma-mapping.h
arch/x86/kernel/pci-dma.c
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
drivers/iommu/amd_iommu.c
include/asm-generic/dma-mapping.h
include/linux/dma-direct.h
include/linux/dma-mapping.h
include/linux/dma-noncoherent.h
kernel/dma/direct.c
kernel/dma/mapping.c