Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Karthik B S <karthik.b.s@intel.com>
To: Jeevan B <jeevan.b@intel.com>, igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH i-g-t] tests/kms_rotation_crc: restrict execution based on number of outputs connected
Date: Tue, 9 Feb 2021 09:52:18 +0530	[thread overview]
Message-ID: <cc804c72-753a-af56-47da-c886dcee5372@intel.com> (raw)
In-Reply-To: <20210208120951.15224-1-jeevan.b@intel.com>

On 2/8/2021 5:39 PM, Jeevan B wrote:
> In multi display scenario test used to exit after running on two pipes and
> it would skip other displays connected. so added a variable to correct this
> behavior.

With multidisplay set ups, the test ran only the first pipe on 2 outputs 
rather than two pipes?

With this fix in commit message, the patch looks good to me.

Reviewed-by: Karthik B S <karthik.b.s@intel.com>

>
> Signed-off-by: Jeevan B <jeevan.b@intel.com>
> ---
>   tests/kms_rotation_crc.c | 7 +++++--
>   1 file changed, 5 insertions(+), 2 deletions(-)
>
> diff --git a/tests/kms_rotation_crc.c b/tests/kms_rotation_crc.c
> index 6d4e87ed..eb66260b 100644
> --- a/tests/kms_rotation_crc.c
> +++ b/tests/kms_rotation_crc.c
> @@ -424,13 +424,16 @@ static void test_plane_rotation(data_t *data, int plane_type, bool test_bad_form
>   	drmModeModeInfo *mode;
>   	igt_output_t *output;
>   	enum pipe pipe;
> -	int pipe_count = 0;
> +	int pipe_count = 0, connected_outputs = 0;
>   
>   	if (plane_type == DRM_PLANE_TYPE_CURSOR)
>   		igt_require(display->has_cursor_plane);
>   
>   	igt_display_require_output(display);
>   
> +	for_each_connected_output(&data->display, output)
> +		connected_outputs++;
> +
>   	for_each_pipe_with_valid_output(display, pipe, output) {
>   		igt_plane_t *plane;
>   		int i, j, c;
> @@ -467,7 +470,7 @@ static void test_plane_rotation(data_t *data, int plane_type, bool test_bad_form
>   			continue;
>   
>   		/* restricting the execution to 2 pipes to reduce execution time*/
> -		if (pipe_count == 2 && !data->extended)
> +		if (pipe_count == 2 * connected_outputs && !data->extended)
>   			break;
>   		pipe_count++;
>   


_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

      parent reply	other threads:[~2021-02-09  4:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-08 12:09 [igt-dev] [PATCH i-g-t] tests/kms_rotation_crc: restrict execution based on number of outputs connected Jeevan B
2021-02-08 15:37 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2021-02-08 21:15 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2021-02-09  4:22 ` Karthik B S [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=cc804c72-753a-af56-47da-c886dcee5372@intel.com \
    --to=karthik.b.s@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=jeevan.b@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