]> git.baikalelectronics.ru Git - kernel.git/commit
drm/etnaviv: (re-)protect fence allocation with GPU mutex
authorLucas Stach <l.stach@pengutronix.de>
Wed, 22 Mar 2017 11:07:23 +0000 (12:07 +0100)
committerLucas Stach <l.stach@pengutronix.de>
Wed, 29 Mar 2017 13:38:46 +0000 (15:38 +0200)
commitebf2b46e831d8eb9417296f2fea36ac0affbda73
tree3e1b2d052a0661101c2a6fd0365c0f7c552bf51d
parent94e2a518d0ac4a168bccd1446b1a1407458c45bd
drm/etnaviv: (re-)protect fence allocation with GPU mutex

The fence allocation needs to be protected by the GPU mutex, otherwise
the fence seqnos of concurrent submits might not match the insertion order
of the jobs in the kernel ring. This breaks the assumption that jobs
complete with monotonically increasing fence seqnos.

Fixes: 576f3b3b78bd (drm/etnaviv: take GPU lock later in the submit process)
CC: stable@vger.kernel.org #4.9+
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
drivers/gpu/drm/etnaviv/etnaviv_gpu.c