[RFC PATCH] drm/gem: Warn on illegal use of the dumb buffer interface

2014-11-14 Thread Alex Deucher
On Thu, Nov 13, 2014 at 2:31 PM, Thomas Hellstrom wrote: > Hi! > > Could we perhaps get an ack from Radeon / Nouveau as well? This needs to be rebased on a newer kernel to take into account the userptr changes in radeon_mode_dumb_mmap() so they don't get lost. With that fixed: Acked-by: Alex Deu

[RFC PATCH] drm/gem: Warn on illegal use of the dumb buffer interface

2014-11-13 Thread Thomas Hellstrom
Hi! Could we perhaps get an ack from Radeon / Nouveau as well? Thanks, Thomas On 11/12/2014 12:55 PM, Thomas Hellstrom wrote: > 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 fo

[RFC PATCH] drm/gem: Warn on illegal use of the dumb buffer interface

2014-11-12 Thread Daniel Vetter
On Wed, Nov 12, 2014 at 12:55:32PM +0100, Thomas Hellstrom wrote: > 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 > an

[RFC PATCH] drm/gem: Warn on illegal use of the dumb buffer interface

2014-11-12 Thread Thomas Hellstrom
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 ty