From 6a36709826cf117bd0c9d3df8fa36adc30ab7c1b Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Thu, 24 Jan 2013 12:07:24 +0100 Subject: [PATCH] write mbox regs twice on gen6 --- drivers/gpu/drm/i915/intel_ringbuffer.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.c b/drivers/gpu/drm/i915/intel_ringbuffer.c index dc6ae2f..93c46ac 100644 --- a/drivers/gpu/drm/i915/intel_ringbuffer.c +++ b/drivers/gpu/drm/i915/intel_ringbuffer.c @@ -598,6 +598,19 @@ gen6_add_request(struct intel_ring_buffer *ring) intel_ring_emit(ring, MI_USER_INTERRUPT); intel_ring_advance(ring); + if (IS_GEN6(ring->dev)) { + ret = intel_ring_begin(ring, 6); + if (ret) + return ret; + + mbox1_reg = ring->signal_mbox[0]; + mbox2_reg = ring->signal_mbox[1]; + + update_mboxes(ring, mbox1_reg); + update_mboxes(ring, mbox2_reg); + intel_ring_advance(ring); + } + return 0; } -- 1.7.10.4