gdc: add gdc cpu cost optimize [1/2]
authorPengcheng Chen <pengcheng.chen@amlogic.com>
Fri, 19 Apr 2019 02:58:19 +0000 (10:58 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Fri, 24 May 2019 09:14:28 +0000 (02:14 -0700)
commita73aef0f7e9b86ee9593fb8e03be13cc67b5be14
tree59ca64c6f2f5e8e01adbb1d52d2df9d559704bc8
parente1e2f9923e363ea5bb4d5c29ee853cbad46f3f85
gdc: add gdc cpu cost optimize [1/2]

PD#SWPL-7422

Problem:
gdc ioctl have cpu usage issue

Solution:
1. dma buffer alloc gdc module,when dma buf exported, fd and phys
address can be recorded.driver can get phys address via fd internally.
2. dmabuf alloc by other driver module, need used gdc_dma_buffer_map/
gdc_dma_buffer_unmap to get phys address.

Verify:
Newman & W400 board

Change-Id: Ie270589a19dfae4fa750241fb5721154221f2448
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
drivers/amlogic/media/gdc/app/gdc_dmabuf.c
drivers/amlogic/media/gdc/app/gdc_dmabuf.h
drivers/amlogic/media/gdc/app/gdc_module.c