aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/i915/intel_ringbuffer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.c b/drivers/gpu/drm/i915/intel_ringbuffer.c
index 05969f03c0c1..16371a444426 100644
--- a/drivers/gpu/drm/i915/intel_ringbuffer.c
+++ b/drivers/gpu/drm/i915/intel_ringbuffer.c
@@ -532,6 +532,9 @@ static int init_ring_common(struct intel_engine_cs *ring)
532 else 532 else
533 ring_setup_phys_status_page(ring); 533 ring_setup_phys_status_page(ring);
534 534
535 /* Enforce ordering by reading HEAD register back */
536 I915_READ_HEAD(ring);
537
535 /* Initialize the ring. This must happen _after_ we've cleared the ring 538 /* Initialize the ring. This must happen _after_ we've cleared the ring
536 * registers with the above sequence (the readback of the HEAD registers 539 * registers with the above sequence (the readback of the HEAD registers
537 * also enforces ordering), otherwise the hw might lose the new ring 540 * also enforces ordering), otherwise the hw might lose the new ring