From: Thomas Hellstrom Date: Thu, 20 Nov 2014 08:56:25 +0000 (+0100) Subject: drm/gem: Warn on illegal use of the dumb buffer interface v2 X-Git-Tag: omap-for-v3.19/fixes-rc1~80^2~35 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=355a70183848f21198e9f6296bd646df3478a26d;p=pandora-kernel.git drm/gem: Warn on illegal use of the dumb buffer interface v2 It happens on occasion that developers of generic user-space applications abuse the dumb buffer API to get hold of drm buffers that they can both mmap() and use for GPU acceleration, using the assumptions that dumb buffers and buffers available for GPU are a) The same type and can be aribtrarily type-casted. b) fully coherent. This patch makes the most widely used drivers warn nicely when that happens, the next step will be to fail. v2: Move drmP.h changes to drm_gem.h. Fix Radeon dumb mmap breakage. Signed-off-by: Thomas Hellstrom Acked-by: Daniel Vetter Acked-by: Alex Deucher Signed-off-by: Dave Airlie --- Reading git-diff-tree failed