Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 218039
b: refs/heads/master
c: 82690bb
h: refs/heads/master
i:
  218037: 9d43e24
  218035: fc49a0d
  218031: 8dab8aa
v: v3
  • Loading branch information
Chris Wilson committed Sep 21, 2010
1 parent 4bfd967 commit a0a756c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9fd981413e005827e7363a37fd0b61f9d0928034
refs/heads/master: 82690bba375586ab93d74265710c2fd5788c8178
18 changes: 12 additions & 6 deletions trunk/drivers/gpu/drm/i915/i915_debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,10 @@

#if defined(CONFIG_DEBUG_FS)

#define ACTIVE_LIST 1
#define FLUSHING_LIST 2
#define INACTIVE_LIST 3
#define RENDER_LIST 1
#define BSD_LIST 2
#define FLUSHING_LIST 3
#define INACTIVE_LIST 4

static const char *yesno(int v)
{
Expand Down Expand Up @@ -137,10 +138,14 @@ static int i915_gem_object_list_info(struct seq_file *m, void *data)
return ret;

switch (list) {
case ACTIVE_LIST:
seq_printf(m, "Active:\n");
case RENDER_LIST:
seq_printf(m, "Render:\n");
head = &dev_priv->render_ring.active_list;
break;
case BSD_LIST:
seq_printf(m, "BSD:\n");
head = &dev_priv->bsd_ring.active_list;
break;
case INACTIVE_LIST:
seq_printf(m, "Inactive:\n");
head = &dev_priv->mm.inactive_list;
Expand Down Expand Up @@ -974,7 +979,8 @@ static int i915_wedged_create(struct dentry *root, struct drm_minor *minor)

static struct drm_info_list i915_debugfs_list[] = {
{"i915_capabilities", i915_capabilities, 0, 0},
{"i915_gem_active", i915_gem_object_list_info, 0, (void *) ACTIVE_LIST},
{"i915_gem_render_active", i915_gem_object_list_info, 0, (void *) RENDER_LIST},
{"i915_gem_bsd_active", i915_gem_object_list_info, 0, (void *) BSD_LIST},
{"i915_gem_flushing", i915_gem_object_list_info, 0, (void *) FLUSHING_LIST},
{"i915_gem_inactive", i915_gem_object_list_info, 0, (void *) INACTIVE_LIST},
{"i915_gem_pageflip", i915_gem_pageflip_info, 0},
Expand Down

0 comments on commit a0a756c

Please sign in to comment.