g2d: add log of execution failure by priority
authorCho KyongHo <pullip.cho@samsung.com>
Thu, 30 Nov 2017 15:40:51 +0000 (00:40 +0900)
committerSeungchul Kim <sc377.kim@samsung.com>
Mon, 28 May 2018 05:28:06 +0000 (14:28 +0900)
Change-Id: Ie6648726506be751fc4b9a03c6e374ae3c8c9b64
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
drivers/gpu/exynos/g2d/g2d_drv.c

index fdf577358c13454cb2d036beba3e02ff2cb70e3f..1376b43a4b9d1ab29265eb430196f8352f30a674 100644 (file)
@@ -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,