From: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
To: Mika Kahola <mika.kahola@intel.com>, igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH i-g-t v3 2/2] tests/kms_flip: Change 2x tests execution order
Date: Thu, 8 Nov 2018 12:16:15 +0100 [thread overview]
Message-ID: <f58d6e53-ac1c-7ac4-ee4c-2a78bba3b27e@linux.intel.com> (raw)
In-Reply-To: <1533809554-27925-3-git-send-email-mika.kahola@intel.com>
Op 09-08-18 om 12:12 schreef Mika Kahola:
> In order to optimize execution of kms_flip binary mode tests, let's change
> the execution order so that 2x tests will be executed after basic tests.
>
> v2: update commit message (Petri)
> v3: Change subtest execution order
>
> Signed-off-by: Mika Kahola <mika.kahola@intel.com>
> ---
> tests/kms_flip.c | 25 ++++++++++++-------------
> 1 file changed, 12 insertions(+), 13 deletions(-)
>
> diff --git a/tests/kms_flip.c b/tests/kms_flip.c
> index 4cd1951..6217d67 100644
> --- a/tests/kms_flip.c
> +++ b/tests/kms_flip.c
> @@ -1640,19 +1640,6 @@ int main(int argc, char **argv)
> tests[i].name)
> run_test(max(opt.duration, tests[i].duration), tests[i].flags);
>
> - if (tests[i].flags & TEST_NO_2X_OUTPUT)
> - continue;
> -
> - /* code doesn't disable all crtcs, so skip rpm tests */
> - if (tests[i].flags & TEST_RPM)
> - continue;
> -
> - igt_subtest_f( "2x-%s", tests[i].name)
> - run_pair(max(opt.duration, tests[i].duration), tests[i].flags);
> - }
> -
> - igt_fork_signal_helper();
> - for (i = 0; i < sizeof(tests) / sizeof (tests[0]); i++) {
> /* relative blocking vblank waits that get constantly interrupt
> * take forver. So don't do them. */
> if ((tests[i].flags & TEST_VBLANK_BLOCK) &&
> @@ -1661,7 +1648,10 @@ int main(int argc, char **argv)
>
> igt_subtest_f( "%s-interruptible", tests[i].name)
> run_test(max(opt.duration, tests[i].duration), tests[i].flags);
> + }
>
> + igt_fork_signal_helper();
Hmm, this forces all the 2x tests as interruptible?
> + for (i = 0; i < sizeof(tests) / sizeof (tests[0]); i++) {
> if (tests[i].flags & TEST_NO_2X_OUTPUT)
> continue;
>
> @@ -1669,6 +1659,15 @@ int main(int argc, char **argv)
> if (tests[i].flags & TEST_RPM)
> continue;
>
> + igt_subtest_f( "2x-%s", tests[i].name)
> + run_pair(max(opt.duration, tests[i].duration), tests[i].flags);
> +
> + /* relative blocking vblank waits that get constantly interrupt
> + * take forver. So don't do them. */
> + if ((tests[i].flags & TEST_VBLANK_BLOCK) &&
> + !(tests[i].flags & TEST_VBLANK_ABSOLUTE))
> + continue;
> +
> igt_subtest_f( "2x-%s-interruptible", tests[i].name) {
put igt_fork_signal_helper() here
> run_pair(max(opt.duration, tests[i].duration), tests[i].flags);
And stop it after.
> }
Yeah doing the 2x tests isn't optimal in that order and causes a lot of modesets.
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
next prev parent reply other threads:[~2018-11-08 11:16 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-09 10:12 [igt-dev] [PATCH i-g-t v3 0/2] tests/kms_flip: Binary mode optimizations Mika Kahola
2018-08-09 10:12 ` [igt-dev] [PATCH i-g-t v3 1/2] tests/kms_flip: Set duration for subtest from command line Mika Kahola
2018-08-09 10:20 ` Chris Wilson
2018-08-09 11:29 ` Mika Kahola
2018-11-08 11:47 ` Maarten Lankhorst
2018-11-08 12:45 ` Kahola, Mika
2018-11-08 13:11 ` Maarten Lankhorst
2018-11-08 14:41 ` Kahola, Mika
2018-08-09 10:12 ` [igt-dev] [PATCH i-g-t v3 2/2] tests/kms_flip: Change 2x tests execution order Mika Kahola
2018-11-08 11:16 ` Maarten Lankhorst [this message]
2018-08-09 11:09 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_flip: Binary mode optimizations (rev4) Patchwork
2018-08-09 12:21 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
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=f58d6e53-ac1c-7ac4-ee4c-2a78bba3b27e@linux.intel.com \
--to=maarten.lankhorst@linux.intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=mika.kahola@intel.com \
/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;
as well as URLs for NNTP newsgroup(s).