Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Ben Widawsky <ben@bwidawsk.net>
To: Jesse Barnes <jbarnes@virtuousgeek.org>,
	Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Intel Graphics Development <intel-gfx@lists.freedesktop.org>
Subject: Re: [PATCH 3/3] drm/i915: extract gt interrupt handler
Date: Fri, 30 Mar 2012 21:31:27 -0700	[thread overview]
Message-ID: <20120330213127.160c4df0@bwidawsk.net> (raw)
In-Reply-To: <20120330112840.7d6b7721@jbarnes-desktop>

On Fri, 30 Mar 2012 11:28:40 -0700
Jesse Barnes <jbarnes@virtuousgeek.org> wrote:

> On Fri, 30 Mar 2012 20:24:35 +0200
> Daniel Vetter <daniel.vetter@ffwll.ch> wrote:
> 
> > vlv, ivb and snb all share the gen6+ gt irq handling. 3 copies of
> > the same stuff is a bit much, so extract it into a little helper.
> > 
> > Now ilk has a different gt irq handling than snb, but shares the
> > same irq handler (due to the similar display block). So also
> > extract the ilk gt irq handling to clearly separate these two
> > things.
> > 
> > Nice side effect of this is that we can complete Ben Widawsky's
> > gen6+ irq bit #define cleanup and call the render irq also with the
> > GEN6 alias. Beforehand that code was shared with ilk, and neither
> > option really made much sense.
> > 
> > As a bonus this enables the error interrupt handling lifted from the
> > vlv code on snb and ivb, too.
> > 
> > Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
> 
> Nice cleanup.  Though I don't really like the IS_GEN5 branch in
> ironlake_irq_handler... might be nicer to just bite the bullet and
> have a mostly duplicate snb irq handler.
> 
> Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
> 

I agree with Jesse. Bite the bullet, you're already +LOC (see below),
may as well give it a nice clean split.

Personally, I'd like to give you crap about the fact that your
"cleanup" had a +LOC, which came up recently regarding my ILK
context stuff.

Antagonized-by: Ben Widawsky <ben@bwidawsk.net>

  reply	other threads:[~2012-03-31  4:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-30 18:24 [PATCH 1/3] drm/i915: rip out old HWSTAM missed irq WA for vlv Daniel Vetter
2012-03-30 18:24 ` [PATCH 2/3] drm/i915: use render gen to switch ring irq functions Daniel Vetter
2012-03-30 18:24 ` [PATCH 3/3] drm/i915: extract gt interrupt handler Daniel Vetter
2012-03-30 18:28   ` Jesse Barnes
2012-03-31  4:31     ` Ben Widawsky [this message]
2012-03-31  9:38       ` Daniel Vetter
2012-03-31  9:55       ` Daniel Vetter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120330213127.160c4df0@bwidawsk.net \
    --to=ben@bwidawsk.net \
    --cc=daniel.vetter@ffwll.ch \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=jbarnes@virtuousgeek.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox