|
@@ -532,6 +532,9 @@ static int init_ring_common(struct intel_engine_cs *ring)
|
|
else
|
|
else
|
|
ring_setup_phys_status_page(ring);
|
|
ring_setup_phys_status_page(ring);
|
|
|
|
|
|
|
|
+ /* Enforce ordering by reading HEAD register back */
|
|
|
|
+ I915_READ_HEAD(ring);
|
|
|
|
+
|
|
/* Initialize the ring. This must happen _after_ we've cleared the ring
|
|
/* Initialize the ring. This must happen _after_ we've cleared the ring
|
|
* registers with the above sequence (the readback of the HEAD registers
|
|
* registers with the above sequence (the readback of the HEAD registers
|
|
* also enforces ordering), otherwise the hw might lose the new ring
|
|
* also enforces ordering), otherwise the hw might lose the new ring
|