From: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
To: Petri Latvala <petri.latvala@intel.com>, igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH i-g-t 1/2] tests/kms_plane: Print count of mismatched colors
Date: Mon, 18 Mar 2019 20:26:29 -0700 [thread overview]
Message-ID: <804d74935d75fafc40927a54b4170e124cfb8777.camel@intel.com> (raw)
In-Reply-To: <20190315125333.18856-1-petri.latvala@intel.com>
On Fri, 2019-03-15 at 14:53 +0200, Petri Latvala wrote:
> From: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
>
> Currently we are printing one igt_warn for each CRC mismatch, which
> gets
> quite overwhelming with having to see the same error 8 times for each
> color tested:
>
> WARNING: CRC mismatch with format NV12 (0x3231564e) on A.3
> WARNING: CRC mismatch with format NV12 (0x3231564e) on A.3
> WARNING: CRC mismatch with format NV12 (0x3231564e) on A.3
> WARNING: CRC mismatch with format NV12 (0x3231564e) on A.3
> WARNING: CRC mismatch with format NV12 (0x3231564e) on A.3
> WARNING: CRC mismatch with format NV12 (0x3231564e) on A.3
> WARNING: CRC mismatch with format NV12 (0x3231564e) on A.3
> WARNING: CRC mismatch with format NV12 (0x3231564e) on A.3
>
> Since the most interesting information here is which format on which
> pipe/plane is broken we can skip igt_warn just once.
>
> For those weirder and rarer case where just certain colors would fail
> we
> still provide the count and the mask of color array indices that
> failed:
>
> WARNING: CRC mismatches with format NV12 (0x3231564e) on A.3 with 8/8
> solid colors tested (0xFF)
>
> v2 (Petri): Print a mask so it's possible to know which colors
> failed.
Acked-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
>
> Cc: Martin Peres <martin.peres@linux.intel.com>
> Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
> Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
> Reviewed-by: Martin Peres <martin.peres@linux.intel.com> #v1
> Signed-off-by: Petri Latvala <petri.latvala@intel.com>
> ---
> tests/kms_plane.c | 21 ++++++++++++---------
> 1 file changed, 12 insertions(+), 9 deletions(-)
>
> diff --git a/tests/kms_plane.c b/tests/kms_plane.c
> index 969a61c8..82d4d1d0 100644
> --- a/tests/kms_plane.c
> +++ b/tests/kms_plane.c
> @@ -547,6 +547,8 @@ static bool test_format_plane(data_t *data, enum
> pipe pipe,
> }
>
> for (int i = 0; i < plane->drm_plane->count_formats; i++) {
> + int crc_mismatch_count = 0;
> + int crc_mismatch_mask = 0;
> igt_crc_t crc;
>
> format = plane->drm_plane->formats[i];
> @@ -562,21 +564,22 @@ static bool test_format_plane(data_t *data,
> enum pipe pipe,
> kmstest_pipe_name(pipe), plane->index);
>
> for (int j = 0; j < ARRAY_SIZE(colors); j++) {
> - bool crc_equal;
> -
> test_format_plane_color(data, pipe, plane,
> format, width, height,
> dst_w, dst_h,
> j, &crc, &fb);
>
> - crc_equal = igt_check_crc_equal(&crc,
> &ref_crc[j]);
> - result &= crc_equal;
> -
> - if (!crc_equal)
> - igt_warn("CRC mismatch with format "
> IGT_FORMAT_FMT " on %s.%u\n",
> - IGT_FORMAT_ARGS(format),
> - kmstest_pipe_name(pipe),
> plane->index);
> + if (!igt_check_crc_equal(&crc, &ref_crc[j])) {
> + crc_mismatch_count++;
> + crc_mismatch_mask |= (1 << j);
> + result = false;
> + }
> }
> +
> + if (crc_mismatch_count)
> + igt_warn("CRC mismatches with format "
> IGT_FORMAT_FMT " on %s.%u with %d/%d solid colors tested (0x%X)\n",
> + IGT_FORMAT_ARGS(format),
> kmstest_pipe_name(pipe),
> + plane->index, crc_mismatch_count,
> (int)ARRAY_SIZE(colors), crc_mismatch_mask);
> }
>
> igt_pipe_crc_stop(data->pipe_crc);
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
next prev parent reply other threads:[~2019-03-19 3:26 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-15 12:53 [igt-dev] [PATCH i-g-t 1/2] tests/kms_plane: Print count of mismatched colors Petri Latvala
2019-03-15 12:53 ` [igt-dev] [PATCH i-g-t 2/2] tests/kms_plane: Use just one valid output Petri Latvala
2019-03-18 9:14 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/2] tests/kms_plane: Print count of mismatched colors (rev2) Patchwork
2019-03-18 11:27 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2019-03-19 3:26 ` Dhinakaran Pandiyan [this message]
-- strict thread matches above, loose matches on Subject: below --
2019-03-14 11:03 [igt-dev] [PATCH i-g-t 1/2] tests/kms_plane: Print count of mismatched colors Arkadiusz Hiler
2019-03-14 13:07 ` Martin Peres
2019-03-14 22:35 ` Dhinakaran Pandiyan
2019-03-15 11:56 ` Martin Peres
2019-03-15 19:41 ` Dhinakaran Pandiyan
2019-03-18 10:48 ` Petri Latvala
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=804d74935d75fafc40927a54b4170e124cfb8777.camel@intel.com \
--to=dhinakaran.pandiyan@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=petri.latvala@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