]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/v3d: Take a lock across GPU scheduler job creation and queuing.
authorEric Anholt <eric@anholt.net>
Wed, 6 Jun 2018 17:48:51 +0000 (10:48 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Oct 2018 23:59:14 +0000 (16:59 -0700)
commit09468e65ec7db8d002102143ea0d94bc4e7f3786
tree36dfd862623c0d295abe0e1f47b1ee343becb25e
parentdbdef3dff35bcdef02521d6ab1c9ace112f0417b
drm/v3d: Take a lock across GPU scheduler job creation and queuing.

[ Upstream commit 7122b68b8a9692dcc3acf89595f04c492872115f ]

Between creation and queueing of a job, you need to prevent any other
job from being created and queued.  Otherwise the scheduler's fences
may be signaled out of seqno order.

v2: move mutex unlock to the error label.

Signed-off-by: Eric Anholt <eric@anholt.net>
Fixes: 57692c94dcbe ("drm/v3d: Introduce a new DRM driver for Broadcom V3D V3.x+")
Link: https://patchwork.freedesktop.org/patch/msgid/20180606174851.12433-1-eric@anholt.net
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/v3d/v3d_drv.h
drivers/gpu/drm/v3d/v3d_gem.c