Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
To: Pranay Samala <pranay.samala@intel.com>, igt-dev@lists.freedesktop.org
Cc: karthik.b.s@intel.com, jeevan.b@intel.com,
	sameer.lattannavar@intel.com,
	Kamil Konieczny <kamil.konieczny@linux.intel.com>,
	Juha-pekka Heikkila <juha-pekka.heikkila@intel.com>
Subject: Re: [PATCH i-g-t v3 2/2] tests/kms_plane: Convert to dynamic subtests
Date: Mon, 3 Jun 2024 15:39:59 +0300	[thread overview]
Message-ID: <cbe89ff7-16a5-4231-934d-1e654a0b64a5@gmail.com> (raw)
In-Reply-To: <20240531060622.489881-3-pranay.samala@intel.com>

Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>

On 31.5.2024 9.06, Pranay Samala wrote:
> The test runs on all pipes on dynamic level to test all the supported
> pixel-formats and modifiers on current plane of that pipe.
> 
> Updating the test to execute on multiple planes on dynamic level.
> 
> Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com>
> Cc: Juha-pekka Heikkila <juha-pekka.heikkila@intel.com>
> Cc: Karthik B S <karthik.b.s@intel.com>
> 
> Signed-off-by: Pranay Samala <pranay.samala@intel.com>
> ---
>   tests/kms_plane.c | 27 +++++++++++++++++----------
>   1 file changed, 17 insertions(+), 10 deletions(-)
> 
> diff --git a/tests/kms_plane.c b/tests/kms_plane.c
> index 7a17b700c..aac8e3ef0 100644
> --- a/tests/kms_plane.c
> +++ b/tests/kms_plane.c
> @@ -351,10 +351,11 @@ test_plane_position(data_t *data, enum pipe pipe)
>   	test_init(data, pipe);
>   	test_grab_crc(data, output, pipe, &green, data->flags, &reference_crc);
>   
> -	for (int plane = 1; plane < n_planes; plane++)
> -		test_plane_position_with_output(data, pipe, plane,
> -						output, &reference_crc,
> -						data->flags);
> +	for (int plane = 1; plane < n_planes; plane++) {
> +		igt_dynamic_f("pipe-%s-plane-%d", kmstest_pipe_name(pipe), plane)
> +			test_plane_position_with_output(data, pipe, plane, output,
> +							&reference_crc, data->flags);
> +	}
>   
>   	test_fini(data);
>   }
> @@ -1216,7 +1217,8 @@ test_pixel_formats(data_t *data, enum pipe pipe)
>   	for_each_plane_on_pipe(&data->display, pipe, plane) {
>   		if (skip_plane(data, plane))
>   			continue;
> -		result &= test_format_plane(data, pipe, output, plane, &primary_fb);
> +		igt_dynamic_f("pipe-%s-plane-%u", kmstest_pipe_name(pipe), plane->index)
> +			result &= test_format_plane(data, pipe, output, plane, &primary_fb);
>   	}
>   
>   	test_fini(data);
> @@ -1322,14 +1324,19 @@ static void run_test(data_t *data, void (*test)(data_t *, enum pipe))
>   			continue;
>   
>   		igt_output_set_pipe(data->output, PIPE_NONE);
> -		igt_dynamic_f("pipe-%s", kmstest_pipe_name(pipe))
> -			test(data, pipe);
> +		test(data, pipe);
>   
>   		if (is_pipe_limit_reached(++count))
>   			break;
>   	}
>   }
>   
> +static void dynamic_test_handler(data_t *data, enum pipe pipe)
> +{
> +	igt_dynamic_f("pipe-%s", kmstest_pipe_name(pipe))
> +		test_plane_panning(data, pipe);
> +}
> +
>   static void
>   run_tests_for_pipe_plane(data_t *data)
>   {
> @@ -1366,20 +1373,20 @@ run_tests_for_pipe_plane(data_t *data)
>   	igt_describe("verify plane panning at top-left position using primary plane");
>   	igt_subtest_with_dynamic_f("plane-panning-top-left") {
>   		data->flags = TEST_PANNING_TOP_LEFT;
> -		run_test(data, test_plane_panning);
> +		run_test(data, dynamic_test_handler);
>   	}
>   
>   	igt_describe("verify plane panning at bottom-right position using primary plane");
>   	igt_subtest_with_dynamic_f("plane-panning-bottom-right") {
>   		data->flags = TEST_PANNING_BOTTOM_RIGHT;
> -		run_test(data, test_plane_panning);
> +		run_test(data, dynamic_test_handler);
>   	}
>   
>   	igt_describe("verify plane panning at bottom-right position using primary plane and executes system"
>   		       "suspend cycles");
>   	igt_subtest_with_dynamic_f("plane-panning-bottom-right-suspend") {
>   		data->flags = TEST_PANNING_BOTTOM_RIGHT | TEST_SUSPEND_RESUME;
> -		run_test(data, test_plane_panning);
> +		run_test(data, dynamic_test_handler);
>   	}
>   
>   	igt_describe("verify planar settings for pixel format are accepted or rejected correctly");


  reply	other threads:[~2024-06-03 12:40 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-31  6:06 [PATCH i-g-t v3 0/2] Update kms_plane test Pranay Samala
2024-05-31  6:06 ` [PATCH i-g-t v3 1/2] tests/kms_plane: Reduce CI logging Pranay Samala
2024-06-03 12:36   ` Juha-Pekka Heikkila
2024-05-31  6:06 ` [PATCH i-g-t v3 2/2] tests/kms_plane: Convert to dynamic subtests Pranay Samala
2024-06-03 12:39   ` Juha-Pekka Heikkila [this message]
2024-05-31  8:25 ` ✓ Fi.CI.BAT: success for Update kms_plane test (rev3) Patchwork
2024-05-31  8:29 ` ✓ CI.xeBAT: " Patchwork
2024-05-31 10:44 ` ✓ CI.xeFULL: " Patchwork
2024-06-01  5:13 ` ✗ Fi.CI.IGT: failure " Patchwork
2024-06-03  8:55   ` Samala, Pranay

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=cbe89ff7-16a5-4231-934d-1e654a0b64a5@gmail.com \
    --to=juhapekka.heikkila@gmail.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=jeevan.b@intel.com \
    --cc=juha-pekka.heikkila@intel.com \
    --cc=kamil.konieczny@linux.intel.com \
    --cc=karthik.b.s@intel.com \
    --cc=pranay.samala@intel.com \
    --cc=sameer.lattannavar@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