[PATCH] drm: rockchip: Turn off VT switching on suspend

Caesar Wang wxt at rock-chips.com
Sun Apr 19 04:08:23 PDT 2015


Hi Mark,

Can you apply it into your drm branch if it's indeed uesful for u?

在 2015年03月31日 18:22, Caesar Wang 写道:
> drm/rockchip already has support for disabling all displays on suspend
> and enabling them on resume.
>
> Disable automatic VT switching on suspend by the pm console tracking
> layer.
>
> Tested on veyron, used `echo mem > sys/power/state`
>    => verified no VT switch
>
> Reviewed-by: Daniel Kurtz <djkurtz at chromium.org>
> Signed-off-by: Caesar Wang <wxt at rock-chips.com>
> ---
>
>   drivers/gpu/drm/rockchip/rockchip_drm_fbdev.c | 3 +++
>   1 file changed, 3 insertions(+)
>
> diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_fbdev.c b/drivers/gpu/drm/rockchip/rockchip_drm_fbdev.c
> index a5d889a..eb4e0db 100644
> --- a/drivers/gpu/drm/rockchip/rockchip_drm_fbdev.c
> +++ b/drivers/gpu/drm/rockchip/rockchip_drm_fbdev.c
> @@ -119,6 +119,9 @@ static int rockchip_drm_fbdev_create(struct drm_fb_helper *helper,
>   	DRM_DEBUG_KMS("FB [%dx%d]-%d kvaddr=%p offset=%ld size=%d\n",
>   		      fb->width, fb->height, fb->depth, rk_obj->kvaddr,
>   		      offset, size);
> +
> +	fbi->skip_vt_switch = true;
> +
>   	return 0;
>   
>   err_drm_framebuffer_unref:

-- 
**************************************************************************************
王晓腾    Caesar Wang
Product R&D Dept.III
Fuzhou Rockchip Electronics Co.Ltd
Addr:  NO.18 Building, A District, Fuzhou Software Park,Gulou District,Fuzhou, Fujian,China(Fuzhou Headquarters)
               21F,Malata Building,Kejizhongyi Avenue,Nanshan District,Shenzhen  (Shenzhen Office)
Tel:+86-591-83991906/07 - 8221
Mobile:+86 15059456742
E-mail : wxt at rock-chips.com
***************************************************************************************
***************************************************************************************
IMPORTANT NOTICE: This email is from Fuzhou Rockchip Electronics Co., Ltd .The contents of this email and any attachments may
contain information that is privileged, confidential and/or exempt from disclosure under applicable law and relevant NDA.
If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the
information is STRICTLY PROHIBITED. Please immediately contact the sender as soon as possible and destroy the material
in its entirety in any format. Thank you.
***************************************************************************************




More information about the dri-devel mailing list