[PATCH 08/10] vmwgfx: Restrict number of GMR pages to device limit

2011-08-31 Thread Thomas Hellstrom
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

[PATCH 08/10] vmwgfx: Restrict number of GMR pages to device limit

2011-08-31 Thread Thomas Hellstrom
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