Lucas Stach a7fbb630c5 drm/scheduler: fix inconsistent locking of job_list_lock
1db8c142b6c5 (drm/scheduler: Add drm_sched_suspend/resume_timeout()) made
the job_list_lock IRQ safe in as the suspend/resume calls were expected to
be called from IRQ context. This usage never materialized in upstream.
Instead amdgpu started locking the job_list_lock in an IRQ unsafe way in
amdgpu_ib_preempt_mark_partial_job() and amdgpu_ib_preempt_job_recovery(),
which leads to potential deadlock if one would actually start to call the
drm_sched_suspend/resume_timeout functions from IRQ context.

As no current user needs the locking to be IRQ safe, the local IRQ
disable/enable is pure overhead. Fix the inconsistent locking by changing
all uses of job_list_lock to use the IRQ unsafe locking primitives.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2020-03-13 11:52:36 -04:00
..
2020-02-28 09:02:18 -08:00
2020-02-06 06:11:50 +00:00
2020-03-07 08:04:54 -06:00
2020-02-29 11:47:44 -08:00
2020-02-08 14:17:27 -08:00
2020-02-08 14:17:27 -08:00
2020-02-08 14:04:19 -08:00
2020-03-12 12:42:56 +10:00
2020-03-08 17:36:22 -07:00
2020-02-04 07:17:41 +00:00
2020-03-07 19:52:55 -06:00
2020-03-07 14:14:38 -06:00
2020-01-16 10:45:44 -08:00
2020-02-04 07:17:41 +00:00
2020-01-27 13:03:00 -08:00
2020-02-08 14:04:19 -08:00
2020-01-27 13:03:00 -08:00
2020-03-04 13:28:52 +01:00
2020-02-08 13:55:25 -08:00
2020-03-06 14:48:30 -06:00
2020-02-04 07:17:41 +00:00
2020-02-29 09:58:47 -06:00
2020-02-24 09:57:05 -08:00
2020-03-06 14:50:16 -06:00
2020-03-08 10:35:04 -05:00
2020-01-31 11:28:31 -08:00
2020-02-03 22:22:05 +00:00
2020-03-12 12:42:56 +10:00
2020-01-29 10:35:54 -08:00
2020-01-29 10:35:54 -08:00
2020-02-28 09:02:18 -08:00
2020-03-05 09:42:23 -06:00
2020-02-09 16:05:50 -08:00