From: Ben Widawsky <ben@bwidawsk.net>
To: Chris Wilson <chris@chris-wilson.co.uk>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 3/5] drm/i915/contexts: Switch to default on resume
Date: Wed, 15 Aug 2012 08:58:31 -0700 [thread overview]
Message-ID: <a849152ebd3502f21c798562d43dca84@bwidawsk.net> (raw)
In-Reply-To: <1345022292_97153@CP5-2952>
On 2012-08-15 02:18, Chris Wilson wrote:
> On Tue, 14 Aug 2012 14:35:15 -0700, Ben Widawsky <ben@bwidawsk.net>
> wrote:
>> In order to make the HW state CCID match with what we think it
>> should
>> be, we must order a switch to the default context.
>>
>> The really sad thing here is that the switch can potentially fail,
>> and
>> as such we have to assume contexts no longer work. There is likely
>> room
>> for improvement but until we actually start seeing the case occur, I
>> think it should be fine.
>>
>> This was accidentally left this out of the first series, noticed by
>> Chris Wilson.
>
> However that do_switch() is a no-op as it spots that the
> ring->last_ctx_obj is the DEFAULT_CONTEXT (saved across s&r) and we
> exit
> early.
>
> The only clean way I could see was to extract the actual set_switch
> portion of do_switch() (i.e. discard the initial checks and
> pre-/post-op
> pinning). Which brings you nicely into the next few patches...
> -Chris
Agreed, I was thinking re-ordering the series would just magically
solve all such issues :-)
--
Ben Widawsky, Intel Open Source Technology Center
next prev parent reply other threads:[~2012-08-15 15:58 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-14 21:35 [PATCH 0/5] Some HW context fixes Ben Widawsky
2012-08-14 21:35 ` [PATCH 1/5] drm/i915: Cleanup instdone state Ben Widawsky
2012-08-15 9:14 ` Chris Wilson
2012-08-15 17:43 ` Ben Widawsky
2012-08-14 21:35 ` [PATCH 2/5] drm/i915/contexts: fix list corruption Ben Widawsky
2012-08-15 22:50 ` Daniel Vetter
2012-08-14 21:35 ` [PATCH 3/5] drm/i915/contexts: Switch to default on resume Ben Widawsky
2012-08-15 9:18 ` Chris Wilson
2012-08-15 15:58 ` Ben Widawsky [this message]
2012-08-14 21:35 ` [PATCH 4/5] drm/i915/contexts: Add forced switches Ben Widawsky
2012-08-14 21:35 ` [PATCH 5/5] drm/i915/contexts: Serialize default context init Ben Widawsky
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=a849152ebd3502f21c798562d43dca84@bwidawsk.net \
--to=ben@bwidawsk.net \
--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