ge2d: ge2d dmabuf multi-process support [1/1]
authorPengcheng Chen <pengcheng.chen@amlogic.com>
Thu, 30 May 2019 07:58:37 +0000 (15:58 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Tue, 18 Jun 2019 07:48:28 +0000 (00:48 -0700)
commit6fb7f1d940fd3444bd655d41d5c25cdcc7a0aebf
tree002341fe508bf80e5a3622b2bd3d92d243d2abb8
parentff4781564f2496030b2b2baaf942123770e97a68
ge2d: ge2d dmabuf multi-process support [1/1]

PD#OTT-4320

Problem:
ge2d phys have been overwritten when dma fd is same from diff process

Solution:
when get phys addr by dma fd, used struct dma_buf instead of dma fd

Verify:
w400

Change-Id: Idb32bc61d33345d370db4eb6bcb04351d854f069
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
drivers/amlogic/media/common/ge2d/ge2d_dmabuf.c