Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t v4 0/5] lib/igt_kms: Helpers for connector managment
@ 2025-01-10 17:42 Louis Chauvet
  2025-01-10 17:42 ` [PATCH i-g-t v4 1/5] lib/igt_kms: Add a detect timeout value Louis Chauvet
                   ` (7 more replies)
  0 siblings, 8 replies; 14+ messages in thread
From: Louis Chauvet @ 2025-01-10 17:42 UTC (permalink / raw)
  To: igt-dev
  Cc: Petri Latvala, Arkadiusz Hiler, Kamil Konieczny,
	Juha-Pekka Heikkila, Bhanuprakash Modem, Ashutosh Dixit,
	Thomas Petazzoni, nicolejadeyee, seanpaul, jeremie.dautheribes,
	markyacoub, Louis Chauvet

In preparation for the introduction of Chameleon v3, this series will add 
a few helper functions that will be used:

 - A configurable timeout value, to be used by Chameleon's autodetection 
   algorithm and connector status detection
 - A helper function to wait for a specific connector status
 - A way to list all connected connectors
 - A way to get a connector object by its name or MST path
 - A helper function to get a valid pipe for a specific output"

Signed-off-by: Louis Chauvet <louis.chauvet@bootlin.com>
---
Changes in v4:
- Return double instead of float for igt_default_display_detect_timeout
- Remove useless warn
- Remove exact comparison with float, add timeouts
- Simplified the igt_get_connected_connectors with the suggestion of Kamil
- Remove asserts
- Fix style issues
- Link to v3: https://lore.kernel.org/r/20241122-b4-cv3-01-igt-kms-v3-0-c5ced6976e11@bootlin.com

Changes in v3:
- PATCH 5/5: Remove the igt_assert_f in library
- PATCH 4/5: Change hardcoded 50 size array with ARRAY_SIZE() macro
- PATCH 4/5: See PATCH 2/5
- PATCH 3/5: See PATCH 2/5
- PATCH 2/5: Use a different initialization for end so if timeout == 0.0, 
  there will be one attempt to get the connector
- PATCH 2/5: Use -1.0 as a special value instead of 0.0 to use 
igt_default_detect_timeout()
- PATCH 1/5: Change DetectTimeout to DisplayDetectTimeout
- PATCH 1/5: Handle errors while getting DisplayDetectTimeout value 
  from config file
- Link to v2: https://lore.kernel.org/r/20241022-b4-cv3-01-igt-kms-v2-0-8f654694b513@bootlin.com

Changes in v2:
- Rebased
- Fix a warning during compilation
- Link to v1: https://lore.kernel.org/r/20240828-b4-cv3-01-igt-kms-v1-0-d6e21b1e5d04@bootlin.com

---
Louis Chauvet (5):
      lib/igt_kms: Add a detect timeout value
      lib/igt_kms: Add helper to wait for a specific status on a connector
      lib/igt_kms: Add function to list connected connectors
      lib/igt_kms: Add helper to obtain a connector by its name or MST path
      lib/igt_kms: Add function to get valid pipe for specific output

 lib/igt_core.c |   4 +
 lib/igt_kms.c  | 270 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 lib/igt_kms.h  |  18 ++++
 3 files changed, 292 insertions(+)
---
base-commit: fb343db7fc59c760ef0a0c19303e7bcec177dbd9
change-id: 20240828-b4-cv3-01-igt-kms-3e5af6a4c05e

Best regards,
-- 
Louis Chauvet <louis.chauvet@bootlin.com>


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2025-03-19  8:46 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox