Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Karthik B S <karthik.b.s@intel.com>
To: Swati Sharma <swati2.sharma@intel.com>, <igt-dev@lists.freedesktop.org>
Subject: Re: [PATCH i-g-t, v6 1/4] tests/intel/kms_joiner_helper: Add igt_get_joined_pipes_name()
Date: Fri, 15 May 2026 11:36:35 +0530	[thread overview]
Message-ID: <eb17875f-71fe-4d5c-bb57-4aeec26cf6a2@intel.com> (raw)
In-Reply-To: <20260430190947.2347314-2-swati2.sharma@intel.com>


On 5/1/2026 12:39 AM, Swati Sharma wrote:
> Add function to transform the enum into a string.
>
> v2: -Improved func() doc (Jeevan)
> v3: -Return names without '-' dash prefix (Santhosh)
> v4: -Move from lib/igt_kms to tests/intel/kms_joiner_helper (Jani)
>
> Signed-off-by: Swati Sharma <swati2.sharma@intel.com>
Reviewed-by: Karthik B S <karthik.b.s@intel.com>
> ---
>   tests/intel/kms_joiner_helper.c | 22 ++++++++++++++++++++++
>   tests/intel/kms_joiner_helper.h |  1 +
>   2 files changed, 23 insertions(+)
>
> diff --git a/tests/intel/kms_joiner_helper.c b/tests/intel/kms_joiner_helper.c
> index e24d7ce94..0aa409ac2 100644
> --- a/tests/intel/kms_joiner_helper.c
> +++ b/tests/intel/kms_joiner_helper.c
> @@ -183,3 +183,25 @@ bool igt_assign_pipes_for_outputs(int drm_fd,
>   	}
>   	return true;
>   }
> +
> +/**
> + * igt_get_joined_pipes_name:
> + * @val: joined_pipes enum value
> + *
> + * Returns: A readable string for the given joined_pipes enum value.
> + */
> +const char *igt_get_joined_pipes_name(enum joined_pipes val)
> +{
> +	switch (val) {
> +	case JOINED_PIPES_DEFAULT:
> +		return "";
> +	case JOINED_PIPES_NONE:
> +		return "none";
> +	case JOINED_PIPES_BIG_JOINER:
> +		return "bigjoiner";
> +	case JOINED_PIPES_ULTRA_JOINER:
> +		return "ultrajoiner";
> +	default:
> +		igt_assert(false);
> +	}
> +}
> diff --git a/tests/intel/kms_joiner_helper.h b/tests/intel/kms_joiner_helper.h
> index 6d21e7eb0..1ea871a3b 100644
> --- a/tests/intel/kms_joiner_helper.h
> +++ b/tests/intel/kms_joiner_helper.h
> @@ -17,6 +17,7 @@ bool igt_assign_pipes_for_outputs(int drm_fd,
>   				  uint32_t *used_pipes_mask,
>   				  uint32_t master_pipes_mask,
>   				  uint32_t valid_pipes_mask);
> +const char *igt_get_joined_pipes_name(enum joined_pipes val);
>   
>   enum force_joiner_mode {
>   	FORCE_JOINER_ENABLE = 0,

  reply	other threads:[~2026-05-15  6:07 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-30 19:09 [PATCH i-g-t,v6 0/4] Add dsc+bigjoiner subtest Swati Sharma
2026-04-30 19:09 ` [PATCH i-g-t, v6 1/4] tests/intel/kms_joiner_helper: Add igt_get_joined_pipes_name() Swati Sharma
2026-05-15  6:06   ` Karthik B S [this message]
2026-04-30 19:09 ` [PATCH i-g-t, v6 2/4] tests/kms_joiner_helper: Add igt_is_joiner_supported_by_source() Swati Sharma
2026-05-15  6:18   ` Karthik B S
2026-04-30 19:09 ` [PATCH i-g-t,v6 3/4] tests/intel/kms_dsc_helper: Add helper func() Swati Sharma
2026-05-15  8:36   ` Karthik B S
2026-04-30 19:09 ` [PATCH i-g-t, v6 4/4] tests/intel/kms_dsc: Add force dsc and joiner test cases Swati Sharma
2026-05-15  8:42   ` Karthik B S
2026-04-30 20:34 ` ✓ Xe.CI.BAT: success for Add dsc+bigjoiner subtest (rev8) Patchwork
2026-04-30 20:43 ` ✓ i915.CI.BAT: " Patchwork
2026-05-01  1:26 ` ✗ i915.CI.Full: failure " Patchwork
2026-05-01  7:11 ` ✗ Xe.CI.FULL: " 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=eb17875f-71fe-4d5c-bb57-4aeec26cf6a2@intel.com \
    --to=karthik.b.s@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=swati2.sharma@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