2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-24 21:24:00 +08:00
linux-next/drivers/staging
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
..
android dma-buf/fence: make fence context 64 bit v2 2016-06-02 08:27:41 +02:00
board staging: board: line over 80 characters 2016-04-29 17:58:02 -07:00
clocking-wizard
comedi Staging and IIO driver update for 4.7-rc1 2016-05-20 22:20:48 -07:00
dgnc Staging and IIO driver update for 4.7-rc1 2016-05-20 22:20:48 -07:00
emxx_udc Staging: emxx_udc: emxx_udc: fixed coding style issue 2016-05-09 14:25:52 +02:00
fbtft
fsl-mc staging: fsl-mc: bus: Drop warning 2016-04-29 18:02:23 -07:00
fwserial Staging and IIO driver update for 4.7-rc1 2016-05-20 22:20:48 -07:00
gdm724x staging/gdm724x: fix "alignment should match open parenthesis" issues 2016-05-09 14:25:52 +02:00
goldfish
gs_fpgaboot
i4l staging: i4l: act2000: remove extra space 2016-05-01 14:33:34 -07:00
iio staging:iio:adis16240: Set self_test_no_autoclear flag 2016-04-16 13:43:47 +01:00
lustre switch ->setxattr() to passing dentry and inode separately 2016-05-27 20:09:16 -04:00
media Staging and IIO driver update for 4.7-rc1 2016-05-20 22:20:48 -07:00
most
mt29f_spinand staging: mt29f_spinand: set ECC algorithm explicitly 2016-05-05 23:52:04 +02:00
netlogic
nvec
octeon
octeon-usb
olpc_dcon Revert "Staging: olpc_dcon: Remove obsolete driver" 2016-04-04 13:52:35 -07:00
rtl8188eu Staging and IIO driver update for 4.7-rc1 2016-05-20 22:20:48 -07:00
rtl8192e treewide: replace dev->trans_start update with helper 2016-05-04 14:16:49 -04:00
rtl8192u Staging and IIO driver update for 4.7-rc1 2016-05-20 22:20:48 -07:00
rtl8712 rtl8712: Fixed alignment to match open parenthesis 2016-05-01 13:57:12 -07:00
rtl8723au Staging and IIO driver update for 4.7-rc1 2016-05-20 22:20:48 -07:00
rts5208 staging: rts5208: alignment to match open paranthesis 2016-04-29 17:58:02 -07:00
skein staging: skein: cleanup: align code to parentheses 2016-05-03 14:07:11 -07:00
slicoss staging: slicoss: fix missing blank line 2016-04-29 17:58:02 -07:00
sm750fb
speakup Staging and IIO driver update for 4.7-rc1 2016-05-20 22:20:48 -07:00
unisys Staging and IIO driver update for 4.7-rc1 2016-05-20 22:20:48 -07:00
vme Staging and IIO driver update for 4.7-rc1 2016-05-20 22:20:48 -07:00
vt6655 Staging and IIO driver update for 4.7-rc1 2016-05-20 22:20:48 -07:00
vt6656 Staging and IIO driver update for 4.7-rc1 2016-05-20 22:20:48 -07:00
wilc1000 Staging and IIO driver update for 4.7-rc1 2016-05-20 22:20:48 -07:00
wlan-ng Staging and IIO driver update for 4.7-rc1 2016-05-20 22:20:48 -07:00
xgifb
Kconfig staging/rdma: Remove the entire rdma subdirectory of staging 2016-05-26 12:59:34 -04:00
Makefile staging/rdma: Remove the entire rdma subdirectory of staging 2016-05-26 12:59:34 -04:00