]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/breadcrumbs: Reduce missed-breadcrumb false positive rate
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 3 Dec 2018 11:36:54 +0000 (11:36 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 3 Dec 2018 14:34:08 +0000 (14:34 +0000)
commit7b3aa3f8383eedbaf64fb44fe862aa29196b6dc0
treeec64c9f5c93553858bbabaed117a9bcd723b0f73
parent4225968cf86670f2a4c6c7a263c127c72717befb
drm/i915/breadcrumbs: Reduce missed-breadcrumb false positive rate

Change the on-cpu check to on-runqueue to catch if the waiter has been
woken (and reset its current_state back to TASK_UNINTERRUPTIBLE to
perform the seqno check) but is sleeping due to being preempted off the
cpu.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181203113701.12106-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_breadcrumbs.c