Skip to contentSkip to conversation

drm: rockchip: Turn off VT switching on suspend

PATCH New Caesar Wang 1 participant 3 messages Mar 31, 2015 – Apr 19, 2015

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

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
#1 lore raw

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
index a5d889a..eb4e0db 100644
@@ -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
#2 lore raw

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 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
index a5d889a..eb4e0db 100644
@@ -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.
***************************************************************************************