From: "Modem, Bhanuprakash" <bhanuprakash.modem@intel.com>
To: Kunal Joshi <kunal1.joshi@intel.com>, <igt-dev@lists.freedesktop.org>
Cc: "Ville Syrjälä" <ville.syrjala@linux.intel.com>,
"Ankit Nautiyal" <ankit.k.nautiyal@intel.com>
Subject: Re: [PATCH i-g-t 5/7] tests/intel/kms_big_joiner: use kmstest_force_connector_bigjoiner
Date: Mon, 22 Apr 2024 16:39:18 +0530 [thread overview]
Message-ID: <d2ac0668-fa17-46ca-98c6-5830c14fca93@intel.com> (raw)
In-Reply-To: <20240422053454.2523989-6-kunal1.joshi@intel.com>
On 22-04-2024 11:04 am, Kunal Joshi wrote:
> use kmstest_force_connector_bigjoiner instead of
> kmstest_force_connector_bigjoiner
Use X instead of X? Please fix this commit message.
>
> v2: use igt_reset_connectors (Bhanu)
>
> Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
> Cc: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
> Cc: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
> Signed-off-by: Kunal Joshi <kunal1.joshi@intel.com>
> ---
> tests/intel/kms_big_joiner.c | 21 +++++++++++----------
> 1 file changed, 11 insertions(+), 10 deletions(-)
>
> diff --git a/tests/intel/kms_big_joiner.c b/tests/intel/kms_big_joiner.c
> index f325a9839..4979cac06 100644
> --- a/tests/intel/kms_big_joiner.c
> +++ b/tests/intel/kms_big_joiner.c
> @@ -87,7 +87,7 @@ static void set_all_master_pipes_for_platform(data_t *data)
> }
> }
>
> -static void toggle_force_joiner_on_all_non_big_joiner_outputs(data_t *data, bool toggle)
> +static void enable_force_joiner_on_all_non_big_joiner_outputs(data_t *data)
> {
> bool status;
> igt_output_t *output;
> @@ -95,7 +95,7 @@ static void toggle_force_joiner_on_all_non_big_joiner_outputs(data_t *data, bool
>
> for (i = 0; i < data->non_big_joiner_output_count; i++) {
> output = data->non_big_joiner_output[i];
> - status = igt_force_and_check_bigjoiner_status(data->drm_fd, output->name, toggle);
> + status = kmstest_force_connector_bigjoiner(data->drm_fd, output->config.connector);
> igt_assert_f(status, "Failed to toggle force joiner\n");
It would be helpful if you add a connector info here.
Ex: Failed to force the joiner on eDP-1
With above changes, this patch is
Reviewed-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
> }
> }
> @@ -383,15 +383,15 @@ igt_main
> igt_require_f(data.n_pipes > 1,
> "Minimum 2 pipes required\n");
> igt_dynamic_f("single") {
> - toggle_force_joiner_on_all_non_big_joiner_outputs(&data, true);
> + enable_force_joiner_on_all_non_big_joiner_outputs(&data);
> test_single_joiner(&data, data.non_big_joiner_output_count, true);
> - toggle_force_joiner_on_all_non_big_joiner_outputs(&data, false);
> + igt_reset_connectors();
> }
> if (data.non_big_joiner_output_count > 1) {
> igt_dynamic_f("multi") {
> - toggle_force_joiner_on_all_non_big_joiner_outputs(&data, true);
> + enable_force_joiner_on_all_non_big_joiner_outputs(&data);
> test_multi_joiner(&data, data.non_big_joiner_output_count, true);
> - toggle_force_joiner_on_all_non_big_joiner_outputs(&data, false);
> + igt_reset_connectors();
> }
> }
> }
> @@ -405,16 +405,16 @@ igt_main
> "Minimum of 2 pipes are required\n");
> if (data.non_big_joiner_output_count >= 1) {
> igt_dynamic_f("big_joiner_on_last_pipe") {
> - toggle_force_joiner_on_all_non_big_joiner_outputs(&data, true);
> + enable_force_joiner_on_all_non_big_joiner_outputs(&data);
> test_joiner_on_last_pipe(&data, true);
> - toggle_force_joiner_on_all_non_big_joiner_outputs(&data, false);
> + igt_reset_connectors();
> }
> }
> if (data.non_big_joiner_output_count > 1) {
> igt_dynamic_f("invalid_combinations") {
> - toggle_force_joiner_on_all_non_big_joiner_outputs(&data, true);
> + enable_force_joiner_on_all_non_big_joiner_outputs(&data);
> test_invalid_modeset_two_joiner(&data, false, true);
> - toggle_force_joiner_on_all_non_big_joiner_outputs(&data, false);
> + igt_reset_connectors();
> }
> }
> }
> @@ -422,5 +422,6 @@ igt_main
> igt_fixture {
> igt_display_fini(&data.display);
> drm_close_driver(data.drm_fd);
> + igt_reset_connectors();
> }
> }
next prev parent reply other threads:[~2024-04-22 11:09 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-22 5:34 [PATCH i-g-t 0/7] cleanup and fixes for kms_big_joiner Kunal Joshi
2024-04-22 5:34 ` [PATCH i-g-t 1/7] lib/igt_kms: don't run on unsupported platform Kunal Joshi
2024-04-22 10:40 ` Modem, Bhanuprakash
2024-04-22 5:34 ` [PATCH i-g-t 2/7] tests/intel/kms_big_joiner: fix crash in multi joiner test Kunal Joshi
2024-04-22 5:34 ` [PATCH i-g-t 3/7] tests/intel/kms_big_joiner: add missing commit after reset Kunal Joshi
2024-04-22 10:40 ` Modem, Bhanuprakash
2024-04-22 5:34 ` [PATCH i-g-t 4/7] lib/igt_kms: add support for forcing bigjoiner on particular connector Kunal Joshi
2024-04-22 10:59 ` Modem, Bhanuprakash
2024-04-22 5:34 ` [PATCH i-g-t 5/7] tests/intel/kms_big_joiner: use kmstest_force_connector_bigjoiner Kunal Joshi
2024-04-22 11:09 ` Modem, Bhanuprakash [this message]
2024-04-22 5:34 ` [PATCH i-g-t 6/7] lib/igt_kms: remove unused igt_force_and_check_bigjoiner_status Kunal Joshi
2024-04-22 5:34 ` [PATCH i-g-t 7/7] HAX: Do not merge Kunal Joshi
2024-04-22 11:37 ` ✗ Fi.CI.BAT: failure for cleanup and fixes for kms_big_joiner (rev4) Patchwork
2024-04-22 11:47 ` ✓ CI.xeBAT: success " Patchwork
2024-04-22 18:51 ` ✗ CI.xeFULL: failure " Patchwork
2024-04-23 8:55 ` [PATCH i-g-t 0/7] cleanup and fixes for kms_big_joiner Modem, Bhanuprakash
-- strict thread matches above, loose matches on Subject: below --
2024-04-19 6:39 Kunal Joshi
2024-04-19 6:39 ` [PATCH i-g-t 5/7] tests/intel/kms_big_joiner: use kmstest_force_connector_bigjoiner Kunal Joshi
2024-04-18 15:28 [PATCH i-g-t 0/7] cleanup and fixes for kms_big_joiner Kunal Joshi
2024-04-18 15:28 ` [PATCH i-g-t 5/7] tests/intel/kms_big_joiner: use kmstest_force_connector_bigjoiner Kunal Joshi
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=d2ac0668-fa17-46ca-98c6-5830c14fca93@intel.com \
--to=bhanuprakash.modem@intel.com \
--cc=ankit.k.nautiyal@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=kunal1.joshi@intel.com \
--cc=ville.syrjala@linux.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 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.