[HACK] g2d: enable self protection not to use smc call
authorhyesoo.yu <hyesoo.yu@samsung.com>
Wed, 30 May 2018 01:45:39 +0000 (10:45 +0900)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:22:23 +0000 (20:22 +0300)
Change-Id: I6e3addad86ce048f3d91b56431620ed6c0824819
Signed-off-by: hyesoo.yu <hyesoo.yu@samsung.com>
drivers/gpu/exynos/g2d/g2d_drv.c
drivers/gpu/exynos/g2d/g2d_regs.c

index 434817dd80b58f281873439999656fa75b4e77eb..2698455d06fd7b5644bada83b4a3ff85f80d7e66 100644 (file)
@@ -778,6 +778,7 @@ 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 7e3540c749d4c3aea6f97869412804dc898c0c75..1eecc5da30f054fa18dec28bbd81c8ebd434abc4 100644 (file)
@@ -90,10 +90,11 @@ 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),