[RESEND PATCH] drm/rockchip: import dma_buf to gem

2015-11-17 Thread Mark yao
On 2015年11月17日 00:25, Daniel Vetter wrote: > On Tue, Nov 10, 2015 at 05:11:57PM +0800, Mark Yao wrote: >> >We want to display a buffer allocated by other driver, need import >> >the buffer to gem. > Does this work with some open-source driver/userspace or is this for the > proprietary stack o

[RESEND PATCH] drm/rockchip: import dma_buf to gem

2015-11-16 Thread Daniel Vetter
On Tue, Nov 10, 2015 at 05:11:57PM +0800, Mark Yao wrote: > We want to display a buffer allocated by other driver, need import > the buffer to gem. Does this work with some open-source driver/userspace or is this for the proprietary stack only? A bit a grey area I guess, but if it's only for the p

[RESEND PATCH] drm/rockchip: import dma_buf to gem

2015-11-10 Thread Mark Yao
We want to display a buffer allocated by other driver, need import the buffer to gem. Signed-off-by: Mark Yao --- Changes in resend: - rebase to this patch to newest origin/drm-next 4.3-rc5 Changes in v2: Adviced by Russell King - check sgt-nents == 1 when get iova from scatterlist - remove unuse