linux/include/drm/ttm
Thomas Hellstrom 05efb1abec drm/ttm: ttm object security fixes for render nodes
When a client looks up a ttm object, don't look it up through the device hash
table, but rather from the file hash table. That makes sure that the client
has indeed put a reference on the object, or in gem terms, has opened
the object; either using prime or using the global "name".

To avoid a performance loss, make sure the file hash table entries can be
looked up from under an RCU lock, and as a consequence, replace the rwlock
with a spinlock, since we never need to take it in read mode only anymore.

Finally add a ttm object lookup function for the device hash table, that is
intended to be used when we put a ref object on a base object or, in  gem terms,
when we open the object.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
2014-01-08 10:11:57 +01:00
..
ttm_bo_api.h drm/ttm: Remove set_need_resched from the ttm fault handler 2013-11-20 03:46:54 -08:00
ttm_bo_driver.h drm/ttm: convert to unified vma offset manager 2013-07-25 20:47:07 +10:00
ttm_execbuf_util.h drm/ttm: Allow execbuf util reserves without ticket 2013-11-18 00:38:52 -08:00
ttm_lock.h UAPI: (Scripted) Convert #include "..." to #include <path/...> in kernel system headers 2012-10-02 18:01:25 +01:00
ttm_memory.h drm/ttm: remove ttm_mem_global->queue 2012-11-20 16:06:22 +10:00
ttm_module.h drm: move ttm global code to core drm 2010-08-04 09:46:06 +10:00
ttm_object.h drm/ttm: ttm object security fixes for render nodes 2014-01-08 10:11:57 +01:00
ttm_page_alloc.h drm/ttm: Enable the dma page pool also for intel IOMMUs 2013-11-06 03:55:52 -08:00
ttm_placement.h