From: Mika Kuoppala <mika.kuoppala@linux.intel.com>
To: Ben Widawsky <benjamin.widawsky@intel.com>
Cc: intel-gfx@lists.freedesktop.org, miku@iki.fi
Subject: Re: [PATCH] drm/i915: Fix forcewake counts for gen8
Date: Tue, 18 Feb 2014 21:08:35 +0200 [thread overview]
Message-ID: <87vbwci6h8.fsf@gaia.fi.intel.com> (raw)
In-Reply-To: <20140218182145.GA904@intel.com>
Ben Widawsky <benjamin.widawsky@intel.com> writes:
> On Tue, Feb 18, 2014 at 07:10:24PM +0200, Mika Kuoppala wrote:
>> Sometimes generic driver code gets forcewake explicitly by
>> gen6_gt_force_wake_get(), which check forcewake_count before accessing
>> hardware. However the register access with gen8_write function access
>> low level hw accessors directly, ignoring the forcewake_count. This
>> leads to nested forcewake get from hardware, in ring init and possibly
>> elsewhere, causing forcewake ack clear errors and/or hangs.
>>
>> Fix this by checking the forcewake count also in gen8_write
>>
>> v2: Read side doesn't care about shadowed registers,
>> Remove __needs_put funkiness from gen8_write. (Ville)
>> Improved commit message.
>>
>> References: https://bugs.freedesktop.org/show_bug.cgi?id=74007
>> Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
>> Cc: Ben Widawsky <benjamin.widawsky@intel.com>
>> Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
>> Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
Double signed-off slipped in it seems.
> Thanks for finding this. I'd been meaning to track down the extra "Timed
> out" messages. I do wonder how this actually fixes a hang. Do you have
> any idea?
No clear idea. I just suspect that the two writes into FORCEWAKE_MT
without proper put/ack dance in between upsets the gpu.
Interestingly with init it hangs like 1 out of 2 times,
but after a gpu reset, it hangs always. The spot is always
the same: I915_WRITE(mmio, (u32)ring->status_page.gfx_addr);
-Mika
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
prev parent reply other threads:[~2014-02-18 19:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-18 15:48 [PATCH] drm/i915: fix forcewake counts for gen8 Mika Kuoppala
2014-02-18 16:42 ` Ville Syrjälä
2014-02-18 17:10 ` [PATCH] drm/i915: Fix " Mika Kuoppala
2014-02-18 18:21 ` Ben Widawsky
2014-02-18 19:08 ` Mika Kuoppala [this message]
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=87vbwci6h8.fsf@gaia.fi.intel.com \
--to=mika.kuoppala@linux.intel.com \
--cc=benjamin.widawsky@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=miku@iki.fi \
/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