summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_modes.c
diff options
context:
space:
mode:
authorThomas Hellstrom <thellstrom@vmware.com>2011-08-31 07:42:53 +0000
committerDave Airlie <airlied@redhat.com>2011-09-01 09:38:07 +0100
commitfb17f18993071cc230ec8ddb6dd3dd9932d2dba2 (patch)
treec44f01b1f015cce50e7c4d12045dc8815618f253 /drivers/gpu/drm/i915/intel_modes.c
parent05730b32a78dab4bed8fb7ccc64c53d9fcf31e9d (diff)
vmwgfx: Restrict number of GMR pages to device limit
When GMR2 is available, make sure we restrict the number of used GMR pages to the limit indicated by the device. This is done by failing a GMRID allocation if the total number of GMR pages exceeds the limit. As a result TTM will then start evicting buffers in GMR memory on a LRU basis until the allocation succeeds. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_modes.c')
0 files changed, 0 insertions, 0 deletions