g2d: remove redundant cache flush
authorCho KyongHo <pullip.cho@samsung.com>
Mon, 5 Mar 2018 07:03:39 +0000 (16:03 +0900)
committerSeungchul Kim <sc377.kim@samsung.com>
Mon, 28 May 2018 05:28:04 +0000 (14:28 +0900)
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 <pullip.cho@samsung.com>
drivers/gpu/exynos/g2d/g2d_task.c

index 571534ece1a7c3b725e2762aec70da710f030dd8..f7a9ca30e040fd953ded29f8caa235a481ff962a 100644 (file)
@@ -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