From: Daniel Vetter Subject: Re: [PATCH] drm/i915: Some polish for the new pipestat_irq_handler Date: Wed, 12 Feb 2014 21:28:51 +0100 Message-ID: <20140212202851.GZ17001@phenom.ffwll.local> References: <1392222066-11154-1-git-send-email-daniel.vetter@ffwll.ch> <1392224136-19620-1-git-send-email-daniel.vetter@ffwll.ch> <1392226276.3028.3.camel@intelbox> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mail-ea0-f171.google.com (mail-ea0-f171.google.com [209.85.215.171]) by gabe.freedesktop.org (Postfix) with ESMTP id 104C2FB020 for ; Wed, 12 Feb 2014 12:28:55 -0800 (PST) Received: by mail-ea0-f171.google.com with SMTP id f15so4656918eak.16 for ; Wed, 12 Feb 2014 12:28:55 -0800 (PST) Content-Disposition: inline In-Reply-To: <1392226276.3028.3.camel@intelbox> 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: Imre Deak Cc: Daniel Vetter , Intel Graphics Development List-Id: intel-gfx@lists.freedesktop.org On Wed, Feb 12, 2014 at 07:31:16PM +0200, Imre Deak wrote: > On Wed, 2014-02-12 at 17:55 +0100, Daniel Vetter wrote: > > Just a bit of polish which I hope will help me with massaging some > > internal patches to use Imre's reworked pipestat handling: > > - Don't check for underrun reporting or enable pipestat interrupts > > twice. > > - Frob the comments a bit. > > - Do the iir PIPE_EVENT to pipe mapping explicitly with a switch. We > > only have one place which does this, so better to make it explicit. > > = > > v2: Ville noticed that I've broken the logic a bit with trying to > > avoid checking whether we're interested in a given pipe twice. push > > the PIPESTAT read down after we've computed the mask of interesting > > bits first to avoid that duplication properly. > > = > > Cc: Imre Deak > > Cc: Ville Syrj=E4l=E4 > > Signed-off-by: Daniel Vetter > = > Looks simpler, so: > Reviewed-by: Imre Deak Queued for -next, thanks for the review. -Daniel -- = Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch