android: ion: add vmap/vunmap ops to dma-buf
authorCho KyongHo <pullip.cho@samsung.com>
Fri, 2 Feb 2018 13:47:34 +0000 (22:47 +0900)
committerSangwook Ju <sw.ju@samsung.com>
Mon, 14 May 2018 10:45:22 +0000 (19:45 +0900)
commitb1aa7deaa8c0d44a13a33965dcfcc366fee8b78b
treeb9b736201f0e102f1db12693e872a8959cc4ebfc
parent9d3ce72698e894f29b14ab2a50b4249ce589bc78
android: ion: add vmap/vunmap ops to dma-buf

Kernel drivers that allocate buffers from ION sometimes requires
kernel address of the buffers. The drivers tend to access the whole
buffer instead of accessing several pages from the large buffers in
megabytes. Therefore dma_buf_vmap() is proper for the drivers than
dma_buf_kmap().

Change-Id: Ie5edf4c325a34c8ed419291b4490b917b755b551
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
drivers/staging/android/ion/ion.c