drm/vmwgfx: Fix Ubuntu 17.10 Wayland black screen issue
authorSinclair Yeh <syeh@vmware.com>
Wed, 1 Nov 2017 17:47:05 +0000 (10:47 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Nov 2017 16:13:13 +0000 (17:13 +0100)
commitba4828af60e227fffb6ccca2e17c64938e7a5d0d
treefac98e7074742bc38391adaa8ba246b929e70f61
parent05b690ccb077eccb6a1aeb610456dbd5ea7f04a1
drm/vmwgfx: Fix Ubuntu 17.10 Wayland black screen issue

commit cef75036c40408ba3bc308bcb00a3d440da713fc upstream.

This is an extension of Commit 7c20d213dd3c ("drm/vmwgfx: Work
around mode set failure in 2D VMs")

With Wayland desktop and atomic mode set, during the mode setting
process there is a moment when two framebuffer sized surfaces
are being pinned.  This was not an issue with Xorg.

Since this only happens during a mode change, there should be no
performance impact by increasing allowable mem_size.

Signed-off-by: Sinclair Yeh <syeh@vmware.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c