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
This commit is contained in:

committed by
Rob Herring

parent
db594ba3fc
commit
aa20236784
@@ -78,6 +78,7 @@ struct panfrost_device {
|
||||
struct list_head scheduled_jobs;
|
||||
|
||||
struct mutex sched_lock;
|
||||
struct mutex reset_lock;
|
||||
|
||||
struct {
|
||||
struct devfreq *devfreq;
|
||||
|
Reference in New Issue
Block a user