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

2014-11-21 Thread Thomas Hellstrom
On 11/21/2014 03:51 PM, Chris Wilson wrote: > On Fri, Nov 21, 2014 at 03:48:33PM +0100, Thomas Hellstrom wrote: >> On 11/21/2014 03:14 PM, Chris Wilson wrote: >>> On Thu, Nov 20, 2014 at 09:56:25AM +0100, Thomas Hellstrom wrote: It happens on occasion that developers of generic user-space appl

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

2014-11-21 Thread Thomas Hellstrom
On 11/21/2014 03:14 PM, Chris Wilson wrote: > On Thu, Nov 20, 2014 at 09:56:25AM +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 accelerat

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

2014-11-21 Thread Chris Wilson
On Fri, Nov 21, 2014 at 03:48:33PM +0100, Thomas Hellstrom wrote: > On 11/21/2014 03:14 PM, Chris Wilson wrote: > > On Thu, Nov 20, 2014 at 09:56:25AM +0100, Thomas Hellstrom wrote: > >> It happens on occasion that developers of generic user-space applications > >> abuse the dumb buffer API to get

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

2014-11-21 Thread Chris Wilson
On Thu, Nov 20, 2014 at 09:56:25AM +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

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

2014-11-20 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