]> git.itanic.dy.fi Git - linux-stable/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)
commitf3cd1b064f1179d9e6188c6d67297a2360880e10
tree3e1b2d052a0661101c2a6fd0365c0f7c552bf51d
parentc1ae3cfa0e89fa1a7ecc4c99031f5e9ae99d9201
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: d9853490176c (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