OSDN Git Service

drm/vmwgfx: Improve on hibernation
authorThomas Hellstrom <thellstrom@vmware.com>
Thu, 22 Mar 2018 09:26:37 +0000 (10:26 +0100)
committerThomas Hellstrom <thellstrom@vmware.com>
Thu, 22 Mar 2018 11:08:23 +0000 (12:08 +0100)
commitc3b9b165734492b7e42bdd898aba93e1120f9084
tree580fb2c15ca29c31102048751608974fa01ecacb
parentbf833fd36f9bdc2c86e1fdc90318e4c99b452472
drm/vmwgfx: Improve on hibernation

Make it possible to hibernate also with masters that don't switch VT at
hibernation time. We save and restore modesetting state unless fbdev is
active and enabled at hibernation time.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
drivers/gpu/drm/vmwgfx/vmwgfx_drv.h
drivers/gpu/drm/vmwgfx/vmwgfx_fb.c
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c