From: Cho KyongHo Date: Mon, 5 Mar 2018 07:03:39 +0000 (+0900) Subject: g2d: remove redundant cache flush X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9320fd771c906b17cafc27f35dfde2c03f8be4ec;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git g2d: remove redundant cache flush g2d_flush_command_page() cleans the command list for the secure world to update the commands in the list correctly. But it is also done in g2d_hw_push_task(). Change-Id: Ic69c0d8cbb11fecd673411f1aa6d2ed19f3bd493 Signed-off-by: Cho KyongHo --- diff --git a/drivers/gpu/exynos/g2d/g2d_task.c b/drivers/gpu/exynos/g2d/g2d_task.c index 571534ece1a7..f7a9ca30e040 100644 --- a/drivers/gpu/exynos/g2d/g2d_task.c +++ b/drivers/gpu/exynos/g2d/g2d_task.c @@ -44,10 +44,6 @@ static void g2d_secure_disable(void) exynos_smc(SMC_PROTECTION_SET, 0, G2D_ALWAYS_S, 0); } -static void g2d_flush_command_page(struct g2d_task *task) -{ - __dma_flush_area(page_address(task->cmd_page), G2D_CMD_LIST_SIZE); -} #else static int g2d_map_cmd_data(struct g2d_task *task) { @@ -71,7 +67,6 @@ static int g2d_map_cmd_data(struct g2d_task *task) #define g2d_secure_enable() do { } while (0) #define g2d_secure_disable() do { } while (0) -#define g2d_flush_command_page(task) do { } while (0) #endif struct g2d_task *g2d_get_active_task_from_id(struct g2d_device *g2d_dev, @@ -191,8 +186,6 @@ static void g2d_execute_task(struct g2d_device *g2d_dev, struct g2d_task *task) mod_timer(&task->timer, jiffies + msecs_to_jiffies(G2D_HW_TIMEOUT_MSEC)); - g2d_flush_command_page(task); - /* * g2d_device_run() is not reentrant while g2d_schedule() is * reentrant g2d_device_run() should be protected with