Re: [PATCH] staging: android: ion: refactory ion_alloc for kernel driver use

2019-04-01 Thread Laura Abbott
; Christian Brauner ; de...@driverdev.osuosl.org; dri-devel@lists.freedesktop.org; linaro-mm-...@lists.linaro.org; linux-ker...@vger.kernel.org Subject: Re: [PATCH] staging: android: ion: refactory ion_alloc for kernel driver use On 3/29/19 11:40 AM, Zeng Tao wrote: There are two reasons for this patch

RE: [PATCH] staging: android: ion: refactory ion_alloc for kernel driver use

2019-03-31 Thread Zengtao (B)
kernel.org; dri-devel@lists.freedesktop.org; >linaro-mm-...@lists.linaro.org; Arve Hjønnevåg ; >Joel Fernandes ; Martijn Coenen >; Christian Brauner >Subject: Re: [PATCH] staging: android: ion: refactory ion_alloc for kernel >driver use > >On Sat, Mar 30, 2019 at 02:40:16AM +0800, Zeng Tao wrot

RE: [PATCH] staging: android: ion: refactory ion_alloc for kernel driver use

2019-03-31 Thread Zengtao (B)
kernel.org; dri-devel@lists.freedesktop.org; >linaro-mm-...@lists.linaro.org; Arve Hjønnevåg ; >Joel Fernandes ; Martijn Coenen >; Christian Brauner >Subject: Re: [PATCH] staging: android: ion: refactory ion_alloc for kernel >driver use > >On Sat, Mar 30, 2019 at 02:40:16AM +0800

RE: [PATCH] staging: android: ion: refactory ion_alloc for kernel driver use

2019-03-31 Thread Zengtao (B)
er.kernel.org; dri-devel@lists.freedesktop.org; >linaro-mm-...@lists.linaro.org; Arve Hjønnevåg ; >Joel Fernandes ; Martijn Coenen >; Christian Brauner >Subject: Re: [PATCH] staging: android: ion: refactory ion_alloc for kernel >driver use > >If we're going to export ion_all

RE: [PATCH] staging: android: ion: refactory ion_alloc for kernel driver use

2019-03-31 Thread Zengtao (B)
t;Christian Brauner ; de...@driverdev.osuosl.org; >dri-devel@lists.freedesktop.org; linaro-mm-...@lists.linaro.org; >linux-ker...@vger.kernel.org >Subject: Re: [PATCH] staging: android: ion: refactory ion_alloc for kernel >driver use > >On 3/29/19 11:40 AM, Zeng Tao wrote: >> There are

[PATCH] staging: android: ion: refactory ion_alloc for kernel driver use

2019-03-31 Thread Zeng Tao
There are two reasons for this patch: 1. There are some potential requirements for ion_alloc in kernel space, some media drivers need to allocate media buffers from ion instead of buddy or dma framework, this is more convient and clean very for media drivers. And In that case, ion is the only

Re: [PATCH] staging: android: ion: refactory ion_alloc for kernel driver use

2019-03-30 Thread kbuild test robot
Hi Zeng, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on staging/staging-testing] [also build test WARNING on v5.1-rc2 next-20190329] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: [PATCH] staging: android: ion: refactory ion_alloc for kernel driver use

2019-03-30 Thread Greg Kroah-Hartman
sumit.sem...@linaro.org; > >de...@driverdev.osuosl.org; Todd Kjos ; > >linux-ker...@vger.kernel.org; dri-devel@lists.freedesktop.org; > >linaro-mm-...@lists.linaro.org; Arve Hjønnevåg ; > >Joel Fernandes ; Martijn Coenen > >; Christian Brauner > >Subject: Re: [PATCH] staging: androi

Re: [PATCH] staging: android: ion: refactory ion_alloc for kernel driver use

2019-03-29 Thread Greg Kroah-Hartman
On Sat, Mar 30, 2019 at 02:40:16AM +0800, Zeng Tao wrote: > There are two reasons for this patch: > 1. There are some potential requirements for ion_alloc in kernel space, > some media drivers need to allocate media buffers from ion instead of > buddy or dma framework, this is more convient and

Re: [PATCH] staging: android: ion: refactory ion_alloc for kernel driver use

2019-03-29 Thread Greg Kroah-Hartman
On Sat, Mar 30, 2019 at 02:40:16AM +0800, Zeng Tao wrote: > There are two reasons for this patch: > 1. There are some potential requirements for ion_alloc in kernel space, > some media drivers need to allocate media buffers from ion instead of > buddy or dma framework, this is more convient and

Re: [PATCH] staging: android: ion: refactory ion_alloc for kernel driver use

2019-03-29 Thread Laura Abbott
On 3/29/19 11:40 AM, Zeng Tao wrote: There are two reasons for this patch: 1. There are some potential requirements for ion_alloc in kernel space, some media drivers need to allocate media buffers from ion instead of buddy or dma framework, this is more convient and clean very for media drivers.

Re: [PATCH] staging: android: ion: refactory ion_alloc for kernel driver use

2019-03-29 Thread Dan Carpenter
If we're going to export ion_alloc() for other drivers to use then let's make an ion_free() helper function as well. void ion_free(struct dma_buf *dmabuf) { dma_buf_put(dmabuf); } regards, dan carpenter ___ dri-devel mailing list