projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
949fc52
)
drm/i915/breadcrumbs: Reduce missed-breadcrumb false positive rate
author
Chris Wilson
<
[email protected]
>
Mon, 3 Dec 2018 11:36:54 +0000
(11:36 +0000)
committer
Chris Wilson
<
[email protected]
>
Mon, 3 Dec 2018 14:34:08 +0000
(14:34 +0000)
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 <
[email protected]
>
Cc: Tvrtko Ursulin <
[email protected]
>
Reviewed-by: Tvrtko Ursulin <
[email protected]
>
Link:
https://patchwork.freedesktop.org/patch/msgid/
[email protected]
drivers/gpu/drm/i915/intel_breadcrumbs.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/intel_breadcrumbs.c
b/drivers/gpu/drm/i915/intel_breadcrumbs.c
index 84bf8d827136dc28515216df4bec41528024d9e5..447c5256f63a9399f39f2439a558e3b88e4205ae 100644
(file)
--- a/
drivers/gpu/drm/i915/intel_breadcrumbs.c
+++ b/
drivers/gpu/drm/i915/intel_breadcrumbs.c
@@
-27,11
+27,7
@@
#include "i915_drv.h"
-#ifdef CONFIG_SMP
-#define task_asleep(tsk) ((tsk)->state & TASK_NORMAL && !(tsk)->on_cpu)
-#else
-#define task_asleep(tsk) ((tsk)->state & TASK_NORMAL)
-#endif
+#define task_asleep(tsk) ((tsk)->state & TASK_NORMAL && !(tsk)->on_rq)
static unsigned int __intel_breadcrumbs_wakeup(struct intel_breadcrumbs *b)
{