From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Widawsky Subject: [PATCH 12/17] drm/i915: FORCE_RESTORE for gen8 semaphores Date: Fri, 13 Dec 2013 20:16:00 -0800 Message-ID: <1386994565-29395-13-git-send-email-benjamin.widawsky@intel.com> References: <1386994565-29395-1-git-send-email-benjamin.widawsky@intel.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0586890926==" Return-path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by gabe.freedesktop.org (Postfix) with ESMTP id BFC22FBDCC for ; Fri, 13 Dec 2013 20:16:14 -0800 (PST) In-Reply-To: <1386994565-29395-1-git-send-email-benjamin.widawsky@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org To: Intel GFX Cc: Ben Widawsky , Ben Widawsky List-Id: intel-gfx@lists.freedesktop.org --===============0586890926== Content-Type: text/plain; charset=a Content-Transfer-Encoding: quoted-printable Implement the note indicated in the bspec. Signed-off-by: Ben Widawsky --- drivers/gpu/drm/i915/i915_gem_context.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/gpu/drm/i915/i915_gem_context.c b/drivers/gpu/drm/i9= 15/i915_gem_context.c index e08acab..a14a3b3 100644 --- a/drivers/gpu/drm/i915/i915_gem_context.c +++ b/drivers/gpu/drm/i915/i915_gem_context.c @@ -446,6 +446,15 @@ static int do_switch(struct i915_hw_context *to) if (!to->is_initialized || is_default_context(to)) hw_flags |=3D MI_RESTORE_INHIBIT; =20 + /* When SW intends to use semaphore signaling between Command streamers= , + * it must avoid lite restores in HW by programming "Force Restore" bit + * to =E2=80=981=E2=80=99 in context descriptor during context submissi= on + * + * XXX: is this really needed for ringbuffer mode? + */ + if (IS_GEN8(ring->dev) && i915_semaphore_is_enabled(ring->dev)) + hw_flags |=3D MI_FORCE_RESTORE; + ret =3D mi_set_context(ring, to, hw_flags); if (ret) { i915_gem_object_unpin(to->obj); --=20 1.8.5.1 --===============0586890926== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx --===============0586890926==--