ge2d: ge2d cpu cost optimize [2/2]
authorPengcheng Chen <pengcheng.chen@amlogic.com>
Fri, 19 Apr 2019 03:20:34 +0000 (11:20 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Fri, 24 May 2019 09:14:55 +0000 (02:14 -0700)
commit2d4cc31d6f8e8923d9f9a0997dc0260927bdb503
tree205c9a7a586e4707fffd30627297399f678d9cec
parenta73aef0f7e9b86ee9593fb8e03be13cc67b5be14
ge2d: ge2d cpu cost optimize [2/2]

PD#SWPL-7422

Problem:
ge2d 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: I78d03b52e574daf2e8b2d53eb8fdfde06357ebfe
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
drivers/amlogic/media/common/ge2d/ge2d_dmabuf.c
drivers/amlogic/media/common/ge2d/ge2d_dmabuf.h
drivers/amlogic/media/common/ge2d/ge2d_wq.c