From: Thomas Hellstrom Date: Wed, 13 Jan 2010 21:28:40 +0000 (+0100) Subject: drm/ttm: Add a swap_notify callback. X-Git-Tag: v2.6.33-rc6~27^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f09ea4ecdcbcea05541f83e557d6ce2e56626d8;p=pandora-kernel.git drm/ttm: Add a swap_notify callback. This is needed for a bugfix in the vmwgfx driver. Drivers may have GPU bindings on buffers that core TTM is not aware of, and TTM may view those buffers as ordinary system memory buffers. Add a notifier to such drivers when TTM is about to move the buffer contents out to swappable memory. The driver must then release any private GPU bindings on those buffers. Signed-off-by: Thomas Hellstrom Signed-off-by: Dave Airlie --- Reading git-diff-tree failed