[Intel-gfx] rfc: kms fix S3 resume
Eric Anholt
eric at anholt.net
Tue Feb 10 22:11:51 CET 2009
On Tue, 2009-02-10 at 14:11 +0800, Shaohua Li wrote:
> After enabling kms, my console can't get resumed from S3. Below patch
> makes it work, please check.
If we're going to do the resume this way (and it sounds like a pretty
good plan to me), it seems like we should skip all the preceding mode
restore code in that function.
> ---
> drivers/gpu/drm/i915/i915_suspend.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> Index: linux/drivers/gpu/drm/i915/i915_suspend.c
> ===================================================================
> --- linux.orig/drivers/gpu/drm/i915/i915_suspend.c 2009-02-10 13:33:25.000000000 +0800
> +++ linux/drivers/gpu/drm/i915/i915_suspend.c 2009-02-10 14:10:46.000000000 +0800
> @@ -28,6 +28,7 @@
> #include "drm.h"
> #include "i915_drm.h"
> #include "i915_drv.h"
> +#include <drm/drm_crtc_helper.h>
>
> static bool i915_pipe_enabled(struct drm_device *dev, enum pipe pipe)
> {
> @@ -519,6 +520,7 @@ int i915_restore_state(struct drm_device
>
> i915_restore_vga(dev);
>
> + drm_helper_resume_force_mode(dev);
> return 0;
> }
>
>
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
--
Eric Anholt
eric at anholt.net eric.anholt at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/intel-gfx/attachments/20090210/83779719/attachment.sig>
More information about the Intel-gfx
mailing list