diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2010-01-16 16:05:05 +0100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-01-25 16:04:39 +1000 |
commit | 8ba5152a3acd5914cade42a1c8c9dc58ad8d1a89 (patch) | |
tree | 7e5433d4d03d753a152a9e1eec5c6e4c6958709a /drivers/gpu/drm/vmwgfx/vmwgfx_drv.h | |
parent | 0eaddb28d3460f13102cd82cf58af875bfb1bd53 (diff) | |
download | blackbird-obmc-linux-8ba5152a3acd5914cade42a1c8c9dc58ad8d1a89.tar.gz blackbird-obmc-linux-8ba5152a3acd5914cade42a1c8c9dc58ad8d1a89.zip |
drm/vmwgfx: Optimize memory footprint for DMA buffers.
Use VRAM whenever there is free space for DMA buffers,
but use system GMR memory if using VRAM would cause an eviction.
This significantly reduces the guest system memory usage for
VMs with a large amount of VRAM allocated.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/vmwgfx/vmwgfx_drv.h')
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_drv.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.h b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.h index 7532b9b47eec..50529a7f06fb 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.h +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.h @@ -404,6 +404,7 @@ extern int vmw_mmap(struct file *filp, struct vm_area_struct *vma); extern struct ttm_placement vmw_vram_placement; extern struct ttm_placement vmw_vram_ne_placement; +extern struct ttm_placement vmw_vram_sys_placement; extern struct ttm_placement vmw_sys_placement; extern struct ttm_bo_driver vmw_bo_driver; extern int vmw_dma_quiescent(struct drm_device *dev); |