arch/parisc: add option to skip DMA sync as a part of map and unmap
commitf50a2bd298b47e1957f67f794aed90f2c3bd9a10
authorAlexander Duyck <alexander.h.duyck@intel.com>
Wed, 14 Dec 2016 23:05:06 +0000 (14 15:05 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 15 Dec 2016 00:04:07 +0000 (14 16:04 -0800)
tree606dc2c3fd59a7f52f15a77730bf52e595f1ee77
parent043b42bcbbc6bc87c457b156041d74d51f6cebc2
arch/parisc: add option to skip DMA sync as a part of map and unmap

This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to
avoid invoking cache line invalidation if the driver will just handle it
via a sync_for_cpu or sync_for_device call.

Link: http://lkml.kernel.org/r/20161110113529.76501.44762.stgit@ahduyck-blue-test.jf.intel.com
Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Cc: "James E.J. Bottomley" <jejb@parisc-linux.org>
Cc: Helge Deller <deller@gmx.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/parisc/kernel/pci-dma.c