From: Cho KyongHo Date: Thu, 30 Nov 2017 15:40:51 +0000 (+0900) Subject: g2d: add log of execution failure by priority X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=74ecec1def6fa0f8dc159a4a7fb8e326bad0184f;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git g2d: add log of execution failure by priority Change-Id: Ie6648726506be751fc4b9a03c6e374ae3c8c9b64 Signed-off-by: Cho KyongHo --- 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,