Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 321618
b: refs/heads/master
c: 0d8957c
h: refs/heads/master
v: v3
  • Loading branch information
Daniel Vetter committed Aug 8, 2012
1 parent 0c595ee commit 358eb01
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 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: da612d880fbc598ac0efcef579355fb90d4bca4e
refs/heads/master: 0d8957c8a90bbb5d34fab9a304459448a5131e06
7 changes: 5 additions & 2 deletions trunk/drivers/gpu/drm/i915/intel_ringbuffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,6 @@ static int init_ring_common(struct intel_ring_buffer *ring)
I915_WRITE_HEAD(ring, 0);
ring->write_tail(ring, 0);

/* Initialize the ring. */
I915_WRITE_START(ring, obj->gtt_offset);
head = I915_READ_HEAD(ring) & HEAD_ADDR;

/* G45 ring initialization fails to reset head to zero */
Expand All @@ -316,6 +314,11 @@ static int init_ring_common(struct intel_ring_buffer *ring)
}
}

/* Initialize the ring. This must happen _after_ we've cleared the ring
* registers with the above sequence (the readback of the HEAD registers
* also enforces ordering), otherwise the hw might lose the new ring
* register values. */
I915_WRITE_START(ring, obj->gtt_offset);
I915_WRITE_CTL(ring,
((ring->size - PAGE_SIZE) & RING_NR_PAGES)
| RING_VALID);
Expand Down

0 comments on commit 358eb01

Please sign in to comment.