From: "Sharma, Swati2" <swati2.sharma@intel.com>
To: Jeevan B <jeevan.b@intel.com>, <igt-dev@lists.freedesktop.org>,
"Santhosh Reddy Guddati" <santhosh.reddy.guddati@intel.com>
Subject: Re: [PATCH i-g-t 1/3] lib/igt_kms: Add is_joiner_mode function
Date: Thu, 21 Nov 2024 23:35:05 +0530 [thread overview]
Message-ID: <6c583239-5f8c-4601-8e68-bedffa90db0d@intel.com> (raw)
In-Reply-To: <20241120174345.1970095-2-jeevan.b@intel.com>
Please add
Signed-off-by: Santhosh Reddy Guddati <santhosh.reddy.guddati@intel.com>
He did similar changes in
https://patchwork.freedesktop.org/patch/625225/?series=140349&rev=4
With this fixed, patch LGTM
Reviewed-by: Swati Sharma <swati2.sharma@intel.com>
On 20-11-2024 11:13 pm, Jeevan B wrote:
> Introduce a utility to check if bigjoiner or ultrajoiner
> mode is required based on requirement.
>
> Signed-off-by: Jeevan B <jeevan.b@intel.com>
> ---
> lib/igt_kms.c | 31 +++++++++++++++++++++++++++++++
> lib/igt_kms.h | 1 +
> 2 files changed, 32 insertions(+)
>
> diff --git a/lib/igt_kms.c b/lib/igt_kms.c
> index 76f32e1e0..6fb5822ee 100644
> --- a/lib/igt_kms.c
> +++ b/lib/igt_kms.c
> @@ -6441,6 +6441,37 @@ bool ultrajoiner_mode_found(int drm_fd, drmModeConnector *connector,
> return found;
> }
>
> +/**
> + * is_joiner_mode:
> + * @drm_fd: drm file descriptor
> + * @output: pointer to the output structure
> + *
> + * Checks if the current configuration requires Big Joiner or Ultra Joiner mode
> + * based on the maximum dot clock and connector settings.
> + *
> + * Returns: True if joiner mode is required, otherwise False.
> + */
> +bool is_joiner_mode(int drm_fd, igt_output_t *output)
> +{
> + bool is_joiner = false;
> + bool is_ultra_joiner = false;
> + int max_dotclock;
> + drmModeModeInfo mode;
> +
> + max_dotclock = igt_get_max_dotclock(drm_fd);
> + is_joiner = bigjoiner_mode_found(drm_fd,
> + output->config.connector,
> + max_dotclock, &mode);
> + is_ultra_joiner = ultrajoiner_mode_found(drm_fd,
> + output->config.connector,
> + max_dotclock, &mode);
> +
> + if (is_joiner || is_ultra_joiner)
> + return true;
> +
> + return false;
> +}
> +
> /**
> * igt_has_force_joiner_debugfs
> * @drmfd: A drm file descriptor
> diff --git a/lib/igt_kms.h b/lib/igt_kms.h
> index 301f370df..c2fbbb5b0 100644
> --- a/lib/igt_kms.h
> +++ b/lib/igt_kms.h
> @@ -1248,6 +1248,7 @@ bool igt_ultrajoiner_possible(drmModeModeInfo *mode, int max_dotclock);
> bool ultrajoiner_mode_found(int drm_fd, drmModeConnector *connector,
> int max_dotclock, drmModeModeInfo *mode);
> bool igt_has_force_joiner_debugfs(int drmfd, char *conn_name);
> +bool is_joiner_mode(int drm_fd, igt_output_t *output);
> bool igt_check_force_joiner_status(int drmfd, char *connector_name);
> bool igt_check_bigjoiner_support(igt_display_t *display);
> bool igt_parse_mode_string(const char *mode_string, drmModeModeInfo *mode);
next prev parent reply other threads:[~2024-11-21 18:05 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-20 17:43 [PATCH i-g-t 0/3] Skip test if joiner display is connected Jeevan B
2024-11-20 17:43 ` [PATCH i-g-t 1/3] lib/igt_kms: Add is_joiner_mode function Jeevan B
2024-11-21 18:05 ` Sharma, Swati2 [this message]
2024-11-20 17:43 ` [PATCH i-g-t 2/3] tests/kms_async_flips: Skip Async flips on joiner output Jeevan B
2024-11-21 18:07 ` Sharma, Swati2
2024-11-20 17:43 ` [PATCH i-g-t 3/3] tests/kms_display_modes: Skip test if joiner display is connected Jeevan B
2024-11-21 18:49 ` Sharma, Swati2
2024-11-20 18:53 ` ✓ Fi.CI.BAT: success for " Patchwork
2024-11-21 2:51 ` ✗ Xe.CI.Full: failure " Patchwork
2024-11-23 13:39 ` ✗ i915.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=6c583239-5f8c-4601-8e68-bedffa90db0d@intel.com \
--to=swati2.sharma@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=jeevan.b@intel.com \
--cc=santhosh.reddy.guddati@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