From: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>,
Tvrtko Ursulin <tursulin@ursulin.net>,
Intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH i-g-t 2/3] tests/perf_pmu: Simplify interrupt testing
Date: Wed, 20 Dec 2017 12:35:31 +0000 [thread overview]
Message-ID: <48e6254e-3cfd-c115-05b7-7bd83adcdd0b@linux.intel.com> (raw)
In-Reply-To: <151376695642.3125.8252944401679976830@mail.alporthouse.com>
On 20/12/2017 10:49, Chris Wilson wrote:
> Quoting Tvrtko Ursulin (2017-12-20 09:45:41)
>>
>> On 19/12/2017 21:45, Chris Wilson wrote:
>>> Quoting Tvrtko Ursulin (2017-12-19 15:45:42)
>>>> From: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
>>>>
>>>> Rather than calibrate and emit nop batches, use a manually signalled chain
>>>> of spinners to generate the desired interrupts.
>>>>
>>>> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
>>>> ---
>>>> - /* Unplug the calibrated queue and wait for all the fences */
>>>> - igt_spin_batch_free(gem_fd, spin);
>>>> - igt_assert_eq(poll(&pfd, 1, 2 * test_duration_ms), 1);
>>>> - close(pfd.fd);
>>>> + pfd.fd = spin[i]->out_fence;
>>>> + igt_spin_batch_set_timeout(spin[i], timeout_ms * 1e6);
>>>> + igt_assert_eq(poll(&pfd, 1, 2 * timeout_ms), 1);
>>>
>>> Oh, still with the synchronous behaviour, bleurgh.
>>
>> I was attracted by the simplicity of this approach, but I can change to
>> set incremental timeouts and keep the merged fence if you think that's
>> better?
>
> It was mostly surprise as I just have a preference for setting up
> everything and then letting it go; fire-and-forget style. So that was
> what I was expecting to see. It should basically be the difference of
> adding a single function to merge the fences (albeit you have to write
> that function). Shall we say both patterns have merit / analogues to the
> real world?
It is using fence merging approach so it won't be a problem to keep
that, just with the spin batches. I mostly wanted to remove calibration
since you were nudging me in that direction. Don't mind really of the
specific mechanics of emitting interrupts so I am happy to go back a step.
Regards,
Tvrtko
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2017-12-20 12:35 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-19 15:45 [PATCH i-g-t 1/3] lib/dummyload: Support returning output fence Tvrtko Ursulin
2017-12-19 15:45 ` [PATCH i-g-t 2/3] tests/perf_pmu: Simplify interrupt testing Tvrtko Ursulin
2017-12-19 21:43 ` Chris Wilson
2017-12-19 21:45 ` Chris Wilson
2017-12-20 9:45 ` Tvrtko Ursulin
2017-12-20 10:49 ` Chris Wilson
2017-12-20 12:35 ` Tvrtko Ursulin [this message]
2017-12-20 12:39 ` Chris Wilson
2017-12-19 15:45 ` [PATCH i-g-t 3/3] tests/perf_pmu: Verify engine busyness accuracy Tvrtko Ursulin
2017-12-19 22:45 ` Chris Wilson
2017-12-20 9:48 ` Tvrtko Ursulin
2017-12-19 17:46 ` ✓ Fi.CI.BAT: success for series starting with [1/3] lib/dummyload: Support returning output fence Patchwork
2017-12-19 21:29 ` ✗ Fi.CI.IGT: warning " Patchwork
2017-12-19 22:42 ` [PATCH i-g-t 1/3] " Chris Wilson
2017-12-20 9:44 ` Tvrtko Ursulin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48e6254e-3cfd-c115-05b7-7bd83adcdd0b@linux.intel.com \
--to=tvrtko.ursulin@linux.intel.com \
--cc=Intel-gfx@lists.freedesktop.org \
--cc=chris@chris-wilson.co.uk \
--cc=tursulin@ursulin.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox