All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Srinivas, Vidya" <vidya.srinivas@intel.com>
To: "igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>
Cc: "Modem, Bhanuprakash" <bhanuprakash.modem@intel.com>,
	"markyacoub@google.com" <markyacoub@google.com>,
	"victorchengchi.lu@amd.com" <victorchengchi.lu@amd.com>,
	"Anson.Jacob@amd.com" <Anson.Jacob@amd.com>,
	"Rodrigo.Siqueira@amd.com" <Rodrigo.Siqueira@amd.com>,
	"B S, Karthik" <karthik.b.s@intel.com>
Subject: Re: [igt-dev] [PATCH i-g-t] tests/kms_plane_multiple: Fix regression test_plane_position_with_output
Date: Fri, 24 Sep 2021 11:04:38 +0000	[thread overview]
Message-ID: <BY5PR11MB437293DE0C8E6CCA5807386089A49@BY5PR11MB4372.namprd11.prod.outlook.com> (raw)
In-Reply-To: <20210924104545.23996-1-vidya.srinivas@intel.com>

Hello Victor, Jacob, Siqueira,

Could you kindly check if this change would cause regression back on AMD?

Regards
Vidya

> -----Original Message-----
> From: Srinivas, Vidya <vidya.srinivas@intel.com>
> Sent: Friday, September 24, 2021 4:16 PM
> To: igt-dev@lists.freedesktop.org
> Cc: Modem, Bhanuprakash <bhanuprakash.modem@intel.com>;
> markyacoub@google.com; victorchengchi.lu@amd.com;
> Anson.Jacob@amd.com; Rodrigo.Siqueira@amd.com; B S, Karthik
> <karthik.b.s@intel.com>; Srinivas, Vidya <vidya.srinivas@intel.com>
> Subject: [PATCH i-g-t] tests/kms_plane_multiple: Fix regression
> test_plane_position_with_output
> 
> Starting commit 4d4a76729b328b65122 "Start continuous CRC capture after
> commit"
> few variants of Intel TGL and JSL devices are failing with CRC mismatch due to
> time sensitivity. Patch switches to older way of obtaining CRC, but keeps in-
> tact continuous CRC collection within the iteration and includes checking of
> i915 to not cause regression on non-intel devices.
> 
> v2: Fixed review comments from Karthik.
> 
> Signed-off-by: Vidya Srinivas <vidya.srinivas@intel.com>
> ---
>  tests/kms_plane_multiple.c | 16 ++++++++--------
>  1 file changed, 8 insertions(+), 8 deletions(-)
> 
> diff --git a/tests/kms_plane_multiple.c b/tests/kms_plane_multiple.c index
> 45cabb500774..c11ff333ab0a 100644
> --- a/tests/kms_plane_multiple.c
> +++ b/tests/kms_plane_multiple.c
> @@ -79,8 +79,6 @@ static void test_init(data_t *data, enum pipe pipe, int
> n_planes)
> 
>  static void test_fini(data_t *data, igt_output_t *output, int n_planes)  {
> -	igt_pipe_crc_stop(data->pipe_crc);
> -
>  	/* reset the constraint on the pipe */
>  	igt_output_set_pipe(output, PIPE_ANY);
> 
> @@ -291,7 +289,6 @@ test_plane_position_with_output(data_t *data,
> enum pipe pipe,
>  	igt_plane_t *plane;
>  	int i;
>  	int err, c = 0;
> -	int crc_enabled = 0;
>  	int iterations = opt.iterations < 1 ? 1 : opt.iterations;
>  	bool loop_forever;
>  	char info[256];
> @@ -334,15 +331,20 @@ test_plane_position_with_output(data_t *data,
> enum pipe pipe,
>  	i = 0;
>  	while (i < iterations || loop_forever) {
>  		/* randomize planes and set up the holes */
> +
> +		/* Intel devices need it here, timing sensitive on few devices
> */
> +		if (is_i915_device(data->drm_fd))
> +			igt_pipe_crc_start(data->pipe_crc);
> +
>  		prepare_planes(data, pipe, &blue, tiling, c, output);
> 
>  		igt_display_commit2(&data->display, COMMIT_ATOMIC);
> -		if (!crc_enabled) {
> +		if (!is_i915_device(data->drm_fd))
>  			igt_pipe_crc_start(data->pipe_crc);
> -			crc_enabled = 1;
> -		}
> 
>  		igt_pipe_crc_get_current(data->display.drm_fd, data-
> >pipe_crc, &crc);
> +		igt_assert_crc_equal(&data->ref_crc, &crc);
> +		igt_pipe_crc_stop(data->pipe_crc);
> 
>  		for_each_plane_on_pipe(&data->display, pipe, plane)
>  			igt_plane_set_fb(plane, NULL);
> @@ -352,8 +354,6 @@ test_plane_position_with_output(data_t *data,
> enum pipe pipe,
>  		for (int x = 0; x < c; x++)
>  			igt_remove_fb(data->drm_fd, &data->fb[x]);
> 
> -		igt_assert_crc_equal(&data->ref_crc, &crc);
> -
>  		i++;
>  	}
> 
> --
> 2.33.0

  reply	other threads:[~2021-09-24 11:04 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-16 14:23 [igt-dev] [PATCH i-g-t] tests/kms_plane_multiple: Fix regression in test_plane_position_with_output Vidya Srinivas
2021-09-16 18:05 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2021-09-16 20:37 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2021-09-24 10:45 ` [igt-dev] [PATCH i-g-t] tests/kms_plane_multiple: Fix regression test_plane_position_with_output Vidya Srinivas
2021-09-24 11:04   ` Srinivas, Vidya [this message]
2021-10-08  6:18   ` Karthik B S
2021-10-08  6:23     ` Srinivas, Vidya
2021-09-24 11:38 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_plane_multiple: Fix regression in test_plane_position_with_output (rev2) Patchwork
2021-09-24 13:37 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2021-10-13  7:50 ` [igt-dev] [i-g-t v3] tests/kms_plane_multiple: Fix regression test_plane_position_with_output Bhanuprakash Modem
2021-10-13  8:49 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_plane_multiple: Fix regression in test_plane_position_with_output (rev3) Patchwork
2021-10-13 10:28 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2021-10-13 10:55   ` Modem, Bhanuprakash
2021-10-13 10:56   ` Modem, Bhanuprakash
2021-10-13 17:56     ` Vudum, Lakshminarayana
2021-10-13 15:26 ` [igt-dev] ✓ Fi.CI.IGT: success " 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=BY5PR11MB437293DE0C8E6CCA5807386089A49@BY5PR11MB4372.namprd11.prod.outlook.com \
    --to=vidya.srinivas@intel.com \
    --cc=Anson.Jacob@amd.com \
    --cc=Rodrigo.Siqueira@amd.com \
    --cc=bhanuprakash.modem@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=karthik.b.s@intel.com \
    --cc=markyacoub@google.com \
    --cc=victorchengchi.lu@amd.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.