aboutsummaryrefslogtreecommitdiff
path: root/include/linux/fence-array.h
diff options
context:
space:
mode:
authorChristian König <[email protected]>2016-06-01 15:10:02 +0200
committerDaniel Vetter <[email protected]>2016-06-02 08:27:41 +0200
commit76bf0db5543976ef50362db7071da367cb118532 (patch)
treec8f94084239df5d095c80d87d423d44d95081379 /include/linux/fence-array.h
parent3377900791ea48a638fb9b70869258332951271d (diff)
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 <[email protected]> Reviewed-by: Gustavo Padovan <[email protected]> Acked-by: Sumit Semwal <[email protected]> Signed-off-by: Daniel Vetter <[email protected]> Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'include/linux/fence-array.h')
0 files changed, 0 insertions, 0 deletions