Skip to content
Permalink
Browse files

drm/vc4: Add a debugfs node for tracking execution state.

Signed-off-by: Eric Anholt <eric@anholt.net>
  • Loading branch information...
anholt authored and popcornmix committed Jan 22, 2016
1 parent 689ffeb commit c6f3d62940accd673059f3c85ba82d79e3160050
Showing with 16 additions and 0 deletions.
  1. +1 −0 drivers/gpu/drm/vc4/vc4_debugfs.c
  2. +1 −0 drivers/gpu/drm/vc4/vc4_drv.h
  3. +14 −0 drivers/gpu/drm/vc4/vc4_gem.c
@@ -18,6 +18,7 @@
static const struct drm_info_list vc4_debugfs_list[] = {
{"bo_stats", vc4_bo_stats_debugfs, 0},
{"dpi_regs", vc4_dpi_debugfs_regs, 0},
{"gem_exec", vc4_gem_exec_debugfs, 0},
{"hdmi_regs", vc4_hdmi_debugfs_regs, 0},
{"hvs_regs", vc4_hvs_debugfs_regs, 0},
{"crtc0_regs", vc4_crtc_debugfs_regs, 0, (void *)(uintptr_t)0},
@@ -481,6 +481,7 @@ void vc4_job_handle_completed(struct vc4_dev *vc4);
int vc4_queue_seqno_cb(struct drm_device *dev,
struct vc4_seqno_cb *cb, uint64_t seqno,
void (*func)(struct vc4_seqno_cb *cb));
int vc4_gem_exec_debugfs(struct seq_file *m, void *arg);

/* vc4_hdmi.c */
extern struct platform_driver vc4_hdmi_driver;
@@ -32,6 +32,20 @@
#include "vc4_regs.h"
#include "vc4_trace.h"

#ifdef CONFIG_DEBUG_FS
int vc4_gem_exec_debugfs(struct seq_file *m, void *unused)
{
struct drm_info_node *node = (struct drm_info_node *)m->private;
struct drm_device *dev = node->minor->dev;
struct vc4_dev *vc4 = to_vc4_dev(dev);

seq_printf(m, "Emitted seqno: 0x%016llx\n", vc4->emit_seqno);
seq_printf(m, "Finished seqno: 0x%016llx\n", vc4->finished_seqno);

return 0;
}
#endif /* CONFIG_DEBUG_FS */

static void
vc4_queue_hangcheck(struct drm_device *dev)
{

0 comments on commit c6f3d62

Please sign in to comment.
You can’t perform that action at this time.