OSDN Git Service

vmd: use the proper dma_* APIs instead of direct methods calls
authorChristoph Hellwig <hch@lst.de>
Thu, 6 Dec 2018 21:37:00 +0000 (13:37 -0800)
committerChristoph Hellwig <hch@lst.de>
Thu, 13 Dec 2018 20:06:17 +0000 (21:06 +0100)
commit190d4e5916a2d70a11009022b968fca948fb5dc7
treee0525720a7592d59a5875495d345f005af0d42b3
parent55897af63091ebc2c3f239c6a6666f748113ac50
vmd: use the proper dma_* APIs instead of direct methods calls

With the bypass support for the direct mapping we might not always have
methods to call, so use the proper APIs instead.  The only downside is
that we will create two dma-debug entries for each mapping if
CONFIG_DMA_DEBUG is enabled.

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>
drivers/pci/controller/vmd.c