Explorar o código

drm/vmwgfx: Don't flush fb if we're in the suspended state.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Thomas Hellstrom %!s(int64=15) %!d(string=hai) anos
pai
achega
09e2601b5a
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      drivers/gpu/drm/vmwgfx/vmwgfx_fb.c

+ 3 - 0
drivers/gpu/drm/vmwgfx/vmwgfx_fb.c

@@ -212,6 +212,9 @@ static void vmw_fb_dirty_flush(struct vmw_fb_par *par)
 		SVGAFifoCmdUpdate body;
 	} *cmd;
 
+	if (vmw_priv->suspended)
+		return;
+
 	spin_lock_irqsave(&par->dirty.lock, flags);
 	if (!par->dirty.active) {
 		spin_unlock_irqrestore(&par->dirty.lock, flags);