android_kernel_oneplus_msm8998/include
Olav Haugan 64bfe1d2be iommu: Add iommu_map_sg() function
Mapping and unmapping are more often than not in the critical path.
map_sg allows IOMMU driver implementations to optimize the process
of mapping buffers into the IOMMU page tables.

Instead of mapping a buffer one page at a time and requiring potentially
expensive TLB operations for each page, this function allows the driver
to map all pages in one go and defer TLB maintenance until after all
pages have been mapped.

Additionally, the mapping operation would be faster in general since
clients does not have to keep calling map API over and over again for
each physically contiguous chunk of memory that needs to be mapped to a
virtually contiguous region.

Change-Id: I1f3dd2c3cf67b3db40ee1793580d6af5fec1247d
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Git-commit: 315786ebbf
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
[mitchelh: fix existing callers and implementations of
 iommu_{map,unmap}_range to match the new function names and APIs,
 maintaining stubs for the old API so that out-of-tree modules can
 continue to compile]
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
2016-03-22 11:11:41 -07:00
..
acpi Merge branch 'acpi-pci' 2015-11-07 01:30:10 +01:00
asm-generic arm64: dma-mapping: make dma_ops const 2016-03-22 11:10:59 -07:00
clocksource
crypto qseecom: add snapshot of qseecom driver 2016-03-22 11:10:18 -07:00
drm drm/nouveau: Fix pre-nv50 pageflip events (v4) 2015-12-04 13:49:38 +10:00
dt-bindings ARM: dts: qcom: Snapshot all device tree files for MSMCOBALT 2016-03-22 11:07:45 -07:00
keys
kvm KVM: arm/arm64: arch_timer: Preserve physical dist. active state on LR.active 2015-11-24 18:07:40 +01:00
linux iommu: Add iommu_map_sg() function 2016-03-22 11:11:41 -07:00
math-emu
media
memory
misc
net net: Fail explicit bind to local reserved ports 2016-03-22 11:09:45 -07:00
pcmcia
ras
rdma IB/mad: Require CM send method for everything except ClassPortInfo 2015-12-08 12:19:11 -05:00
rxrpc
scsi scsi: include device.h in scsi.h 2016-03-22 11:01:03 -07:00
soc qseecom: add snapshot of qseecom driver 2016-03-22 11:10:18 -07:00
sound Merge remote-tracking branch 'asoc/fix/dapm' into asoc-linus 2016-01-05 23:07:32 +00:00
target target: Fix race for SCF_COMPARE_AND_WRITE_POST checking 2015-11-28 19:33:15 -08:00
trace iommu: Sync files for kernel upgrade 2016-03-22 11:10:55 -07:00
uapi input: don't send dummy release event when system resumes 2016-03-22 11:10:53 -07:00
video video: adf: fbdev: add stubs for kernels without ADF_FBDEV 2016-02-16 13:53:22 -08:00
xen xen: Add RING_COPY_REQUEST() 2015-12-18 10:00:17 -05:00
Kbuild