[COMMON] g2d: add the hwfc
authorhyesoo.yu <hyesoo.yu@samsung.com>
Thu, 11 May 2017 07:12:19 +0000 (16:12 +0900)
committerSeungchul Kim <sc377.kim@samsung.com>
Mon, 28 May 2018 05:27:25 +0000 (14:27 +0900)
commit6e51cc83f257db29a050dd3afc5b77aa9d1d9e11
treef41b7cf2e768e36f7ba2bdc6dcb46c24bb5e1933
parent4d178f42367ee70c8c9835b4544e51b0938e962e
[COMMON] g2d: add the hwfc

Support hw flow control between MFC and G2D.

The hw flow control is that g2d H/W writes destination,
and inform MFC of written line count of destination,
so MFC could read from destination of G2D even if the
operation is not completed yet.

To support hwfc, driver performs following process.

First, driver get the shared buffer from repeater driver
that has role of shared buffer management and set the
destination before H/W run.

Second, set the reserved job id from 0 to MAX_SHARED_BUF_NUM
that is the same of buffer index received from repeater driver.

Finally, driver set register related HWFC.

Change-Id: If4c646928017db9198448b68745e4e818eb5de6c
Signed-off-by: hyesoo.yu <hyesoo.yu@samsung.com>
drivers/gpu/exynos/g2d/g2d.h
drivers/gpu/exynos/g2d/g2d_command.c
drivers/gpu/exynos/g2d/g2d_command.h
drivers/gpu/exynos/g2d/g2d_debug.h
drivers/gpu/exynos/g2d/g2d_drv.c
drivers/gpu/exynos/g2d/g2d_regs.h
drivers/gpu/exynos/g2d/g2d_task.c
drivers/gpu/exynos/g2d/g2d_task.h
drivers/gpu/exynos/g2d/g2d_uapi_process.c
drivers/gpu/exynos/g2d/g2d_uapi_process.h