[PATCH] staging: android: ion: fix sys heap pool's gfp_flags

2019-01-31 Thread Qing Xia
In the first loop, gfp_flags will be modified to high_order_gfp_flags, and there will be no chance to change back to low_order_gfp_flags. Fixes: e7f63771 ("ION: Sys_heap: Add cached pool to spead up cached buffer alloc") Signed-off-by: Qing Xia --- drivers/staging/android/ion/ion_sys

[PATCH] staging: android: ion: move map_kernel to ion_dma_buf_kmap

2018-12-24 Thread Qing Xia
nly need clean cache, they will call ion_dma_buf_end_cpu_access by dmabuf's ioctl, ION buffer's kmap_cnt will be wrong value -1, then driver could not get right kernel vaddr by dma_buf_kmap. Signed-off-by: Qing Xia --- drivers/staging/android/ion/ion.c | 46 ++---