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 18:22:30 -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-pz0-f44.google.com (mail-pz0-f44.google.com [209.85.210.44]) by gabe.freedesktop.org (Postfix) with ESMTP id 57827A2484 for ; Wed, 7 Sep 2011 18:22:50 -0700 (PDT) Received: by pzk36 with SMTP id 36so386600pzk.3 for ; Wed, 07 Sep 2011 18:22:50 -0700 (PDT) In-Reply-To: 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 6:19 PM, Ben Widawsky wrote: > > > On Sep 7, 2011, at 5:30 PM, Andrew Lutomirski wrote: > >> 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 > > Remind me again... Does ssh still work? I haven't tried, but I'd be surprised. The *reset* button (the hardware one that's attached to the motherboard) doesn't work. --Andy