drm/panfrost: Prevent concurrent resets
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Thu, 18 Apr 2019 08:41:48 +0000 (10:41 +0200)
committerRob Herring <robh@kernel.org>
Thu, 18 Apr 2019 14:27:34 +0000 (09:27 -0500)
commitaa20236784ab3d0372591d6eca692956bca4ebfb
tree3eaa8e5e2bf8334b648387a023a6060d2304d017
parentdb594ba3fcf9b2b84d71ffcc62a54b49c21427da
drm/panfrost: Prevent concurrent resets

If a job times out in slot 0 while a reset is performed because a job
timed out in slot 1, the drm-sched core can get into a deadlock.

Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190418084305.45021-1-tomeu.vizoso@collabora.com
drivers/gpu/drm/panfrost/panfrost_device.c
drivers/gpu/drm/panfrost/panfrost_device.h
drivers/gpu/drm/panfrost/panfrost_job.c