All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eric Anholt <eric@anholt.net>
To: Ben Widawsky <ben@bwidawsk.net>,
	Daniel J Blueman <daniel.blueman@gmail.com>
Cc: intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org,
	Dave Airlie <airlied@redhat.com>
Subject: Re: [Intel-gfx] [PATCH 3.0-rc3] i915: Fix gen6 (SNB) GPU stalling
Date: Thu, 16 Jun 2011 11:36:21 -0700	[thread overview]
Message-ID: <87wrgl8vyy.fsf@eliezer.anholt.net> (raw)
In-Reply-To: <20110615151654.GA31881@snipes.kumite>

[-- Attachment #1: Type: text/plain, Size: 1351 bytes --]

On Wed, 15 Jun 2011 08:16:54 -0700, Ben Widawsky <ben@bwidawsk.net> wrote:
> On Wed, Jun 15, 2011 at 01:04:51PM +0800, Daniel J Blueman wrote:
> > The render HWSTAM is tweaked in preinstall, but we need to tweak the
> > blitter HWSTAM (new to gen6).
> > 
> > To me, it makes sense to reset the blitter HWSTAM register to what the
> > driver expects, in case anything before the i915 module loads and
> > adjusts it for a particular purpose (including debug); the render
> > HWSTAM is set this way too. I could add a comment to both perhaps?
> 
> Well on that note, the docs clearly state only 1 bit can be unmasked at
> a time. Not sure if that applies to masking as well, but if it does,
> that would be not good.

This is because HWSTAM controls writes of the current ISR to the status
page, not IIR.  If you wanted to hear about more than one bit of
interrupts in that field, you'd potentially lose one of them because ISR
is "things interrupting at this very moment" not "things that have
interrupted since you last checked".  This is one of those few cases
where the hardware docs are telling you how to build software in order
to not fail, rather than telling you information about the hardware.

Given that we never look at that ISR field, then, it shouldn't matter
that we have more than one set for the render engine.

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: Eric Anholt <eric@anholt.net>
To: Ben Widawsky <ben@bwidawsk.net>,
	Daniel J Blueman <daniel.blueman@gmail.com>
Cc: Dave Airlie <airlied@redhat.com>,
	intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 3.0-rc3] i915: Fix gen6 (SNB) GPU stalling
Date: Thu, 16 Jun 2011 11:36:21 -0700	[thread overview]
Message-ID: <87wrgl8vyy.fsf@eliezer.anholt.net> (raw)
In-Reply-To: <20110615151654.GA31881@snipes.kumite>


[-- Attachment #1.1: Type: text/plain, Size: 1351 bytes --]

On Wed, 15 Jun 2011 08:16:54 -0700, Ben Widawsky <ben@bwidawsk.net> wrote:
> On Wed, Jun 15, 2011 at 01:04:51PM +0800, Daniel J Blueman wrote:
> > The render HWSTAM is tweaked in preinstall, but we need to tweak the
> > blitter HWSTAM (new to gen6).
> > 
> > To me, it makes sense to reset the blitter HWSTAM register to what the
> > driver expects, in case anything before the i915 module loads and
> > adjusts it for a particular purpose (including debug); the render
> > HWSTAM is set this way too. I could add a comment to both perhaps?
> 
> Well on that note, the docs clearly state only 1 bit can be unmasked at
> a time. Not sure if that applies to masking as well, but if it does,
> that would be not good.

This is because HWSTAM controls writes of the current ISR to the status
page, not IIR.  If you wanted to hear about more than one bit of
interrupts in that field, you'd potentially lose one of them because ISR
is "things interrupting at this very moment" not "things that have
interrupted since you last checked".  This is one of those few cases
where the hardware docs are telling you how to build software in order
to not fail, rather than telling you information about the hardware.

Given that we never look at that ISR field, then, it shouldn't matter
that we have more than one set for the render engine.

[-- Attachment #1.2: Type: application/pgp-signature, Size: 197 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

  parent reply	other threads:[~2011-06-16 18:36 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-14 16:51 [PATCH 3.0-rc3] i915: Fix gen6 (SNB) GPU stalling Daniel J Blueman
2011-06-14 17:23 ` Chris Wilson
2011-06-14 17:23   ` Chris Wilson
2011-06-15  2:06 ` Eric Anholt
2011-06-15  2:06   ` Eric Anholt
2011-06-15  3:24   ` Daniel J Blueman
2011-06-15  4:43 ` [Intel-gfx] " Ben Widawsky
2011-06-15  4:43   ` Ben Widawsky
2011-06-15  5:04   ` [Intel-gfx] " Daniel J Blueman
2011-06-15  5:04     ` Daniel J Blueman
2011-06-15 15:16     ` [Intel-gfx] " Ben Widawsky
2011-06-16  2:45       ` Daniel J Blueman
2011-06-16  2:45         ` Daniel J Blueman
2011-06-16 18:36       ` Eric Anholt [this message]
2011-06-16 18:36         ` Eric Anholt
2011-06-15 16:38     ` [Intel-gfx] " Eric Anholt
2011-06-16  3:45       ` Daniel J Blueman
2011-06-16  3:45         ` Daniel J Blueman
2011-06-15 17:11 ` [Intel-gfx] " Kenneth Graunke
2011-06-15 17:11   ` Kenneth Graunke
2011-06-17  7:52 ` Sun, Yi
2011-06-17 14:12   ` [Intel-gfx] " Jesse Barnes
2011-06-17 14:12     ` Jesse Barnes
2011-06-17 15:29     ` [Intel-gfx] " Robert Hooker
2011-06-17 15:29       ` Robert Hooker

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=87wrgl8vyy.fsf@eliezer.anholt.net \
    --to=eric@anholt.net \
    --cc=airlied@redhat.com \
    --cc=ben@bwidawsk.net \
    --cc=daniel.blueman@gmail.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=linux-kernel@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.