aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/bcm27xx/patches-5.10/950-0347-drm-vc4-Add-debugfs-node-that-dumps-the-current-disp.patch
diff options
context:
space:
mode:
authorÁlvaro Fernández Rojas <noltari@gmail.com>2022-05-17 15:02:39 +0200
committerÁlvaro Fernández Rojas <noltari@gmail.com>2022-05-17 15:11:23 +0200
commitd5c4f24b2af991df2ec24df1a3f906049370f59f (patch)
tree640c4a349a2fce2b7dbee7ed0115726bd5d9c245 /target/linux/bcm27xx/patches-5.10/950-0347-drm-vc4-Add-debugfs-node-that-dumps-the-current-disp.patch
parent99ad84b6d9727a63f99a16e0b8386747262e3433 (diff)
downloadupstream-d5c4f24b2af991df2ec24df1a3f906049370f59f.tar.gz
upstream-d5c4f24b2af991df2ec24df1a3f906049370f59f.tar.bz2
upstream-d5c4f24b2af991df2ec24df1a3f906049370f59f.zip
bcm27xx: remove linux 5.10 compatibility
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Diffstat (limited to 'target/linux/bcm27xx/patches-5.10/950-0347-drm-vc4-Add-debugfs-node-that-dumps-the-current-disp.patch')
-rw-r--r--target/linux/bcm27xx/patches-5.10/950-0347-drm-vc4-Add-debugfs-node-that-dumps-the-current-disp.patch70
1 files changed, 0 insertions, 70 deletions
diff --git a/target/linux/bcm27xx/patches-5.10/950-0347-drm-vc4-Add-debugfs-node-that-dumps-the-current-disp.patch b/target/linux/bcm27xx/patches-5.10/950-0347-drm-vc4-Add-debugfs-node-that-dumps-the-current-disp.patch
deleted file mode 100644
index 1e38c54492..0000000000
--- a/target/linux/bcm27xx/patches-5.10/950-0347-drm-vc4-Add-debugfs-node-that-dumps-the-current-disp.patch
+++ /dev/null
@@ -1,70 +0,0 @@
-From 09157702811f9e2144a769aef1f2269306fe86bb Mon Sep 17 00:00:00 2001
-From: Dave Stevenson <dave.stevenson@raspberrypi.com>
-Date: Tue, 6 Oct 2020 18:44:42 +0100
-Subject: [PATCH] drm/vc4: Add debugfs node that dumps the current
- display lists
-
-This allows easy analysis of display lists when debugging.
-
-Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
----
- drivers/gpu/drm/vc4/vc4_hvs.c | 41 +++++++++++++++++++++++++++++++++++
- 1 file changed, 41 insertions(+)
-
---- a/drivers/gpu/drm/vc4/vc4_hvs.c
-+++ b/drivers/gpu/drm/vc4/vc4_hvs.c
-@@ -95,6 +95,45 @@ static int vc4_hvs_debugfs_underrun(stru
- return 0;
- }
-
-+static int vc4_hvs_debugfs_dlist(struct seq_file *m, void *data)
-+{
-+ struct drm_info_node *node = m->private;
-+ struct drm_device *dev = node->minor->dev;
-+ struct vc4_dev *vc4 = to_vc4_dev(dev);
-+ struct drm_printer p = drm_seq_file_printer(m);
-+ unsigned int next_entry_start = 0;
-+ unsigned int i, j;
-+ u32 dlist_word, dispstat;
-+
-+ for (i = 0; i < SCALER_CHANNELS_COUNT; i++) {
-+ dispstat = VC4_GET_FIELD(HVS_READ(SCALER_DISPSTATX(i)),
-+ SCALER_DISPSTATX_MODE);
-+ if (dispstat == SCALER_DISPSTATX_MODE_DISABLED ||
-+ dispstat == SCALER_DISPSTATX_MODE_EOF) {
-+ drm_printf(&p, "HVS chan %u disabled\n", i);
-+ continue;
-+ }
-+
-+ drm_printf(&p, "HVS chan %u:\n", i);
-+
-+ for (j = HVS_READ(SCALER_DISPLISTX(i)); j < 256; j++) {
-+ dlist_word = readl((u32 __iomem *)vc4->hvs->dlist + j);
-+ drm_printf(&p, "dlist: %02d: 0x%08x\n", j,
-+ dlist_word);
-+ if (!next_entry_start ||
-+ next_entry_start == j) {
-+ if (dlist_word & SCALER_CTL0_END)
-+ break;
-+ next_entry_start = j +
-+ VC4_GET_FIELD(dlist_word,
-+ SCALER_CTL0_SIZE);
-+ }
-+ }
-+ }
-+
-+ return 0;
-+}
-+
- /* The filter kernel is composed of dwords each containing 3 9-bit
- * signed integers packed next to each other.
- */
-@@ -671,6 +710,8 @@ static int vc4_hvs_bind(struct device *d
- vc4_debugfs_add_regset32(drm, "hvs_regs", &hvs->regset);
- vc4_debugfs_add_file(drm, "hvs_underrun", vc4_hvs_debugfs_underrun,
- NULL);
-+ vc4_debugfs_add_file(drm, "hvs_dlists", vc4_hvs_debugfs_dlist,
-+ NULL);
-
- return 0;
- }