From: Jani Nikula <jani.nikula@intel.com>
To: "Garg, Nemesa" <nemesa.garg@intel.com>,
"Samala, Pranay" <pranay.samala@intel.com>,
"igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>
Cc: "B S, Karthik" <karthik.b.s@intel.com>,
"Lattannavar, Sameer" <sameer.lattannavar@intel.com>,
"Samala, Pranay" <pranay.samala@intel.com>
Subject: RE: [PATCH i-g-t 2/2] tests/intel/kms_sharpness_filter: Use stable non-joiner mode for joiner bypass
Date: Mon, 23 Mar 2026 11:29:26 +0200 [thread overview]
Message-ID: <2f87dff630bfb060e15f8abf6ec46f88b39297e1@intel.com> (raw)
In-Reply-To: <IA1PR11MB6467222C2F24562B961BEFCDE34BA@IA1PR11MB6467.namprd11.prod.outlook.com>
On Mon, 23 Mar 2026, "Garg, Nemesa" <nemesa.garg@intel.com> wrote:
>> -----Original Message-----
>> From: igt-dev <igt-dev-bounces@lists.freedesktop.org> On Behalf Of Pranay
>> Samala
>> Sent: Monday, March 23, 2026 10:41 AM
>> To: igt-dev@lists.freedesktop.org
>> Cc: B S, Karthik <karthik.b.s@intel.com>; Lattannavar, Sameer
>> <sameer.lattannavar@intel.com>; Samala, Pranay
>> <pranay.samala@intel.com>
>> Subject: [PATCH i-g-t 2/2] tests/intel/kms_sharpness_filter: Use stable non-
>> joiner mode for joiner bypass
>>
>> When joiner mode is detected, fetch a non-joiner mode into local variable
>> and store it into the caller-owned copy.
>>
>> Also override the selected mode before commit so the programmed output
>> mode matches the mode used by the test.
>>
>> Fixes: 10dccc7fc82f ("tests/intel/kms_sharpness_filter: Detect and bypass
>> joiner modes")
>> Signed-off-by: Pranay Samala <pranay.samala@intel.com>
>> ---
>> tests/intel/kms_sharpness_filter.c | 10 +++++++---
>> 1 file changed, 7 insertions(+), 3 deletions(-)
>>
>> diff --git a/tests/intel/kms_sharpness_filter.c
>> b/tests/intel/kms_sharpness_filter.c
>> index 96fb139ae..881fab746 100644
>> --- a/tests/intel/kms_sharpness_filter.c
>> +++ b/tests/intel/kms_sharpness_filter.c
>> @@ -430,6 +430,7 @@ run_sharpness_filter_test(data_t *data, enum
>> test_type type)
>> igt_display_t *display = &data->display;
>> igt_output_t *output;
>> igt_crtc_t *crtc;
>> + drmModeModeInfo selected_mode;
>> char name[40];
>>
>> for_each_connected_output(display, output) { @@ -438,15 +439,17
>> @@ run_sharpness_filter_test(data_t *data, enum test_type type)
>>
>> data->output = output;
>> data->crtc = crtc;
>> - data->mode = igt_output_get_mode(data->output);
>>
>> /*
>> * FIXME: Joiner + CASF currently unsupported.
>> * Remove this check once support is implemented.
>> * Until then, run on non-joiner mode in joiner
>> configuration.
>> */
>> - if (is_joiner_mode(data->drm_fd, data->output)) {
>> - data->mode =
>> igt_get_non_joiner_mode(data->drm_fd, data->output);
>
> Hi Pranay,
> I guess instead of retuning bool value we can the pointer whether NULL or not and then assign the mode , something like this:
> If(!igt_get_non_joiner_mode(data->drm_fd, data->output))
> data->mode = igt_get_non_joiner_mode(data->drm_fd, data->output);
Yeah, there are many ways to accomplish the same without changing
igt_get_non_joiner_mode() function.
BR,
Jani.
>
> Thanks,
> Nemesa
>
>> + if (is_joiner_mode(data->drm_fd, data->output) &&
>> + igt_get_non_joiner_mode(data->drm_fd,
>> + data->output,
>> + &selected_mode)) {
>> + data->mode = &selected_mode;
>> igt_info("Executing on mode %dx%d@%d\n",
>> data->mode->hdisplay,
>> data->mode->vdisplay,
>> @@ -463,6 +466,7 @@ run_sharpness_filter_test(data_t *data, enum
>> test_type type)
>>
>> igt_output_set_crtc(data->output,
>> data->crtc);
>> + igt_output_override_mode(data->output, data-
>> >mode);
>>
>> if (!intel_pipe_output_combo_valid(display)) {
>> igt_output_set_crtc(data->output, NULL);
>> --
>> 2.34.1
>
--
Jani Nikula, Intel
next prev parent reply other threads:[~2026-03-23 9:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-23 5:10 [PATCH i-g-t 0/2] Fix non-joiner mode helper and use it in test Pranay Samala
2026-03-23 5:10 ` [PATCH i-g-t 1/2] lib/igt_kms: Make helper use out-parameter Pranay Samala
2026-03-23 9:25 ` Jani Nikula
2026-03-23 5:10 ` [PATCH i-g-t 2/2] tests/intel/kms_sharpness_filter: Use stable non-joiner mode for joiner bypass Pranay Samala
2026-03-23 7:29 ` Garg, Nemesa
2026-03-23 9:29 ` Jani Nikula [this message]
2026-03-23 13:02 ` 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=2f87dff630bfb060e15f8abf6ec46f88b39297e1@intel.com \
--to=jani.nikula@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=karthik.b.s@intel.com \
--cc=nemesa.garg@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