Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 329335
b: refs/heads/master
c: 5233130
h: refs/heads/master
i:
  329333: b707f61
  329331: c86346e
  329327: 01d738e
v: v3
  • Loading branch information
Damien Lespiau authored and Daniel Vetter committed Aug 17, 2012
1 parent f31ca33 commit e6ffed6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 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: 33faad195eec0c72fec84e638623ea25652eed72
refs/heads/master: 523313092abffb21bfe7cd8d37615402b2228850
12 changes: 7 additions & 5 deletions trunk/drivers/gpu/drm/i915/intel_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -7234,7 +7234,7 @@ struct intel_display_error_state {
u32 position;
u32 base;
u32 size;
} cursor[2];
} cursor[I915_MAX_PIPES];

struct intel_pipe_error_state {
u32 conf;
Expand All @@ -7246,7 +7246,7 @@ struct intel_display_error_state {
u32 vtotal;
u32 vblank;
u32 vsync;
} pipe[2];
} pipe[I915_MAX_PIPES];

struct intel_plane_error_state {
u32 control;
Expand All @@ -7256,7 +7256,7 @@ struct intel_display_error_state {
u32 addr;
u32 surface;
u32 tile_offset;
} plane[2];
} plane[I915_MAX_PIPES];
};

struct intel_display_error_state *
Expand All @@ -7270,7 +7270,7 @@ intel_display_capture_error_state(struct drm_device *dev)
if (error == NULL)
return NULL;

for (i = 0; i < 2; i++) {
for_each_pipe(i) {
error->cursor[i].control = I915_READ(CURCNTR(i));
error->cursor[i].position = I915_READ(CURPOS(i));
error->cursor[i].base = I915_READ(CURBASE(i));
Expand Down Expand Up @@ -7303,9 +7303,11 @@ intel_display_print_error_state(struct seq_file *m,
struct drm_device *dev,
struct intel_display_error_state *error)
{
drm_i915_private_t *dev_priv = dev->dev_private;
int i;

for (i = 0; i < 2; i++) {
seq_printf(m, "Num Pipes: %d\n", dev_priv->num_pipe);
for_each_pipe(i) {
seq_printf(m, "Pipe [%d]:\n", i);
seq_printf(m, " CONF: %08x\n", error->pipe[i].conf);
seq_printf(m, " SRC: %08x\n", error->pipe[i].source);
Expand Down

0 comments on commit e6ffed6

Please sign in to comment.