Skip to content

Commit ea23632

Browse files
6by9gregkh
authored andcommitted
drm/vc4: hvs: Fix dlist debug not resetting the next entry pointer
[ Upstream commit 6d5f76e ] The debug function to display the dlists didn't reset next_entry_start when starting each display, so resulting in not stopping the list at the correct place. Fixes: c6dac00 ("drm/vc4: hvs: Add debugfs node that dumps the current display lists") Reviewed-by: Maxime Ripard <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Signed-off-by: Dave Stevenson <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent 74f21be commit ea23632

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/gpu/drm/vc4/vc4_hvs.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ static int vc4_hvs_debugfs_dlist(struct seq_file *m, void *data)
110110
struct vc4_dev *vc4 = to_vc4_dev(dev);
111111
struct vc4_hvs *hvs = vc4->hvs;
112112
struct drm_printer p = drm_seq_file_printer(m);
113-
unsigned int next_entry_start = 0;
113+
unsigned int next_entry_start;
114114
unsigned int i, j;
115115
u32 dlist_word, dispstat;
116116

@@ -124,6 +124,7 @@ static int vc4_hvs_debugfs_dlist(struct seq_file *m, void *data)
124124
}
125125

126126
drm_printf(&p, "HVS chan %u:\n", i);
127+
next_entry_start = 0;
127128

128129
for (j = HVS_READ(SCALER_DISPLISTX(i)); j < 256; j++) {
129130
dlist_word = readl((u32 __iomem *)vc4->hvs->dlist + j);

0 commit comments

Comments
 (0)