diff options
author | Jesse Barnes <jbarnes@virtuousgeek.org> | 2013-03-26 12:25:45 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-03-26 16:37:50 -0400 |
commit | 24576d23976746cb52e7700c4cadbf4bc1bc3472 (patch) | |
tree | e9d45a5b59367ab9df132f101de3868ef6f6be0c /drivers/gpu/drm/i915/intel_fb.c | |
parent | b5644d0554f37016763f615bd65cd68af96aa509 (diff) |
drm/i915: enable VT switchless resume v3
With the other bits in place, we can do this safely.
v2: disable backlight on suspend to prevent premature enablement on resume
v3: disable CRTCs on suspend to allow RTD3 (Kristen)
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_fb.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_fb.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_fb.c b/drivers/gpu/drm/i915/intel_fb.c index f203418b6f05..8d81c929b7b5 100644 --- a/drivers/gpu/drm/i915/intel_fb.c +++ b/drivers/gpu/drm/i915/intel_fb.c | |||
@@ -150,6 +150,9 @@ static int intelfb_create(struct drm_fb_helper *helper, | |||
150 | } | 150 | } |
151 | info->screen_size = size; | 151 | info->screen_size = size; |
152 | 152 | ||
153 | /* This driver doesn't need a VT switch to restore the mode on resume */ | ||
154 | info->skip_vt_switch = true; | ||
155 | |||
153 | drm_fb_helper_fill_fix(info, fb->pitches[0], fb->depth); | 156 | drm_fb_helper_fill_fix(info, fb->pitches[0], fb->depth); |
154 | drm_fb_helper_fill_var(info, &ifbdev->helper, sizes->fb_width, sizes->fb_height); | 157 | drm_fb_helper_fill_var(info, &ifbdev->helper, sizes->fb_width, sizes->fb_height); |
155 | 158 | ||