drm: Add an interface to reset the device
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 24 Jan 2011 15:11:08 +0000 (15:11 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 25 Jan 2011 19:23:28 +0000 (19:23 +0000)
commiteb03355660b44cf6b1ed2f895085b9de8f74efbc
tree2665733d7a13db780caf16a7920b7fe871079cdd
parentd121a5d2a098ba6dd033dd195f5ccbf7558c37b6
drm: Add an interface to reset the device

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.

Tested-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/drm_crtc.c
include/drm/drm_crtc.h