aa38b182ba3f41dd70fe6a36b477eb417e65328b
[openwrt/staging/xback.git] /
1 From 23ea21ef5f6efb3082c184843b35a2f8f2e4374c Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Tue, 31 Oct 2023 11:15:38 +0000
4 Subject: [PATCH] drm/vc4: Log the size of the dlist allocation that was
5 attempted
6
7 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
8 ---
9 drivers/gpu/drm/vc4/vc4_hvs.c | 3 ++-
10 1 file changed, 2 insertions(+), 1 deletion(-)
11
12 --- a/drivers/gpu/drm/vc4/vc4_hvs.c
13 +++ b/drivers/gpu/drm/vc4/vc4_hvs.c
14 @@ -659,7 +659,8 @@ vc4_hvs_alloc_dlist_entry(struct vc4_hvs
15 dlist_count);
16 spin_unlock_irqrestore(&hvs->mm_lock, flags);
17 if (ret) {
18 - drm_err(dev, "Failed to allocate DLIST entry: %d\n", ret);
19 + drm_err(dev, "Failed to allocate DLIST entry. Requested size=%zu. ret=%d\n",
20 + dlist_count, ret);
21 return ERR_PTR(ret);
22 }
23