From: hyesoo.yu Date: Thu, 20 Jul 2017 00:51:13 +0000 (+0900) Subject: [COMMON] g2d: change mode to secure before running X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e843d4a3f4dcc08009ed86c9d1d57319c8fc635b;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [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 --- 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);