diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2017-03-07 10:20:33 +0100 |
---|---|---|
committer | Thomas Hellstrom <thellstrom@vmware.com> | 2017-03-08 08:28:55 +0100 |
commit | 9ab43cb679094b66ca3f7aeab630cb84c76749f1 (patch) | |
tree | d3443a0891a45ec810599dd096243918710550d9 /vmwgfx_ldu.c | |
parent | 76794a1037cd5f68c7d7d2573746e03150d96135 (diff) |
vmwgfx: Enable svga before using VRAM
Before pinning buffers in VRAM, we need to turn on SVGA mode which
is a prerequisite for VRAM usage. SVGA mode is disabled in master_drop if
fbdev is not running.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
Diffstat (limited to 'vmwgfx_ldu.c')
-rw-r--r-- | vmwgfx_ldu.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/vmwgfx_ldu.c b/vmwgfx_ldu.c index 2ba06f1..3271cc6 100644 --- a/vmwgfx_ldu.c +++ b/vmwgfx_ldu.c @@ -186,6 +186,7 @@ static int vmw_ldu_add_active(struct vmw_private *vmw_priv, if (vfb != ld->fb) { if (ld->fb && ld->fb->unpin) ld->fb->unpin(ld->fb); + vmw_svga_enable(vmw_priv); if (vfb->pin) vfb->pin(vfb); ld->fb = vfb; @@ -224,8 +225,6 @@ static void vmw_ldu_crtc_mode_set_nofb(struct drm_crtc *crtc) if (!crtc->state->enable) return; - - vmw_svga_enable(dev_priv); } /** @@ -270,7 +269,6 @@ static void vmw_ldu_crtc_helper_disable(struct drm_crtc *crtc) } dev_priv = vmw_priv(crtc->dev); - vmw_svga_disable(dev_priv); } static const struct drm_crtc_funcs vmw_legacy_crtc_funcs = { |