[PATCH i-g-t v3 0/5] lib/igt_kms: Helpers for connector managment

Louis Chauvet louis.chauvet at bootlin.com
Fri Nov 22 15:19:03 UTC 2024


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 at 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 |   3 +
 lib/igt_kms.c  | 254 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 lib/igt_kms.h  |  17 ++++
 3 files changed, 274 insertions(+)
---
base-commit: 84e42580f918da926481fd2fb37be01451d6ee9a
change-id: 20240828-b4-cv3-01-igt-kms-3e5af6a4c05e

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



More information about the igt-dev mailing list