From: Thomas Hellstrom Date: Fri, 24 Jul 2009 07:57:34 +0000 (+0200) Subject: drm/ttm: Fix ttm in-kernel copying of pages with non-standard caching attributes. X-Git-Tag: v2.6.31-rc5~66^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=542c6f6df51327dbb180cf4d9b34827e147efe17;p=pandora-kernel.git drm/ttm: Fix ttm in-kernel copying of pages with non-standard caching attributes. For x86 this affected highmem pages only, since they were always kmapped cache-coherent, and this is fixed using kmap_atomic_prot(). For other architectures that may not modify the linear kernel map we resort to vmap() for now, since kmap_atomic_prot() generally uses the linear kernel map for lowmem pages. This of course comes with a performance impact and should be optimized when possible. Signed-off-by: Thomas Hellstrom Signed-off-by: Dave Airlie --- Reading git-diff-tree failed