From: "Shankar, Uma" <uma.shankar@intel.com>
To: "Modem, Bhanuprakash" <bhanuprakash.modem@intel.com>,
"Srinivas, Vidya" <vidya.srinivas@intel.com>,
"igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>
Subject: Re: [igt-dev] [PATCH i-g-t] tests/kms_plane_alpha_blend: Skip crc assertion in coverage-vs-premult-vs-none for 6bpc panels
Date: Thu, 8 Jul 2021 13:34:36 +0000 [thread overview]
Message-ID: <17de69b615a548df93fdad2b86526832@intel.com> (raw)
In-Reply-To: <PH0PR11MB557926DDD48F68486F0E34808D199@PH0PR11MB5579.namprd11.prod.outlook.com>
> -----Original Message-----
> From: Modem, Bhanuprakash <bhanuprakash.modem@intel.com>
> Sent: Thursday, July 8, 2021 5:51 PM
> To: Srinivas, Vidya <vidya.srinivas@intel.com>; igt-dev@lists.freedesktop.org;
> Shankar, Uma <uma.shankar@intel.com>
> Subject: RE: [igt-dev] [PATCH i-g-t] tests/kms_plane_alpha_blend: Skip crc assertion
> in coverage-vs-premult-vs-none for 6bpc panels
>
> > From: Srinivas, Vidya <vidya.srinivas@intel.com>
> > Sent: Thursday, July 8, 2021 5:03 PM
> > To: Modem, Bhanuprakash <bhanuprakash.modem@intel.com>; igt-
> > dev@lists.freedesktop.org
> > Subject: RE: [igt-dev] [PATCH i-g-t] tests/kms_plane_alpha_blend: Skip
> > crc assertion in coverage-vs-premult-vs-none for 6bpc panels
> >
> > Hello Bhanu,
> >
> > No we skip it for all 6bpc. We can skip the test, but as discussed
> > with Uma, I just skip crc check, not the test.
> > Kindly suggest further.
>
> If we remove/skip the crc check, I think there is no point in doing further commits
> unless we have kernel checkers.
>
> Uma?
I think it's a compromise here, skip on 6bpc would be ideal here or we need to have some
passing criterion in order to declare this as pass.
We can do the bpc check after the first commit and skip there itself if we detect 6bpc.This should
be better given the constraints. Also Vidya its good to add MIPI_DSI along with eDP as well since
we have some 6bpc MIPI DSI panels as well.
> >
> > Regards
> > Vidya
> >
> > -----Original Message-----
> > From: Modem, Bhanuprakash <bhanuprakash.modem@intel.com>
> > Sent: Thursday, July 8, 2021 4:15 PM
> > To: Srinivas, Vidya <vidya.srinivas@intel.com>;
> > igt-dev@lists.freedesktop.org
> > Subject: RE: [igt-dev] [PATCH i-g-t] tests/kms_plane_alpha_blend: Skip
> > crc assertion in coverage-vs-premult-vs-none for 6bpc panels
> >
> > > From: igt-dev <igt-dev-bounces@lists.freedesktop.org> On Behalf Of
> > > Vidya Srinivas
> > > Sent: Thursday, July 8, 2021 3:01 PM
> > > To: igt-dev@lists.freedesktop.org
> > > Subject: [igt-dev] [PATCH i-g-t] tests/kms_plane_alpha_blend: Skip
> > > crc assertion in coverage-vs-premult-vs-none for 6bpc panels
> > >
> > > Intel Gen11 platforms using 6bpc panels have dithering ON and show
> > > CRC mismatch in coverage-vs-premult-vs-none Doing a crc based test
> > > with dithering is not a great idea as pixels will change due to the
> > > 8bit to 6bits truncation with dithering.
> > >
> > > This patch skips the CRC assertion for 6bpc panels. Currently, there
> > > is no better way of fetching the bpc info other than EDID or
> > > display_info. Currently using i915_display_info for the same. Hence
> > > restricting the check to i915 devices only.
> > >
> > > Credits-to: Uma Shankar <uma.shankar@intel.com>
> > > Credits-to: Juha-pekka Heikkila <juha-pekka.heikkila@intel.com>
> > > Credits-to: Modem Bhanuprakash <Bhanuprakash.Modem@intel.com>
> > > Reviewed-by: Uma Shankar <uma.shankar@intel.com>
> > > Signed-off-by: Vidya Srinivas <vidya.srinivas@intel.com>
> > > ---
> > > tests/kms_plane_alpha_blend.c | 43
> > > +++++++++++++++++++++++++++++++++--
> > > 1 file changed, 41 insertions(+), 2 deletions(-)
> > >
> > > diff --git a/tests/kms_plane_alpha_blend.c
> > > b/tests/kms_plane_alpha_blend.c index a37cb27c7d62..e450e64cb105
> > > 100644
> > > --- a/tests/kms_plane_alpha_blend.c
> > > +++ b/tests/kms_plane_alpha_blend.c
> > > @@ -442,10 +442,42 @@ static void coverage_7efc(data_t *data, enum
> > > pipe pipe, igt_plane_t *plane)
> > > igt_pipe_crc_stop(data->pipe_crc);
> > > }
> > >
> > > +static bool is_6bpc(igt_display_t *display, enum pipe pipe) {
> > > + char buf[4096];
> > > + char *str;
> > > + bool ret;
> > > + int debugfs_fd;
> > > + drmModeConnector *c;
> > > + igt_output_t *output = igt_get_single_output_for_pipe(display,
> > > +pipe);
> > > +
> > > + if (!is_i915_device(display->drm_fd))
> > > + return false;
> > > +
> > > + c = output->config.connector;
> > > + if (c->connector_type != DRM_MODE_CONNECTOR_eDP)
> > > + return false;
> > > +
> > > + debugfs_fd = igt_debugfs_dir(display->drm_fd);
> > > + if (debugfs_fd < 0)
> > > + return false;
> > > +
> > > + igt_debugfs_simple_read(debugfs_fd, "i915_display_info", buf,
> > > sizeof(buf));
> > > +
> > > + str = strstr(buf, "bpp=");
> > > + if (str && (strncmp(str, "bpp=18", 6) == 0))
> > > + ret = true;
> > > + else
> > > + ret = false;
> > > +
> > > + close(debugfs_fd);
> > > + return ret;
> > > +}
> > > +
> > > static void coverage_premult_constant(data_t *data, enum pipe pipe,
> > > igt_plane_t *plane) {
> > > igt_display_t *display = &data->display;
> > > igt_crc_t ref_crc = {}, crc = {};
> > > + bool is6bpc = false;
> > >
> > > /* Set a background color on the primary fb for testing */
> > > if (plane->type != DRM_PLANE_TYPE_PRIMARY) @@ -461,14 +493,21 @@
> > > static void coverage_premult_constant(data_t *data, enum pipe pipe,
> > > igt_plane_t
> > > igt_plane_set_fb(plane, &data->argb_fb_7e);
> > > igt_display_commit2(display, COMMIT_ATOMIC);
> > > igt_pipe_crc_get_current(display->drm_fd, data->pipe_crc, &crc);
> > > - igt_assert_crc_equal(&ref_crc, &crc);
> > > +
> > > + /* 6bpc panels have dithering ON and CRC might fail, hence skip
> > > +crc
> > > check */
> > > + is6bpc = is_6bpc(display, pipe);
> > > + if (is6bpc == false)
> > > + igt_assert_crc_equal(&ref_crc, &crc);
> >
> > We can SKIP here, right? Also no need to run on remaining planes.
> > Otherwise IGT will report this test result as PASS instead of reporting as SKIP.
> >
> > igt_require_f(!is_6bpc(display, pipe), "Skip test on 6 bpc panels\n");
> >
> >
> > Also, are we going to skip this test on only gen 11? Then we need a
> > check to perform such.
> >
> > if (is_i915_device(fd) && intel_gen(intel_get_drm_devid(fd)) == 11)
> > igt_require_f(!is_6bpc(display, pipe), "Skip test on 6 bpc
> > panels\n");
> >
> > >
> > > igt_plane_set_prop_enum(plane, IGT_PLANE_PIXEL_BLEND_MODE,
> "None");
> > > igt_plane_set_prop_value(plane, IGT_PLANE_ALPHA, 0x7e7e);
> > > igt_plane_set_fb(plane, &data->argb_fb_cov_7e);
> > > igt_display_commit2(display, COMMIT_ATOMIC);
> > > igt_pipe_crc_get_current(display->drm_fd, data->pipe_crc, &crc);
> > > - igt_assert_crc_equal(&ref_crc, &crc);
> > > +
> > > + /* 6bpc panels have dithering ON and CRC might fail, hence skip
> > > +crc
> > > check */
> > > + if (is6bpc == false)
> > > + igt_assert_crc_equal(&ref_crc, &crc);
> > >
> > > igt_pipe_crc_stop(data->pipe_crc);
> > > }
> > > --
> > > 2.32.0
> > >
> > > _______________________________________________
> > > igt-dev mailing list
> > > igt-dev@lists.freedesktop.org
> > > https://lists.freedesktop.org/mailman/listinfo/igt-dev
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
next prev parent reply other threads:[~2021-07-08 13:34 UTC|newest]
Thread overview: 97+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-01 11:45 [igt-dev] [PATCH i-g-t] [RFC] tests/kms_plane_alpha_blend: Fix coverage-vs-premult-vs-constant tests Vidya Srinivas
2021-06-01 13:41 ` Petri Latvala
2021-06-01 14:12 ` [Intel-gfx] " Srinivas, Vidya
2021-06-01 14:08 ` [Intel-gfx] [PATCH i-g-t] [RFC] tests/kms_plane_alpha_blend: Don't set primary fb color in coverage-vs-premult-vs-constant Vidya Srinivas
2021-06-11 3:40 ` [igt-dev] " Modem, Bhanuprakash
2021-06-11 7:30 ` Srinivas, Vidya
2021-06-11 12:57 ` Srinivas, Vidya
2021-06-15 8:25 ` Srinivas, Vidya
2021-06-18 6:24 ` Srinivas, Vidya
2021-06-01 14:54 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_plane_alpha_blend: Fix coverage-vs-premult-vs-constant tests (rev2) Patchwork
2021-06-01 19:16 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2021-06-04 18:41 ` [igt-dev] [PATCH i-g-t] [RFC] tests/kms_plane_alpha_blend: Fix coverage-vs-premult-vs-constant tests Mark Yacoub
2021-06-05 5:47 ` Srinivas, Vidya
2021-06-11 12:44 ` [igt-dev] [PATCH i-g-t] tests/kms_plane_alpha_blend: Fix alpha in coverage-vs-premult-vs-constant Vidya Srinivas
2021-06-18 8:52 ` Juha-Pekka Heikkila
2021-06-18 8:58 ` Srinivas, Vidya
2021-06-18 10:26 ` Juha-Pekka Heikkila
2021-06-18 10:31 ` Srinivas, Vidya
2021-06-18 18:54 ` Srinivas, Vidya
2021-06-18 20:24 ` Juha-Pekka Heikkilä
2021-06-19 3:10 ` Srinivas, Vidya
2021-06-19 8:24 ` Srinivas, Vidya
2021-06-21 8:04 ` Juha-Pekka Heikkila
2021-06-21 8:24 ` Srinivas, Vidya
2021-06-21 13:32 ` Srinivas, Vidya
2021-06-23 5:21 ` Srinivas, Vidya
2021-06-23 7:42 ` Juha-Pekka Heikkila
2021-06-23 10:21 ` Srinivas, Vidya
2021-06-24 3:54 ` Srinivas, Vidya
2021-06-19 8:08 ` [igt-dev] [PATCH i-g-t] tests/kms_plane_alpha_blend: Limit pipe output to 8bpc for coverage-vs-premult-vs-constant Vidya Srinivas
2021-06-19 9:21 ` Juha-Pekka Heikkilä
2021-06-19 11:41 ` Srinivas, Vidya
2021-06-19 17:21 ` Srinivas, Vidya
2021-06-19 17:07 ` [igt-dev] [PATCH i-g-t] tests/kms_plane_alpha_blend: Use alpha for primary plane " Vidya Srinivas
2021-06-21 13:22 ` Vidya Srinivas
2021-06-28 16:47 ` [igt-dev] [PATCH i-g-t] tests/kms_plane_alpha_blend: Use black " Vidya Srinivas
2021-07-03 15:52 ` [igt-dev] [PATCH i-g-t] tests/kms_plane_alpha_blend: Dont commit primary for 6bpc display in coverage-vs-premult-vs-none Vidya Srinivas
2021-07-05 14:38 ` Srinivas, Vidya
2021-07-06 7:06 ` Shankar, Uma
2021-07-06 7:23 ` Srinivas, Vidya
2021-07-06 15:41 ` Srinivas, Vidya
2021-07-06 15:28 ` [igt-dev] [PATCH i-g-t] tests/kms_plane_alpha_blend: Skip coverage-vs-premult-vs-none for 6bpc panels Vidya Srinivas
2021-07-07 16:22 ` [igt-dev] [PATCH i-g-t] tests/kms_plane_alpha_blend: Skip crc in " Vidya Srinivas
2021-07-08 8:36 ` Shankar, Uma
2021-07-08 9:04 ` [igt-dev] [PATCH i-g-t] tests/kms_plane_alpha_blend: Skip crc assertion " Vidya Srinivas
2021-07-08 9:30 ` Vidya Srinivas
2021-07-08 10:45 ` Modem, Bhanuprakash
2021-07-08 11:32 ` Srinivas, Vidya
2021-07-08 12:20 ` Modem, Bhanuprakash
2021-07-08 12:44 ` Srinivas, Vidya
2021-07-08 12:57 ` Srinivas, Vidya
2021-07-08 13:34 ` Shankar, Uma [this message]
2021-07-08 14:13 ` Srinivas, Vidya
2021-07-08 14:19 ` Srinivas, Vidya
2021-07-08 14:21 ` Modem, Bhanuprakash
2021-07-08 14:25 ` Srinivas, Vidya
2021-07-09 6:22 ` Srinivas, Vidya
2021-07-09 6:47 ` Modem, Bhanuprakash
2021-07-09 7:08 ` Srinivas, Vidya
2021-07-08 12:45 ` [igt-dev] [PATCH i-g-t] tests/kms_plane_alpha_blend: Skip " Vidya Srinivas
2021-07-08 13:15 ` Modem, Bhanuprakash
2021-07-08 14:07 ` Vidya Srinivas
2021-07-08 14:14 ` Vidya Srinivas
2021-07-09 6:55 ` Vidya Srinivas
2021-07-09 6:57 ` Vidya Srinivas
2021-07-09 10:48 ` Modem, Bhanuprakash
2021-07-09 11:34 ` Srinivas, Vidya
2021-07-14 2:06 ` Dixit, Ashutosh
2021-07-14 2:56 ` Srinivas, Vidya
2021-07-14 3:19 ` Dixit, Ashutosh
2021-07-14 4:08 ` Srinivas, Vidya
2021-07-14 8:12 ` Srinivas, Vidya
2021-07-08 9:15 ` [igt-dev] [PATCH i-g-t] tests/kms_plane_alpha_blend: Skip crc in " Modem, Bhanuprakash
2021-07-08 9:26 ` Srinivas, Vidya
2021-06-11 13:29 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_plane_alpha_blend: Fix coverage-vs-premult-vs-constant tests (rev3) Patchwork
2021-06-11 15:46 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2021-06-19 8:56 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_plane_alpha_blend: Fix coverage-vs-premult-vs-constant tests (rev4) Patchwork
2021-06-19 9:52 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2021-06-19 18:05 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_plane_alpha_blend: Fix coverage-vs-premult-vs-constant tests (rev5) Patchwork
2021-06-19 18:59 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2021-06-21 14:54 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_plane_alpha_blend: Fix coverage-vs-premult-vs-constant tests (rev6) Patchwork
2021-06-21 17:16 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2021-06-28 18:32 ` [igt-dev] ✗ Fi.CI.BAT: failure for tests/kms_plane_alpha_blend: Fix coverage-vs-premult-vs-constant tests (rev7) Patchwork
2021-07-03 16:39 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_plane_alpha_blend: Fix coverage-vs-premult-vs-constant tests (rev8) Patchwork
2021-07-03 17:49 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2021-07-05 15:08 ` [igt-dev] ✗ Fi.CI.BUILD: failure for tests/kms_plane_alpha_blend: Fix coverage-vs-premult-vs-constant tests (rev9) Patchwork
2021-07-06 15:53 ` [igt-dev] ✗ GitLab.Pipeline: warning for tests/kms_plane_alpha_blend: Fix coverage-vs-premult-vs-constant tests (rev10) Patchwork
2021-07-06 16:09 ` [igt-dev] ✓ Fi.CI.BAT: success " Patchwork
2021-07-06 19:47 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2021-07-07 17:33 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_plane_alpha_blend: Fix coverage-vs-premult-vs-constant tests (rev11) Patchwork
2021-07-07 21:51 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2021-07-08 11:01 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_plane_alpha_blend: Fix coverage-vs-premult-vs-constant tests (rev13) Patchwork
2021-07-08 14:00 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2021-07-08 17:21 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_plane_alpha_blend: Fix coverage-vs-premult-vs-constant tests (rev16) Patchwork
2021-07-09 2:13 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2021-07-09 7:56 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_plane_alpha_blend: Fix coverage-vs-premult-vs-constant tests (rev18) Patchwork
2021-07-09 20:55 ` [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=17de69b615a548df93fdad2b86526832@intel.com \
--to=uma.shankar@intel.com \
--cc=bhanuprakash.modem@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=vidya.srinivas@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