linux/drivers/gpu/drm/amd
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
..
acp drm/amd: add Kconfig dependency for ACP on DRM_AMDGPU 2016-05-25 09:44:15 -04:00
amdgpu dma-buf/fence: make fence context 64 bit v2 2016-06-02 08:27:41 +02:00
amdkfd amdkfd: Trim unnescessary intermediate err var in kfd_chardev.c 2016-05-01 00:06:29 +10:00
include drm/amd/amdgpu: Add name field to amd_ip_funcs (v2) 2016-05-11 12:31:26 -04:00
powerplay drm/amd/powerplay/hwmgr: use kmemdup 2016-05-19 11:01:02 -04:00
scheduler drm/amd: cleanup remaining spaces and tabs v2 2016-05-11 12:31:20 -04:00