public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
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_bw: Skip tests when outputs don't support the mode
Date: Mon, 9 Mar 2026 03:16:24 +0000	[thread overview]
Message-ID: <7a3640abcbaeb6267d4ab7fdfcead80d79383d1c.camel@mediatek.com> (raw)
In-Reply-To: <CAC=S1njW84bqLR3UvHHdPXT8yDECkd7UM9_o1oVDcWU70oy0Uw@mail.gmail.com>

> 

[snip]

> >  static void run_test_linear_tiling(data_t *data, int pipe, const
> > drmModeModeInfo *mode, bool physical) {
> >         igt_display_t *display = &data->display;
> >         igt_output_t *output;
> > @@ -194,7 +223,7 @@ static void run_test_linear_tiling(data_t
> > *data, int pipe, const drmModeModeInfo
> >         igt_crc_t zero, captured[IGT_MAX_PIPES];
> >         int i = 0, num_pipes = 0;
> >         igt_crtc_t *crtc;
> > -       int ret;
> > +       int ret = -EINVAL;
> > 
> >         /* Cannot use igt_display_n_crtcs() due to fused pipes on
> > i915 where they do
> >          * not give the numver of valid crtcs and always return
> > IGT_MAX_PIPES */
> > @@ -211,7 +240,7 @@ static void run_test_linear_tiling(data_t
> > *data, int pipe, const drmModeModeInfo
> >         /* create buffers */
> >         for (i = 0; i <= pipe; i++) {
> >                 output = physical ? data->connected_output[i] :
> > data->output[i];
> > -               if (!output) {
> > +               if (!output || !output_mode_supported(output,
> > mode)) {
> >                         continue;
> >                 }
> > 
> > @@ -228,7 +257,9 @@ static void run_test_linear_tiling(data_t
> > *data, int pipe, const drmModeModeInfo
> >                 igt_plane_set_fb(data->primary[i], &buffer[i]);
> >                 igt_info("Assigning pipe %s to output %s with mode
> > %s\n",
> >                          kmstest_pipe_name(i),
> > igt_output_name(output), mode->name);
> > +               ret = 0;
> 
> I'd suggest using a dedicated flag instead of reusing `ret`, in case
> another `ret = igt_do_something();` is added before the for loop
> someday, which would overwrite the -EINVAL and invalidate the
> `igt_skip_on_f()` below.
> 
> After which,
> Reviewed-by: Fei Shao <fshao@chromium.org>
> 

Hi Fei,

Thanks for the reviews.
I'll take your suggest and send the next version.

Regards,
Jason-JH Lin

> Regards,
> Fei
> 
> >         }
> > +       igt_skip_on_f(ret != 0, "Unsupported mode for all
> > pipes\n");
> > 

  reply	other threads:[~2026-03-09  3:16 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-25 16:03 [PATCH i-g-t] tests/kms_bw: Skip tests when outputs don't support the mode Jason-JH Lin
2026-02-26  0:48 ` ✗ Xe.CI.BAT: failure for " Patchwork
2026-02-26  1:15 ` ✓ i915.CI.BAT: success " Patchwork
2026-02-26  3:58 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-02-26  5:40 ` ✗ i915.CI.Full: " Patchwork
2026-03-06  7:44 ` [PATCH i-g-t] " Fei Shao
2026-03-09  3:16   ` Jason-JH Lin (林睿祥) [this message]
2026-03-09 10:31 ` Louis Chauvet
2026-03-10  7:20   ` Jason-JH Lin (林睿祥)

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=7a3640abcbaeb6267d4ab7fdfcead80d79383d1c.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