bfaecc53caaf335ed21477271744632bfef7343a
[openwrt/staging/blocktrron.git] /
1 From d64998e5fc5894eb37f142b7259fa3bec091abbc Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Thu, 24 Aug 2023 15:36:21 +0100
4 Subject: [PATCH 0599/1085] drm/vc4: Fix dlist debug not resetting the next
5 entry pointer
6
7 The debug function to display the dlists didn't reset next_entry_start
8 when starting each display, so resulting in not stopping the
9 list at the correct place.
10
11 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
12 ---
13 drivers/gpu/drm/vc4/vc4_hvs.c | 3 ++-
14 1 file changed, 2 insertions(+), 1 deletion(-)
15
16 --- a/drivers/gpu/drm/vc4/vc4_hvs.c
17 +++ b/drivers/gpu/drm/vc4/vc4_hvs.c
18 @@ -110,7 +110,7 @@ static int vc4_hvs_debugfs_dlist(struct
19 struct vc4_dev *vc4 = to_vc4_dev(dev);
20 struct vc4_hvs *hvs = vc4->hvs;
21 struct drm_printer p = drm_seq_file_printer(m);
22 - unsigned int next_entry_start = 0;
23 + unsigned int next_entry_start;
24 unsigned int i, j;
25 u32 dlist_word, dispstat;
26
27 @@ -124,6 +124,7 @@ static int vc4_hvs_debugfs_dlist(struct
28 }
29
30 drm_printf(&p, "HVS chan %u:\n", i);
31 + next_entry_start = 0;
32
33 for (j = HVS_READ(SCALER_DISPLISTX(i)); j < 256; j++) {
34 dlist_word = readl((u32 __iomem *)vc4->hvs->dlist + j);