From: Daniel Vetter Subject: Re: [PATCH] drm/i915/skl: Use correct use counters for force wakes Date: Tue, 30 Sep 2014 18:29:24 +0200 Message-ID: <20140930162924.GB12343@phenom.ffwll.local> References: <1411640220-32696-1-git-send-email-tvrtko.ursulin@linux.intel.com> <1412086082-10144-1-git-send-email-tvrtko.ursulin@linux.intel.com> <20140930145703.GN19278@nuc-i3427.alporthouse.com> <542AD33E.1030300@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com [209.85.212.179]) by gabe.freedesktop.org (Postfix) with ESMTP id AA9836FF33 for ; Tue, 30 Sep 2014 09:29:28 -0700 (PDT) Received: by mail-wi0-f179.google.com with SMTP id d1so3936557wiv.0 for ; Tue, 30 Sep 2014 09:29:27 -0700 (PDT) Content-Disposition: inline In-Reply-To: <542AD33E.1030300@linux.intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: Tvrtko Ursulin Cc: Intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Tue, Sep 30, 2014 at 04:58:54PM +0100, Tvrtko Ursulin wrote: > > > On 09/30/2014 03:57 PM, Chris Wilson wrote: > >On Tue, Sep 30, 2014 at 03:08:02PM +0100, Tvrtko Ursulin wrote: > >>From: Tvrtko Ursulin > >> > >>Write and reads following the block changed use engine specific use counters > >>and unless that is matched here force wake use counting goes bad. Same > >>force wake is attempted to be taken twice which leads to at least time outs. > >> > >>NOTE: Depending on feedback from hardware designers it may not be necessary > >>to grab force wakes on Gen9 here. But for Gen8 it is needed due to a race > >>between RC6 and ELSP writes. > >> > >>v2: Added blitter force wake engine and made more future proof. > >> Added commit note. > > > >Speaking of futureproofing, what did you think of my patch to remove the > >duplicated counting logic? > > [For reference it is called "[PATCH] drm/i915: Reduce duplicated forcewake > logic".] > > Disclaimer: I don't know this code that well - only had to dig into it a few > days back when I hit this bug which resulted in my patch. > > But from a glance your patch does make it look cleaner and indeed more > future proof (much better separation between platform specific and generic). > Does it need a proper review to move it forward? Yes. Volunteered? And when you review pls reply with a blurb in case the existing commit message from Chris doesn't fully cover the bug you've stumbled over, so that lazy me can just copy-paste that while applying ;-) Thanks, Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch