mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
drm/vmwgfx: Update device includes for DX device functionality
Add DX includes and move all device includes to a separate directory. Co-authored with Thomas Hellstrom, Charmaine Lee and above all, the VMware device team. Signed-off-by: Sinclair Yeh <syeh@vmware.com> Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Signed-off-by: Charmaine Lee <charmainel@vmware.com>
This commit is contained in:
committed by
Thomas Hellstrom
parent
5101020c78
commit
8ce75f8ab9
@@ -278,8 +278,8 @@ static void vmw_print_capabilities(uint32_t capabilities)
|
||||
DRM_INFO(" Command Buffers 2.\n");
|
||||
if (capabilities & SVGA_CAP_GBOBJECTS)
|
||||
DRM_INFO(" Guest Backed Resources.\n");
|
||||
if (capabilities & SVGA_CAP_CMD_BUFFERS_3)
|
||||
DRM_INFO(" Command Buffers 3.\n");
|
||||
if (capabilities & SVGA_CAP_DX)
|
||||
DRM_INFO(" DX Features.\n");
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1264,7 +1264,8 @@ static void __vmw_svga_disable(struct vmw_private *dev_priv)
|
||||
if (dev_priv->bdev.man[TTM_PL_VRAM].use_type) {
|
||||
dev_priv->bdev.man[TTM_PL_VRAM].use_type = false;
|
||||
vmw_write(dev_priv, SVGA_REG_ENABLE,
|
||||
SVGA_REG_ENABLE_ENABLE_HIDE);
|
||||
SVGA_REG_ENABLE_HIDE |
|
||||
SVGA_REG_ENABLE_ENABLE);
|
||||
}
|
||||
spin_unlock(&dev_priv->svga_lock);
|
||||
}
|
||||
@@ -1282,11 +1283,12 @@ void vmw_svga_disable(struct vmw_private *dev_priv)
|
||||
spin_lock(&dev_priv->svga_lock);
|
||||
if (dev_priv->bdev.man[TTM_PL_VRAM].use_type) {
|
||||
dev_priv->bdev.man[TTM_PL_VRAM].use_type = false;
|
||||
vmw_write(dev_priv, SVGA_REG_ENABLE,
|
||||
SVGA_REG_ENABLE_ENABLE_HIDE);
|
||||
spin_unlock(&dev_priv->svga_lock);
|
||||
if (ttm_bo_evict_mm(&dev_priv->bdev, TTM_PL_VRAM))
|
||||
DRM_ERROR("Failed evicting VRAM buffers.\n");
|
||||
vmw_write(dev_priv, SVGA_REG_ENABLE,
|
||||
SVGA_REG_ENABLE_HIDE |
|
||||
SVGA_REG_ENABLE_ENABLE);
|
||||
} else
|
||||
spin_unlock(&dev_priv->svga_lock);
|
||||
ttm_write_unlock(&dev_priv->reservation_sem);
|
||||
|
||||
Reference in New Issue
Block a user