From 529b93bcd2c3d2c65b9fbb25375aca7fae9fe4aa Mon Sep 17 00:00:00 2001 From: Deepak Rawat Date: Mon, 30 Apr 2018 11:56:50 -0700 Subject: vmwgfx: Set bo_size when vmw_bo_init is successful SOU primary plane prepare_fb hook depends upon bo_size to pin up BO (and not call a new vmw_bo_init) when a new fb size is same as current fb. This was changed in "defb1dede586fd3dc25aa7eb246d82858a7afd56", which is causing page_flip to fail on VM with low display memory and multi-mon failure when cycle monitors from secondary display. Signed-off-by: Deepak Rawat Reviewed-by: Sinclair Yeh --- vmwgfx_scrn.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vmwgfx_scrn.c b/vmwgfx_scrn.c index 936eee3..89bb1d7 100644 --- a/vmwgfx_scrn.c +++ b/vmwgfx_scrn.c @@ -489,6 +489,8 @@ vmw_sou_primary_plane_prepare_fb(struct drm_plane *plane, return ret; } + vps->bo_size = size; + /* * TTM already thinks the buffer is pinned, but make sure the * pin_count is upped. -- cgit v1.2.3