* [PATCH 0/1] drm: rockchip: Turn off VT switching on suspend
@ 2015-03-31 10:22 Caesar Wang
2015-03-31 10:22 ` [PATCH] " Caesar Wang
0 siblings, 1 reply; 3+ messages in thread
From: Caesar Wang @ 2015-03-31 10:22 UTC (permalink / raw)
To: David Airlie, Heiko Stuebner, Daniel Kurtz, Mark Yao
Cc: linux-rockchip, linux-arm-kernel, dri-devel, linux-kernel,
Caesar Wang, Rob Clark, Daniel Vetter
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(+)
--
1.9.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] drm: rockchip: Turn off VT switching on suspend
2015-03-31 10:22 [PATCH 0/1] drm: rockchip: Turn off VT switching on suspend Caesar Wang
@ 2015-03-31 10:22 ` Caesar Wang
2015-04-19 11:08 ` Caesar Wang
0 siblings, 1 reply; 3+ messages in thread
From: Caesar Wang @ 2015-03-31 10:22 UTC (permalink / raw)
To: David Airlie, Heiko Stuebner, Daniel Kurtz, Mark Yao
Cc: linux-rockchip, linux-arm-kernel, dri-devel, linux-kernel,
Caesar Wang, Rob Clark, Daniel Vetter
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@chromium.org>
Signed-off-by: Caesar Wang <wxt@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:
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] drm: rockchip: Turn off VT switching on suspend
2015-03-31 10:22 ` [PATCH] " Caesar Wang
@ 2015-04-19 11:08 ` Caesar Wang
0 siblings, 0 replies; 3+ messages in thread
From: Caesar Wang @ 2015-04-19 11:08 UTC (permalink / raw)
To: David Airlie, Heiko Stuebner, Daniel Kurtz, Mark Yao
Cc: linux-rockchip, linux-arm-kernel, dri-devel, linux-kernel,
Rob Clark, Daniel Vetter
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@chromium.org>
> Signed-off-by: Caesar Wang <wxt@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@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.
***************************************************************************************
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-04-19 11:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-31 10:22 [PATCH 0/1] drm: rockchip: Turn off VT switching on suspend Caesar Wang
2015-03-31 10:22 ` [PATCH] " Caesar Wang
2015-04-19 11:08 ` Caesar Wang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).