drm: rockchip: Turn off VT switching on suspend
Subsystems (4)
cover drm: rockchip: Turn off VT switching on suspend
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.
Caesar Wang (1):
drm: rockchip: Turn off VT switching on suspend
drivers/gpu/drm/rockchip/rockchip_drm_fbdev.c | 3 +++ 1 file changed, 3 insertions(+)
Signature · 1 line
1.9.1
PATCH 1/1 drm: rockchip: Turn off VT switching on suspend
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
---
drivers/gpu/drm/rockchip/rockchip_drm_fbdev.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/gpu/drm/rockchip/rockchip_drm_fbdev.c +3 -0
@@ -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:
Signature · 1 line
1.9.1
Hi Mark,
Can you apply it into your drm branch if it's indeed uesful for u?
Quoted 30 lines · 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 switchReviewed-by Daniel Kurtz <[email protected]>Signed-off-by Caesar Wang <[email protected]>---
drivers/gpu/drm/rockchip/rockchip_drm_fbdev.c | 3 +++ 1 file changed, 3 insertions(+)drivers/gpu/drm/rockchip/rockchip_drm_fbdev.c +3
-0@@ -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:
Signature · 17 lines
**************************************************************************************
王晓腾 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 : [email protected]
***************************************************************************************
***************************************************************************************
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.
***************************************************************************************