From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Vetter Subject: Re: [PATCH] drm/i915: optimize ilk/snb irq handler Date: Wed, 5 Dec 2012 12:01:10 +0100 Message-ID: <20121205110109.GJ11556@phenom.ffwll.local> References: <1354271090-27192-1-git-send-email-daniel.vetter@ffwll.ch> <453bf0$6m9dtt@azsmga001.ch.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ee0-f49.google.com (mail-ee0-f49.google.com [74.125.83.49]) by gabe.freedesktop.org (Postfix) with ESMTP id 5A366E5CCA for ; Wed, 5 Dec 2012 02:59:42 -0800 (PST) Received: by mail-ee0-f49.google.com with SMTP id c4so2847820eek.36 for ; Wed, 05 Dec 2012 02:59:41 -0800 (PST) Content-Disposition: inline In-Reply-To: <453bf0$6m9dtt@azsmga001.ch.intel.com> 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: Chris Wilson Cc: Daniel Vetter , Intel Graphics Development List-Id: intel-gfx@lists.freedesktop.org On Fri, Nov 30, 2012 at 11:00:12AM +0000, Chris Wilson wrote: > On Fri, 30 Nov 2012 11:24:50 +0100, Daniel Vetter wrote: > > We only need to read/write the south interrupt register if the > > corresponding bit is set in the north master interrupt register. > > Noticed while reading our interrupt handling code. > > > > Same optimization has already been applied on ivb in > > > > commit 0e43406bcc1868a316eea6012a0a09d992c53521 > > Author: Chris Wilson > > Date: Wed May 9 21:45:44 2012 +0100 > > > > drm/i915: Simplify interrupt processing for IvyBridge > > > > We can take advantage that the PCH_IIR is a subordinate register to > > reduce one of the required IIR reads, and that we only need to clear > > interrupts handled to reduce the writes. And by simply tidying the code > > we can reduce the line count and hopefully make it more readable. > > > > Signed-off-by: Daniel Vetter > Reviewed-by: Chris Wilson Queued for -next, thanks for the patch. Somehow I've forgotten to send out the confirmation blurb ... -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch