linux/drivers/gpu/drm/etnaviv
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
..
cmdstream.xml.h
common.xml.h drm/etnaviv: update common and state_hi xml.h files 2016-01-26 18:53:55 +01:00
etnaviv_buffer.c drm: etnaviv: improve readability of command insertion to ring buffer 2016-03-07 15:36:59 +01:00
etnaviv_cmd_parser.c
etnaviv_drv.c drm: Remove unused drm_device from drm_gem_object_lookup() 2016-05-17 08:47:30 +02:00
etnaviv_drv.h drm: etnaviv: clean up vram_mapping submission/retire path 2016-03-07 15:37:00 +01:00
etnaviv_dump.c drm/etnaviv: rename etnaviv_gem_vaddr to etnaviv_gem_vmap 2016-01-26 18:54:01 +01:00
etnaviv_dump.h
etnaviv_gem_prime.c drm/etnaviv: fix mmap operations for userptr and dma-buf objects 2016-05-06 10:42:33 +02:00
etnaviv_gem_submit.c kernel.h: add u64_to_user_ptr() 2016-04-29 17:03:49 -07:00
etnaviv_gem.c drm/etnaviv: fix mmap operations for userptr and dma-buf objects 2016-05-06 10:42:33 +02:00
etnaviv_gem.h drm/etnaviv: fix mmap operations for userptr and dma-buf objects 2016-05-06 10:42:33 +02:00
etnaviv_gpu.c Merge branch 'drm-next' of git://people.freedesktop.org/~airlied/linux 2016-05-23 11:48:48 -07:00
etnaviv_gpu.h dma-buf/fence: make fence context 64 bit v2 2016-06-02 08:27:41 +02:00
etnaviv_iommu_v2.c
etnaviv_iommu_v2.h
etnaviv_iommu.c
etnaviv_iommu.h
etnaviv_mmu.c drm: etnaviv: clean up vram_mapping submission/retire path 2016-03-07 15:37:00 +01:00
etnaviv_mmu.h
Kconfig
Makefile
state_3d.xml.h drm: etnaviv: flush all GPU caches when stopping GPU 2016-03-07 15:36:56 +01:00
state_hi.xml.h drm/etnaviv: update common and state_hi xml.h files 2016-01-26 18:53:55 +01:00
state.xml.h