diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2019-10-24 00:53:59 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2019-10-24 09:19:32 +0100 |
commit | 7f47211e73e93812def71004f0f81d6c3e7a0da6 (patch) | |
tree | 8fa5f1b17347204274932c6b823f4b6c1d237fa8 /drivers | |
parent | 93100fdeb4de5b13a7f9113ede93cd062ba779f1 (diff) | |
download | linux-7f47211e73e93812def71004f0f81d6c3e7a0da6.tar.bz2 |
drm/i915/selftests: Flush any i915_active callback work as well
Make trebly sure that all possible callbacks and their delayed brethren
are complete before asserting that the i915_active should be idle after
flushing all barriers.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191023235359.27132-1-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/i915/gt/selftest_engine_heartbeat.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/gt/selftest_engine_heartbeat.c b/drivers/gpu/drm/i915/gt/selftest_engine_heartbeat.c index 9fb5d30c43bb..768f032e6578 100644 --- a/drivers/gpu/drm/i915/gt/selftest_engine_heartbeat.c +++ b/drivers/gpu/drm/i915/gt/selftest_engine_heartbeat.c @@ -55,6 +55,7 @@ static void pulse_unlock_wait(struct pulse *p) { mutex_lock(&p->active.mutex); mutex_unlock(&p->active.mutex); + flush_work(&p->active.work); } static int __live_idle_pulse(struct intel_engine_cs *engine, |