drm/etnaviv: protect sched job submission with fence mutex
authorLucas Stach <l.stach@pengutronix.de>
Fri, 25 May 2018 14:51:25 +0000 (16:51 +0200)
committerLucas Stach <l.stach@pengutronix.de>
Mon, 6 Aug 2018 13:24:05 +0000 (15:24 +0200)
commita0780bb1df60f00e4573db7bd53e7039e9eee1cb
treea8fbd8476214af486551c4b6b22d2c65b5a79872
parent6ae9c84ff249f2756086e71405375fd06124cf1f
drm/etnaviv: protect sched job submission with fence mutex

The documentation of drm_sched_job_init and drm_sched_entity_push_job has
been clarified. Both functions should be called under a shared lock, to
avoid jobs getting pushed into the scheduler queue in a different order
than their sched_fence seqnos, which will confuse checks that are looking
at the seqnos to infer information about completion order.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c
drivers/gpu/drm/etnaviv/etnaviv_gpu.c
drivers/gpu/drm/etnaviv/etnaviv_gpu.h
drivers/gpu/drm/etnaviv/etnaviv_sched.c