[PATCH] staging: android: ion: Change dma_buf_kmap()/dma_buf_kmap_atomic() implementation

Greg KH greg at kroah.com
Fri Feb 16 14:46:26 UTC 2018


On Tue, Feb 13, 2018 at 12:33:53AM +0200, Alexey Skidanov wrote:
> Current ion kernel mapping implementation uses vmap() to map previously
> allocated buffers into kernel virtual address space.
> 
> On 32-bit platforms, vmap() might fail on large enough buffers due to the
> limited available vmalloc space. dma_buf_kmap() should guarantee that
> only one page is mapped at a time.
> 
> To fix this, kmap()/kmap_atomic() is used to implement the appropriate
> interfaces.
> 
> Signed-off-by: Alexey Skidanov <alexey.skidanov at intel.com>

Again, I said I required another intel.com signed-off-by on any of your
ion patches before I would take them.  Please get internal review first
before asking for review from the community.

greg k-h


More information about the devel mailing list