]> git.baikalelectronics.ru Git - kernel.git/commit
swiotlb: Minor fix-ups for DMA_ATTR_SKIP_CPU_SYNC support
authorAlexander Duyck <alexander.h.duyck@intel.com>
Thu, 10 Nov 2016 12:05:31 +0000 (07:05 -0500)
committerKonrad Rzeszutek Wilk <konrad@kernel.org>
Thu, 10 Nov 2016 20:56:19 +0000 (15:56 -0500)
commitaffa0c7e6f14f9ccb3e52077d9fb3cda052946d7
tree1bf24161f9f990f0377bff4d3da4c609a8abaa29
parent419883780cff4b29802879afcfc134683ba9deae
swiotlb: Minor fix-ups for DMA_ATTR_SKIP_CPU_SYNC support

I am updating the paths so that instead of trying to pass
"attr | DMA_ATTR_SKIP_CPU_SYNC" we instead just OR the value into attr and
then pass it since attr will not be used after we make the unmap call.

I realized there was one spot I had missed when I was applying the DMA
attribute to the DMA mapping exception handling.  This change corrects that.

Finally it looks like there is a stray blank line at the end of the
swiotlb_unmap_sg_attrs function that can be dropped.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad@kernel.org>
drivers/xen/swiotlb-xen.c
lib/swiotlb.c