diff options
| author | Chris Wilson <[email protected]> | 2016-07-09 10:12:05 +0100 |
|---|---|---|
| committer | Chris Wilson <[email protected]> | 2016-07-11 13:48:22 +0100 |
| commit | 232af392fdb52aa2739dad4e03fed273b3c3f24a (patch) | |
| tree | a1a79f9db83ed171e7a901a155245afe64f68ad5 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
| parent | 0b2c0582f1570bfc95aa9ac1cd340a215d8e8335 (diff) | |
drm/i915/breadcrumbs: Queue hangcheck before sleeping
Never go to sleep waiting on the GPU without first ensuring that we will
get woken up.
We have a choice of queuing the hangcheck before every schedule() or the
first time we wakeup. In order to simply accommodate both the signaler
and the ordinary waiter, move the queuing to the common point of
enabling the irq. We lose the paranoid safety of ensuring that the
hangcheck is active before the sleep, but avoid code duplication (and
redundant hangcheck queuing).
Testcase: igt/prime_busy
Fixes: c81d46138da6 ("drm/i915: Convert trace-irq to the breadcrumb waiter")
Signed-off-by: Chris Wilson <[email protected]>
Cc: Tvrtko Ursulin <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Mika Kuoppala <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions