[COMMON] g2d: add the hwfc
authorhyesoo.yu <hyesoo.yu@samsung.com>
Thu, 11 May 2017 07:12:19 +0000 (16:12 +0900)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:22:13 +0000 (20:22 +0300)
commitc3adebffcca4e05e7f20942acb71422a9dd0eae2
tree8b91cba09f4f76b06a5d0171539c63ff4c5c2c87
parent5476b4c419f7b1fa3a4a2329313533383ac58fdd
[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