From: hyesoo.yu Date: Wed, 30 May 2018 01:45:39 +0000 (+0900) Subject: [HACK] g2d: enable self protection not to use smc call X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e72811145b3b24d9c54b0445d025ffe79139b497;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [HACK] g2d: enable self protection not to use smc call Change-Id: I6e3addad86ce048f3d91b56431620ed6c0824819 Signed-off-by: hyesoo.yu --- diff --git a/drivers/gpu/exynos/g2d/g2d_drv.c b/drivers/gpu/exynos/g2d/g2d_drv.c index 434817dd80b5..2698455d06fd 100644 --- a/drivers/gpu/exynos/g2d/g2d_drv.c +++ b/drivers/gpu/exynos/g2d/g2d_drv.c @@ -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, }; diff --git a/drivers/gpu/exynos/g2d/g2d_regs.c b/drivers/gpu/exynos/g2d/g2d_regs.c index 7e3540c749d4..1eecc5da30f0 100644 --- a/drivers/gpu/exynos/g2d/g2d_regs.c +++ b/drivers/gpu/exynos/g2d/g2d_regs.c @@ -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),