OSDN Git Service

core, dma-direct: add a flag 32-bit dma limits
authorChristoph Hellwig <hch@lst.de>
Fri, 27 Apr 2018 07:02:55 +0000 (09:02 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 28 May 2018 10:46:54 +0000 (12:46 +0200)
commitf068fe3170bcf06f14fd0a9eec0be12be04ff012
treebc3e751c6a163515ada11ccd4e08465413c63b71
parent884571f0de7b02bb784be3a5c870eabce62cdaeb
core, dma-direct: add a flag 32-bit dma limits

Various PCI bridges (VIA PCI, Xilinx PCIe) limit DMA to only 32-bits
even if the device itself supports more.  Add a single bit flag to
struct device (to be moved into the dma extension once we get to it)
to flag such devices and reject larger DMA to them.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/device.h
lib/dma-direct.c