Revert "[HACK] g2d: enable self protection not to use smc call"
authorCho KyongHo <pullip.cho@samsung.com>
Wed, 18 Jul 2018 11:28:15 +0000 (20:28 +0900)
committerJanghyuck Kim <janghyuck.kim@samsung.com>
Mon, 23 Jul 2018 05:39:17 +0000 (14:39 +0900)
This reverts commit e72811145b3b24d9c54b0445d025ffe79139b497.

Change-Id: Ia272efa0a66aad3a98778413dbf14d716ffea2d7
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
drivers/gpu/exynos/g2d/g2d_drv.c
drivers/gpu/exynos/g2d/g2d_regs.c

index 2698455d06fd7b5644bada83b4a3ff85f80d7e66..434817dd80b58f281873439999656fa75b4e77eb 100644 (file)
@@ -778,7 +778,6 @@ struct g2d_device_data {
 };
 
 const struct g2d_device_data g2d_9610_data __initconst = {
-       .caps = G2D_DEVICE_CAPS_SELF_PROTECTION,
        .max_layers = G2D_MAX_IMAGES_HALF,
 };
 
index 1eecc5da30f054fa18dec28bbd81c8ebd434abc4..7e3540c749d4c3aea6f97869412804dc898c0c75 100644 (file)
@@ -90,11 +90,10 @@ void g2d_hw_push_task(struct g2d_device *g2d_dev, struct g2d_task *task)
 
                if ((task->target.flags & G2D_LAYERFLAG_SECURE) || state)
                        state |= 1 << 24;
-#if 0
+
                writel_relaxed(state,
                               g2d_dev->reg +
                               G2D_JOBn_LAYER_SECURE_REG(task->job_id));
-#endif
        }
 
        writel_relaxed(G2D_JOB_HEADER_DATA(task->priority, task->job_id),