public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Mika Kuoppala <mika.kuoppala@linux.intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 3/6] drm/i915: Disable render idle on user forcewake
Date: Thu, 18 Sep 2014 18:54:15 +0300	[thread overview]
Message-ID: <8738boj55k.fsf@gaia.fi.intel.com> (raw)
In-Reply-To: <20140918153046.GE23478@nuc-i3427.alporthouse.com>

Chris Wilson <chris@chris-wilson.co.uk> writes:

> On Thu, Sep 18, 2014 at 05:58:32PM +0300, Mika Kuoppala wrote:
>> Render context on gen8 is not guaranteed to be loaded (active)
>> at the instant when forcewake ack shows up. So we need extra
>> steps to get it in before we access specific registers.
>> 
>> We could do register white listing to do the extra dance only on
>> specific render context access. However the main concern is
>> is ring initialization after reset/resume, so only take the extra
>> steps on user forcewake as it is already guarding ring init. And not incur
>> extra perf penalty to regular register accesses. This allows us to be
>> sure that we don't read all zeros on RMW cycles. And we to show a
>> consistent state to igt when user fw has been acquired.
>
> Might I just ask why? This talks about the need to serialise with the
> LRI use to load the context registers, so be explicit. When reading
> those registers, we should know what is going on with the GPU or just
> don't care. Writing to those registers once the ring is running is
> verboten.
>
> This is just very thin papering over an unexplained problem.

It is not clear why but on fw ack showing up, we have a short
delay before some registers on render contexts start to return
other than all zeroes. Usually you can get 2-3 reads before
the values show up. This manifests by sometimes the dfs/
i915_ppgtt_info will return 'render ring:PDP0' as zeroes or
top 32bits zeroes, ss it is the first read(s).

Also as our wa verification tests reads through mmio, after
getting user forcewake, we see sometimes read returning zeros.

If we do workaround verification by STORE_REGISTER_MEMs on
igt side and accept that debugfs/i915_forcewake_user doesn't
guarantee anything with regards to access to render context,
then I think that we can drop this patch.

And be very extra careful with workarounds that need RWM
on this area.

-Mika

  reply	other threads:[~2014-09-18 15:54 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-18 14:58 [PATCH 0/6] RFC: Persistent workarounds across reset/resume Mika Kuoppala
2014-09-18 14:58 ` [PATCH 1/6] drm/i915: Reinitialize default context after reset Mika Kuoppala
2014-09-18 15:36   ` Chris Wilson
2014-09-19 15:43     ` Daniel Vetter
2014-09-19 17:46   ` Volkin, Bradley D
2014-10-07 14:54     ` Mika Kuoppala
2014-09-18 14:58 ` [PATCH 2/6] drm/i915: Reinitialize default context after resume Mika Kuoppala
2014-09-18 14:58 ` [PATCH 3/6] drm/i915: Disable render idle on user forcewake Mika Kuoppala
2014-09-18 15:30   ` Chris Wilson
2014-09-18 15:54     ` Mika Kuoppala [this message]
2014-09-18 16:03       ` Chris Wilson
2014-09-18 17:05       ` Ville Syrjälä
2014-09-18 14:58 ` [PATCH 4/6] drm/i915: Build workaround list in ring initialization Mika Kuoppala
2014-09-19 15:49   ` Daniel Vetter
2014-09-18 14:58 ` [PATCH 5/6] drm/i915: Add ivb workarounds into the wa list Mika Kuoppala
2014-09-18 14:58 ` [PATCH 6/6] drm/i915: Check workaround status on dfs read time Mika Kuoppala
2014-09-18 15:18   ` [PATCH] tests/gem_workarounds: adapt to constant wa list from driver Mika Kuoppala

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=8738boj55k.fsf@gaia.fi.intel.com \
    --to=mika.kuoppala@linux.intel.com \
    --cc=chris@chris-wilson.co.uk \
    --cc=intel-gfx@lists.freedesktop.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