]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Remove tasklet flush before disable
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 16 May 2018 18:33:48 +0000 (19:33 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 16 May 2018 19:20:32 +0000 (20:20 +0100)
commit58bb56bb6590dd582b4a090673ba422b9a22ab2b
tree580035722bf4509321cd3428abebac08a29aa3f7
parent8d95c7f31c03d45b363f3e41df0579689df9fa78
drm/i915: Remove tasklet flush before disable

The idea was to try and let the existing tasklet run to completion
before we began the reset, but it involves a racy check against anything
else that tries to run the tasklet. Rather than acknowledge and ignore
the race, let it be and don't try and be too clever.

The tasklet will resume execution after reset (after spinning a bit
during reset), but before we allow it to resume we will have cleared all
the pending state.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180516183355.10553-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem.c