From: Jani Nikula <jani.nikula@intel.com>
To: "Garg, Nemesa" <nemesa.garg@intel.com>,
"igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>
Subject: RE: [PATCH i-g-t 7/7] tests/kms_writeback: use for_each_connector_mode()
Date: Fri, 10 Apr 2026 19:36:39 +0300 [thread overview]
Message-ID: <fe3a36d4e10cd42fb99d2842e91163c8dce7e8c9@intel.com> (raw)
In-Reply-To: <IA1PR11MB6467BB397635AC8B4F62B494E3582@IA1PR11MB6467.namprd11.prod.outlook.com>
On Thu, 09 Apr 2026, "Garg, Nemesa" <nemesa.garg@intel.com> wrote:
>> -----Original Message-----
>> From: igt-dev <igt-dev-bounces@lists.freedesktop.org> On Behalf Of Jani
>> Nikula
>> Sent: Thursday, April 9, 2026 1:51 AM
>> To: igt-dev@lists.freedesktop.org
>> Cc: Nikula, Jani <jani.nikula@intel.com>
>> Subject: [PATCH i-g-t 7/7] tests/kms_writeback: use
>> for_each_connector_mode()
>>
>> We have a helper for looping the output modes. Use it.
>>
> Nit: Please remove extra space. With this
Whoops, somehow a bunch of tabs crept in the commit messages. Fixed
while applying.
> Reviewed-by: Nemesa Garg <nemesa.garg@intel.com>
Thanks a lot, pushed.
BR,
Jani.
>
>> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
>> ---
>> tests/kms_writeback.c | 10 +++++++---
>> 1 file changed, 7 insertions(+), 3 deletions(-)
>>
>> diff --git a/tests/kms_writeback.c b/tests/kms_writeback.c index
>> f15abba96765..d189f2f04657 100644
>> --- a/tests/kms_writeback.c
>> +++ b/tests/kms_writeback.c
>> @@ -468,10 +468,14 @@ static igt_output_t
>> *list_writeback_modes(igt_display_t *display)
>> igt_output_t *output = &display->outputs[i];
>>
>> if (output->config.connector->connector_type ==
>> DRM_MODE_CONNECTOR_WRITEBACK) {
>> + drmModeModeInfo *mode;
>> + int j = 0;
>> +
>> igt_info("\tname vref hdis hss hse htot vdis vss vse
>> vtot flags type clock\n");
>> - for (int j = 0; j < output->config.connector-
>> >count_modes; j++) {
>> - igt_info("[%d]", j);
>> - kmstest_dump_mode(&output-
>> >config.connector->modes[j]);
>> +
>> + for_each_connector_mode(output, mode) {
>> + igt_info("[%d]", j++);
>> + kmstest_dump_mode(mode);
>> }
>> break;
>> }
>> --
>> 2.47.3
>
--
Jani Nikula, Intel
next prev parent reply other threads:[~2026-04-10 16:36 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-08 20:21 [PATCH i-g-t 0/7] igt: for_each_connector_mode() cleanups Jani Nikula
2026-04-08 20:21 ` [PATCH i-g-t 1/7] lib/kms: pass mode parameter to for_each_connector_mode() Jani Nikula
2026-04-09 3:59 ` Garg, Nemesa
2026-04-08 20:21 ` [PATCH i-g-t 2/7] tests/intel/kms_dp_linktrain_fallback: remove mode from data Jani Nikula
2026-04-09 3:58 ` Garg, Nemesa
2026-04-08 20:21 ` [PATCH i-g-t 3/7] tests/intel/kms_flip_scaled_crc: use for_each_connector_mode() Jani Nikula
2026-04-09 3:57 ` Garg, Nemesa
2026-04-08 20:21 ` [PATCH i-g-t 4/7] tests/intel/kms_pm_rpm: " Jani Nikula
2026-04-09 4:00 ` Garg, Nemesa
2026-04-08 20:21 ` [PATCH i-g-t 5/7] tests/kms_plane_lowres: " Jani Nikula
2026-04-09 3:57 ` Garg, Nemesa
2026-04-08 20:21 ` [PATCH i-g-t 6/7] tests/kms_plane_scaling: " Jani Nikula
2026-04-09 3:57 ` Garg, Nemesa
2026-04-08 20:21 ` [PATCH i-g-t 7/7] tests/kms_writeback: " Jani Nikula
2026-04-09 3:56 ` Garg, Nemesa
2026-04-10 16:36 ` Jani Nikula [this message]
2026-04-09 20:57 ` ✓ Xe.CI.BAT: success for igt: for_each_connector_mode() cleanups Patchwork
2026-04-09 21:26 ` ✓ i915.CI.BAT: " Patchwork
2026-04-09 21:54 ` ✓ Xe.CI.FULL: " Patchwork
2026-04-10 13:48 ` ✓ 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=fe3a36d4e10cd42fb99d2842e91163c8dce7e8c9@intel.com \
--to=jani.nikula@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=nemesa.garg@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.