From e843d4a3f4dcc08009ed86c9d1d57319c8fc635b Mon Sep 17 00:00:00 2001 From: "hyesoo.yu" Date: Thu, 20 Jul 2017 09:51:13 +0900 Subject: [PATCH] [COMMON] g2d: change mode to secure before running The existing has problem because the secure mode is not enabled again when suspend resume happens. Therefore the secure mode is changed immediately before running to resolve the problem. Change-Id: I4fe22d81fc241d99276d4eac5fc8b8db32777fb7 Signed-off-by: hyesoo.yu --- drivers/gpu/exynos/g2d/g2d_task.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/exynos/g2d/g2d_task.c b/drivers/gpu/exynos/g2d/g2d_task.c index b01ecbe5727c..1329fafba24d 100644 --- a/drivers/gpu/exynos/g2d/g2d_task.c +++ b/drivers/gpu/exynos/g2d/g2d_task.c @@ -201,6 +201,8 @@ void g2d_flush_all_tasks(struct g2d_device *g2d_dev) static void g2d_execute_task(struct g2d_device *g2d_dev, struct g2d_task *task) { + g2d_secure_enable(); + list_move_tail(&task->node, &g2d_dev->tasks_active); change_task_state_active(task); @@ -284,8 +286,6 @@ static void g2d_schedule_task(struct g2d_task *task) goto err_clk; } - g2d_secure_enable(); - spin_lock_irqsave(&g2d_dev->lock_task, flags); list_add_tail(&task->node, &g2d_dev->tasks_prepared); -- 2.20.1