From 46b69396913c2338a8bb6a17d03a67bf8db73a2d Mon Sep 17 00:00:00 2001 From: Cho KyongHo Date: Fri, 1 Dec 2017 13:59:12 +0900 Subject: [PATCH] g2d: add error log when no free task slot found Change-Id: I28d4af981117a26f45b90137338fe7045bc879e4 Signed-off-by: Cho KyongHo --- drivers/gpu/exynos/g2d/g2d_task.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/exynos/g2d/g2d_task.c b/drivers/gpu/exynos/g2d/g2d_task.c index 53162351ddd5..580b80bdb653 100644 --- a/drivers/gpu/exynos/g2d/g2d_task.c +++ b/drivers/gpu/exynos/g2d/g2d_task.c @@ -324,6 +324,8 @@ struct g2d_task *g2d_get_free_task(struct g2d_device *g2d_dev, spin_lock_irqsave(&g2d_dev->lock_task, flags); if (list_empty(taskfree)) { + dev_err(g2d_dev->dev, "%s: no free task slot found(hwfc? %d)\n", + __func__, hwfc); spin_unlock_irqrestore(&g2d_dev->lock_task, flags); return NULL; } -- 2.20.1