[Bug 108598] [GEN9] 20% perf drop in windowed/composited GpuTest Triangle
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Jan 30 11:09:08 UTC 2019
https://bugs.freedesktop.org/show_bug.cgi?id=108598
--- Comment #10 from Chris Wilson <chris at chris-wilson.co.uk> ---
(In reply to Chris Wilson from comment #9)
> Had a stable 2% drop on bxt. The effect was due to reordering the requests
> to make i915_spin_request() more likely to be taken. The cost was not from
> reordering the requests themselves, but the act of busywaiting.
>
> i.e.
>
> diff --git a/drivers/gpu/drm/i915/i915_request.c
> b/drivers/gpu/drm/i915/i915_request.c
> index abd4dacbab8e..f5d4659a4aa0 100644
> --- a/drivers/gpu/drm/i915/i915_request.c
> +++ b/drivers/gpu/drm/i915/i915_request.c
> @@ -1230,6 +1230,11 @@ long i915_request_wait(struct i915_request *rq,
> if (!timeout)
> return -ETIME;
>
> + /* Optimistic short spin before touching IRQs */
> + wait.seqno = i915_request_global_seqno(rq);
> + if (wait.seqno && __i915_spin_request(rq, wait.seqno, state, 5))
> + return timeout;
> +
> trace_i915_request_wait_begin(rq, flags);
>
> add_wait_queue(&rq->execute, &exec);
> @@ -1266,10 +1271,6 @@ long i915_request_wait(struct i915_request *rq,
> GEM_BUG_ON(!intel_wait_has_seqno(&wait));
> GEM_BUG_ON(!i915_sw_fence_signaled(&rq->submit));
>
> - /* Optimistic short spin before touching IRQs */
> - if (__i915_spin_request(rq, wait.seqno, state, 5))
> - goto complete;
> -
Fwiw, this made it into
commit 52c0fdb25c7c919334b97976d05096b441a3eada
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Tue Jan 29 20:52:29 2019 +0000
drm/i915: Replace global breadcrumbs with per-context interrupt tracking
So that should be my small reproducer fixed, but the larger drop is still a
mystery.
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-gfx-bugs/attachments/20190130/a20dbad0/attachment-0001.html>
More information about the intel-gfx-bugs
mailing list