From: Chris Wilson <chris@chris-wilson.co.uk>
To: Alex Deucher <alexdeucher@gmail.com>
Cc: tiwai@suse.de, mat@mshopf.de, dri-devel@lists.freedesktop.org
Subject: Re: [PATCH 1/4] drm: Add an interface to reset the device
Date: Tue, 25 Jan 2011 18:48:56 +0000 [thread overview]
Message-ID: <1bdc18$jcrug8@fmsmga002.fm.intel.com> (raw)
In-Reply-To: <AANLkTi=9Y+8ttHdkiF4HczqdneTmWXObPc5ZgUi-yMSO@mail.gmail.com>
On Mon, 24 Jan 2011 12:08:29 -0500, Alex Deucher <alexdeucher@gmail.com> wrote:
> On Mon, Jan 24, 2011 at 10:55 AM, Chris Wilson <chris@chris-wilson.co.uk> wrote:
> > Iterate over the attached CRTCs, encoders and connectors and call the
> > supplied reset vfunc in order to reset any cached state back to unknown.
> > Useful after an invalidation event such as a GPU reset or resuming.
> >
>
> Can't you just reprogram the modes at resume? I guess it would help
> to see what you are actually doing with this hook.
I tried to show just how I intended to use during resume and resetting a
hung GPU, and there is also a similarity with boot up (which may share the
same code). In these 2 instances were the GPU state becomes inconsistent
with the state in the connectors/crtc and so we need to reset. (Not doing
so means that the mode programming on resume fails.)
There is a large semantic difference between restore and reset, and since
reset was useful outside of resume, I felt the need for an additional
interface.
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
next prev parent reply other threads:[~2011-01-25 18:49 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-24 15:55 Add a reset interface Chris Wilson
2011-01-24 15:55 ` [PATCH 1/4] drm: Add an interface to reset the device Chris Wilson
2011-01-24 16:18 ` Takashi Iwai
2011-01-24 16:23 ` Chris Wilson
2011-01-24 17:08 ` Alex Deucher
2011-01-25 18:48 ` Chris Wilson [this message]
2011-01-24 15:55 ` [PATCH 2/4] drm/i915: Reset state after a GPU reset or resume Chris Wilson
2011-01-24 15:55 ` [PATCH 3/4] drm/i915/crt: Force the initial probe after reset Chris Wilson
2011-01-24 15:55 ` [PATCH 4/4] drm/i915: Reset crtc after resume Chris Wilson
2011-01-24 16:28 ` Add a reset interface Takashi Iwai
2011-01-30 11:50 ` Chris Wilson
2011-01-30 20:03 ` Dave Airlie
2011-01-30 21:08 ` Chris Wilson
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='1bdc18$jcrug8@fmsmga002.fm.intel.com' \
--to=chris@chris-wilson.co.uk \
--cc=alexdeucher@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=mat@mshopf.de \
--cc=tiwai@suse.de \
/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.