]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vmwgfx: Schedule an fb dirty update after resume
authorThomas Hellstrom <thellstrom@vmware.com>
Wed, 23 May 2018 14:14:54 +0000 (16:14 +0200)
committerThomas Hellstrom <thellstrom@vmware.com>
Wed, 23 May 2018 14:52:55 +0000 (16:52 +0200)
commita296253fa0563f1515d3f9f971174fd7c96e3115
tree7b9b63367aa8a37d097ebff652b7ed01f5e0697e
parente58fe9a8ac28c3939f2211ed01eee3096995f117
drm/vmwgfx: Schedule an fb dirty update after resume

We have had problems displaying fbdev after a resume and as a
workaround we have had to call vmw_fb_refresh(). This has had
a number of unwanted side-effects. The root of the problem was,
however that the coalesced fbdev dirty region was not empty on
the first dirty_mark() after a resume, so a flush was never
scheduled.

Fix this by force scheduling an fbdev flush after resume, and
remove the workaround.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Deepak Rawat <drawat@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
drivers/gpu/drm/vmwgfx/vmwgfx_drv.h
drivers/gpu/drm/vmwgfx/vmwgfx_fb.c