]> 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)
commita996ae8ce3c9833ea8a524e585f3d97c75d6aa69
tree3e1b2d052a0661101c2a6fd0365c0f7c552bf51d
parent8a17c7afe9fb246fbdf434a8c4a84cdc5bada8cb
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: 87453f5ab44b (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