From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Lutomirski Subject: Re: [PATCH 1/2] drm/i915: Dumb down the semaphore logic Date: Wed, 7 Sep 2011 17:30:29 -0700 Message-ID: References: <1315437162-14312-1-git-send-email-ben@bwidawsk.net> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mail-yi0-f49.google.com (mail-yi0-f49.google.com [209.85.218.49]) by gabe.freedesktop.org (Postfix) with ESMTP id 051EEA186E for ; Wed, 7 Sep 2011 17:30:49 -0700 (PDT) Received: by yic13 with SMTP id 13so221673yic.36 for ; Wed, 07 Sep 2011 17:30:49 -0700 (PDT) In-Reply-To: <1315437162-14312-1-git-send-email-ben@bwidawsk.net> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Ben Widawsky Cc: Daniel Vetter , intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Wed, Sep 7, 2011 at 4:12 PM, Ben Widawsky wrote: > While I think the previous code is correct, it was hard to follow and > hard to debug. Since we already have a ring abstraction, might as well > use it to handle the semaphore updates and compares. > > I don't expect this code to make semaphores better or worse, but you > never know... > > Cc: Chris Wilson > Cc: Daniel Vetter > Cc: Eric Anholt > Signed-off-by: Ben Widawsky > --- > =A0drivers/gpu/drm/i915/i915_gem_execbuffer.c | =A0 =A03 +- > =A0drivers/gpu/drm/i915/i915_reg.h =A0 =A0 =A0 =A0 =A0 =A0| =A0 =A07 + > =A0drivers/gpu/drm/i915/intel_ringbuffer.c =A0 =A0| =A0176 ++++++++++++++= +++++++------- > =A0drivers/gpu/drm/i915/intel_ringbuffer.h =A0 =A0| =A0 =A07 +- > =A04 files changed, 145 insertions(+), 48 deletions(-) > Sadly, it still instantly crashes. --Andy