From 74ecec1def6fa0f8dc159a4a7fb8e326bad0184f Mon Sep 17 00:00:00 2001 From: Cho KyongHo Date: Fri, 1 Dec 2017 00:40:51 +0900 Subject: [PATCH] g2d: add log of execution failure by priority Change-Id: Ie6648726506be751fc4b9a03c6e374ae3c8c9b64 Signed-off-by: Cho KyongHo --- drivers/gpu/exynos/g2d/g2d_drv.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/exynos/g2d/g2d_drv.c b/drivers/gpu/exynos/g2d/g2d_drv.c index fdf577358c13..1376b43a4b9d 100644 --- a/drivers/gpu/exynos/g2d/g2d_drv.c +++ b/drivers/gpu/exynos/g2d/g2d_drv.c @@ -335,8 +335,16 @@ static long g2d_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) break; } } - if (ret) + + if (ret) { + if (ctx->authority == G2D_AUTHORITY_HIGHUSER) + dev_err(g2d_dev->dev, + "%s: prio %d/%d found higher than %d\n", + __func__, i, + atomic_read(&g2d_dev->prior_stats[i]), + ctx->priority); break; + } if (copy_from_user(&data, uptr, sizeof(data))) { dev_err(g2d_dev->dev, -- 2.20.1