From: Louis Chauvet <louis.chauvet@bootlin.com>
To: Karthik B S <karthik.b.s@intel.com>, igt-dev@lists.freedesktop.org
Cc: Petri Latvala <adrinael@adrinael.net>,
Arkadiusz Hiler <arek@hiler.eu>,
Kamil Konieczny <kamil.konieczny@linux.intel.com>,
Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>,
Bhanuprakash Modem <bhanuprakash.modem@intel.com>,
Ashutosh Dixit <ashutosh.dixit@intel.com>,
Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
nicolejadeyee@google.com, seanpaul@google.com,
jeremie.dautheribes@bootlin.com, markyacoub@google.com
Subject: Re: [PATCH i-g-t v4 5/5] lib/igt_kms: Add function to get valid pipe for specific output
Date: Mon, 27 Jan 2025 15:44:05 +0100 [thread overview]
Message-ID: <5191beb1-a074-49d7-9662-4c6bee6d83f4@bootlin.com> (raw)
In-Reply-To: <3a4ee176-d941-45e7-893e-015727fed23e@intel.com>
Le 24/01/2025 à 05:26, Karthik B S a écrit :
>> +/**
>> + * igt_get_pipe_for_output:
>> + * @display: display to fetch the pipes
>> + * @output: output to use
>> + *
>> + * Get a valid pipe for a specific output. The return value is the pipe first valid pipe for a
>> + * specific output.
>> + */
>> +enum pipe igt_get_pipe_for_output(igt_display_t *display,
>> + igt_output_t *output)
>> +{
>> + enum pipe pipe;
>> +
>> + for_each_pipe(display, pipe) {
>> + if (igt_output_is_connected(output) &&
>> + (output->config.valid_crtc_idx_mask & (1 << (pipe))))
>
> Please use 'igt_pipe_connector_valid'.
Sorry, I probably extended it to debug something and forgot to unexpand.
It will be fixed for the next iteration.
> Also, this function is mostly a duplicate of the existing
> 'chamelium_get_pipe_for_output'. Could we reuse the existing function
> here instead of adding a new one?
I know, but:
1 - chamelium_get_pipe_for_output is only enabled with the chamelium
build option;
2 - chamelium_get_pipe_for_output also enables the pipe during the process.
For 1, I can simply replace all calls to use the new helper.
For 2, I need to understand why they choose to call igt_output_set_pipe
to get a pipe to see if I can simply replace the chamelium helper by
mine or if I need to change my helper to do the same thing.
Thanks,
Louis Chauvet
> Thanks,
> Karthik.B.S
>> + return pipe;
>> + }
>> +
>> + return PIPE_NONE;
>> +}
--
Louis Chauvet, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2025-01-27 14:44 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-10 17:42 [PATCH i-g-t v4 0/5] lib/igt_kms: Helpers for connector managment Louis Chauvet
2025-01-10 17:42 ` [PATCH i-g-t v4 1/5] lib/igt_kms: Add a detect timeout value Louis Chauvet
2025-03-19 8:41 ` [i-g-t,v4,1/5] " Joshi, Kunal1
2025-01-10 17:42 ` [PATCH i-g-t v4 2/5] lib/igt_kms: Add helper to wait for a specific status on a connector Louis Chauvet
2025-03-19 8:46 ` [i-g-t,v4,2/5] " Joshi, Kunal1
2025-01-10 17:42 ` [PATCH i-g-t v4 3/5] lib/igt_kms: Add function to list connected connectors Louis Chauvet
2025-01-10 17:42 ` [PATCH i-g-t v4 4/5] lib/igt_kms: Add helper to obtain a connector by its name or MST path Louis Chauvet
2025-01-10 17:42 ` [PATCH i-g-t v4 5/5] lib/igt_kms: Add function to get valid pipe for specific output Louis Chauvet
2025-01-24 4:26 ` Karthik B S
2025-01-27 14:44 ` Louis Chauvet [this message]
2025-02-03 5:04 ` Karthik B S
2025-01-10 18:47 ` ✓ i915.CI.BAT: success for lib/igt_kms: Helpers for connector managment (rev4) Patchwork
2025-01-10 19:08 ` ✗ Xe.CI.BAT: failure " Patchwork
2025-01-14 21:18 ` ✗ 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=5191beb1-a074-49d7-9662-4c6bee6d83f4@bootlin.com \
--to=louis.chauvet@bootlin.com \
--cc=adrinael@adrinael.net \
--cc=arek@hiler.eu \
--cc=ashutosh.dixit@intel.com \
--cc=bhanuprakash.modem@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=jeremie.dautheribes@bootlin.com \
--cc=juhapekka.heikkila@gmail.com \
--cc=kamil.konieczny@linux.intel.com \
--cc=karthik.b.s@intel.com \
--cc=markyacoub@google.com \
--cc=nicolejadeyee@google.com \
--cc=seanpaul@google.com \
--cc=thomas.petazzoni@bootlin.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