[PATCH i-g-t v4 0/5] lib/igt_kms: Helpers for connector managment
Louis Chauvet
louis.chauvet at bootlin.com
Fri Jan 10 17:42:49 UTC 2025
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 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 at bootlin.com>
More information about the igt-dev
mailing list