[Intel-gfx] rfc: kms fix S3 resume
Shaohua Li
shaohua.li at intel.com
Tue Feb 10 07:11:38 CET 2009
After enabling kms, my console can't get resumed from S3. Below patch
makes it work, please check.
---
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;
}
More information about the Intel-gfx
mailing list