Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ae69b42a authored by Chris Wilson's avatar Chris Wilson
Browse files

drm/i915/ringbuffer: Be consistent in use of ring->size when initialising

parent 045e769a
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -173,7 +173,7 @@ static int init_ring_common(struct intel_ring_buffer *ring)
	}
	}


	I915_WRITE_CTL(ring,
	I915_WRITE_CTL(ring,
			((ring->gem_object->size - PAGE_SIZE) & RING_NR_PAGES)
			((ring->size - PAGE_SIZE) & RING_NR_PAGES)
			| RING_REPORT_64K | RING_VALID);
			| RING_REPORT_64K | RING_VALID);


	/* If the head is still not zero, the ring is dead */
	/* If the head is still not zero, the ring is dead */