From: "Jason-JH Lin (林睿祥)" <Jason-JH.Lin@mediatek.com>
To: "fshao@chromium.org" <fshao@chromium.org>
Cc: "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>,
"jani.nikula@intel.com" <jani.nikula@intel.com>,
"Singo Chang (張興國)" <Singo.Chang@mediatek.com>,
"gildekel@google.com" <gildekel@google.com>,
"bhanuprakash.modem@gmail.com" <bhanuprakash.modem@gmail.com>,
"igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>,
"Paul-pl Chen (陳柏霖)" <Paul-pl.Chen@mediatek.com>,
"kamil.konieczny@linux.intel.com"
<kamil.konieczny@linux.intel.com>,
Project_Global_Chrome_Upstream_Group
<Project_Global_Chrome_Upstream_Group@mediatek.com>,
"Nancy Lin (林欣螢)" <Nancy.Lin@mediatek.com>,
"markyacoub@chromium.org" <markyacoub@chromium.org>
Subject: Re: [PATCH i-g-t] tests/kms_plane: Add vblank waits for MediaTek CRC timing
Date: Mon, 9 Mar 2026 03:22:44 +0000 [thread overview]
Message-ID: <c0307de5c50d00da68e6192be0ba5fce591b5f4e.camel@mediatek.com> (raw)
In-Reply-To: <CAC=S1nguWJMH=CeRxhvxooqf5XZFwOZSbLr0JUXC490kLNAcKw@mail.gmail.com>
>
[snip]
> > diff --git a/tests/kms_plane.c b/tests/kms_plane.c
> > index 8cef94a1f37e..e4539078c98e 100644
> > --- a/tests/kms_plane.c
> > +++ b/tests/kms_plane.c
> > @@ -351,6 +351,15 @@ test_plane_position_with_output(data_t *data,
> > igt_crtc_t *crtc,
> >
> > igt_display_commit(&data->display);
> >
> > + /*
> > + * On MediaTek hardware, cursor plane updates are non-
> > blocking and
> > + * CRC needs time to reflect the new plane configuration.
> > Wait for
> > + * a vblank to ensure the update has taken effect.
> > + */
> > + if (is_mtk_device(data->drm_fd) && sprite->type ==
> > DRM_PLANE_TYPE_CURSOR)
> > + igt_wait_for_vblank(data->drm_fd,
> > + data-
> > >display.pipes[pipe].crtc_offset);
>
> Hmm, I suppose your codebase is a bit outdated?
> Commit 18349d8bc1b2 ("lib/kms: Pass the entire igt_pipe_t to
> igt_wait_for_vblank*()") [1] changed the function signature, so this
> patch doesn't apply to the latest tree.
>
> [1]:
> https://urldefense.com/v3/__https://gitlab.freedesktop.org/drm/igt-gpu-tools/-/commit/18349d8bc1b25bcf953e1868666214829f75c442
>
>
> But I get the concept, and I think that looks okay.
>
Hi Fei,
Thanks! I'll check why I don't get a build error in my codebase and
send the correct one.
Regards,
Jason-JH Lin
> Regards,
> Fei
prev parent reply other threads:[~2026-03-09 3:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-25 16:04 [PATCH i-g-t] tests/kms_plane: Add vblank waits for MediaTek CRC timing Jason-JH Lin
2026-03-06 6:03 ` Fei Shao
2026-03-09 3:22 ` Jason-JH Lin (林睿祥) [this message]
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=c0307de5c50d00da68e6192be0ba5fce591b5f4e.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=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