From: "Jason-JH Lin (林睿祥)" <Jason-JH.Lin@mediatek.com>
To: "karthik.b.s@intel.com" <karthik.b.s@intel.com>,
"swati2.sharma@intel.com" <swati2.sharma@intel.com>,
"juhapekka.heikkila@gmail.com" <juhapekka.heikkila@gmail.com>,
"jeevan.b@intel.com" <jeevan.b@intel.com>,
"bhanuprakash.modem@gmail.com" <bhanuprakash.modem@gmail.com>,
"igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>,
"kamil.konieczny@linux.intel.com"
<kamil.konieczny@linux.intel.com>,
"fshao@chromium.org" <fshao@chromium.org>
Cc: "markyacoub@chromium.org" <markyacoub@chromium.org>,
"jani.nikula@intel.com" <jani.nikula@intel.com>,
"Paul-pl Chen (陳柏霖)" <Paul-pl.Chen@mediatek.com>,
"Nancy Lin (林欣螢)" <Nancy.Lin@mediatek.com>,
Project_Global_Chrome_Upstream_Group
<Project_Global_Chrome_Upstream_Group@mediatek.com>,
"Singo Chang (張興國)" <Singo.Chang@mediatek.com>,
"gildekel@google.com" <gildekel@google.com>
Subject: Re: [PATCH i-g-t] tests/kms_setmode: Relax vblank timing tolerance from 1 scanline to 1%
Date: Thu, 16 Apr 2026 08:12:41 +0000 [thread overview]
Message-ID: <f5fef861d2e27252d5f911b9ae4fdb2d94b9e2f8.camel@mediatek.com> (raw)
In-Reply-To: <DM4PR11MB6312060B26A9D7B66930D2FC90232@DM4PR11MB6312.namprd11.prod.outlook.com>
[snip]
> > if (fabs(mean - expected) >= max(line_time(kmode), 1.718 *
> > stddev)) {
> > - igt_info("vblank interval differs from modeline!
> > expected
> > %.1fus, "
> > - "measured %1.fus +- %.3fus, difference
> > %.1fus (%.1f
> > sigma, %.1f scanlines)\n",
> > + igt_warn("vblank interval differs from modeline!
> > expected
> > %.1fus, "
> > + "measured %1.fus +- %.3fus, difference
> > %.1fus (%.1f
> > sigma, %.1f scanlines) - "
> > + "strict check failed but continuing with
> > relaxed
> > validation\n",
> > expected, mean, stddev,
> > fabs(mean - expected),
> > fabs(mean - expected) / stddev,
> > fabs(mean - expected) /
> > line_time(kmode));
> > + }
> > +
> imho, we can first try the strict checks, and if they fail, fall back
> to relaxed validation. Another approach could be as shown below.
> bool strict_failed = false;
>
> /* Strict checks */
> if (accuracy >= line_time(kmode)) {
> igt_warn(...);
> strict_failed = true;
> }
>
> if (fabs(mean - expected) >= max(line_time(kmode), 1.718 * stddev)) {
> igt_warn(...);
> strict_failed = true;
> }
>
> /* Relaxed validation */
> if (strict_failed)
> igt_info("Passed relaxed validation (strict failed)\n");
> else
> igt_info("Passed strict validation\n");
>
> return true;
>
Thanks for the good idea!
I'll send V2 as your suggestion.
Regards,
Jason-JH Lin
next prev parent reply other threads:[~2026-04-16 8:13 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-16 2:53 [PATCH i-g-t] tests/kms_setmode: Relax vblank timing tolerance from 1 scanline to 1% Jason-JH Lin
2026-04-16 4:11 ` ✓ i915.CI.BAT: success for " Patchwork
2026-04-16 4:25 ` ✓ Xe.CI.BAT: " Patchwork
2026-04-16 5:56 ` [PATCH i-g-t] " B, Jeevan
2026-04-16 8:12 ` Jason-JH Lin (林睿祥) [this message]
2026-04-16 6:50 ` ✗ Xe.CI.FULL: failure for " Patchwork
2026-04-16 14:32 ` ✗ i915.CI.Full: " 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=f5fef861d2e27252d5f911b9ae4fdb2d94b9e2f8.camel@mediatek.com \
--to=jason-jh.lin@mediatek.com \
--cc=Nancy.Lin@mediatek.com \
--cc=Paul-pl.Chen@mediatek.com \
--cc=Project_Global_Chrome_Upstream_Group@mediatek.com \
--cc=Singo.Chang@mediatek.com \
--cc=bhanuprakash.modem@gmail.com \
--cc=fshao@chromium.org \
--cc=gildekel@google.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=jani.nikula@intel.com \
--cc=jeevan.b@intel.com \
--cc=juhapekka.heikkila@gmail.com \
--cc=kamil.konieczny@linux.intel.com \
--cc=karthik.b.s@intel.com \
--cc=markyacoub@chromium.org \
--cc=swati2.sharma@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