All of lore.kernel.org
 help / color / mirror / Atom feed
* Add a reset interface
@ 2011-01-24 15:55 Chris Wilson
  2011-01-24 15:55 ` [PATCH 1/4] drm: Add an interface to reset the device Chris Wilson
                   ` (5 more replies)
  0 siblings, 6 replies; 13+ messages in thread
From: Chris Wilson @ 2011-01-24 15:55 UTC (permalink / raw)
  To: dri-devel; +Cc: tiwai, mat

For i915 there is a need to invalidate some cached state after resuming or
reseting the GPU. This is not quite the same as simply restoring saved
state (i.e. the standard suspend resume method), so do not seem to merit
reusing the save|restore vfuncs.  Instead I propose a

   drm_mode_config_reset(struct drm_device *);

routine to iterate over all the attached CRTCs, encoders and connectors
and call any supplied reset vfunc.

This is required to fix some modesetting regressions across resume in
2.6.38:
https://bugzilla.kernel.org/show_bug.cgi?id=26952
https://bugzilla.kernel.org/show_bug.cgi?id=27272

Please review,
-Chris

 drivers/gpu/drm/drm_crtc.c           |   19 +++++++++++++++++++
 drivers/gpu/drm/i915/i915_drv.c      |    2 ++
 drivers/gpu/drm/i915/intel_crt.c     |   10 ++++++++++
 drivers/gpu/drm/i915/intel_display.c |   17 ++++++++++++++---
 include/drm/drm_crtc.h               |    7 +++++++
 5 files changed, 52 insertions(+), 3 deletions(-)

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2011-01-30 21:08 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
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

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.