aboutsummaryrefslogtreecommitdiff
path: root/drivers/misc/ibmasm
diff options
context:
space:
mode:
authorLucas Stach2016-07-28 11:50:48 +0200
committerLucas Stach2016-08-15 14:00:40 +0200
commitd9853490176c88fff71d03ec9a174b77011f5026 (patch)
treec62d62968d3319d6eac312e9c0cad4d0119d1756 /drivers/misc/ibmasm
parent29b4817d4018df78086157ea3a55c1d9424a7cfc (diff)
drm/etnaviv: take GPU lock later in the submit process
Both the fence and event alloc are safe to be done without holding the GPU lock, as they either don't need any locking (fences) or are protected by their own lock (events). This solves a bad locking interaction between the submit path and the recover worker. If userspace manages to exhaust all available events while the GPU is hung, the submit will wait for events to become available holding the GPU lock. The recover worker waits for this lock to become available before trying to recover the GPU which frees up the allocated events. Essentially both paths are deadlocked until the submit path times out waiting for available events, failing the submit that could otherwise be handled just fine if the recover worker had the chance to bring the GPU back in a working state. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Diffstat (limited to 'drivers/misc/ibmasm')
0 files changed, 0 insertions, 0 deletions