From: Thomas Hellstrom Date: Wed, 31 Aug 2011 07:42:53 +0000 (+0000) Subject: vmwgfx: Restrict number of GMR pages to device limit X-Git-Tag: v3.2-rc1~135^2~70 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb17f18993071cc230ec8ddb6dd3dd9932d2dba2;p=pandora-kernel.git 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 Reviewed-by: Jakob Bornecrantz Signed-off-by: Dave Airlie --- Reading git-diff-tree failed