linux/drivers/staging/android
Christian König 76bf0db554 dma-buf/fence: make fence context 64 bit v2
Fence contexts are created on the fly (for example) by the GPU scheduler used
in the amdgpu driver as a result of an userspace request. Because of this
userspace could in theory force a wrap around of the 32bit context number
if it doesn't behave well.

Avoid this by increasing the context number to 64bits. This way even when
userspace manages to allocate a billion contexts per second it takes more
than 500 years for the context number to wrap around.

v2: fix printf formats as well.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Acked-by: Sumit Semwal <sumit.semwal@linaro.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1464786612-5010-2-git-send-email-deathsimple@vodafone.de
2016-06-02 08:27:41 +02:00
..
ion staging: android: ion: dummy: fix dereference of ERR_PTR 2016-04-29 17:40:50 -07:00
trace staging/android: remove SYNC_WAIT ioctl 2016-02-07 17:34:58 -08:00
uapi dma-buf/sync_file: de-stage sync_file headers 2016-04-29 17:37:10 -07:00
ashmem.c Merge branch 'mm-pkeys-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2016-03-20 19:08:56 -07:00
ashmem.h
Kconfig dma-buf/sync_file: de-stage sync_file 2016-04-29 17:37:10 -07:00
lowmemorykiller.c staging: lowmemorykiller: remove bogus NULL check 2016-04-29 17:58:02 -07:00
Makefile dma-buf/sync_file: de-stage sync_file 2016-04-29 17:37:10 -07:00
sw_sync.c staging/android: remove driver_data from struct sync_fence_info 2016-02-07 17:34:58 -08:00
sw_sync.h staging/android: remove struct sync_pt 2016-02-07 17:34:58 -08:00
sync_debug.c dma-buf/sync_file: de-stage sync_file headers 2016-04-29 17:37:10 -07:00
sync.c staging/android: prepare sync_file for de-staging 2016-04-29 17:37:10 -07:00
sync.h dma-buf/fence: make fence context 64 bit v2 2016-06-02 08:27:41 +02:00
TODO staging/android: add TODO to de-stage android sync framework 2015-12-14 11:05:45 -08:00