diff options
author | Chris Wilson <[email protected]> | 2018-03-07 13:42:26 +0000 |
---|---|---|
committer | Joonas Lahtinen <[email protected]> | 2018-03-16 14:35:35 +0200 |
commit | 73e2232aa3253d77935112bfc218700f6a2f1000 (patch) | |
tree | e7cd5ca947a0e1df1bd4e1ef8abdb794945a2e3c /lib/memory-notifier-error-inject.c | |
parent | 7e9d3a4a1b21fd8a595774697f4047e7505deea6 (diff) |
drm/i915: Only call tasklet_kill() on the first prepare_reset
tasklet_kill() will spin waiting for the current tasklet to be executed.
However, if tasklet_disable() has been called, then the tasklet is never
executed but permanently put back onto the runlist until
tasklet_enable() is called. Ergo, we cannot use tasklet_kill() inside a
disable/enable pair. This is the case when we call set-wedge from inside
i915_reset(), and another request was submitted to us concurrent to the
reset.
Fixes: 963ddd63c314 ("drm/i915: Suspend submission tasklets around wedging")
Signed-off-by: Chris Wilson <[email protected]>
Cc: Mika Kuoppala <[email protected]>
Reviewed-by: Mika Kuoppala <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
(cherry picked from commit 68ad361285a9cc73b259f59adbaafde196c15987)
Signed-off-by: Joonas Lahtinen <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions