Unigraf integration
Subsystems (2)
v7 cover Unigraf integration
Hi everyone,
I am excited to share I currently have access to a Unigraf device, which I believe could significantly enhance the capabilities within IGT. This device has the potential to enable testing of low-level hardware features that are currently not covered. Specifically, Unigraf devices can assist in testing link training, signal integrity, HDCP, DSC, and more.
It's important to note that the Unigraf SDK is not open-source, and the communication protocol with the device is proprietary. As a result, I have utilized the libTSI.so library, which can be downloaded from [1]. In this series, I have not used the official TSI_types.h header because it was incompatible with C, so I hardcoded some necessary values.
This series is a bit longer than I expected, but can be splitted to be merged faster:
- PATCHES 1..16: Preparation for the series, I decided to move them at the start to avoid mixing unigraf and igt modifications
- PATCHES 17..19: Add basic unigraf configuration
- *PATCH 20: Autoconnect unigraf when configured
- *PATCHES 21..23: Add more unigraf configuration
- PATCHES 24..29: Add basic unigraf helpers
- *PATCH 30: First basic unigraf test (connection, MST stream count)
- *PATCHES 31..35: Add CRC calculation using unigraf instead of GPU CRC
- PATCHES 36..43: Move i915-specific helpers and create generic ones, clean some code
- PATCHES 44..47: Add unigraf configuration for link configuration
- *PATCHES 48: Add link training tests
Each * is a new feature and the series can be partially applied to this point.
Thanks,
Louis Chauvet
---
Changes in v7:
- Applied Kory's comments (I forgot to update this list ...)
- Link to v6: https://lore.kernel.org/r/[email protected]
Changes in v6:
- Fix missed conflicts on master, I don't know how I missed them, sorry
- Link to v5: https://lore.kernel.org/r/[email protected]
Changes in v5:
- Fixed all feedback from Luca (thanks a lot!)
- Added PATCHES 39..40 to clean i915/dp (checkpatch warning)
- Reordered 31..48 to be able to apply partially the series if needed.
- Few modifications of 31..48 to rebase on master and apply some Luca's
comments
- Link to v4: https://lore.kernel.org/r/[email protected]
Changes in v4:
- Rebased on master
- Fixed multiple unigraf callbacks
- Created link training tests
- Link to v3: https://lore.kernel.org/r/[email protected]
Changes in v3:
- Rebased on master
- Added support for MST
- Repair autodetection and CRC usage
- Link to v2: https://lore.kernel.org/r/[email protected]
Changes in v2:
- Splitted in many commits
- Add CRC support
- Link to v1: https://lore.kernel.org/r/[email protected]
---
Louis Chauvet (48):
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 helper to wait for new connectors lib/igt_kms: Add helper to get a pipe from a connector lib/igt_kms: Expose dump_connector_attrs
lib/igt_kms: Expose reset_connectors_at_exit
lib/igt_kms: Expose connector_attr_set and igt_connector_attr_set lib/igt_debugfs: Move debugfs helpers to the proper location lib/igt_debugfs: Add const when make sense
lib/igt_amd: Add const when make sense
lib/igt_kms: Add const when make sense
lib/monitor_edids: Add helper functions for using monitor_edid objects lib/monitor_edids: Add helper to get an EDID by its name lib/monitor_edids: Add helper to print all available EDID names lib/unigraf: Add used defines for TSI_Types
lib/unigraf: Add TSI.h
lib/unigraf: Initial Unigraf support
lib/igt_kms: Automatically connect unigraf on display require lib/unigraf: Introduce device configuration
lib/unigraf: Introduce role configuration
lib/unigraf: Introduce input configuration
lib/unigraf: Add reset function
lib/unigraf: Add unigraf assert and deassert helpers lib/unigraf: Add plug/unplug helpers
lib/unigraf: Allows sst/mst configuration
lib/unigraf: Add helpers to read and write edid lib/unigraf: Add connector and EDID configuration tests/unigraf: Add basic unigraf tests
lib/unigraf: Add unigraf CRC capture
lib/unigraf: Add configuration for CRC usage
lib/unigraf: add unigraf_get_connector_by_stream lib/unigraf: Add helper to check timings received by unigraf lib/igt_pipe_crc: Add unigraf crc calculation
lib/i915/dp: Move DP-related function for i915 to proper folder lib/i915/dp: Rename functions to avoid confusion lib/i915/dp: Add helper to get maximum supported rate lib/i915/dp: Properly check sscanf results
lib/i915/dp: Use igt_output_name instead of private field lib/igt_dp: Create generic helpers for DP information lib/igt_kms: Add asserts to avoid null pointer dereference lib/igt_kms: Add helper to get a CRTC from an output lib/unigraf: Add lane count configuration
docs/unigraf: Add unigraf documentation
lib/unigraf: Add helpers to set maximum link rate lib/unigraf: Add helpers to get the current LT status tests/unigraf/unigraf_lt: Add test for link training
docs/unigraf.txt | 81 +++ lib/i915/i915_dp.c | 392 +++++++++++++ lib/i915/i915_dp.h | 23 + lib/igt_amd.c | 2 +- lib/igt_amd.h | 2 +- lib/igt_core.c | 33 ++ lib/igt_core.h | 9 + lib/igt_debugfs.c | 96 +++- lib/igt_debugfs.h | 15 +- lib/igt_dp.c | 177 ++++++ lib/igt_dp.h | 30 + lib/igt_kms.c | 831 ++++++++++++++-------------- lib/igt_kms.h | 41 +- lib/igt_pipe_crc.c | 35 ++ lib/meson.build | 12 + lib/monitor_edids/dp_edids.h | 3 + lib/monitor_edids/hdmi_edids.h | 3 + lib/monitor_edids/monitor_edids_helper.c | 126 +++++ lib/monitor_edids/monitor_edids_helper.h | 10 +- lib/unigraf/TSI.h | 228 ++++++++ lib/unigraf/TSI_types.h | 126 +++++ lib/unigraf/unigraf.c | 907 +++++++++++++++++++++++++++++++ lib/unigraf/unigraf.h | 105 ++++ meson.build | 14 + tests/intel/kms_dp_link_training.c | 19 +- tests/intel/kms_dp_linktrain_fallback.c | 57 +- tests/meson.build | 4 + tests/unigraf/meson.build | 13 + tests/unigraf/unigraf_connectivity.c | 135 +++++ tests/unigraf/unigraf_lt.c | 183 +++++++ 30 files changed, 3243 insertions(+), 469 deletions(-)
---
base-commit: 4987fcaab16c415042d0969743877a8141625589
change-id: 20250425-unigraf-integration-11ed330755d5
Best regards,
Signature · 1 line
Louis Chauvet <[email protected]>
PATCH v7 1/48 lib/igt_kms: Add a detect timeout value
Some tests need to wait for a specific connector status. In order to make the timeout customisable for each target, add an option in the configuration file.
--- lib/igt_core.c | 33 +++++++++++++++++++++++++++++++++ lib/igt_core.h | 9 +++++++++ lib/igt_kms.c | 1 + 3 files changed, 43 insertions(+)
lib/igt_core.c +33 -0
@@ -26,6 +26,7 @@* */ +#include "igt_kms.h" #ifdef HAVE_LIBGEN_H #include <libgen.h> #endif
@@ -271,6 +272,10 @@* # It is not mandatory and allows overriding default values. * [DUT] * SuspendResumeDelay=10 +* +* # The following option define the timeout (in seconds) for detection feature +* # (waiting for a connector status) +* DisplayDetectTimeout=10.0 * ]| * * Some specific configuration options may be used by specific parts of IGT,
@@ -379,6 +384,21 @@ static bool stderr_needs_sentinel = false;static int _igt_dynamic_tests_executed =-1 ; +/** +* default_display_detect_timeout: Timeout for display detection, in seconds +*/ +static double default_display_detect_timeout; + +static void igt_set_default_display_detect_timeout (double timeout) +{ + default_display_detect_timeout = timeout; +} + +double igt_default_display_detect_timeout (void ) +{ +return default_display_detect_timeout; +} +static void print_backtrace (void ) {#ifndef HAVE_LIBUNWIND
@@ -1003,6 +1023,7 @@ static void common_init_config(void) {GError *error =NULL ;int ret =0 ; +static double timeout =0.0 ; igt_key_file =igt_load_igtrc ();
@@ -1023,6 +1044,18 @@ static void common_init_config(void)if (ret !=0 )igt_set_autoresume_delay (ret); +if (igt_key_file) + timeout =g_key_file_get_double (igt_key_file,"DUT" ,"DisplayDetectTimeout" , + &error); +if (error) { +igt_debug ("Failed to read DisplayDetectTimeout, defaulting to %f\n" , +DEFAULT_DETECT_TIMEOUT ); +g_clear_error (&error); + timeout =DEFAULT_DETECT_TIMEOUT ; + } +g_clear_error (&error); +igt_set_default_display_detect_timeout (timeout); +/* Adding filters, order .igtrc, IGT_DEVICE, --device filter */ if (igt_device_filter_count () >0 )igt_debug ("Notice: using --device filters:\n" );
lib/igt_core.h +9 -0
@@ -143,6 +143,13 @@ struct _GKeyFile *igt_load_igtrc(void);*/ #define IGT_EXIT_ABORT 112 +/** +* DEFAULT_DETECT_TIMEOUT +* +* Default timeout in second used for some screen detection +* functions. It can be overiden by option DetectTimeout in the .igtrc file. +*/ +#define DEFAULT_DETECT_TIMEOUT 10.0void __igt_assert_in_outer_scope (void );bool __igt_fixture (void );
@@ -446,6 +453,8 @@ void __igt_subtest_group_restore(int, int);*/ #define igt_main () igt_main_args(NULL, NULL, NULL, NULL, NULL) +double igt_default_display_detect_timeout (void ); +const char *igt_test_name (void ); void igt_simple_init_parse_opts(int *argc, char **argv, const char *extra_short_opts,
lib/igt_kms.c +1 -0
@@ -60,6 +60,7 @@#include "igt_debugfs.h" #include "igt_device.h" #include "igt_pipe_crc.h" +#include "igt_rc.h" #include "igt_sysfs.h" #include "sw_sync.h" #ifdef HAVE_CHAMELIUM
Signature · 1 line
2.52.0
Re: [PATCH i-g-t v7 01/48] lib/igt_kms: Add a detect timeout value
Quoted 3 lines · On Mon, 23 Feb 2026 13:09:08 +0100 Louis Chauvet <[email protected]>…
Some tests need to wait for a specific connector status. In order to make the timeout customisable for each target, add an option in the configuration file.
Thank you!
Signature · 3 lines
Köry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com
PATCH v7 2/48 lib/igt_kms: Add helper to wait for a specific status on a connector
In reply to Louis ChauvetDuring testing with chamelium, it is frequent to wait for a specific connector status. This new helper is polling the DRM API to wait for this status. This allows detecting it without notifier systems which can fail if hot plug detection is not working properly on the device under test.
--- lib/igt_kms.c | 40 ++++++++++++++++++++++++++++++++++++++++ lib/igt_kms.h | 3 +++ 2 files changed, 43 insertions(+)
lib/igt_kms.c +40 -0
@@ -7953,3 +7953,43 @@ bool igt_has_lobf_debugfs(int drmfd, igt_output_t *output) buf, sizeof(buf));return res ==0 ; } + +/** +* igt_wait_for_connector_status: +* @drm_fd: drm file descriptor +* @connector_id: connector to monitor +* @timeout: maximum duration to wait, in second. Use -1.0 to set the timeout +* to igt_default_detect_timeout(). +* @drm_mode: mode to wait for, see enum drmModeConnection +* +* Wait for at most @timeout that the connector @connector_id status +* become @drm_mode +* Returns: true when the status is reached, false if there is a timeout +*/ +bool igt_wait_for_connector_status (int drm_fd,unsigned int connector_id,double timeout, +int drm_mode) +{ +drmModeConnector *connector; +struct timespec start, end; + +if (timeout ==-1.0 ) + timeout =igt_default_display_detect_timeout (); + +clock_gettime (CLOCK_MONOTONIC , &start); + end = start; + +while (igt_time_elapsed (&start, &end) <= timeout) { + connector =drmModeGetConnector (drm_fd, connector_id); +if (connector && connector->connection == drm_mode) { +drmModeFreeConnector (connector); +return true; + } +drmModeFreeConnector (connector); +usleep (10000 ); +clock_gettime (CLOCK_MONOTONIC , &end); + } + +igt_debug ("Timeout waiting for connection status %d on connector %d\n" , drm_mode, + connector_id); +return false; +}
lib/igt_kms.h +3 -0
@@ -1319,4 +1319,7 @@ void igt_get_and_wait_out_fence(igt_output_t *output);igt_colorop_t *igt_find_colorop (igt_display_t *display,uint32_t id); +bool igt_wait_for_connector_status (int drm_fd,unsigned int connector_id,double timeout, +int drm_mode); +#endif /* __IGT_KMS_H__ */
Signature · 1 line
2.52.0
Re: [PATCH i-g-t v7 02/48] lib/igt_kms: Add helper to wait for a specific status on a connector
Quoted 4 lines · On Mon, 23 Feb 2026 13:09:09 +0100 Louis Chauvet <[email protected]>…
During testing with chamelium, it is frequent to wait for a specific connector status. This new helper is polling the DRM API to wait for this status. This allows detecting it without notifier systems which can fail if hot plug detection is not working properly on the device under test.
Thank you!
Signature · 3 lines
Köry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com
PATCH v7 3/48 lib/igt_kms: Add function to list connected connectors
In reply to Louis ChauvetIntroduce the igt_get_connected_connectors() function, which returns a list of connector IDs that are currently connected according to DRM.
This function includes a timeout mechanism because connectors can be unplugged at any time. Also, especially with MST, the connector can be listed by drmModeGetResources() but not yet accessible with drmModeGetConnector().
--- lib/igt_kms.c | 69 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ lib/igt_kms.h | 1 + 2 files changed, 70 insertions(+)
lib/igt_kms.c +69 -0
@@ -7954,6 +7954,30 @@ bool igt_has_lobf_debugfs(int drmfd, igt_output_t *output)return res ==0 ; } +static drmModeConnectorPtr igt_wait_for_connector (int drm_fd,unsigned int connector_id, +double timeout) +{ +drmModeConnectorPtr connector =NULL ; +struct timespec start, end; + + connector =drmModeGetConnector (drm_fd, connector_id); +/* +* This time is required as sometimes some id in the connector list are not totally +* ready or can disappear +*/ +clock_gettime (CLOCK_MONOTONIC , &start); + end = start; + +while (!connector && +igt_time_elapsed (&start, &end) <= timeout) { + connector =drmModeGetConnector (drm_fd, connector_id); +usleep (10000 ); +clock_gettime (CLOCK_MONOTONIC , &end); + } + +return connector; +} +/** * igt_wait_for_connector_status: * @drm_fd: drm file descriptor
@@ -7993,3 +8017,48 @@ bool igt_wait_for_connector_status(int drm_fd, unsigned int connector_id, double connector_id);return false; } + +/** +* igt_get_connected_connectors: +* +* @drm_fd: DRM file descriptor +* @connector_ids: Out pointer for the list of connector ids connected. The function +* will allocate and store the pointer in this out pointer. The caller is +* responsible to free the inner pointer using free(*connector_ids). caller. +* +* This will probe all the connectors and return the list of all +* connected connectors. +* Returns: The number of connectors in @connector_ids +*/ +int igt_get_connected_connectors (int drm_fd,uint32_t **connector_ids) +{ +int connected_count =0 ; +double timeout =igt_default_display_detect_timeout (); +drmModeResPtr resources; + +igt_assert (drm_fd); + *connector_ids =NULL ; + + resources =drmModeGetResources (drm_fd); +igt_assert (resources); +for (int j =0 ; j < resources->count_connectors; j++) { +drmModeConnectorPtr connector =igt_wait_for_connector (drm_fd, + resources->connectors[j], + timeout); + +if (connector) { +if (connector->connection ==DRM_MODE_CONNECTED ) { + *connector_ids =reallocarray (*connector_ids, + connected_count + +1 ,sizeof (**connector_ids)); +igt_assert (*connector_ids); + (*connector_ids)[connected_count] = resources->connectors[j]; + connected_count++; + } +drmModeFreeConnector (connector); + } + } +drmModeFreeResources (resources); + +return connected_count; +}
lib/igt_kms.h +1 -0
@@ -1321,5 +1321,6 @@ igt_colorop_t *igt_find_colorop(igt_display_t *display, uint32_t id);bool igt_wait_for_connector_status (int drm_fd,unsigned int connector_id,double timeout,int drm_mode); +int igt_get_connected_connectors (int drm_fd,uint32_t **connector_ids);#endif /* __IGT_KMS_H__ */
Signature · 1 line
2.52.0
Re: [PATCH i-g-t v7 03/48] lib/igt_kms: Add function to list connected connectors
Quoted 7 lines · On Mon, 23 Feb 2026 13:09:10 +0100 Louis Chauvet <[email protected]>…
Introduce the
igt_get_connected_connectors()function, which returns a list of connector IDs that are currently connected according to DRM.This function includes a timeout mechanism because connectors can be unplugged at any time. Also, especially with MST, the connector can be listed by
drmModeGetResources()but not yet accessible withdrmModeGetConnector().
There are memory leaks but it seems accepted by design in IGT. Then:
Thank you!
Signature · 3 lines
Köry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com
Re: [PATCH i-g-t v7 03/48] lib/igt_kms: Add function to list connected connectors
Hi Kory,
Quoted 6 lines · Kory Maincent
Quoted 3 lines · On Mon, 23 Feb 2026 13:09:10 +0100 Louis Chauvet <[email protected]>…
Introduce the
igt_get_connected_connectors()function, which returns a list of connector IDs that are currently connected according to DRM.
Quoted 6 lines
Quoted 4 lines
This function includes a timeout mechanism because connectors can be unplugged at any time. Also, especially with MST, the connector can be listed by
drmModeGetResources()but not yet accessible withdrmModeGetConnector().There are memory leaks but it seems accepted by design in IGT. Then:
Please point them out, lets try to remove them if possible,
Regards,
Kamil
Quoted 7 lines
Reviewed-by Kory Maincent <[email protected]>Thank you!
Signature · 3 lines
Köry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com
PATCH v7 4/48 lib/igt_kms: Add helper to obtain a connector by its name or MST path
In reply to Louis ChauvetIntroduce the functions igt_get_connector_from_name() and igt_get_connector_id_from_mst_path(). These functions serve to retrieve the connector object using a connector name and a connector ID from its MST path, respectively.
Given that the connector id may not be consistent, especially with MST connectors, these functions are essential to recognize each connector even after system reboots and plug/unplug events.
The function igt_get_connector_id_from_name() is a convenient wrapper for igt_get_connector_from_name() to streamline its usage when the caller only requires the connector id.
--- lib/igt_kms.c | 108 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ lib/igt_kms.h | 3 ++ 2 files changed, 111 insertions(+)
lib/igt_kms.c +108 -0
@@ -95,6 +95,10 @@#define MAX_EDID 2#define DISPLAY_TILE_BLOCK 0x12#define MAX_NUM_COLOROPS 256 +/** +* IGT_KMS_CONNECTOR_NAME_SIZE - Size used when a connector name is needed +*/ +#define IGT_KMS_CONNECTOR_NAME_SIZE 50typedef bool (*igt_connector_attr_set )(int dir,const char *attr,const char *value);
@@ -8062,3 +8066,107 @@ int igt_get_connected_connectors(int drm_fd, uint32_t **connector_ids)return connected_count; } + +/** +* igt_get_connector_from_name: +* @drm_fd: DRM file descriptor +* @port_name: Port name to search +* +* Returns: The connector if found, NULL otherwise. The pointer must +* be freed with drmModeFreeConnector() +*/ +drmModeConnectorPtr igt_get_connector_from_name (int drm_fd,const char *port_name) +{ +double timeout =igt_default_display_detect_timeout (); +drmModeResPtr res =drmModeGetResources (drm_fd); +int i; + +if (!res) +return NULL ; + +for (i =0 ; i < res->count_connectors; i++) { +char name[IGT_KMS_CONNECTOR_NAME_SIZE ]; +int len; + +drmModeConnectorPtr connector =igt_wait_for_connector (drm_fd, res->connectors[i], + timeout); + +if (connector) { +/* We have to generate the connector name on our own */ + len =snprintf (name,sizeof (name),"%s-%u" , +kmstest_connector_type_str (connector->connector_type), + connector->connector_type_id); + name[len] =0 ; + +if (strcmp (port_name, name) ==0 ) { +drmModeFreeResources (res); + +return connector; + } + +drmModeFreeConnector (connector); + } + } + +drmModeFreeResources (res); + +return NULL ; +} + +/** +* igt_get_connector_id_from_name: +* @drm_fd: DRM file descriptor +* @port_name: Port name to find in the connector +* +* Returns: The connector id if the port is found, 0 if the port is not found +*/ +uint32_t igt_get_connector_id_from_name (int drm_fd,const char *port_name) +{ +drmModeConnectorPtr connector =igt_get_connector_from_name (drm_fd, port_name); + +if (connector) { +uint32_t connector_id = connector->connector_id; + +drmModeFreeConnector (connector); + +return connector_id; + } + +return 0 ; +} + +/** +* igt_get_connector_id_from_mst_path: +* @drm_fd: DRM file descriptor +* @mst_path: MST path to find in the connector +* +* Returns: 0 when no connector is found with the correct mst path +*/ +uint32_t igt_get_connector_id_from_mst_path (int drm_fd,const void *mst_path) +{ +drmModeResPtr res =drmModeGetResources (drm_fd); +int i; + +if (!res) +return 0 ; + +for (i =0 ; i < res->count_connectors; i++) { +uint32_t connector_id = res->connectors[i]; + +drmModePropertyBlobPtr path_blob =kmstest_get_path_blob (drm_fd, connector_id); + +if (path_blob) { +if (memcmp (path_blob->data, mst_path, path_blob->length) ==0 ) { +drmModeFreePropertyBlob (path_blob); +drmModeFreeResources (res); +return connector_id; + } + +drmModeFreePropertyBlob (path_blob); + } + } + +drmModeFreeResources (res); + +return 0 ; +}
lib/igt_kms.h +3 -0
@@ -1322,5 +1322,8 @@ igt_colorop_t *igt_find_colorop(igt_display_t *display, uint32_t id);bool igt_wait_for_connector_status (int drm_fd,unsigned int connector_id,double timeout,int drm_mode);int igt_get_connected_connectors (int drm_fd,uint32_t **connector_ids); +drmModeConnectorPtr igt_get_connector_from_name (int drm_fd,const char *port_name); +uint32_t igt_get_connector_id_from_name (int drm_fd,const char *port_name); +uint32_t igt_get_connector_id_from_mst_path (int drm_fd,const void *mst_path);#endif /* __IGT_KMS_H__ */
Signature · 1 line
2.52.0
PATCH v7 5/48 lib/igt_kms: Add helper to wait for new connectors
In reply to Louis ChauvetAdd list comparison utilities and a new function to wait for new connectors to appear on the system.
--- lib/igt_kms.c | 96 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ lib/igt_kms.h | 6 ++++ 2 files changed, 102 insertions(+)
lib/igt_kms.c +96 -0
@@ -8170,3 +8170,99 @@ uint32_t igt_get_connector_id_from_mst_path(int drm_fd, const void *mst_path)return 0 ; } + +/** +* list_contains() - Search an element in the list +* +* @list: Pointer to the list to search into +* @list_len: Length of the list +* @value: Value to search in the list +* +* Returns true if @list contains @value +*/ +static bool list_contains (const uint32_t *list,int list_len,uint32_t value) +{ +igt_assert ((!list && list_len ==0 ) || list); +for (int i =0 ; i < list_len; i++) { +if (list[i] == value) +return true; + } +return false; +} + +/** +* get_list_diff() - Compute and return the set difference between two lists +* +* @list_a: Pointer to the first list to compare +* @list_a_len: Length of the first list +* @list_b: Pointer to the second list to compare +* @list_b_len: Length of the second list +* @diff: Out pointer returning a list of items in list_a but not +* in list_b. Can be NULL to only count the elements. +* +* Returns the number of element which are in @list_a but not in @list_b. +*/ +int +get_list_diff (const uint32_t *list_a,int list_a_len,const uint32_t *list_b,int list_b_len, +uint32_t **diff) +{ +int diff_len =0 ; + +igt_assert ((!list_a && list_a_len ==0 ) || list_a); +igt_assert ((!list_b && list_b_len ==0 ) || list_b); + +if (diff) + *diff =malloc (sizeof (**diff)); + +for (int i =0 ; i < list_a_len; i++) { +if (!list_contains (list_b, list_b_len, list_a[i])) { +if (diff) { + *diff =reallocarray (*diff, diff_len +1 ,sizeof (**diff)); +igt_assert (*diff); + (*diff)[diff_len] = list_a[i]; + } + + diff_len++; + } + } + +return diff_len; +} + +/** +* kms_wait_for_new_connectors() - Wait for new connector to appear +* +* @newly_connected: Out pointer returning the list of connectors currently +* found connected +* @already_connected: Input pointer to list of connectors previously +* connected +* @already_connected_count: Length of @already_connected +* @drm_fd: DRM file descriptor +* +* Returns the number of connectors not in @already_connected and currently +* found connected. +*/ +int kms_wait_for_new_connectors (uint32_t **newly_connected, +const uint32_t *already_connected, +int already_connected_count,int drm_fd) +{ +int newly_connected_count; +struct timespec start, end; + +igt_assert (newly_connected); +igt_assert (drm_fd); + +clock_gettime (CLOCK_MONOTONIC , &start); +clock_gettime (CLOCK_MONOTONIC , &end); +do { +if (*newly_connected) +free (*newly_connected); + newly_connected_count =igt_get_connected_connectors (drm_fd, newly_connected); +clock_gettime (CLOCK_MONOTONIC , &end); + }while (get_list_diff (*newly_connected, newly_connected_count, + already_connected, already_connected_count, +NULL ) ==0 && +igt_time_elapsed (&start, &end) <=igt_default_display_detect_timeout ()); + +return newly_connected_count; +}
lib/igt_kms.h +6 -0
@@ -1326,4 +1326,10 @@ drmModeConnectorPtr igt_get_connector_from_name(int drm_fd, const char *port_namuint32_t igt_get_connector_id_from_name (int drm_fd,const char *port_name);uint32_t igt_get_connector_id_from_mst_path (int drm_fd,const void *mst_path); +int kms_wait_for_new_connectors (uint32_t **newly_connected, +const uint32_t *already_connected, +int already_connected_count,int drm_fd); +int +get_list_diff (const uint32_t *list_a,int list_a_len,const uint32_t *list_b,int list_b_len, +uint32_t **diff);#endif /* __IGT_KMS_H__ */
Signature · 1 line
2.52.0
Re: [PATCH i-g-t v7 05/48] lib/igt_kms: Add helper to wait for new connectors
Quoted 21 lines · On Mon, 23 Feb 2026 13:09:12 +0100 Louis Chauvet <[email protected]>…
Add list comparison utilities and a new function to wait for new connectors to appear on the system.
Signed-off-by Louis Chauvet <[email protected]>Reviewed-by Luca Ceresoli <[email protected]>--- lib/igt_kms.c | 96+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
lib/igt_kms.h| 6 ++++ 2 files changed, 102 insertions(+)lib/igt_kms.c +3
-0@@ -8170,3 +8170,99 @@ uint32_t igt_get_connector_id_from_mst_path(int drm_fd, const void *mst_path)return 0 ; } + +/** +* list_contains() - Search an element in the list
lib/igt_kms.c uint32_t igt_get_connector_id_from_mst_path(int · line 8185
Quoted 10 lines
lib/igt_kms.c +10
-0+* +* @list: Pointer to the list to search into +* @list_len: Length of the list +* @value: Value to search in the list +* +* Returns true if @list contains @value +*/ +static bool list_contains (const uint32_t *list,int list_len,uint32_t value) +{ +igt_assert ((!list && list_len ==0 ) || list);
You could simply do this here: igt_assert(list_len == 0 || list);
lib/igt_kms.c uint32_t igt_get_connector_id_from_mst_path(int drm_fd, const void *mst_path) · line 8189
Quoted 4 lines
lib/igt_kms.c +4
-0+for (int i =0 ; i < list_len; i++) { +if (list[i] == value) +return true; + }
You can remove the for loop bracket for a cleaner code.
Quoted 18 lines
lib/igt_kms.c +17
-0+return false; +} + +/** +* get_list_diff() - Compute and return the set difference between two lists +* +* @list_a: Pointer to the first list to compare +* @list_a_len: Length of the first list +* @list_b: Pointer to the second list to compare +* @list_b_len: Length of the second list +* @diff: Out pointer returning a list of items in list_a but not +* in list_b. Can be NULL to only count the elements. +* +* Returns the number of element which are in @list_a but not in @list_b. +*/ +int +get_list_diff(const uint32_t *list_a, int list_a_len, const uint32_t
*list_b, intlist_b_len,
lib/igt_kms.c uint32_t igt_get_connector_id_from_mst_path(int drm_fd, const void *mst_path) · line 8212
Quoted 6 lines
lib/igt_kms.c +6
-0+ uint32_t **diff) +{ +int diff_len =0 ; + +igt_assert ((!list_a && list_a_len ==0 ) || list_a); +igt_assert ((!list_b && list_b_len ==0 ) || list_b);
Same here.
Quoted 55 lines
lib/igt_kms.c +8
-0+ +if (diff) + *diff =malloc (sizeof (**diff)); + +for (int i =0 ; i < list_a_len; i++) { +if (!list_contains (list_b, list_b_len, list_a[i])) { +if (diff) { + *diff = reallocarray(*diff, diff_len + 1,
sizeof(**diff));lib/igt_kms.c +40
-0+igt_assert (*diff); + (*diff)[diff_len] = list_a[i]; + } + + diff_len++; + } + } + +return diff_len; +} + +/** +* kms_wait_for_new_connectors() - Wait for new connector to appear +* +* @newly_connected: Out pointer returning the list of connectors currently +* found connected +* @already_connected: Input pointer to list of connectors previously +* connected +* @already_connected_count: Length of @already_connected +* @drm_fd: DRM file descriptor +* +* Returns the number of connectors not in @already_connected and currently +* found connected. +*/ +int kms_wait_for_new_connectors(uint32_t **newly_connected, + const uint32_t *already_connected, + int already_connected_count, int drm_fd) +{ + int newly_connected_count; + struct timespec start, end; + + igt_assert(newly_connected); + igt_assert(drm_fd); + + clock_gettime(CLOCK_MONOTONIC, &start); + clock_gettime(CLOCK_MONOTONIC, &end); + do { + if (*newly_connected) + free(*newly_connected); + newly_connected_count = igt_get_connected_connectors(drm_fd,
newly_connected);lib/igt_kms.c +5
-0+clock_gettime (CLOCK_MONOTONIC , &end); + }while (get_list_diff (*newly_connected, newly_connected_count, + already_connected, already_connected_count, +NULL ) ==0 && + igt_time_elapsed(&start, &end) <=
Quoted 1 line
igt_default_display_detect_timeout());
!get_list_diff(...)
Regards,
Signature · 3 lines
Köry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com
Re: [PATCH i-g-t v7 05/48] lib/igt_kms: Add helper to wait for new connectors
In reply to Louis ChauvetHi Louis,
Quoted 19 lines · Louis Chauvet
Add list comparison utilities and a new function to wait for new connectors to appear on the system.
Signed-off-by Louis Chauvet <[email protected]>Reviewed-by Luca Ceresoli <[email protected]>--- lib/igt_kms.c | 96 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ lib/igt_kms.h | 6 ++++ 2 files changed, 102 insertions(+)lib/igt_kms.c +1
-0@@ -8170,3 +8170,99 @@ uint32_t igt_get_connector_id_from_mst_path(int drm_fd, const void *mst_path)return 0 ; } +
lib/igt_kms.c uint32_t igt_get_connector_id_from_mst_path(int drm_fd, const void *mst_path) · line 8183
Quoted 10 lines
lib/igt_kms.c +10
-0+/** +* list_contains() - Search an element in the list +* +* @list: Pointer to the list to search into +* @list_len: Length of the list +* @value: Value to search in the list +* +* Returns true if @list contains @value +*/ +static bool list_contains (const uint32_t *list,int list_len,uint32_t value)
Why do you name it a list? It is an array. Do we need abstract data types in igt, like igt_array? Also, you keep only uint32 as values.
There is already a list ADT in igt, maybe you could reuse and extend it?
Regards,
Kamil
Quoted 104 lines
lib/igt_kms.c +85
-0+{ +igt_assert ((!list && list_len ==0 ) || list); +for (int i =0 ; i < list_len; i++) { +if (list[i] == value) +return true; + } +return false; +} + +/** +* get_list_diff() - Compute and return the set difference between two lists +* +* @list_a: Pointer to the first list to compare +* @list_a_len: Length of the first list +* @list_b: Pointer to the second list to compare +* @list_b_len: Length of the second list +* @diff: Out pointer returning a list of items in list_a but not +* in list_b. Can be NULL to only count the elements. +* +* Returns the number of element which are in @list_a but not in @list_b. +*/ +int +get_list_diff (const uint32_t *list_a,int list_a_len,const uint32_t *list_b,int list_b_len, +uint32_t **diff) +{ +int diff_len =0 ; + +igt_assert ((!list_a && list_a_len ==0 ) || list_a); +igt_assert ((!list_b && list_b_len ==0 ) || list_b); + +if (diff) + *diff =malloc (sizeof (**diff)); + +for (int i =0 ; i < list_a_len; i++) { +if (!list_contains (list_b, list_b_len, list_a[i])) { +if (diff) { + *diff =reallocarray (*diff, diff_len +1 ,sizeof (**diff)); +igt_assert (*diff); + (*diff)[diff_len] = list_a[i]; + } + + diff_len++; + } + } + +return diff_len; +} + +/** +* kms_wait_for_new_connectors() - Wait for new connector to appear +* +* @newly_connected: Out pointer returning the list of connectors currently +* found connected +* @already_connected: Input pointer to list of connectors previously +* connected +* @already_connected_count: Length of @already_connected +* @drm_fd: DRM file descriptor +* +* Returns the number of connectors not in @already_connected and currently +* found connected. +*/ +int kms_wait_for_new_connectors (uint32_t **newly_connected, +const uint32_t *already_connected, +int already_connected_count,int drm_fd) +{ +int newly_connected_count; +struct timespec start, end; + +igt_assert (newly_connected); +igt_assert (drm_fd); + +clock_gettime (CLOCK_MONOTONIC , &start); +clock_gettime (CLOCK_MONOTONIC , &end); +do { +if (*newly_connected) +free (*newly_connected); + newly_connected_count =igt_get_connected_connectors (drm_fd, newly_connected); +clock_gettime (CLOCK_MONOTONIC , &end); + }while (get_list_diff (*newly_connected, newly_connected_count, + already_connected, already_connected_count, +NULL ) ==0 && +igt_time_elapsed (&start, &end) <=igt_default_display_detect_timeout ()); + +return newly_connected_count; +}lib/igt_kms.h +6
-0@@ -1326,4 +1326,10 @@ drmModeConnectorPtr igt_get_connector_from_name(int drm_fd, const char *port_namuint32_t igt_get_connector_id_from_name (int drm_fd,const char *port_name);uint32_t igt_get_connector_id_from_mst_path (int drm_fd,const void *mst_path); +int kms_wait_for_new_connectors (uint32_t **newly_connected, +const uint32_t *already_connected, +int already_connected_count,int drm_fd); +int +get_list_diff (const uint32_t *list_a,int list_a_len,const uint32_t *list_b,int list_b_len, +uint32_t **diff);#endif /* __IGT_KMS_H__ */ Signature · 2 lines
-- 2.52.0
PATCH v7 6/48 lib/igt_kms: Add helper to get a pipe from a connector
In reply to Louis ChauvetCurrently there is no way to get a pipe from the connector. Add this tiny helper that will try to get the currently used pipe for a specific connector.
--- lib/igt_kms.c | 41 +++++++++++++++++++++++++++++++++++++++++ lib/igt_kms.h | 3 +++ 2 files changed, 44 insertions(+)
lib/igt_kms.c +41 -0
@@ -8266,3 +8266,44 @@ int kms_wait_for_new_connectors(uint32_t **newly_connected,return newly_connected_count; } + +/** +* igt_get_crtc_index_from_connector_id() - Get a pipe from the connector id +* @drm_fd: drm file descriptor to which the connector belongs +* @connector_id: connector to inspect +* +* Returns 0 if the connector is not connected to any pipe +*/ +int igt_get_crtc_index_from_connector_id (int drm_fd,int connector_id) +{ +drmModeObjectPropertiesPtr proplist; +drmModePropertyPtr crtc_id_prop; +drmModePropertyPtr prop; +enum pipe crtc_index; +uint32_t crtc_id; +int i; + + proplist =drmModeObjectGetProperties (drm_fd, connector_id,DRM_MODE_OBJECT_CONNECTOR ); + crtc_id_prop =NULL ; + +for (i =0 ; i < proplist->count_props; i++) { + prop =drmModeGetProperty (drm_fd, proplist->props[i]); + +if (strcmp (prop->name,"CRTC_ID" ) ==0 ) { + crtc_id_prop = prop; +break ; + } +drmModeFreeProperty (prop); + } + +igt_assert (crtc_id_prop); +igt_assert ((crtc_id_prop->flags &DRM_MODE_PROP_EXTENDED_TYPE ) ==DRM_MODE_PROP_OBJECT ); + crtc_id = proplist->prop_values[i]; +drmModeFreeProperty (crtc_id_prop); +drmModeFreeObjectProperties (proplist); +if (crtc_id !=0 ) { + crtc_index =kmstest_get_crtc_index_from_id (drm_fd, crtc_id); +return crtc_index; + } +return 0 ; +}
lib/igt_kms.h +3 -0
@@ -1332,4 +1332,7 @@ int kms_wait_for_new_connectors(uint32_t **newly_connected,int get_list_diff (const uint32_t *list_a,int list_a_len,const uint32_t *list_b,int list_b_len,uint32_t **diff); + +int igt_get_crtc_index_from_connector_id (int drm_fd,int connector_id); +#endif /* __IGT_KMS_H__ */
Signature · 1 line
2.52.0
Re: [i-g-t,v7,06/48] lib/igt_kms: Add helper to get a pipe from a connector
Hello Louis,
Quoted 47 lines · Louis Chauvet
Currently there is no way to get a pipe from the connector. Add this tiny helper that will try to get the currently used pipe for a specific connector.
Reviewed-by Kory Maincent <[email protected]>Signed-off-by Louis Chauvet <[email protected]>--- lib/igt_kms.c | 41 +++++++++++++++++++++++++++++++++++++++++ lib/igt_kms.h | 3 +++ 2 files changed, 44 insertions(+)lib/igt_kms.c +28
-0@@ -8266,3 +8266,44 @@ int kms_wait_for_new_connectors(uint32_t **newly_connected,return newly_connected_count; } + +/** +* igt_get_crtc_index_from_connector_id() - Get a pipe from the connector id +* @drm_fd: drm file descriptor to which the connector belongs +* @connector_id: connector to inspect +* +* Returns 0 if the connector is not connected to any pipe +*/ +int igt_get_crtc_index_from_connector_id (int drm_fd,int connector_id) +{ +drmModeObjectPropertiesPtr proplist; +drmModePropertyPtr crtc_id_prop; +drmModePropertyPtr prop; +enum pipe crtc_index; +uint32_t crtc_id; +int i; + + proplist =drmModeObjectGetProperties (drm_fd, connector_id,DRM_MODE_OBJECT_CONNECTOR ); + crtc_id_prop =NULL ; + +for (i =0 ; i < proplist->count_props; i++) { + prop =drmModeGetProperty (drm_fd, proplist->props[i]); + +if (strcmp (prop->name,"CRTC_ID" ) ==0 ) { + crtc_id_prop = prop; +break ; + } +drmModeFreeProperty (prop);
lib/igt_kms.c int kms_wait_for_new_connectors(uint32_t **newly_connected, · line 8306
Quoted 10 lines
lib/igt_kms.c +10
-0+ } + +igt_assert (crtc_id_prop); +igt_assert ((crtc_id_prop->flags &DRM_MODE_PROP_EXTENDED_TYPE ) ==DRM_MODE_PROP_OBJECT ); + crtc_id = proplist->prop_values[i]; +drmModeFreeProperty (crtc_id_prop); +drmModeFreeObjectProperties (proplist); +if (crtc_id !=0 ) { + crtc_index =kmstest_get_crtc_index_from_id (drm_fd, crtc_id); +return crtc_index;
Isn't 0 a valid crtc_index?
Thanks and Regards
Kunal Joshi
Quoted 15 lines
lib/igt_kms.c +3
-0+ } +return 0 ; +}lib/igt_kms.h +3
-0@@ -1332,4 +1332,7 @@ int kms_wait_for_new_connectors(uint32_t **newly_connected,int get_list_diff (const uint32_t *list_a,int list_a_len,const uint32_t *list_b,int list_b_len,uint32_t **diff); + +int igt_get_crtc_index_from_connector_id (int drm_fd,int connector_id); +#endif /* __IGT_KMS_H__ */
PATCH v7 7/48 lib/igt_kms: Expose dump_connector_attrs
In reply to Louis Chauvetdump_connector_attrs is used by i915 DP helpers, so expose it from igt_kms to be able to reuse them.
--- lib/igt_kms.c | 5 ++++- lib/igt_kms.h | 1 + 2 files changed, 5 insertions(+), 1 deletion(-)
lib/igt_kms.c +4 -1
@@ -1766,7 +1766,10 @@ static bool connector_attr_set_debugfs(int drm_fd,return true; } -static void dump_connector_attrs (void ) +/** +* dump_connector_attrs: Display on debug log all the connector attributes +*/ +void dump_connector_attrs (void ) {char name[80 ];
lib/igt_kms.h +1 -0
@@ -258,6 +258,7 @@ enum joined_pipes {uint64_t igt_kms_frame_time_from_vrefresh (uint32_t vrefresh); +void dump_connector_attrs (void );bool kmstest_force_connector (int fd,drmModeConnector *connector,enum kmstest_force_connector_state state);bool kmstest_force_connector_joiner (int drm_fd,drmModeConnector *connector,int joined_pipes);
Signature · 1 line
2.52.0
PATCH v7 8/48 lib/igt_kms: Expose reset_connectors_at_exit
In reply to Louis Chauvetreset_connectors_at_exit is used by i915 DP helpers, expose it so it can be reused in a different file.
--- lib/igt_kms.c | 7 ++++++- lib/igt_kms.h | 1 + 2 files changed, 7 insertions(+), 1 deletion(-)
lib/igt_kms.c +6 -1
@@ -1577,7 +1577,12 @@ void kmstest_set_vt_text_mode(void)igt_assert (set_vt_mode (KD_TEXT ) >=0 ); } -static void reset_connectors_at_exit (int sig) +/** +* reset_connectors_at_exit: +* +* Exit handler used to remove any forced state from the connectors. +*/ +void reset_connectors_at_exit (int sig) {igt_reset_connectors (); }
lib/igt_kms.h +1 -0
@@ -152,6 +152,7 @@ int kmstest_get_crtc_index_from_id(int fd, int crtc_id);void kmstest_set_vt_graphics_mode (void );void kmstest_restore_vt_mode (void );void kmstest_set_vt_text_mode (void ); +void reset_connectors_at_exit (int sig);enum igt_atomic_crtc_properties {IGT_CRTC_CTM =0 ,
Signature · 1 line
2.52.0
PATCH v7 9/48 lib/igt_kms: Expose connector_attr_set and igt_connector_attr_set
In reply to Louis ChauvetSome debugfs helpers need to use connector attributes. Expose those helpers to allow using them in igt_debugfs.
--- lib/igt_kms.c | 30 +++++++++++++++++++++++------- lib/igt_kms.h | 6 ++++++ 2 files changed, 29 insertions(+), 7 deletions(-)
lib/igt_kms.c +23 -7
@@ -100,8 +100,6 @@*/ #define IGT_KMS_CONNECTOR_NAME_SIZE 50 -typedef bool (*igt_connector_attr_set )(int dir,const char *attr,const char *value); -struct igt_connector_attr {uint32_t connector_type;uint32_t connector_type_id;
@@ -1682,11 +1680,29 @@ static void connector_attr_free(struct igt_connector_attr *c)memset (c,0 ,sizeof (*c)); } -static bool connector_attr_set (int idx,drmModeConnector *connector, -int dir,igt_connector_attr_set set, -const char *attr,const char *value, -const char *reset_value, -bool force_reset) +/** +* connector_attr_set: +* @idx: card index +* @connector: libdrm connector +* @dir: directory file descriptor +* @set: function to set the attribute +* @attr: attribute name +* @value: attribute value +* @reset_value: value to reset the attribute to +* @force_reset: whether to force reset the attribute +* +* Configure a new attribute for @connector on card @idx that can be set +* using @set function. +* connector_attr_set register this attribute to reset it to the @reset_value +* during igt_reset_connector. +* +* Returns: True on success, false on failure. +*/ +bool connector_attr_set (int idx,drmModeConnector *connector, +int dir,igt_connector_attr_set set, +const char *attr,const char *value, +const char *reset_value, +bool force_reset) {struct igt_connector_attr *c;
lib/igt_kms.h +6 -0
@@ -1237,6 +1237,12 @@ void igt_parse_connector_tile_blob(drmModePropertyBlobPtr blob,int igt_connector_sysfs_open (int drm_fd,drmModeConnector *connector); +typedef bool (*igt_connector_attr_set )(int dir,const char *attr,const char *value); +bool connector_attr_set (int idx,drmModeConnector *connector, +int dir,igt_connector_attr_set set, +const char *attr,const char *value, +const char *reset_value, +bool force_reset);uint32_t igt_reduce_format (uint32_t format);
Signature · 1 line
2.52.0
PATCH v7 10/48 lib/igt_debugfs: Move debugfs helpers to the proper location
In reply to Louis Chauvetigt_debugfs_read_connector_file and igt_debugfs_write_connector_file are debugfs related helpers. To avoid mixing everything in igt_kms, move them to igt_debugfs.
--- lib/igt_debugfs.c | 94 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ lib/igt_debugfs.h | 13 ++++++++ lib/igt_kms.c | 93 ------------------------------------------------------ 3 files changed, 107 insertions(+), 93 deletions(-)
lib/igt_debugfs.c +94 -0
@@ -43,6 +43,7 @@#include "igt_aux.h" #include "igt_kms.h" #include "igt_debugfs.h" +#include "igt_device.h" #include "igt_sysfs.h" /**
@@ -776,3 +777,96 @@ void __igt_debugfs_dump(int device, const char *filename, int level)igt_log (IGT_LOG_DOMAIN , level,"%s:\n%s\n" , filename, contents);free (contents); } + +/** +* igt_debugfs_read_connector_file: +* @drm_fd: A drm file descriptor +* @conn_name: Name of the output connector +* @filename: The file to read from in the connector's directory +* @buf: Buffer to store the read content +* @buf_size: Size of the buffer +* +* Reads from a specific file in the connector's debugfs directory. +* +* Returns: 0 on success, -1 on failure. +*/ +int igt_debugfs_read_connector_file (int drm_fd,char *conn_name, +const char *filename,char *buf, +size_t buf_size) +{ +int dir, res; + + dir =igt_debugfs_connector_dir (drm_fd, conn_name,O_RDONLY ); +igt_assert_f (dir >=0 ,"Failed to open debugfs dir for connector %s\n" , conn_name); + + res =igt_debugfs_simple_read (dir, filename, buf, buf_size); +close (dir); + +if (res <0 ) +return -1 ; + +return 0 ; +} + +/** +* igt_debugfs_write_connector_file: +* @drm_fd: A drm file descriptor +* @conn_name: Name of the output connector +* @filename: The file to write to in the connector's directory +* @data: Data to write to the file +* @data_size: Size of the data to write +* +* Writes to a specific file in the connector's debugfs directory. +* +* Returns: 0 on success, -1 on failure. +*/ +int igt_debugfs_write_connector_file (int drm_fd,char *conn_name, +const char *filename,const char *data, +size_t data_size) +{ +int dir, res; + + dir =igt_debugfs_connector_dir (drm_fd, conn_name,O_RDONLY ); +igt_assert_f (dir >=0 ,"Failed to open debugfs dir for connector %s\n" , + conn_name); + + res =igt_sysfs_write (dir, filename, data, data_size); +close (dir); + +if (res <0 ) +return -1 ; + +return 0 ; +} + +bool connector_attr_set_debugfs (int drm_fd, +drmModeConnector *connector, +const char *attr,const char *value, +const char *reset_value, +bool force_reset) +{ +char name[80 ]; +int idx, dir; + + idx =igt_device_get_card_index (drm_fd); +if (idx <0 || idx >63 ) +return false; + +snprintf (name,sizeof (name),"%s-%d" , +kmstest_connector_type_str (connector->connector_type), + connector->connector_type_id); + + dir =igt_debugfs_connector_dir (drm_fd, name,O_DIRECTORY ); +if (dir <0 ) +return false; + +if (!connector_attr_set (idx, connector, dir, + igt_sysfs_set, attr, + value, reset_value, + force_reset)) +return false; + +igt_info ("Connector %s/%s is now %s\n" , name, attr, value); + +return true; +}
lib/igt_debugfs.h +13 -0
@@ -28,6 +28,7 @@#include <stdbool.h> #include <stdint.h> #include <stdio.h> +#include <xf86drmMode.h> const char *igt_debugfs_mount (void );char *igt_debugfs_path (int device,char *path,int pathlen);
@@ -176,4 +177,16 @@ int igt_get_stable_obj_count(int driver);void __igt_debugfs_dump (int device,const char *filename,int level);#define igt_debugfs_dump (d, f) __igt_debugfs_dump(d, f, IGT_LOG_DEBUG) +int igt_debugfs_read_connector_file (int drm_fd,char *conn_name, +const char *filename,char *buf, +size_t buf_size); +int igt_debugfs_write_connector_file (int drm_fd,char *conn_name, +const char *filename,const char *data, +size_t data_size); +bool connector_attr_set_debugfs (int drm_fd, +drmModeConnector *connector, +const char *attr,const char *value, +const char *reset_value, +bool force_reset); +#endif /* __IGT_DEBUGFS_H__ */
lib/igt_kms.c +0 -93
105 lines not on this page · raw message
Signature · 1 line
2.52.0
PATCH v7 11/48 lib/igt_debugfs: Add const when make sense
In reply to Louis ChauvetConst qualifier avoid unwanted modifications. Add const at place where it make sense.
--- lib/igt_debugfs.c | 6 +++--- lib/igt_debugfs.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-)
lib/igt_debugfs.c +3 -3
@@ -270,7 +270,7 @@ int igt_debugfs_tile_dir(int device, uint8_t tile)* Returns: * The directory fd, or -1 on failure. */ -int igt_debugfs_connector_dir (int device,char *conn_name,int mode) +int igt_debugfs_connector_dir (int device,const char *conn_name,int mode) {int dir, ret;
@@ -790,7 +790,7 @@ void __igt_debugfs_dump(int device, const char *filename, int level)* * Returns: 0 on success, -1 on failure. */ -int igt_debugfs_read_connector_file (int drm_fd,char *conn_name, +int igt_debugfs_read_connector_file (int drm_fd,const char *conn_name,const char *filename,char *buf,size_t buf_size) {
@@ -820,7 +820,7 @@ int igt_debugfs_read_connector_file(int drm_fd, char *conn_name,* * Returns: 0 on success, -1 on failure. */ -int igt_debugfs_write_connector_file (int drm_fd,char *conn_name, +int igt_debugfs_write_connector_file (int drm_fd,const char *conn_name,const char *filename,const char *data,size_t data_size) {
lib/igt_debugfs.h +3 -3
@@ -34,7 +34,7 @@ const char *igt_debugfs_mount(void);char *igt_debugfs_path (int device,char *path,int pathlen);int igt_debugfs_dir (int device); -int igt_debugfs_connector_dir (int device,char *conn_name,int mode); +int igt_debugfs_connector_dir (int device,const char *conn_name,int mode);int igt_debugfs_crtc_dir (int device,int crtc_index,int mode);int igt_debugfs_open (int fd,const char *filename,int mode);
@@ -177,10 +177,10 @@ int igt_get_stable_obj_count(int driver);void __igt_debugfs_dump (int device,const char *filename,int level);#define igt_debugfs_dump (d, f) __igt_debugfs_dump(d, f, IGT_LOG_DEBUG) -int igt_debugfs_read_connector_file (int drm_fd,char *conn_name, +int igt_debugfs_read_connector_file (int drm_fd,const char *conn_name,const char *filename,char *buf,size_t buf_size); -int igt_debugfs_write_connector_file (int drm_fd,char *conn_name, +int igt_debugfs_write_connector_file (int drm_fd,const char *conn_name,const char *filename,const char *data,size_t data_size); bool connector_attr_set_debugfs(int drm_fd,
Signature · 1 line
2.52.0
PATCH v7 12/48 lib/igt_amd: Add const when make sense
In reply to Louis ChauvetConst qualifier helps to avoid unwanted modification of a pointer. To help avoiding those errors, modify the function signature to use const.
--- lib/igt_amd.c | 2 +- lib/igt_amd.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
lib/igt_amd.c +1 -1
@@ -831,7 +831,7 @@ int igt_amd_trigger_hotplug(int drm_fd, char *connector_name)* values of "Current", "Verified", "Reported", and "Preferred", respectively. */ void igt_amd_read_link_settings ( -int drm_fd,char *connector_name,int *lane_count,int *link_rate,int *link_spread) +int drm_fd,const char *connector_name,int *lane_count,int *link_rate,int *link_spread) {int fd, ret;char buf[101 ];
lib/igt_amd.h +1 -1
@@ -210,7 +210,7 @@ int igt_amd_trigger_hotplug(int drm_fd, char *connector_name);/* IGT link helper functions */ void igt_amd_read_link_settings ( -int drm_fd,char *connector_name,int *lane_count,int *link_rate,int *link_spread); +int drm_fd,const char *connector_name,int *lane_count,int *link_rate,int *link_spread);void igt_amd_write_link_settings (int drm_fd,char *connector_name,enum dc_lane_count lane_count,enum dc_link_rate link_rate,enum dc_link_training_type training_type);
Signature · 1 line
2.52.0
PATCH v7 13/48 lib/igt_kms: Add const when make sense
In reply to Louis ChauvetConst qualifier helps to avoid unwanted modification of a pointer. To help avoiding those errors, modify the function signature to use const.
--- lib/igt_kms.c | 2 +- lib/igt_kms.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
lib/igt_kms.c +1 -1
@@ -5137,7 +5137,7 @@ int igt_display_drop_events(igt_display_t *display)* * Returns: String representing a connector's name, e.g. "DP-1". */ -const char *igt_output_name (igt_output_t *output) +const char *igt_output_name (const igt_output_t *output) {return output->name; }
lib/igt_kms.h +1 -1
@@ -590,7 +590,7 @@ igt_pipe_crc_t *igt_crtc_crc_new(igt_crtc_t *crtc, const char *source);igt_pipe_crc_t *igt_crtc_crc_new_nonblock (igt_crtc_t *crtc,const char *source);igt_crtc_t *igt_output_get_driving_crtc (igt_output_t *output); -const char *igt_output_name (igt_output_t *output); +const char *igt_output_name (const igt_output_t *output);bool kmstest_mode_is_valid (const drmModeModeInfo *mode);drmModeModeInfo *igt_output_get_mode (igt_output_t *output);drmModeModeInfo *igt_output_get_highres_mode (igt_output_t *output);
Signature · 1 line
2.52.0
PATCH v7 14/48 lib/monitor_edids: Add helper functions for using monitor_edid objects
In reply to Louis ChauvetIntroduce the functions edid_from_monitor_edid() and get_edids_for_connector_type(). The former converts a monitor_edid object to a struct edid, which can then be utilized by igt_kms helpers. The latter returns a list of monitor_edid objects for a specific connector with certain characteristics
--- lib/monitor_edids/dp_edids.h | 3 ++ lib/monitor_edids/hdmi_edids.h | 3 ++ lib/monitor_edids/monitor_edids_helper.c | 80 ++++++++++++++++++++++++++++++++ lib/monitor_edids/monitor_edids_helper.h | 7 ++- 4 files changed, 92 insertions(+), 1 deletion(-)
lib/monitor_edids/dp_edids.h +3 -0
@@ -194,4 +194,7 @@ monitor_edid DP_EDIDS_NON_4K[] = { }; +#define DP_EDIDS_4K_COUNT ARRAY_SIZE(DP_EDIDS_4K) +#define DP_EDIDS_NON_4K_COUNT ARRAY_SIZE(DP_EDIDS_NON_4K) +#endif /* TESTS_CHAMELIUM_MONITOR_EDIDS_DP_EDIDS_H_ */
lib/monitor_edids/hdmi_edids.h +3 -0
@@ -604,4 +604,7 @@ monitor_edid HDMI_EDIDS_NON_4K[] = { "1620582c2500baac4200009e0000006b" }, }; +#define HDMI_EDIDS_4K_COUNT ARRAY_SIZE(HDMI_EDIDS_4K) +#define HDMI_EDIDS_NON_4K_COUNT ARRAY_SIZE(HDMI_EDIDS_NON_4K) +#endif /* TESTS_CHAMELIUM_MONITOR_EDIDS_HDMI_EDIDS_H_ */
lib/monitor_edids/monitor_edids_helper.c +80 -0
89 lines not on this page · raw message
lib/monitor_edids/monitor_edids_helper.h +6 -1
@@ -12,6 +12,8 @@#define TESTS_CHAMELIUM_MONITOR_EDIDS_MONITOR_EDIDS_HELPER_H_ #include <stdint.h> +#include <stddef.h> +#include <stdbool.h> #include "igt_chamelium.h"
@@ -30,4 +32,7 @@ get_chameleon_edid_from_monitor_edid(struct chamelium *chamelium, const monitor_edid *edid);void free_chamelium_edid_from_monitor_edid (struct chamelium_edid *edid); -#endif /* TESTS_CHAMELIUM_MONITOR_EDIDS_MONITOR_EDIDS_HELPER_H_ */ +struct edid *edid_from_monitor_edid (const monitor_edid *monitor_edid); +struct monitor_edid *get_edids_for_connector_type (uint32_t type,size_t *count,bool four_k); + +#endif /* TESTS_CHAMELIUM_MONITOR_EDIDS_MONITOR_EDIDS_HELPER_H_ */
Signature · 1 line
2.52.0
Re: [PATCH i-g-t v7 14/48] lib/monitor_edids: Add helper functions for using monitor_edid objects
Quoted 91 lines · On Mon, 23 Feb 2026 13:09:21 +0100 Louis Chauvet <[email protected]>…
Introduce the functions
edid_from_monitor_edid()andget_edids_for_connector_type(). The former converts amonitor_edidobject to a struct edid, which can then be utilized byigt_kmshelpers. The latter returns a list ofmonitor_edidobjects for a specific connector with certain characteristicsSigned-off-by Louis Chauvet <[email protected]>Reviewed-by Luca Ceresoli <[email protected]>--- lib/monitor_edids/dp_edids.h | 3 ++ lib/monitor_edids/hdmi_edids.h | 3 ++ lib/monitor_edids/monitor_edids_helper.c | 80++++++++++++++++++++++++++++++++
lib/monitor_edids/monitor_edids_helper.h| 7 ++- 4 files changed, 92 insertions(+), 1 deletion(-)lib/monitor_edids/dp_edids.h +3
-0@@ -194,4 +194,7 @@ monitor_edid DP_EDIDS_NON_4K[] = { }; +#define DP_EDIDS_4K_COUNT ARRAY_SIZE(DP_EDIDS_4K) +#define DP_EDIDS_NON_4K_COUNT ARRAY_SIZE(DP_EDIDS_NON_4K) +#endif /* TESTS_CHAMELIUM_MONITOR_EDIDS_DP_EDIDS_H_ */ lib/monitor_edids/hdmi_edids.h +3
-0@@ -604,4 +604,7 @@ monitor_edid HDMI_EDIDS_NON_4K[] = { "1620582c2500baac4200009e0000006b" }, }; +#define HDMI_EDIDS_4K_COUNT ARRAY_SIZE(HDMI_EDIDS_4K) +#define HDMI_EDIDS_NON_4K_COUNT ARRAY_SIZE(HDMI_EDIDS_NON_4K) +#endif /* TESTS_CHAMELIUM_MONITOR_EDIDS_HDMI_EDIDS_H_ */ (quoted diff) +0
-0
b/lib/monitor_edids/monitor_edids_helper.cindex1cbf1c22f0bb..6043e7a084b3100644 ---a/lib/monitor_edids/monitor_edids_helper.c
+++b/lib/monitor_edids/monitor_edids_helper.clib/monitor_edids/monitor_edids_helper.c +10
-0@@ -15,6 +15,10 @@#include <assert.h> #include "igt_core.h" +#include "igt_edid.h" +#include "dp_edids.h" +#include "drmtest.h" +#include "hdmi_edids.h" static uint8_t convert_hex_char_to_byte (char c) {@@ -90,3 +94,79 @@ void free_chamelium_edid_from_monitor_edid(struct chamelium_edid *edid) free(edid); edid =NULL ; } + +/** +* edid_from_monitor_edid: +* @mon_edid: Monitor EDID to convert +* +* Get a struct edid from a monitor_edid. This returns a pointer to a newly allocated struct edid.
+ * The caller is in charge to free this pointer when required.
+ */lib/monitor_edids/monitor_edids_helper.c +12
-0+struct edid *edid_from_monitor_edid (const monitor_edid *mon_edid) +{ +uint8_t *raw_edid; +size_t edid_size; +int i; + + edid_size =strlen (mon_edid->edid) /2 ;/* each ascii is a nibble. */ + raw_edid =malloc (edid_size); +igt_assert (raw_edid); + +for (i =0 ; i < edid_size; i++) { + raw_edid[i] = convert_hex_char_to_byte(mon_edid->edid[i *2]) << 4 |
lib/monitor_edids/monitor_edids_helper.c +8
-0+convert_hex_char_to_byte (mon_edid->edid[i *2 + 1]); + } + +if (edid_get_size ((struct edid *)raw_edid) > edid_size) { +uint8_t *new_edid; + + igt_debug("The edid size stored in the raw edid is longerthan the edid stored in the table.");
(quoted diff) +1
-0+ new_edid = realloc(raw_edid, edid_get_size((struct edid*)raw_edid));
lib/monitor_edids/monitor_edids_helper.c void free_chamelium_edid_from_monitor_edid(struct chamelium_edid *edid) · line 126
Quoted 2 lines
lib/monitor_edids/monitor_edids_helper.c +2
-0+igt_assert (new_edid); + raw_edid = new_edid;
You didn't take my last comment into account here? Was I mistaken?
Quoted 2 lines
I don't really know much about the edid content but shouldn't you have to
convert_hex_char_to_byte()also for the edid extensions?
Regards,
Signature · 3 lines
Köry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com
PATCH v7 15/48 lib/monitor_edids: Add helper to get an EDID by its name
In reply to Louis ChauvetFor testing specific EDID, it is useful to be able to retrieve an EDID by a verbose name.
--- lib/monitor_edids/monitor_edids_helper.c | 30 ++++++++++++++++++++++++++++++ lib/monitor_edids/monitor_edids_helper.h | 1 + 2 files changed, 31 insertions(+)
lib/monitor_edids/monitor_edids_helper.c +30 -0
@@ -20,6 +20,16 @@#include "drmtest.h" #include "hdmi_edids.h" +struct { +struct monitor_edid *edid_list; +int list_size; +}ALL_EDIDS [] = { + {DP_EDIDS_NON_4K ,DP_EDIDS_NON_4K_COUNT }, + {DP_EDIDS_4K ,DP_EDIDS_4K_COUNT }, + {HDMI_EDIDS_NON_4K ,HDMI_EDIDS_NON_4K_COUNT }, + {HDMI_EDIDS_4K ,HDMI_EDIDS_4K_COUNT }, +}; +static uint8_t convert_hex_char_to_byte (char c) {if (c >='0' && c <='9' )
@@ -170,3 +180,23 @@ struct monitor_edid *get_edids_for_connector_type(uint32_t type, size_t *count, } } } + +/** +* get_edid_by_name: +* @name: Name to search in available EDIDs +* +* Return the struct edid associated with a specific name. As with edid_from_monitor_edid, the +* caller must ensure to free the EDID after use. If no EDID with the exact name is found, returns +* NULL. +*/ +struct edid *get_edid_by_name (const char *name) +{ +for (int i =0 ; i <ARRAY_SIZE (ALL_EDIDS ); i++) { +for (int j =0 ; j <ALL_EDIDS [i].list_size; j++) { +if (strncmp (ALL_EDIDS [i].edid_list[j].name, name,EDID_NAME_MAX_LEN ) ==0 ) +return edid_from_monitor_edid (&ALL_EDIDS [i].edid_list[j]); + } + } + +return NULL ; +}
lib/monitor_edids/monitor_edids_helper.h +1 -0
@@ -34,5 +34,6 @@ void free_chamelium_edid_from_monitor_edid(struct chamelium_edid *edid);struct edid *edid_from_monitor_edid (const monitor_edid *monitor_edid);struct monitor_edid *get_edids_for_connector_type (uint32_t type,size_t *count,bool four_k); +struct edid *get_edid_by_name (const char *name);#endif /* TESTS_CHAMELIUM_MONITOR_EDIDS_MONITOR_EDIDS_HELPER_H_ */
Signature · 1 line
2.52.0
PATCH v7 16/48 lib/monitor_edids: Add helper to print all available EDID names
In reply to Louis ChauvetDuring the unigraf configuration, it may be required to know the list of supported EDID names, so add an helper to print them.
--- lib/monitor_edids/monitor_edids_helper.c | 16 ++++++++++++++++ lib/monitor_edids/monitor_edids_helper.h | 2 ++ 2 files changed, 18 insertions(+)
lib/monitor_edids/monitor_edids_helper.c +16 -0
@@ -200,3 +200,19 @@ struct edid *get_edid_by_name(const char *name)return NULL ; } + +/* +* list_edid_names: +* @level: Log level to write the names on +* +* Print all the EDID available in igt. +*/ +void list_edid_names (enum igt_log_level level) +{ +for (int i =0 ; i <ARRAY_SIZE (ALL_EDIDS ); i++) { +for (int j =0 ; j <ALL_EDIDS [i].list_size; j++) { +igt_log (IGT_LOG_DOMAIN , level," - \"%s\"\n" , +ALL_EDIDS [i].edid_list[j].name); + } + } +}
lib/monitor_edids/monitor_edids_helper.h +2 -0
@@ -15,6 +15,7 @@#include <stddef.h> #include <stdbool.h> +#include "igt_core.h" #include "igt_chamelium.h" /* Max Length can be increased as needed, when new EDIDs are added. */
@@ -35,5 +36,6 @@ void free_chamelium_edid_from_monitor_edid(struct chamelium_edid *edid);struct edid *edid_from_monitor_edid (const monitor_edid *monitor_edid);struct monitor_edid *get_edids_for_connector_type (uint32_t type,size_t *count,bool four_k);struct edid *get_edid_by_name (const char *name); +void list_edid_names (enum igt_log_level level);#endif /* TESTS_CHAMELIUM_MONITOR_EDIDS_MONITOR_EDIDS_HELPER_H_ */
Signature · 1 line
2.52.0
PATCH v7 17/48 lib/unigraf: Add used defines for TSI_Types
In reply to Louis ChauvetCurrent unigraf public release are not c-compatible, this file hardcode some values. One future release of libTSI may include a c-compatible TSI_types.h file with full structure definition, but until then.
--- lib/unigraf/TSI_types.h | 126 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 126 insertions(+)
lib/unigraf/TSI_types.h new file +126 -0
@@ -0,0 +1,126 @@ +/* SPDX-License-Identifier: MIT */ + +// Current unigraf public release are not c-compatible, this file hardcode some values. +// The next release of libTSI should include a c-compatible TSI_types.h file, that will +// be directly used in place of this file. + +#ifndef TSI_REG_H + +#include <stdbool.h> +#include <stdint.h> + +#define TSI_VERSION_TEXT 0x80000001 +#define TSI_DEVCAP_VIDEO_CAPTURE 0x00000001 +#define TSI_SEARCHOPTIONS_SHOW_DEVICES_IN_USE 0x00000001 + +#define TSI_EDID_TE_INPUT 0x1100 +#define TSI_EDID_SELECT_STREAM 0x1102 + +#define TSI_BASE_LEGACY_GENERIC (offset) (0x210 + (offset)) +#define TSI_FORCE_HOT_PLUG_STATE_W TSI_BASE_LEGACY_GENERIC(0x2) + +#define TSI_BASE_LEGACY_DPRX_MSA (offset) (0x260 + (offset)) +#define TSI_DPRX_MSA_COMMAND_W TSI_BASE_LEGACY_DPRX_MSA(0x0) +#define TSI_DPRX_MSA_STREAM_COUNT_R TSI_BASE_LEGACY_DPRX_MSA(0x1) +#define TSI_DPRX_MSA_STREAM_SELECT TSI_BASE_LEGACY_DPRX_MSA(0x3) +#define TSI_DPRX_MSA_HTOTAL_R TSI_BASE_LEGACY_DPRX_MSA(0x6) +#define TSI_DPRX_MSA_VTOTAL_R TSI_BASE_LEGACY_DPRX_MSA(0x7) +#define TSI_DPRX_MSA_HACTIVE_R TSI_BASE_LEGACY_DPRX_MSA(0x8) +#define TSI_DPRX_MSA_VACTIVE_R TSI_BASE_LEGACY_DPRX_MSA(0x9) +#define TSI_DPRX_MSA_HSYNC_WIDTH_R TSI_BASE_LEGACY_DPRX_MSA(0xa) +#define TSI_DPRX_MSA_VSYNC_WIDTH_R TSI_BASE_LEGACY_DPRX_MSA(0xb) +#define TSI_DPRX_MSA_HSTART_R TSI_BASE_LEGACY_DPRX_MSA(0xc) +#define TSI_DPRX_MSA_VSTART_R TSI_BASE_LEGACY_DPRX_MSA(0xd) + +#define TSI_DPRX_LINK_FLAGS_MST 0x01 +#define TSI_DPRX_LINK_FLAGS_TPS3 0x02 +#define TSI_DPRX_LINK_FLAGS_TPS4 0x03 +#define TSI_DPRX_LINK_FLAGS_EDP 0x04 +#define TSI_DPRX_NOT_DOCUMENTED_DP_128_132_SUPPORTED 0x10 +#define TSI_DPRX_NOT_DOCUMENTED_SIDEBAND_MSG_SUPPORT 0x20 + +#define TSI_BASE_DPRX (offset) (0x50000000u + 0x21000 + (offset)) +#define TSI_DPRX_HW_CAPS_R TSI_BASE_DPRX(0x4) + +/** +* struct TSI_DPRX_HW_CAPS_R_s - Structure representing the hardware capabilities of the DP RX. +* +* This structure defines the bitfields and fields that describe the hardware +* capabilities of the DP RX (DisplayPort Receiver) interface. Each field +* corresponds to a specific capability or feature supported by the hardware. +* +* This structure is used to interpret the value read from the +* TSI_DPRX_HW_CAPS_R register. +* +* @mst: MST support +* @hdcp_1_x: HDCP 1.x support. +* @hdcp_2_x: HDCP 2.x support. +* @fec_8_10_b: FEC for 8/10 link support. +* @dsc_8_10_b: DSC for 8/10 link support. +* @three_lanes: Three lane link configuration support. +* @edp_link_rate: eDP link rates are supported. +* @mst_stream_count: Number of MST streams supported. +* @max_link_rate: Maximum link rate supported. The unit is not specified in documentation, +* it is probably like other config rate = 0.27GHz * value +* @force_link_config: Forced link configuration support. +* @power_provision: Power provision support on DP_PWR pin of receptacle connector. +* @aux_swing_voltage_control: AUX output voltage swing control support. +* @custom_dp_rate: Custom DP 2.0 rate support. +* @custom_bit_rate: Custom bit rate support. +* @fec_128_132_b: FEC for 128/132 link support. +* @dsc_128_132_b: DSC for 128/132 link support. +*/ +struct TSI_DPRX_HW_CAPS_R_s { +bool mst:1 ; +bool hdcp_1_x:1 ; +bool hdcp_2_x:1 ; +bool fec_8_10_b:1 ; +bool dsc_8_10_b:1 ; +bool reserved_1:1 ; +bool three_lanes:1 ; +bool edp_link_rates_supported:1 ; +uint8_t mst_stream_count:3 ; +uint8_t reserved_2:5 ; +uint8_t max_link_rate; +bool force_link_config:1 ; +bool reserved_3:1 ; +bool power_provision:1 ; +bool aux_swing_voltage_control:1 ; +bool custom_dp_rate:1 ; +bool custom_bit_rate:1 ; +bool fec_128_132_b:1 ; +bool dsc_128_132_b:1 ; +}; + +#define TSI_DPRX_LT_LANE_COUNT_R TSI_BASE_DPRX(0x0B) +#define TSI_DPRX_LT_RATE_R TSI_BASE_DPRX(0x0C) +#define TSI_DPRX_HPD_FORCE TSI_BASE_DPRX(0x12) +#define TSI_DPRX_MST_SINK_COUNT TSI_BASE_DPRX(0x9D) + +#define TSI_BASE_DP_RX (offset) (0x00010100 + (offset)) +#define TSI_DP_RX_DUT_MAX_LANE_COUNT TSI_BASE_DP_RX(0xf) + +#define TSI_BASE_DP_LTT (offset) (0x00010700 + (offset)) +#define TSI_DP_LTT_MAX_LANE_COUNT TSI_BASE_DP_LTT(0x01) + +#define TSI_BASE_LEGACY_DPRX (offset) (0x2b0 + (offset)) +#define TSI_DPRX_DPCD_BASE_W TSI_BASE_LEGACY_DPRX(0x9) +#define TSI_DPRX_DPCD_DATA TSI_BASE_LEGACY_DPRX(0xA) +#define TSI_DPRX_MAX_LANES TSI_BASE_LEGACY_DPRX(0x10) +#define TSI_DPRX_MAX_LINK_RATE TSI_BASE_LEGACY_DPRX(0x11) +#define TSI_DPRX_LINK_FLAGS TSI_BASE_LEGACY_DPRX(0x12) +#define TSI_DPRX_STREAM_SELECT TSI_BASE_LEGACY_DPRX(0x13) +#define TSI_DPRX_CRC_R_R TSI_BASE_LEGACY_DPRX(0x14) +#define TSI_DPRX_CRC_G_R TSI_BASE_LEGACY_DPRX(0x15) +#define TSI_DPRX_CRC_B_R TSI_BASE_LEGACY_DPRX(0x16) +#define TSI_DPRX_HPD_PULSE_W TSI_BASE_LEGACY_DPRX(0x1B) + +#define H2_SINK_LOAD_PROD_KEYS 0x002 +#define H2_SINK_UNLOAD_KEYS 0x003 +#define H2_SINK_SET_CAPABLE 0x004 +#define H2_SINK_CLEAR_CAPABLE 0x005 + +#define TSI_BASE_LEGACY_HDCP2 (offset) (0x290 + (offset)) +#define TSI_HDCP_2X_COMMAND_W TSI_BASE_LEGACY_HDCP2(0x1) + +#endif /* TSI_REG_H */
Signature · 1 line
2.52.0
PATCH v7 18/48 lib/unigraf: Add TSI.h
In reply to Louis ChauvetUnigraf does not provide header for the libTSI.so file, only dynamic library loading helpers for windows.
In order to link against this library and use unigraf devices, add the function declaration used in the dynamic library loading wrappers.
--- lib/unigraf/TSI.h | 228 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 228 insertions(+)
lib/unigraf/TSI.h new file +228 -0
@@ -0,0 +1,228 @@ +/* SPDX-License-Identifier: MIT */ + +/* +* tsi.h - Header for libTSI.so +* Documentation here is taken from official documentation and developer observation. +*/ + +#ifndef TSI_H +#define TSI_H + +#define TSI_CURRENT_VERSION 12 +#define MAX_EDID_SIZE 4096 + +#define TSI_SUCCESS 0 + +typedef unsigned int TSI_VERSION_ID ; +typedef unsigned int TSI_SEARCH_OPTIONS ; +typedef unsigned int TSI_DEVICE_CAPS ; +typedef unsigned int TSI_CONFIG_ID ; +typedef unsigned int TSI_DEVICE_ID ; +typedef unsigned int TSI_INPUT_ID ; +typedef int TSI_RESULT ; +typedef void *TSI_HANDLE ; +typedef int TSI_FLAGS ; + +/** +* TSI_MISC_GetErrorDescription() - Get a human readable error message +* @ErrorCode: Error code for which you want the message +* @ErrorString: Pointer where to copy the message +* @StringMaxLen: Size of the allocated string @ErrorString +* +* The official documentation states: If the function succeeds, the +* return value is the number of characters required for the complete +* error description string. +* In reality, this function always returns 0 or < 0 (error), so there is no way to +* tell if the allocated memory was big enough +* +* Returns: +* - >= 0 on success, theorically the required string len to store the message +* - < 0 on failure +*/ +TSI_RESULT TSI_MISC_GetErrorDescription (TSI_RESULT ErrorCode, +char *ErrorString, +unsigned int StringMaxLen); + +/** +* TSI_Init() - Initialize the TSI library +* @ClientVersion: Indicates the version used to call the libTSI.so functions. +* +* Initialize libTSI for use and sets up internal state. It can be called +* multiple times, but TSI_Clean must be called the exact same number of time. +* +* Returns: +* - In case of success: Reference count to the API (number of times to call TSI_Clean) +* - TSI_ERROR_NOT_COMPATIBLE if the requested client version is not supported +* by the library +* - TSI_ERROR_COMPATIBILITY_MISMATCH if TSI_Init is called twice with +* different client version +*/ +TSI_RESULT TSI_Init (TSI_VERSION_ID ClientVersion); + +/** +* TSI_Clean() - Cleans and closes the TSI library +* +* When TSI_Clean is called for the last time, cleanup the internal state. It +* should be called exactly the same number of times as TSI_Init +*/ +TSI_RESULT TSI_Clean (void ); + +/** +* TSIX_DEV_RescanDevices() - Refresh the internal list of devices for libTSI +* @SearchOptions: Options to filter the list of devices (e.g., +* TSI_SEARCHOPTIONS_SHOW_DEVICES_IN_USE to include +* devices already in use). +* @RequiredCaps: Filter to list only devices with specific capabilities. +* @UnallowedCaps: Filter to list only devices without specific capabilities. +* +* Returns: >=0 in case of success, <0 on error. The value is not the number of devices, +* you need to use TSIX_DEV_GetDeviceCount to get the discovered devices count. +* +* This function should be called every time you need to update the list of connected devices, +* and it must be called at least once before calling TSI_DEV_GetDeviceCount. +*/ +TSI_RESULT TSIX_DEV_RescanDevices (TSI_SEARCH_OPTIONS SearchOptions, +TSI_DEVICE_CAPS RequiredCaps, +TSI_DEVICE_CAPS UnallowedCaps); + +/** +* TSIX_DEV_GetDeviceCount() - Get the count of scanned devices +* Returns: the number of devices that the previous call to TSIX_DEV_RescanDevices() detected +* +* Must be called after a TSIX_DEV_RescanDevices. +*/ +TSI_RESULT TSIX_DEV_GetDeviceCount (void ); + +/** +* TSIX_DEV_GetDeviceName() - Get the name of a device from the scanned list +* @DeviceID: Index in the TSI_DEV_RescanDevices list +* @DevNameString: Pointer to store the device name +* @NameStringMaxLength: Size of the allocated memory for @DevNameString +* +* Returns: >=0 in case of success, the length of the device name string +* Note: If the return value is larger than NameStringMaxLength, the string may be truncated +*/ +TSI_RESULT TSIX_DEV_GetDeviceName (TSI_DEVICE_ID DeviceID,char *DevNameString, +unsigned int NameStringMaxLength); + +/** +* TSIX_DEV_OpenDevice() - Open a device from the scanned list +* @DeviceID: index in the TSI_DEV_RescanDevices list +* @Result: Pointer to store the error code returned while opening the device +* Returns: if the device is found, an opaque pointer that can be used for other +* API calls, or NULL on error. +*/ +TSI_HANDLE TSIX_DEV_OpenDevice (TSI_DEVICE_ID DeviceID,TSI_RESULT *Result); + +/** +* TSIX_DEV_CloseDevice() - Close the device handle when finished +* @Device: Device handle to close +* Returns: >=0 in case of success +*/ +TSI_RESULT TSIX_DEV_CloseDevice (TSI_HANDLE Device); + +/** +* TSIX_DEV_GetDeviceRoleCount() - Get the number of roles available for a device +* @Device: Device handle to query +* +* Returns: >=0 in case of success, the number of roles available for the device +*/ +TSI_RESULT TSIX_DEV_GetDeviceRoleCount (TSI_HANDLE Device); + +/** +* TSIX_DEV_GetDeviceRoleName() - Get the name of a specific role for a device +* @Device: Device handle to query +* @RoleIndex: Index of the role to get the name for +* @RoleNameString: Pointer to store the role name +* @RoleStringMaxLength: Size of the allocated memory for @RoleNameString +* +* Returns: >=0 in case of success, the length of the role name string +* Note: If the return value is larger than RoleStringMaxLength, the string may be truncated +*/ +TSI_RESULT TSIX_DEV_GetDeviceRoleName (TSI_HANDLE Device,int RoleIndex, +char *RoleNameString,unsigned int RoleStringMaxLength); + +/** +* TSIX_DEV_SelectRole() - Select a specific role for the specified device +* @Device: Device handle on which to assign the role +* @RoleIndex: Index of the role to assign +* Returns: >=0 in case of success +*/ +TSI_RESULT TSIX_DEV_SelectRole (TSI_HANDLE Device,int RoleIndex); + +/** +* TSIX_VIN_GetInputCount() - Get the number of video inputs available on a device +* @Device: Device handle to query +* +* Returns: >=0 in case of success, the number of video inputs available on the device +*/ +TSI_RESULT TSIX_VIN_GetInputCount (TSI_HANDLE Device); + +/** +* TSIX_VIN_GetInputName() - Get the name of a specific video input on a device +* @Device: Device handle to query +* @InputID: Identifier of the input to get the name for +* @InputNameString: Pointer to store the input name +* @NameStringMaxLen: Size of the allocated memory for @InputNameString +* +* Returns: >=0 in case of success, the length of the input name string +* Note: If the return value is larger than NameStringMaxLen, the string may be truncated +*/ +TSI_RESULT TSIX_VIN_GetInputName (TSI_HANDLE Device,TSI_INPUT_ID InputID, +char *InputNameString,unsigned int NameStringMaxLen); + +/** +* TSIX_VIN_Disable() - Disable video input on the specified device +* @Device: Device handle to disable video input on +* Returns: >=0 in case of success +*/ +TSI_RESULT TSIX_VIN_Disable (TSI_HANDLE Device); + +/** +* TSIX_VIN_Select() - Select a specific video input on the specified device +* @Device: Device handle on which to select the input +* @InputID: Identifier of the input to select +* Returns: >=0 in case of success +*/ + +TSI_RESULT TSIX_VIN_Select (TSI_HANDLE Device,TSI_INPUT_ID InputID); +/** +* TSIX_VIN_Enable() - Enable video input on the specified device +* @Device: Device handle to enable video input on +* @Flags: Flags to specify the options for enabling the video input +* Returns: >=0 in case of success +*/ +TSI_RESULT TSIX_VIN_Enable (TSI_HANDLE Device,TSI_FLAGS Flags); + +/** +* TSIX_TS_GetConfigItem() - Read a configuration item from the UCD device +* @Device: Device handle to read config from. Can be NULL for certain configuration items, +* for example TSI_VERSION_TEXT. +* @ConfigItemID: Identifier of the requested configuration item. +* @ConfigItemData: Pointer to store the read value. +* @ItemMaxSize: Size of the allocated memory for @ConfigItemData. +* +* Returns: The size of the raw data. If the return value is larger than ItemMaxSize, no data +* is copied to ConfigItemData. +* Note: +* - Some configurations require specific size and alignment for the allocated buffer. Refer to +* the specific item configuration documentation for details. +* - Data may still be written to @ConfigItemData even if the return value is larger than +* @ItemMaxSize, potentially causing buffer overflow. +*/ +TSI_RESULT TSIX_TS_GetConfigItem (TSI_HANDLE Device,TSI_CONFIG_ID ConfigItemID, +void *ConfigItemData, +unsigned int ItemMaxSize); + +/** +* TSIX_TS_SetConfigItem() - Set a configuration item on the specified device +* @Device: Device handle to set the configuration on +* @ConfigItemID: Identifier of the configuration item to set +* @ItemData: Pointer to the data to set +* @ItemSize: Size of the data to set +* Returns: >=0 in case of success +*/ +TSI_RESULT TSIX_TS_SetConfigItem (TSI_HANDLE Device,TSI_CONFIG_ID ConfigItemID, +const void *ItemData,unsigned int ItemSize); + +#endif
Signature · 1 line
2.52.0
PATCH v7 19/48 lib/unigraf: Initial Unigraf support
In reply to Louis ChauvetThis introduce the basic boilerplate to connect to a unigraf device.
This integration currently only supports one device opened to simplify its usage and cleanup.
The functions unigraf_open_device and unigraf_require_device will register a handler to do proper cleanup on IGT exit.
--- lib/meson.build | 10 +++++ lib/unigraf/unigraf.c | 120 ++++++++++++++++++++++++++++++++++++++++++++++++++ lib/unigraf/unigraf.h | 43 ++++++++++++++++++ meson.build | 14 ++++++ 4 files changed, 187 insertions(+)
lib/meson.build +10 -0
@@ -151,6 +151,13 @@ lib_deps = [ zlib ] +if libtsi.found() + lib_deps += libtsi + lib_sources += [ + 'unigraf/unigraf.c' + ] +endif + if libdrm_nouveau.found() lib_deps += libdrm_nouveau lib_sources += [
@@ -232,6 +239,9 @@ endif if chamelium.found() lib_deps += chamelium lib_sources += [ 'igt_chamelium.c', 'igt_chamelium_stream.c' ] +endif + +if chamelium.found() or libtsi.found() lib_sources += 'monitor_edids/monitor_edids_helper.c' endif
lib/unigraf/unigraf.c new file +120 -0
120 lines not on this page · raw message
lib/unigraf/unigraf.h new file +43 -0
43 lines not on this page · raw message
meson.build +14 -0
@@ -166,6 +166,12 @@ libpci = dependency('libpci', required : true) libudev = dependency('libudev', required : true) glib = dependency('glib-2.0', required : true) +libtsi = cc.find_library('TSI', required : false) + +if libtsi.found() + config.set('HAVE_UNIGRAF', 1) +endif + xmlrpc = dependency('xmlrpc', required : false) xmlrpc_util = dependency('xmlrpc_util', required : false) xmlrpc_client = dependency('xmlrpc_client', required : false)
@@ -290,6 +296,7 @@ amdgpudir = join_paths(libexecdir, 'amdgpu') msmdir = join_paths(libexecdir, 'msm') panfrostdir = join_paths(libexecdir, 'panfrost') panthordir = join_paths(libexecdir, 'panthor') +unigrafdir = join_paths(libexecdir, 'unigraf') v3ddir = join_paths(libexecdir, 'v3d') vc4dir = join_paths(libexecdir, 'vc4') vkmsdir = join_paths(libexecdir, 'vkms')
@@ -372,6 +379,12 @@ if get_option('use_rpath') vmwgfx_rpathdir = join_paths(vmwgfx_rpathdir, '..') endforeach vmwgfx_rpathdir = join_paths(vmwgfx_rpathdir, libdir) + + unigraf_rpathdir = '$ORIGIN' + foreach p : unigrafdir.split('/') + unigraf_rpathdir = join_paths(unigraf_rpathdir, '..') + endforeach + unigraf_rpathdir = join_paths(unigraf_rpathdir, libdir) else bindir_rpathdir = '' libexecdir_rpathdir = ''
@@ -383,6 +396,7 @@ else vc4_rpathdir = '' vkms_rpathdir = '' vmwgfx_rpathdir = '' + unigraf_rpathdir = '' endif build_testplan = get_option('testplan')
Signature · 1 line
2.52.0
Re: [PATCH i-g-t v7 19/48] lib/unigraf: Initial Unigraf support
Quoted 7 lines · On Mon, 23 Feb 2026 13:09:26 +0100 Louis Chauvet <[email protected]>…
This introduce the basic boilerplate to connect to a unigraf device.
This integration currently only supports one device opened to simplify its usage and cleanup.
The functions
unigraf_open_deviceandunigraf_require_devicewill register a handler to do proper cleanup on IGT exit.
Thank you!
--
Köry Maincent, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com
PATCH v7 20/48 lib/igt_kms: Automatically connect unigraf on display require
In reply to Louis ChauvetAs Unigraf can emulate a display, automatically connect it for all devices. If a test is already using unigraf, this have no effect.
--- lib/igt_kms.c | 7 +++++++ 1 file changed, 7 insertions(+)
lib/igt_kms.c +7 -0
@@ -66,6 +66,9 @@#ifdef HAVE_CHAMELIUM #include "igt_chamelium.h" #endif +#ifdef HAVE_UNIGRAF +#include "unigraf/unigraf.h" +#endif /** * SECTION:igt_kms
@@ -3125,6 +3128,10 @@ void igt_display_require(igt_display_t *display, int drm_fd)int i, crtc_index;bool is_intel_dev; +#ifdef HAVE_UNIGRAF +unigraf_open_device (drm_fd); +#endif +memset (display,0 ,sizeof (igt_display_t));LOG_INDENT (display,"init" );
Signature · 1 line
2.52.0
Re: [PATCH i-g-t v7 20/48] lib/igt_kms: Automatically connect unigraf on display require
Quoted 2 lines · On Mon, 23 Feb 2026 13:09:27 +0100 Louis Chauvet <[email protected]>…
As Unigraf can emulate a display, automatically connect it for all devices. If a test is already using unigraf, this have no effect.
Thank you!
Signature · 3 lines
Köry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com
PATCH v7 21/48 lib/unigraf: Introduce device configuration
In reply to Louis ChauvetAs there could be multiple devices detected by libTSI, add a configuration field to ensure that igt will use the proper unigraf device.
The unigraf integration will search for a [Unigraf] entry containing a Device=
For example, it can look like:
[Unigraf]
Device=UCD-500 [2434C620]
--- lib/unigraf/unigraf.c | 57 +++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 55 insertions(+), 2 deletions(-)
lib/unigraf/unigraf.c +55 -2
@@ -10,8 +10,9 @@#include <stdint.h> #include "unigraf.h" -#include "TSI.h" #include "TSI_types.h" +#include "TSI.h" +#include "igt_rc.h" #define unigraf_debug (fmt, ...) igt_debug("TSI:%p: " fmt, unigraf_device, ##__VA_ARGS__)
@@ -19,6 +20,21 @@ static TSI_HANDLE unigraf_device;static char *unigraf_default_edid;static char *unigraf_connector_name; +/** +* UNIGRAF_NAME_MAX - Maximum name length to be used for TSI functions +*/ +#define UNIGRAF_NAME_MAX 1024 + +/** +* UNIGRAF_CONFIG_GROUP - Name of the unigraf group in the configuration file +*/ +#define UNIGRAF_CONFIG_GROUP "Unigraf" + +/** +* UNIGRAF_CONFIG_DEVICE_NAME - Key of the device name in the configuration file +*/ +#define UNIGRAF_CONFIG_DEVICE_NAME "Device" +static void unigraf_close_device (void ) {if (!unigraf_device)
@@ -65,6 +81,22 @@ static unsigned int unigraf_device_count(void)return unigraf_assert (TSIX_DEV_GetDeviceCount ()); } +static int unigraf_find_device (char *request) +{ +int device_count =unigraf_device_count (); + +for (int i =0 ; i < device_count; i++) { +char dev_name[UNIGRAF_NAME_MAX ] ="" ; + +memset (dev_name,0 ,UNIGRAF_NAME_MAX ); +unigraf_assert (TSIX_DEV_GetDeviceName (i, dev_name,UNIGRAF_NAME_MAX )); +unigraf_debug ("Detected unigraf device %d: %s\n" , i, dev_name); +if (!strncmp (dev_name, request,UNIGRAF_NAME_MAX )) +return i; + } +return -ENODEV ; +} +/** * unigraf_open_device() - Search and open a device. * @drm_fd: File descriptor of the currently used drm device
@@ -76,8 +108,10 @@ static unsigned int unigraf_device_count(void)bool unigraf_open_device (int drm_fd) {TSI_RESULT r; +GError *cfg_error =NULL ; +char *cfg_device =NULL ;int device_count; -int chosen_device =0 ; +int chosen_device;int chosen_role =0 ;int chosen_input =0 ;
@@ -88,6 +122,15 @@ bool unigraf_open_device(int drm_fd)unigraf_init (); +if (igt_key_file) { + cfg_device =g_key_file_get_string (igt_key_file,UNIGRAF_CONFIG_GROUP , +UNIGRAF_CONFIG_DEVICE_NAME , &cfg_error); +if (cfg_error) { +unigraf_debug ("No device name configured, uses first device available.\n" ); + cfg_device =NULL ; + } + } +unigraf_assert (TSIX_DEV_RescanDevices (0 ,TSI_DEVCAP_VIDEO_CAPTURE ,0 )); device_count =unigraf_device_count ();
@@ -96,6 +139,16 @@ bool unigraf_open_device(int drm_fd)return false; } +if (!cfg_device) { + chosen_device =0 ; + }else { + chosen_device =unigraf_find_device (cfg_device); +if (chosen_device <0 ) { +igt_warn ("The requested unigraf device %s is not found, err: %d.\n" , cfg_device, chosen_device); +return false; + } + } + unigraf_device =TSIX_DEV_OpenDevice (chosen_device, &r);unigraf_assert (r);igt_assert (unigraf_device);
Signature · 1 line
2.52.0
Re: [PATCH i-g-t v7 21/48] lib/unigraf: Introduce device configuration
Quoted 22 lines · On Mon, 23 Feb 2026 13:09:28 +0100 Louis Chauvet <[email protected]>…
As there could be multiple devices detected by libTSI, add a configuration field to ensure that igt will use the proper unigraf device.
The unigraf integration will search for a [Unigraf] entry containing a Device=
For example, it can look like:
[Unigraf]
Device=UCD-500 [2434C620]Signed-off-by Louis Chauvet <[email protected]>--- lib/unigraf/unigraf.c | 57+++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 55 insertions(+), 2 deletions(-)
lib/unigraf/unigraf.c +0
-0
lib/unigraf/unigraf.c line 14
Quoted 6 lines
lib/unigraf/unigraf.c +1
-1@@ -10,8 +10,9 @@#include <stdint.h> #include "unigraf.h" -#include "TSI.h" #include "TSI_types.h" +#include "TSI.h"
Nit: You move this include for nothing.
Quoted 29 lines
lib/unigraf/unigraf.c +13
-0+#include "igt_rc.h" #define unigraf_debug (fmt, ...) igt_debug("TSI:%p: " fmt, unigraf_device, ##__VA_ARGS__)@@ -19,6 +20,21 @@ static TSI_HANDLE unigraf_device;static char *unigraf_default_edid;static char *unigraf_connector_name; +/** +* UNIGRAF_NAME_MAX - Maximum name length to be used for TSI functions +*/ +#define UNIGRAF_NAME_MAX 1024 + +/** +* UNIGRAF_CONFIG_GROUP - Name of the unigraf group in the configuration file +*/ +#define UNIGRAF_CONFIG_GROUP "Unigraf" + +/** +* UNIGRAF_CONFIG_DEVICE_NAME - Key of the device name in the configuration file
+ */lib/unigraf/unigraf.c +2
-0+#define UNIGRAF_CONFIG_DEVICE_NAME "Device" +static void unigraf_close_device (void ) {if (!unigraf_device)@@ -65,6 +81,22 @@ static unsigned int unigraf_device_count(void)return unigraf_assert (TSIX_DEV_GetDeviceCount ());
lib/unigraf/unigraf.c static unsigned int unigraf_device_count(void) · line 91
Quoted 10 lines
lib/unigraf/unigraf.c +8
-0} +static int unigraf_find_device (char *request) +{ +int device_count =unigraf_device_count (); + +for (int i =0 ; i < device_count; i++) { +char dev_name[UNIGRAF_NAME_MAX ] ="" ; + +memset (dev_name,0 ,UNIGRAF_NAME_MAX );
This memset is useless here.
Quoted 45 lines
lib/unigraf/unigraf.c +8
-0+unigraf_assert (TSIX_DEV_GetDeviceName (i, dev_name,UNIGRAF_NAME_MAX )); +unigraf_debug ("Detected unigraf device %d: %s\n" , i, dev_name); +if (!strncmp (dev_name, request,UNIGRAF_NAME_MAX )) +return i; + } +return -ENODEV ; +} +/** *
unigraf_open_device()- Search and open a device.
* @drm_fd: File descriptor of the currently used drm devicelib/unigraf/unigraf.c +12
-1@@ -76,8 +108,10 @@ static unsigned int unigraf_device_count(void)bool unigraf_open_device (int drm_fd) {TSI_RESULT r; +GError *cfg_error =NULL ; +char *cfg_device =NULL ;int device_count; -int chosen_device =0 ; +int chosen_device;int chosen_role =0 ;int chosen_input =0 ;@@ -88,6 +122,15 @@ bool unigraf_open_device(int drm_fd)unigraf_init (); +if (igt_key_file) { + cfg_device =g_key_file_get_string (igt_key_file,UNIGRAF_CONFIG_GROUP , +UNIGRAF_CONFIG_DEVICE_NAME , &cfg_error); +if (cfg_error) { + unigraf_debug("No device name configured, uses first device available.\n"); + cfg_device =NULL ; + } + } +unigraf_assert(TSIX_DEV_RescanDevices(0,
TSI_DEVCAP_VIDEO_CAPTURE,
0));lib/unigraf/unigraf.c +0
-0device_count =unigraf_device_count ();
lib/unigraf/unigraf.c bool unigraf_open_device(int drm_fd) · line 144
Quoted 6 lines
lib/unigraf/unigraf.c +3
-0@@ -96,6 +139,16 @@ bool unigraf_open_device(int drm_fd)return false; } +if (!cfg_device) { + chosen_device =0 ; + }else {
Why removing the chosen_device initialization at the top of the function and add this if condition?
if (cfg_device) {...} is sufficient here.
Quoted 10 lines
lib/unigraf/unigraf.c +7
-0+ chosen_device =unigraf_find_device (cfg_device); +if (chosen_device <0 ) { + igt_warn("The requested unigraf device %s is not found, err: %d.\n", cfg_device, chosen_device); +return false; + } + } + unigraf_device =TSIX_DEV_OpenDevice (chosen_device, &r);unigraf_assert (r);
Quoted 2 lines
igt_assert(unigraf_device);
Regards,
Signature · 3 lines
Köry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com
PATCH v7 22/48 lib/unigraf: Introduce role configuration
In reply to Louis ChauvetSome unigraf devices, like the UCD-500 can have multiple hardware
configurations: displayport input/output, usbc input/output.
The device configuration can look like:
[Unigraf]
Device=UCD-500 [2434C620]
Role=DisplayPort Source and Sink
--- lib/unigraf/unigraf.c | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 56 insertions(+), 1 deletion(-)
lib/unigraf/unigraf.c +56 -1
@@ -7,6 +7,7 @@*/ #include "igt_core.h" +#include <asm-generic/errno-base.h> #include <stdint.h> #include "unigraf.h"
@@ -35,6 +36,16 @@ static char *unigraf_connector_name;*/ #define UNIGRAF_CONFIG_DEVICE_NAME "Device" +/** +* UNIGRAF_CONFIG_DEVICE_ROLE - Key of the device role in the configuration file +*/ +#define UNIGRAF_CONFIG_DEVICE_ROLE "Role" + +/** +* UNIGRAF_DEFAULT_ROLE_NAME - Default role name to search on the unigraf device +*/ +#define UNIGRAF_DEFAULT_ROLE_NAME "USB-C, DP Alt Mode Source and Sink" +static void unigraf_close_device (void ) {if (!unigraf_device)
@@ -97,6 +108,23 @@ static int unigraf_find_device(char *request)return -ENODEV ; } +static int unigraf_find_role (const char *request) +{ +int role_count =unigraf_assert (TSIX_DEV_GetDeviceRoleCount (unigraf_device)); + +for (int i =0 ; i < role_count; i++) { +char role_name[UNIGRAF_NAME_MAX ] ="" ; + +unigraf_assert (TSIX_DEV_GetDeviceRoleName (unigraf_device, i, + role_name, +UNIGRAF_NAME_MAX )); +unigraf_debug ("Role %d: %s\n" , i, role_name); +if (!strncmp (role_name, request,UNIGRAF_NAME_MAX )) +return i; + } +return -ENODEV ; +} +/** * unigraf_open_device() - Search and open a device. * @drm_fd: File descriptor of the currently used drm device
@@ -110,9 +138,10 @@ bool unigraf_open_device(int drm_fd)TSI_RESULT r;GError *cfg_error =NULL ;char *cfg_device =NULL ; +char *cfg_role =NULL ;int device_count;int chosen_device; -int chosen_role =0 ; +int chosen_role;int chosen_input =0 ;assert (igt_can_fail ());
@@ -129,6 +158,14 @@ bool unigraf_open_device(int drm_fd)unigraf_debug ("No device name configured, uses first device available.\n" ); cfg_device =NULL ; } + + cfg_error =NULL ; + cfg_role =g_key_file_get_string (igt_key_file,UNIGRAF_CONFIG_GROUP , +UNIGRAF_CONFIG_DEVICE_ROLE , &cfg_error); +if (cfg_error) { +unigraf_debug ("No device role configured.\n" ); + cfg_role =NULL ; + } }unigraf_assert (TSIX_DEV_RescanDevices (0 ,TSI_DEVCAP_VIDEO_CAPTURE ,0 ));
@@ -154,6 +191,24 @@ bool unigraf_open_device(int drm_fd)igt_assert (unigraf_device);unigraf_debug ("Successfully opened the unigraf device %d.\n" , chosen_device); +if (!cfg_role) { +unigraf_debug ("No role configured, trying " UNIGRAF_DEFAULT_ROLE_NAME "\n" ); + chosen_role =unigraf_find_role (UNIGRAF_DEFAULT_ROLE_NAME ); +if (chosen_role <0 ) { +char role_name[UNIGRAF_NAME_MAX ]; + + chosen_role =0 ; +unigraf_assert (TSIX_DEV_GetDeviceRoleName (unigraf_device, chosen_role, + role_name,UNIGRAF_NAME_MAX )); +unigraf_debug ("Role " UNIGRAF_DEFAULT_ROLE_NAME " not found, using role 0 (%s)\n" , + role_name); + } + }else { + chosen_role =unigraf_find_role (cfg_role); +igt_assert_f (chosen_role >=0 ,"TSI:%p: Role %s not found." , + unigraf_device, cfg_role); + } +unigraf_assert (TSIX_DEV_SelectRole (unigraf_device, chosen_role));unigraf_assert (TSIX_VIN_Select (unigraf_device, chosen_input));unigraf_assert (TSIX_VIN_Enable (unigraf_device, chosen_input));
Signature · 1 line
2.52.0
PATCH v7 23/48 lib/unigraf: Introduce input configuration
In reply to Louis ChauvetAs multiple input can be present on unigraf devices, add a configuration field to select the proper input. By default it will take the first available.
The configuration can look like:
[Unigraf]
Device=UCD-500 [2434C620]
Role=DisplayPort Source and Sink
Input=DP RX
--- lib/unigraf/unigraf.c | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 55 insertions(+), 1 deletion(-)
lib/unigraf/unigraf.c +55 -1
@@ -41,11 +41,21 @@ static char *unigraf_connector_name;*/ #define UNIGRAF_CONFIG_DEVICE_ROLE "Role" +/** +* UNIGRAF_CONFIG_INPUT_NAME - Key of the input name in the configuration file +*/ +#define UNIGRAF_CONFIG_INPUT_NAME "Input" +/** * UNIGRAF_DEFAULT_ROLE_NAME - Default role name to search on the unigraf device */ #define UNIGRAF_DEFAULT_ROLE_NAME "USB-C, DP Alt Mode Source and Sink" +/** +* UNIGRAF_DEFAULT_INPUT_NAME - Default input name to search on the unigraf device +*/ +#define UNIGRAF_DEFAULT_INPUT_NAME "DP RX" +static void unigraf_close_device (void ) {if (!unigraf_device)
@@ -125,6 +135,22 @@ static int unigraf_find_role(const char *request)return -ENODEV ; } +static int unigraf_find_input (const char *request) +{ +int role_count =unigraf_assert (TSIX_VIN_GetInputCount (unigraf_device)); + +for (int i =0 ; i < role_count; i++) { +char input_name[UNIGRAF_NAME_MAX ] ="" ; + +unigraf_assert (TSIX_VIN_GetInputName (unigraf_device, i, + input_name,UNIGRAF_NAME_MAX )); +unigraf_debug ("Input %d: %s\n" , i, input_name); +if (!strncmp (input_name, request,UNIGRAF_NAME_MAX )) +return i; + } +return -ENODEV ; +} +/** * unigraf_open_device() - Search and open a device. * @drm_fd: File descriptor of the currently used drm device
@@ -139,10 +165,11 @@ bool unigraf_open_device(int drm_fd)GError *cfg_error =NULL ;char *cfg_device =NULL ;char *cfg_role =NULL ; +char *cfg_input =NULL ;int device_count;int chosen_device;int chosen_role; -int chosen_input =0 ; +int chosen_input;assert (igt_can_fail ());
@@ -166,6 +193,14 @@ bool unigraf_open_device(int drm_fd)unigraf_debug ("No device role configured.\n" ); cfg_role =NULL ; } + + cfg_error =NULL ; + cfg_input =g_key_file_get_string (igt_key_file,UNIGRAF_CONFIG_GROUP , +UNIGRAF_CONFIG_INPUT_NAME , &cfg_error); +if (cfg_error) { +unigraf_debug ("No input name configured.\n" ); + cfg_input =NULL ; + } }unigraf_assert (TSIX_DEV_RescanDevices (0 ,TSI_DEVCAP_VIDEO_CAPTURE ,0 ));
@@ -210,6 +245,25 @@ bool unigraf_open_device(int drm_fd) }unigraf_assert (TSIX_DEV_SelectRole (unigraf_device, chosen_role)); + +if (!cfg_input) { +unigraf_debug ("No input configured, trying " UNIGRAF_DEFAULT_INPUT_NAME "\n" ); + chosen_input =unigraf_find_input (UNIGRAF_DEFAULT_INPUT_NAME ); +if (chosen_input <0 ) { +char input_name[UNIGRAF_NAME_MAX ]; + + chosen_input =0 ; +unigraf_assert (TSIX_VIN_GetInputName (unigraf_device, chosen_input, + input_name,UNIGRAF_NAME_MAX )); +unigraf_debug ("Input " UNIGRAF_DEFAULT_INPUT_NAME " not found, using input 0 (%s).\n" , + input_name); + } + }else { + chosen_input =unigraf_find_input (cfg_input); +igt_assert_f (chosen_input >=0 ,"TSI:%p: Input %s not found." , + unigraf_device, cfg_input); + } +unigraf_assert (TSIX_VIN_Select (unigraf_device, chosen_input));unigraf_assert (TSIX_VIN_Enable (unigraf_device, chosen_input));
Signature · 1 line
2.52.0
Re: [PATCH i-g-t v7 23/48] lib/unigraf: Introduce input configuration
Quoted 10 lines · On Mon, 23 Feb 2026 13:09:30 +0100 Louis Chauvet <[email protected]>…
As multiple input can be present on unigraf devices, add a configuration field to select the proper input. By default it will take the first available.
The configuration can look like:
[Unigraf]
Device=UCD-500 [2434C620]
Role=DisplayPort Source and Sink
Input=DP RX
Thank you!
Signature · 3 lines
Köry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com
PATCH v7 24/48 lib/unigraf: Add reset function
In reply to Louis ChauvetTo have a consistent state at the beginning of tests, add a unigraf_reset function that will restore a known state.
--- lib/unigraf/unigraf.c | 12 ++++++++++++ lib/unigraf/unigraf.h | 2 ++ 2 files changed, 14 insertions(+)
lib/unigraf/unigraf.c +12 -0
@@ -267,6 +267,8 @@ bool unigraf_open_device(int drm_fd)unigraf_assert (TSIX_VIN_Select (unigraf_device, chosen_input));unigraf_assert (TSIX_VIN_Enable (unigraf_device, chosen_input)); +unigraf_reset (); +return true; }
@@ -280,3 +282,13 @@ void unigraf_require_device(int drm_fd) {igt_require (unigraf_open_device (drm_fd)); } + +/** +* unigraf_reset() - Reset the Unigraf device +* +* This function performs a hardware reset of the Unigraf device, restoring it to a +* default state. This includes resetting all configuration parameters, stream settings, +* and link parameters to default values. +*/ +void unigraf_reset (void ) +{}
lib/unigraf/unigraf.h +2 -0
@@ -40,4 +40,6 @@ bool unigraf_open_device(int drm_fd);void unigraf_require_device (int drm_fd); +void unigraf_reset (void ); +#endif // UNIGRAF_H
Signature · 1 line
2.52.0
Re: [PATCH i-g-t v7 24/48] lib/unigraf: Add reset function
Quoted 2 lines · On Mon, 23 Feb 2026 13:09:31 +0100 Louis Chauvet <[email protected]>…
To have a consistent state at the beginning of tests, add a
unigraf_resetfunction that will restore a known state.
Thank you!
Signature · 3 lines
Köry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com
PATCH v7 25/48 lib/unigraf: Add unigraf assert and deassert helpers
In reply to Louis ChauvetUnigraf is able to manipulate the HPD line of the connector, add few helpers to manipulate them.
--- lib/unigraf/unigraf.c | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++ lib/unigraf/unigraf.h | 6 ++++++ 2 files changed, 59 insertions(+)
lib/unigraf/unigraf.c +53 -0
@@ -92,6 +92,22 @@ static void unigraf_init(void)igt_install_exit_handler (unigraf_exit_handler); } +/** +* unigraf_write_u32 - Write a 32-bit value to a TSI configuration item +* @config_id: The configuration item ID to write to +* @value: The 32-bit value to write +* +* This macro writes a 32-bit value to the specified TSI configuration item. +* This is a macro to have the proper line information when using unigraf_debug. +*/ +#define unigraf_write_u32 (config_id, value) \ + ({ \ + uint32_t v = (value); \ + igt_assert(unigraf_device); \ + unigraf_debug("Value write: " #config_id "=%d...\n", v); \ + unigraf_assert(TSIX_TS_SetConfigItem(unigraf_device, config_id, &v, sizeof(value))); \ + }) +/** * unigraf_device_count() - Return the number of scanned devices *
@@ -292,3 +308,40 @@ void unigraf_require_device(int drm_fd)*/ void unigraf_reset (void ) {} + +/** +* unigraf_hpd_assert() - Assert Hot Plug Detect signal +* +* This function asserts the HPD signal, simulating a device connection. +*/ +void unigraf_hpd_assert (void ) +{ +unigraf_write_u32 (TSI_FORCE_HOT_PLUG_STATE_W ,1 ); +} + +/** +* unigraf_hpd_pulse() - Pulse the Hot Plug Detect signal +* @duration: The duration in milliseconds for which the HPD signal should be pulsed +* +* This function pulses the HPD signal for the specified duration. +*/ +void unigraf_hpd_pulse (int duration) +{ +/* In theory this should work: +* unigraf_write_u32(TSI_DPRX_HPD_PULSE_W, duration); +* But this seems to be broken and this works: +*/ +unigraf_hpd_deassert (); +usleep (duration); +unigraf_hpd_assert (); +} + +/** +* unigraf_hpd_deassert() - Deassert Hot Plug Detect signal +* +* This function deasserts the HPD signal, simulating a device disconnection. +*/ +void unigraf_hpd_deassert (void ) +{ +unigraf_write_u32 (TSI_FORCE_HOT_PLUG_STATE_W ,0 ); +}
lib/unigraf/unigraf.h +6 -0
@@ -42,4 +42,10 @@ void unigraf_require_device(int drm_fd);void unigraf_reset (void ); +void unigraf_hpd_deassert (void ); + +void unigraf_hpd_pulse (int duration); + +void unigraf_hpd_assert (void ); +#endif // UNIGRAF_H
Signature · 1 line
2.52.0
Re: [PATCH i-g-t v7 25/48] lib/unigraf: Add unigraf assert and deassert helpers
Quoted 2 lines · On Mon, 23 Feb 2026 13:09:32 +0100 Louis Chauvet <[email protected]>…
Unigraf is able to manipulate the HPD line of the connector, add few helpers to manipulate them.
Thank you!
Signature · 3 lines
Köry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com
PATCH v7 26/48 lib/unigraf: Add plug/unplug helpers
In reply to Louis ChauvetThe unigraf can emulate a full cable plug/unplug, so add helper to emulate this.
--- lib/unigraf/unigraf.c | 28 +++++++++++++++++++++++++++- lib/unigraf/unigraf.h | 4 ++++ 2 files changed, 31 insertions(+), 1 deletion(-)
lib/unigraf/unigraf.c +27 -1
@@ -307,7 +307,9 @@ void unigraf_require_device(int drm_fd)* and link parameters to default values. */ void unigraf_reset (void ) -{} +{ +unigraf_plug (); +}/** * unigraf_hpd_assert() - Assert Hot Plug Detect signal
@@ -345,3 +347,27 @@ void unigraf_hpd_deassert(void) {unigraf_write_u32 (TSI_FORCE_HOT_PLUG_STATE_W ,0 ); } + +/** +* unigraf_plug() - Emulate a cable unplug +* +* This function will emulate a full cable unplug (not a simple HPD line change) +*/ +void unigraf_unplug (void ) +{ +int d =2 <<2 ; + +unigraf_write_u32 (TSI_DPRX_HPD_FORCE , d); +} + +/** +* unigraf_plug() - Emulate a cable plug +* +* This function will emulate a full cable plug (not a simple HPD line change) +*/ +void unigraf_plug (void ) +{ +int d =3 <<2 ; + +unigraf_write_u32 (TSI_DPRX_HPD_FORCE , d); +}
lib/unigraf/unigraf.h +4 -0
@@ -48,4 +48,8 @@ void unigraf_hpd_pulse(int duration);void unigraf_hpd_assert (void ); +void unigraf_plug (void ); + +void unigraf_unplug (void ); +#endif // UNIGRAF_H
Signature · 1 line
2.52.0
Re: [i-g-t,v7,26/48] lib/unigraf: Add plug/unplug helpers
Hello Louis,
Quoted 29 lines · Louis Chauvet
The unigraf can emulate a full cable plug/unplug, so add helper to emulate this.
Reviewed-by Kory Maincent <[email protected]>Reviewed-by Luca Ceresoli <[email protected]>Signed-off-by Louis Chauvet <[email protected]>--- lib/unigraf/unigraf.c | 28 +++++++++++++++++++++++++++- lib/unigraf/unigraf.h | 4 ++++ 2 files changed, 31 insertions(+), 1 deletion(-)lib/unigraf/unigraf.c +3
-1@@ -307,7 +307,9 @@ void unigraf_require_device(int drm_fd)* and link parameters to default values. */ void unigraf_reset (void ) -{} +{ +unigraf_plug (); +}/** * unigraf_hpd_assert() - Assert Hot Plug Detect signal @@ -345,3 +347,27 @@ void unigraf_hpd_deassert(void) {unigraf_write_u32 (TSI_FORCE_HOT_PLUG_STATE_W ,0 );
lib/unigraf/unigraf.c void unigraf_hpd_deassert(void) · line 358
Quoted 10 lines
lib/unigraf/unigraf.c +9
-0} + +/** +* unigraf_plug() - Emulate a cable unplug +* +* This function will emulate a full cable unplug (not a simple HPD line change) +*/ +void unigraf_unplug (void ) +{ +int d =2 <<2 ;
Let's avoid magic numbers
lib/unigraf/unigraf.c void unigraf_hpd_deassert(void) · line 370
Quoted 12 lines
lib/unigraf/unigraf.c +12
-0+ +unigraf_write_u32 (TSI_DPRX_HPD_FORCE , d); +} + +/** +* unigraf_plug() - Emulate a cable plug +* +* This function will emulate a full cable plug (not a simple HPD line change) +*/ +void unigraf_plug (void ) +{ +int d =3 <<2 ;
Same here
Thanks and Regards
Kunal Joshi
Quoted 16 lines
lib/unigraf/unigraf.c +3
-0+ +unigraf_write_u32 (TSI_DPRX_HPD_FORCE , d); +}lib/unigraf/unigraf.h +4
-0@@ -48,4 +48,8 @@ void unigraf_hpd_pulse(int duration);void unigraf_hpd_assert (void ); +void unigraf_plug (void ); + +void unigraf_unplug (void ); +#endif // UNIGRAF_H
PATCH v7 27/48 lib/unigraf: Allows sst/mst configuration
In reply to Louis ChauvetUnigraf devices can emulate both SST and MST display port. In order to write tests using both, add fews helper to manipulate them.
The define TSI_DPRX_NOT_DOCUMENTED_SIDEBAND_MSG_SUPPORT is taken from the python SDK, as it was not defined by the C sdk nor documented.
--- lib/unigraf/unigraf.c | 111 ++++++++++++++++++++++++++++++++++++++++++++++++++ lib/unigraf/unigraf.h | 12 ++++++ 2 files changed, 123 insertions(+)
lib/unigraf/unigraf.c +111 -0
@@ -108,6 +108,25 @@ static void unigraf_init(void)unigraf_assert (TSIX_TS_SetConfigItem (unigraf_device, config_id, &v,sizeof (value))); \ }) +/** +* unigraf_read_u32 - Read a 32-bit value from a TSI configuration item with error handling +* @config_id: The configuration item ID to read from +* +* This macro reads a 32-bit value from the specified TSI configuration item. +* It includes error handling and debug output. This is a macro to have the proper +* line information when using unigraf_debug. +* +* Returns: The 32-bit value read from the configuration item +*/ +#define unigraf_read_u32 (config_id) \ + ({ \ + uint32_t value; \ + igt_assert(unigraf_device); \ + unigraf_assert(TSIX_TS_GetConfigItem(unigraf_device, config_id, &value, sizeof(value))); \ + unigraf_debug("Value read: " #config_id "=%d\n", value); \ + value; \ + }) +/** * unigraf_device_count() - Return the number of scanned devices *
@@ -309,6 +328,8 @@ void unigraf_require_device(int drm_fd)void unigraf_reset (void ) {unigraf_plug (); +unigraf_set_mst_stream_count (1 ); +unigraf_set_sst (); }/**
@@ -371,3 +392,93 @@ void unigraf_plug(void)unigraf_write_u32 (TSI_DPRX_HPD_FORCE , d); } + +/** +* unigraf_set_sst() - Configure the device for Single Stream Transport mode +* +* This function sets the device to operate in Single Stream Transport (SST) mode. +*/ +void unigraf_set_sst (void ) +{ +int link_flags =0xFFFFFFFF ; + +unigraf_assert (TSIX_TS_GetConfigItem (unigraf_device,TSI_DPRX_LINK_FLAGS , + &link_flags,sizeof (link_flags))); + link_flags &= ~(TSI_DPRX_LINK_FLAGS_MST |TSI_DPRX_NOT_DOCUMENTED_SIDEBAND_MSG_SUPPORT ); +unigraf_write_u32 (TSI_DPRX_LINK_FLAGS , link_flags); +} + +/** +* unigraf_set_mst() - Configure the device for Multi Stream Transport mode +* +* This function sets the device to operate in Multi Stream Transport (MST) mode. +*/ +void unigraf_set_mst (void ) +{ +int link_flags =0xFFFFFFFF ; + +unigraf_assert (TSIX_TS_GetConfigItem (unigraf_device,TSI_DPRX_LINK_FLAGS , + &link_flags,sizeof (link_flags))); + link_flags |=TSI_DPRX_LINK_FLAGS_MST |TSI_DPRX_NOT_DOCUMENTED_SIDEBAND_MSG_SUPPORT ; +unigraf_write_u32 (TSI_DPRX_LINK_FLAGS , link_flags); +} + +/** +* unigraf_get_mst_stream_max_count() - Get the maximum number of stream count accepted by the +* device +* Caution: This function can be destructive to some configuration: the only way to get the +* information is to try and read the new value. +*/ +int unigraf_get_mst_stream_max_count (void ) +{ +struct TSI_DPRX_HW_CAPS_R_s caps; + +unigraf_assert (TSIX_TS_GetConfigItem (unigraf_device,TSI_DPRX_HW_CAPS_R , + &caps,sizeof (caps))); + +return caps.mst_stream_count; +} + +/** +* unigraf_get_mst_stream_count() - Get the current number of MST streams +* +* Returns: The current number of MST streams configured on the device. +*/ +int unigraf_get_mst_stream_count (void ) +{ +return unigraf_read_u32 (TSI_DPRX_MST_SINK_COUNT ); +} + +/** +* unigraf_set_mst_stream_count() - Set the number of accepted stream count +* +* Returns true when the stream count was properly applied, false if the final stream count +* is not the one requested +*/ +bool unigraf_set_mst_stream_count (int count) +{ +int new_count; + +igt_assert_lte (count,unigraf_get_mst_stream_max_count ()); + +unigraf_write_u32 (TSI_DPRX_MST_SINK_COUNT , count); + new_count =unigraf_get_mst_stream_count (); + +igt_warn_on_f (count != new_count, +"IGT:%p: Requested MST stream count (%d) differs from what was applied by the device (%d)\n" , + unigraf_device, count, new_count); + +return count == new_count; +} + +/** +* unigraf_select_stream() - Select the active stream for the device +* @stream: The stream index to select +* +* This function selects the active stream for the device. The stream index +* should be a valid stream number that the device supports. +*/ +void unigraf_select_stream (int stream) +{ +unigraf_write_u32 (TSI_DPRX_STREAM_SELECT , stream); +}
lib/unigraf/unigraf.h +12 -0
@@ -52,4 +52,16 @@ void unigraf_plug(void);void unigraf_unplug (void ); +void unigraf_set_sst (void ); + +void unigraf_set_mst (void ); + +int unigraf_get_mst_stream_count (void ); + +bool unigraf_set_mst_stream_count (int count); + +int unigraf_get_mst_stream_max_count (void ); + +void unigraf_select_stream (int stream); +#endif // UNIGRAF_H
Signature · 1 line
2.52.0
Re: [PATCH i-g-t v7 27/48] lib/unigraf: Allows sst/mst configuration
Quoted 5 lines · On Mon, 23 Feb 2026 13:09:34 +0100 Louis Chauvet <[email protected]>…
Unigraf devices can emulate both SST and MST display port. In order to write tests using both, add fews helper to manipulate them.
The define
TSI_DPRX_NOT_DOCUMENTED_SIDEBAND_MSG_SUPPORTis taken from the python SDK, as it was not defined by the C sdk nor documented.
Thank you!
Signature · 3 lines
Köry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com
PATCH v7 28/48 lib/unigraf: Add helpers to read and write edid
In reply to Louis ChauvetRead and writing EDID on unigraf can be useful to emulate different screens, add helpers to read and write them.
There is a limitation on the libTSI.so, it is only possible to read EDID using buffers of size multiple of 128 bytes, and there is no way to query the actual EDID size. The current implementation can only read EDID up to 2048 bytes.
--- lib/unigraf/unigraf.c | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++ lib/unigraf/unigraf.h | 4 ++++ 2 files changed, 59 insertions(+)
lib/unigraf/unigraf.c +55 -0
@@ -127,6 +127,20 @@ static void unigraf_init(void) value; \ }) +/** +* unigraf_write() - Helper to write a value to unigraf +* @config: config id to write +* @data: data to write +* @data_len: length of the data +* Returns +*/ +static void unigraf_write (TSI_CONFIG_ID config,const void *data,size_t data_len) +{ +unigraf_debug ("Writing %zu bytes to 0x%x\n" , data_len, config); + +unigraf_assert (TSIX_TS_SetConfigItem (unigraf_device, config, data, data_len)); +} +/** * unigraf_device_count() - Return the number of scanned devices *
@@ -332,6 +346,47 @@ void unigraf_reset(void)unigraf_set_sst (); } +/** +* unigraf_read_edid() - Read the EDID from the specified stream +* @stream: The stream ID to read the EDID from +* @edid_size: Pointer to an integer where the size of the EDID will be stored +* +* Returns: A pointer to the EDID structure, or NULL if the operation failed. The caller +* is responsible to free this pointer. +*/ +struct edid *unigraf_read_edid (uint32_t stream,uint32_t *edid_size) +{ +void *edid; + +unigraf_debug ("Read EDID for stream %d...\n" , stream); + + edid =malloc (2048 ); +memset (edid,0 ,2048 ); + +unigraf_write_u32 (TSI_EDID_SELECT_STREAM , stream); + *edid_size =unigraf_assert (TSIX_TS_GetConfigItem (unigraf_device, +TSI_EDID_TE_INPUT , + edid,2048 )); + +return edid; +} + +/** +* unigraf_write_edid() - Write EDID data to the specified stream +* @stream: The stream ID to write the EDID to +* @edid: Pointer to the EDID structure to write +* @edid_size: Size of the EDID data in bytes +* +* This function writes the provided EDID data to the specified stream. +*/ +void unigraf_write_edid (uint32_t stream,const struct edid *edid,uint32_t edid_size) +{ +unigraf_debug ("Write EDID for stream %d...\n" , stream); + +unigraf_write_u32 (TSI_EDID_SELECT_STREAM , stream); +unigraf_write (TSI_EDID_TE_INPUT , edid,2048 ); +} +/** * unigraf_hpd_assert() - Assert Hot Plug Detect signal *
lib/unigraf/unigraf.h +4 -0
@@ -42,6 +42,10 @@ void unigraf_require_device(int drm_fd);void unigraf_reset (void ); +struct edid *unigraf_read_edid (uint32_t stream,uint32_t *edid_size); + +void unigraf_write_edid (uint32_t stream,const struct edid *edid,uint32_t edid_size); +void unigraf_hpd_deassert (void );void unigraf_hpd_pulse (int duration);
Signature · 1 line
2.52.0
Re: [PATCH i-g-t v7 28/48] lib/unigraf: Add helpers to read and write edid
Quoted 54 lines · On Mon, 23 Feb 2026 13:09:35 +0100 Louis Chauvet <[email protected]>…
Read and writing EDID on unigraf can be useful to emulate different screens, add helpers to read and write them.
There is a limitation on the libTSI.so, it is only possible to read EDID using buffers of size multiple of 128 bytes, and there is no way to query the actual EDID size. The current implementation can only read EDID up to 2048 bytes.
Signed-off-by Louis Chauvet <[email protected]>Reviewed-by Luca Ceresoli <[email protected]>--- lib/unigraf/unigraf.c | 55+++++++++++++++++++++++++++++++++++++++++++++++++++
lib/unigraf/unigraf.h| 4 ++++ 2 files changed, 59 insertions(+)lib/unigraf/unigraf.c +16
-0@@ -127,6 +127,20 @@ static void unigraf_init(void) value; \ }) +/** +* unigraf_write() - Helper to write a value to unigraf +* @config: config id to write +* @data: data to write +* @data_len: length of the data +* Returns +*/ +static void unigraf_write (TSI_CONFIG_ID config,const void *data,size_t data_len) +{ +unigraf_debug ("Writing %zu bytes to 0x%x\n" , data_len, config); + +unigraf_assert (TSIX_TS_SetConfigItem (unigraf_device, config, data, data_len)); +} +/** * unigraf_device_count() - Return the number of scanned devices * @@ -332,6 +346,47 @@ void unigraf_reset(void)unigraf_set_sst (); } +/** +* unigraf_read_edid() - Read the EDID from the specified stream +* @stream: The stream ID to read the EDID from +* @edid_size: Pointer to an integer where the size of the EDID will be stored
+ *
+ * Returns: A pointer to the EDID structure, or NULL if the operation failed. The caller
+ * is responsible to free this pointer.
+ */
lib/unigraf/unigraf.c void unigraf_reset(void) · line 364
Quoted 8 lines
lib/unigraf/unigraf.c +8
-0+struct edid *unigraf_read_edid (uint32_t stream,uint32_t *edid_size) +{ +void *edid; + +unigraf_debug ("Read EDID for stream %d...\n" , stream); + + edid =malloc (2048 ); +memset (edid,0 ,2048 );
You didn't take my last comment into account to use calloc?
Also what is the point of the edid_size parameter if you hard code it to 2048?
lib/unigraf/unigraf.c void unigraf_reset(void) · line 372
Quoted 8 lines
lib/unigraf/unigraf.c +8
-0+ +unigraf_write_u32 (TSI_EDID_SELECT_STREAM , stream); + *edid_size =unigraf_assert (TSIX_TS_GetConfigItem (unigraf_device, +TSI_EDID_TE_INPUT , + edid,2048 )); + +return edid; +}
Regards,
Signature · 3 lines
Köry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com
PATCH v7 29/48 lib/unigraf: Add connector and EDID configuration
In reply to Louis ChauvetAs multiple connectors can be present on the DUT, add a configuration to tell which connector is used by the Unigraf and which EDID to use on the Unigraf.
Complete list of EDID name supported can be found in lib/monitor_edids/{dp,hdmi}_edids.h
The configuration will look like:
[Unigraf]
Device=UCD-500 [2434C620]
Role=DisplayPort Source and Sink
Input=DP RX
Connector=DP-4
EDID=DEL_16543_DELL_P2314T_DP
--- lib/unigraf/unigraf.c | 125 +++++++++++++++++++++++++++++++++++++++++++++++++- lib/unigraf/unigraf.h | 3 ++ 2 files changed, 126 insertions(+), 2 deletions(-)
lib/unigraf/unigraf.c +123 -2
@@ -13,7 +13,10 @@#include "unigraf.h" #include "TSI_types.h" #include "TSI.h" +#include "igt_edid.h" +#include "igt_kms.h" #include "igt_rc.h" +#include "monitor_edids/monitor_edids_helper.h" #define unigraf_debug (fmt, ...) igt_debug("TSI:%p: " fmt, unigraf_device, ##__VA_ARGS__)
@@ -46,6 +49,16 @@ static char *unigraf_connector_name;*/ #define UNIGRAF_CONFIG_INPUT_NAME "Input" +/** +* UNIGRAF_CONFIG_CONNECTOR_NAME - Key of the connector name in the configuration file +*/ +#define UNIGRAF_CONFIG_CONNECTOR_NAME "Connector" + +/** +* UNIGRAF_CONFIG_EDID_NAME - Key of the EDID name in the configuration file +*/ +#define UNIGRAF_CONFIG_EDID_NAME "EDID" +/** * UNIGRAF_DEFAULT_ROLE_NAME - Default role name to search on the unigraf device */
@@ -200,6 +213,82 @@ static int unigraf_find_input(const char *request)return -ENODEV ; } +static void unigraf_load_default_edid (void ) +{ +struct edid *edid =get_edid_by_name (unigraf_default_edid); + +if (edid) { +for (int i =unigraf_get_mst_stream_max_count (); i >0 ; i--) +unigraf_write_edid (i -1 , edid,edid_get_size (edid)); + }else { +igt_warn ("Impossible to find an edid named \"%s\"" , unigraf_default_edid); +list_edid_names (IGT_LOG_WARN ); + } +} + +static void unigraf_autodetect_connector (int drm_fd) +{ +int newly_connected_count, already_connected_count, diff_len; +uint32_t *newly_connected =NULL , *already_connected =NULL ; +drmModeConnectorPtr connector; +uint32_t *diff =NULL ; + +igt_assert (drm_fd); +unigraf_set_sst (); +unigraf_hpd_deassert (); + +/* +* Hard sleep is required here as we don't know how long it will take for the device under +* test to properly detect the port disconnection. +*/ +sleep (igt_default_display_detect_timeout ()); + + already_connected_count =igt_get_connected_connectors (drm_fd, &already_connected); + +unigraf_hpd_assert (); + + newly_connected_count =kms_wait_for_new_connectors (&newly_connected, + already_connected, + already_connected_count, + drm_fd); + + diff_len =get_list_diff (newly_connected, newly_connected_count, + already_connected, already_connected_count, &diff); + +if (!diff_len) { +unigraf_debug ("No newly connected connector, assuming that the unigraf is not connected.\n" ); + }else if (diff_len >1 ) { +unigraf_debug ("More than one new connectors connected, this is not supported by autodetection.\n" ); + }else { +unigraf_debug ("Found one connector (%d) connected to the Unigraf\n" , diff[0 ]); + connector =drmModeGetConnector (drm_fd, diff[0 ]); +igt_assert (connector); +igt_assert (asprintf (&unigraf_connector_name,"%s-%u" , +kmstest_connector_type_str (connector->connector_type), + connector->connector_type_id) !=-1 ); +drmModeFreeConnector (connector); + } + +free (already_connected); +free (newly_connected); +free (diff); +} + +/** +* unigraf_get_connector() - Get a DRM connector for the Unigraf device +* @drm_fd: DRM file descriptor +* +* Returns: A pointer to the drmModeConnector connected to the unigraf device, +* or NULL if the operation failed. The caller is responsible for freeing this +* pointer with drmModeFreeConnector(). +*/ +drmModeConnectorPtr unigraf_get_connector (int drm_fd) +{ +if (!unigraf_connector_name) +unigraf_autodetect_connector (drm_fd); +return igt_get_connector_from_name (drm_fd, unigraf_connector_name); +} +/** * unigraf_open_device() - Search and open a device. * @drm_fd: File descriptor of the currently used drm device
@@ -215,6 +304,7 @@ bool unigraf_open_device(int drm_fd)char *cfg_device =NULL ;char *cfg_role =NULL ;char *cfg_input =NULL ; +char *cfg_edid_name =NULL ;int device_count;int chosen_device;int chosen_role;
@@ -223,7 +313,7 @@ bool unigraf_open_device(int drm_fd)assert (igt_can_fail ());if (unigraf_device) -return true; +return unigraf_connector_name !=NULL ;unigraf_init ();
@@ -250,6 +340,23 @@ bool unigraf_open_device(int drm_fd)unigraf_debug ("No input name configured.\n" ); cfg_input =NULL ; } + + cfg_error =NULL ; + unigraf_connector_name =g_key_file_get_string (igt_key_file,UNIGRAF_CONFIG_GROUP , +UNIGRAF_CONFIG_CONNECTOR_NAME , + &cfg_error); +if (cfg_error) { +unigraf_debug ("No connector name configured, will autodetect.\n" ); + unigraf_connector_name =NULL ; + } + + cfg_error =NULL ; + cfg_edid_name =g_key_file_get_string (igt_key_file,UNIGRAF_CONFIG_GROUP , +UNIGRAF_CONFIG_EDID_NAME , &cfg_error); +if (cfg_error) { +unigraf_debug ("No default EDID set, use IGT default.\n" ); + cfg_edid_name =NULL ; + } }unigraf_assert (TSIX_DEV_RescanDevices (0 ,TSI_DEVCAP_VIDEO_CAPTURE ,0 ));
@@ -316,9 +423,21 @@ bool unigraf_open_device(int drm_fd)unigraf_assert (TSIX_VIN_Select (unigraf_device, chosen_input));unigraf_assert (TSIX_VIN_Enable (unigraf_device, chosen_input)); +if (!cfg_edid_name) + cfg_edid_name =strdup ("DEL_16543_DELL_P2314T_DP" ); + + unigraf_default_edid = cfg_edid_name; + +if (!unigraf_connector_name) { +unigraf_hpd_deassert (); +unigraf_set_sst (); +unigraf_hpd_assert (); +unigraf_autodetect_connector (drm_fd); + } +unigraf_reset (); -return true; +return unigraf_connector_name !=NULL ; }/**
@@ -344,6 +463,8 @@ void unigraf_reset(void)unigraf_plug ();unigraf_set_mst_stream_count (1 );unigraf_set_sst (); +unigraf_load_default_edid (); +unigraf_hpd_assert (); }/**
lib/unigraf/unigraf.h +3 -0
@@ -11,6 +11,7 @@#include <stdbool.h> #include <stdint.h> +#include <xf86drmMode.h> /** * unigraf_assert: Helper macro to assert a TSI return value and retrieve a detailed error message.
@@ -42,6 +43,8 @@ void unigraf_require_device(int drm_fd);void unigraf_reset (void ); +drmModeConnectorPtr unigraf_get_connector (int drm_fd); +struct edid *unigraf_read_edid (uint32_t stream,uint32_t *edid_size);void unigraf_write_edid (uint32_t stream,const struct edid *edid,uint32_t edid_size);
Signature · 1 line
2.52.0
Re: [PATCH i-g-t v7 29/48] lib/unigraf: Add connector and EDID configuration
Quoted 61 lines · On Mon, 23 Feb 2026 13:09:36 +0100 Louis Chauvet <[email protected]>…
As multiple connectors can be present on the DUT, add a configuration to tell which connector is used by the Unigraf and which EDID to use on the Unigraf.
Complete list of EDID name supported can be found in
lib/monitor_edids/{dp,hdmi}_edids.hThe configuration will look like:
[Unigraf]
Device=UCD-500 [2434C620]
Role=DisplayPort Source and Sink
Input=DP RX
Connector=DP-4
EDID=DEL_16543_DELL_P2314T_DPSigned-off-by Louis Chauvet <[email protected]>--- lib/unigraf/unigraf.c | 125+++++++++++++++++++++++++++++++++++++++++++++++++-
lib/unigraf/unigraf.h| 3 ++ 2 files changed, 126 insertions(+), 2 deletions(-)lib/unigraf/unigraf.c +5
-0@@ -13,7 +13,10 @@#include "unigraf.h" #include "TSI_types.h" #include "TSI.h" +#include "igt_edid.h" +#include "igt_kms.h" #include "igt_rc.h" +#include "monitor_edids/monitor_edids_helper.h" #define unigraf_debug (fmt, ...) igt_debug("TSI:%p: " fmt, unigraf_device, ##__VA_ARGS__)@@ -46,6 +49,16 @@ static char *unigraf_connector_name;*/ #define UNIGRAF_CONFIG_INPUT_NAME "Input" +/** +* UNIGRAF_CONFIG_CONNECTOR_NAME - Key of the connector name in the configuration file
+ */lib/unigraf/unigraf.c +7
-0+#define UNIGRAF_CONFIG_CONNECTOR_NAME "Connector" + +/** +* UNIGRAF_CONFIG_EDID_NAME - Key of the EDID name in the configuration file +*/ +#define UNIGRAF_CONFIG_EDID_NAME "EDID" +/** * UNIGRAF_DEFAULT_ROLE_NAME - Default role name to search on the unigraf device */
lib/unigraf/unigraf.c +2
-0@@ -200,6 +213,82 @@ static int unigraf_find_input(const char *request)return -ENODEV ; } +static void unigraf_load_default_edid (void ) +{
lib/unigraf/unigraf.c static int unigraf_find_input(const char *request) · line 227
Quoted 10 lines
lib/unigraf/unigraf.c +9
-0+struct edid *edid =get_edid_by_name (unigraf_default_edid); + +if (edid) { +for (int i =unigraf_get_mst_stream_max_count (); i >0 ; i--) +unigraf_write_edid (i -1 , edid,edid_get_size (edid)); + }else { +igt_warn ("Impossible to find an edid named \"%s\"" , unigraf_default_edid); +list_edid_names (IGT_LOG_WARN ); + }
I am nitpicking but separating the check from the action improve code clarity:
if (!edid){
igt_warn("Impossible to find an edid named \"%s\"",
unigraf_default_edid); list_edid_names(IGT_LOG_WARN);
return;
}
for(...)With this fixed:
Thank you!
Signature · 3 lines
Köry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com
PATCH v7 30/48 tests/unigraf: Add basic unigraf tests
In reply to Louis ChauvetAdds two tests to validate unigraf communication.
unigraf-connect checks if the device is connected and if the EDID is properly applied.
ungiraf-reconnect checks if the device can be connected/reconnected using SST and MST configurations.
--- tests/meson.build | 4 ++ tests/unigraf/meson.build | 12 ++++ tests/unigraf/unigraf_connectivity.c | 135 +++++++++++++++++++++++++++++++++++ 3 files changed, 151 insertions(+)
tests/meson.build +4 -0
@@ -472,6 +472,10 @@ foreach prog : intel_progs endif endforeach +if libtsi.found() + subdir('unigraf') +endif + if chamelium.found() foreach prog : chamelium_progs testexe = executable(prog,
tests/unigraf/meson.build new file +12 -0
@@ -0,0 +1,12 @@ +unigraf_progs = [ + 'unigraf_connectivity', +] + +foreach prog : unigraf_progs + test_executables += executable(prog, prog + '.c', + dependencies : test_deps, + install_dir : unigrafdir, + install_rpath : unigraf_rpathdir, + install : true) + test_list += join_paths('unigraf', prog) +endforeach
tests/unigraf/unigraf_connectivity.c new file +135 -0
135 lines not on this page · raw message
Signature · 1 line
2.52.0
Re: [PATCH i-g-t v7 30/48] tests/unigraf: Add basic unigraf tests
Quoted 10 lines · On Mon, 23 Feb 2026 13:09:37 +0100 Louis Chauvet <[email protected]>…
Adds two tests to validate unigraf communication.
unigraf-connect checks if the device is connected and if the EDID is properly applied.
ungiraf-reconnect checks if the device can be connected/reconnected using SST and MST configurations.
Signed-off-by Louis Chauvet <[email protected]>---
...
tests/unigraf/unigraf_connectivity.c line 92
Quoted 4 lines
(quoted diff) +2
-0+ + igt_describe("Make sure that the unigraf device can be used as a MSTdevice");
tests/unigraf/unigraf_connectivity.c new file +1
-0+ igt_subtest("ungiraf-connect-mst") {
*unigraf*
Else I don't think the test will be triggered right?
Quoted 50 lines
(quoted diff) +2
-0+ int newly_connected_count, already_connected_count, diff_len; + uint32_t *newly_connected = NULL, *already_connected = NULL,*diff = NULL;
tests/unigraf/unigraf_connectivity.c new file +8
-0+int max_count; + +unigraf_require_device (drm_fd); + max_count =unigraf_get_mst_stream_max_count (); + +unigraf_hpd_deassert (); + + already_connected_count =
igt_get_connected_connectors(drm_fd, &already_connected); +(quoted diff) +1
-0+ igt_debug("Already connected count: %d\n",
already_connected_count); +tests/unigraf/unigraf_connectivity.c new file +17
-0+// i = 0 is SST so we need to process max_count + 1 streams +for (int i =0 ; i <= max_count; i++) { +unigraf_hpd_deassert (); +// Let the hardware detect the new state +sleep (igt_default_display_detect_timeout ()); + +unigraf_set_mst_stream_count (max (i,1 )); +if (!i) +unigraf_set_sst (); +else +unigraf_set_mst (); + +unigraf_hpd_assert (); +// Let the hardware detect the new state +sleep (igt_default_display_detect_timeout ()); + + newly_connected_count =kms_wait_for_new_connectors(&newly_connected,
+already_connected,
+already_connected_count,
+drm_fd); +(quoted diff) +1
-0+ diff_len = get_list_diff(newly_connected,
newly_connected_count,tests/unigraf/unigraf_connectivity.c new file +1
-0+ already_connected,
already_connected_count, &diff); +(quoted diff) +2
-0+ igt_assert_f(diff_len == max(i, 1), + "Invalid connected connector count,expected %d found %d\n",
tests/unigraf/unigraf_connectivity.c new file +4
-0+ max(i, 1), diff_len); + } + } +}
Signature · 3 lines
Köry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com
PATCH v7 31/48 lib/unigraf: Add unigraf CRC capture
In reply to Louis ChauvetAs unigraf devices are able to grab a CRC for the current video stream, add an helper to read the CRC.
--- lib/unigraf/unigraf.c | 22 ++++++++++++++++++++++ lib/unigraf/unigraf.h | 3 +++ 2 files changed, 25 insertions(+)
lib/unigraf/unigraf.c +22 -0
@@ -15,6 +15,7 @@#include "TSI.h" #include "igt_edid.h" #include "igt_kms.h" +#include "igt_pipe_crc.h" #include "igt_rc.h" #include "monitor_edids/monitor_edids_helper.h"
@@ -658,3 +659,24 @@ void unigraf_select_stream(int stream) {unigraf_write_u32 (TSI_DPRX_STREAM_SELECT , stream); } + +/** +* unigraf_read_crc() - Read the CRC values from the Unigraf device +* @stream: Stream to grab the CRC from +* @out: Pointer to an igt_crc_t structure where the CRC values will be stored +* +* This function reads the CRC values from the Unigraf device and stores them in the +* provided igt_crc_t structure. +*/ +void unigraf_read_crc (int stream,igt_crc_t *out) +{ +unigraf_select_stream (stream); +unigraf_assert (TSIX_TS_GetConfigItem (unigraf_device,TSI_DPRX_CRC_R_R , + &out->crc[0 ],sizeof (out->crc[0 ]))); +unigraf_assert (TSIX_TS_GetConfigItem (unigraf_device,TSI_DPRX_CRC_G_R , + &out->crc[1 ],sizeof (out->crc[1 ]))); +unigraf_assert (TSIX_TS_GetConfigItem (unigraf_device,TSI_DPRX_CRC_B_R , + &out->crc[2 ],sizeof (out->crc[2 ]))); + out->n_words =3 ; + out->has_valid_frame = false; +}
lib/unigraf/unigraf.h +3 -0
@@ -9,6 +9,7 @@#ifndef UNIGRAF_H #define UNIGRAF_H +#include "igt_fb.h" #include <stdbool.h> #include <stdint.h> #include <xf86drmMode.h>
@@ -71,4 +72,6 @@ int unigraf_get_mst_stream_max_count(void);void unigraf_select_stream (int stream); +void unigraf_read_crc (int stream,igt_crc_t *out); +#endif // UNIGRAF_H
Signature · 1 line
2.52.0
PATCH v7 32/48 lib/unigraf: Add configuration for CRC usage
In reply to Louis ChauvetAs Unigraf devices are able to compute a CRC for the input image, add a configuration file option to use them.
--- lib/unigraf/unigraf.c | 25 +++++++++++++++++++++++++ lib/unigraf/unigraf.h | 2 ++ 2 files changed, 27 insertions(+)
lib/unigraf/unigraf.c +25 -0
@@ -24,6 +24,7 @@static TSI_HANDLE unigraf_device;static char *unigraf_default_edid;static char *unigraf_connector_name; +static bool unigraf_crc;/** * UNIGRAF_NAME_MAX - Maximum name length to be used for TSI functions
@@ -60,6 +61,11 @@ static char *unigraf_connector_name;*/ #define UNIGRAF_CONFIG_EDID_NAME "EDID" +/** +* UNIGRAF_CONFIG_USE_CRC_NAME - Key of the CRC selection in the configuration file +*/ +#define UNIGRAF_CONFIG_USE_CRC_NAME "UseCRC" +/** * UNIGRAF_DEFAULT_ROLE_NAME - Default role name to search on the unigraf device */
@@ -358,6 +364,14 @@ bool unigraf_open_device(int drm_fd)unigraf_debug ("No default EDID set, use IGT default.\n" ); cfg_edid_name =NULL ; } + + cfg_error =NULL ; + unigraf_crc =g_key_file_get_boolean (igt_key_file,UNIGRAF_CONFIG_GROUP , +UNIGRAF_CONFIG_USE_CRC_NAME , &cfg_error); +if (cfg_error) { +unigraf_debug ("CRC usage not configured, using unigraf CRC.\n" ); + unigraf_crc = true; + } }unigraf_assert (TSIX_DEV_RescanDevices (0 ,TSI_DEVCAP_VIDEO_CAPTURE ,0 ));
@@ -680,3 +694,14 @@ void unigraf_read_crc(int stream, igt_crc_t *out) out->n_words =3 ; out->has_valid_frame = false; } + +/** +* unigraf_use_crc() - Check if Unigraf device should be used for CRC computation +* +* Returns: true if the Unigraf device should be used for CRC computation, +* false otherwise. +*/ +bool unigraf_use_crc (void ) +{ +return unigraf_crc; +}
lib/unigraf/unigraf.h +2 -0
@@ -74,4 +74,6 @@ void unigraf_select_stream(int stream);void unigraf_read_crc (int stream,igt_crc_t *out); +bool unigraf_use_crc (void ); +#endif // UNIGRAF_H
Signature · 1 line
2.52.0
PATCH v7 33/48 lib/unigraf: add unigraf_get_connector_by_stream
In reply to Louis ChauvetAs unigraf can emulate MST, we need a way to grab the corresponding DRM connector from the stream id.
--- lib/unigraf/unigraf.c | 41 +++++++++++++++++++++++++++++++++++++++++ lib/unigraf/unigraf.h | 2 ++ 2 files changed, 43 insertions(+)
lib/unigraf/unigraf.c +41 -0
@@ -296,6 +296,47 @@ drmModeConnectorPtr unigraf_get_connector(int drm_fd)return igt_get_connector_from_name (drm_fd, unigraf_connector_name); } +/** +* unigraf_get_connector_id_by_stream() - Get a connector id from a stream id +* @drm_fd: DRM device where the unigraf is attached +* @stream_id: Stream id in the MST streams +*/ +int unigraf_get_connector_id_by_stream (int drm_fd,int stream_id) +{ +drmModeConnectorPtr main_connector =unigraf_get_connector (drm_fd); +drmModeResPtr res =drmModeGetResources (drm_fd); + +char *mst_path; +int mst_path_len =asprintf (&mst_path,"mst:%d-" , main_connector->connector_id); + +igt_assert (mst_path_len >=0 ); + +for (int i =0 ; i < res->count_connectors; i++) { +drmModePropertyBlobPtr path_blob =kmstest_get_path_blob (drm_fd, + res->connectors[i]); + +if (!path_blob || path_blob->length < mst_path_len) +continue ; + +if (!memcmp (path_blob->data, mst_path, mst_path_len)) { +if (!stream_id) { +drmModeFreePropertyBlob (path_blob); +drmModeFreeResources (res); +drmModeFreeConnector (main_connector); +return res->connectors[i]; + } + stream_id--; + } + +drmModeFreePropertyBlob (path_blob); + } + +drmModeFreeResources (res); +drmModeFreeConnector (main_connector); + +return 0 ; +} +/** * unigraf_open_device() - Search and open a device. * @drm_fd: File descriptor of the currently used drm device
lib/unigraf/unigraf.h +2 -0
@@ -76,4 +76,6 @@ void unigraf_read_crc(int stream, igt_crc_t *out);bool unigraf_use_crc (void ); +int unigraf_get_connector_id_by_stream (int drm_fd,int stream_id); +#endif // UNIGRAF_H
Signature · 1 line
2.52.0
Re: [PATCH i-g-t v7 33/48] lib/unigraf: add unigraf_get_connector_by_stream
Quoted 2 lines · On Mon, 23 Feb 2026 13:09:40 +0100 Louis Chauvet <[email protected]>…
As unigraf can emulate MST, we need a way to grab the corresponding DRM connector from the stream id.
Thank you!
Signature · 3 lines
Köry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com
PATCH v7 34/48 lib/unigraf: Add helper to check timings received by unigraf
In reply to Louis ChauvetUnigraf device can check that some input video parameters. Add a function to compare a mode with the actual signal received by the unigraf.
--- lib/unigraf/unigraf.c | 35 +++++++++++++++++++++++++++++++++++ lib/unigraf/unigraf.h | 2 ++ 2 files changed, 37 insertions(+)
lib/unigraf/unigraf.c +35 -0
@@ -746,3 +746,38 @@ bool unigraf_use_crc(void) {return unigraf_crc; } + +static void unigraf_read_msa (void ) +{ +uint32_t data =1 ; + +unigraf_write_u32 (TSI_DPRX_MSA_COMMAND_W , data); +} + +/** +* unigraf_assert_stream_timings() - Assert that the received stream on unigraf +* matches the mode_info +* @stream: Stream id on the unigraf +* @mode_info: Mode to compare with +*/ +void unigraf_assert_stream_timings (int stream,drmModeModeInfoPtr mode_info) +{ +uint32_t stream_count; + +igt_assert (mode_info); + +unigraf_read_msa (); + stream_count =unigraf_read_u32 (TSI_DPRX_MSA_STREAM_COUNT_R ); +igt_assert_lt (stream, stream_count); +unigraf_write_u32 (TSI_DPRX_MSA_STREAM_SELECT , stream); +igt_assert_eq (mode_info->htotal,unigraf_read_u32 (TSI_DPRX_MSA_HTOTAL_R )); +igt_assert_eq (mode_info->vtotal,unigraf_read_u32 (TSI_DPRX_MSA_VTOTAL_R )); +igt_assert_eq (mode_info->hdisplay,unigraf_read_u32 (TSI_DPRX_MSA_HACTIVE_R )); +igt_assert_eq (mode_info->vdisplay,unigraf_read_u32 (TSI_DPRX_MSA_VACTIVE_R )); +igt_assert_eq (mode_info->hsync_end - mode_info->hsync_start, +unigraf_read_u32 (TSI_DPRX_MSA_HSYNC_WIDTH_R )); +igt_assert_eq (mode_info->vsync_end - mode_info->vsync_start, +unigraf_read_u32 (TSI_DPRX_MSA_VSYNC_WIDTH_R )); +igt_assert_eq (mode_info->vsync_start,unigraf_read_u32 (TSI_DPRX_MSA_VSTART_R )); +igt_assert_eq (mode_info->hsync_start,unigraf_read_u32 (TSI_DPRX_MSA_HSTART_R )); +}
lib/unigraf/unigraf.h +2 -0
@@ -78,4 +78,6 @@ bool unigraf_use_crc(void);int unigraf_get_connector_id_by_stream (int drm_fd,int stream_id); +void unigraf_assert_stream_timings (int stream,drmModeModeInfoPtr mode_info); +#endif // UNIGRAF_H
Signature · 1 line
2.52.0
PATCH v7 35/48 lib/igt_pipe_crc: Add unigraf crc calculation
In reply to Louis ChauvetUnigraf can read crc from the physical output, use this CRC instead of internal CRC when configured. This allows to also test the hardware signal generation.
This small addition allows to use the unigraf device for most of the kms_* tests.
--- lib/igt_pipe_crc.c | 35 +++++++++++++++++++++++++++++++++++ lib/unigraf/unigraf.c | 22 ++++++++++++++++++++++ 2 files changed, 57 insertions(+)
lib/igt_pipe_crc.c +35 -0
@@ -3,9 +3,12 @@* Copyright © 2013 Intel Corporation */ +#include "igt_core.h" +#include "unigraf/unigraf.h" #include <inttypes.h> #include <sys/stat.h> #include <sys/mount.h> +#include <xf86drmMode.h> #ifdef __linux__#include <sys/sysmacros.h> #endif
@@ -359,6 +362,38 @@ static void read_one_crc(igt_pipe_crc_t *pipe_crc, igt_crc_t *out) }while (ret == -EINTR );fcntl (pipe_crc->crc_fd,F_SETFL , pipe_crc->flags); + +#if HAVE_UNIGRAF +if (unigraf_open_device (pipe_crc->fd) &&unigraf_use_crc ()) { +int crtc_index; +int stream_id; +drmModeConnectorPtr connector =unigraf_get_connector (pipe_crc->fd); + +if (!connector) +return ; + + crtc_index =igt_get_crtc_index_from_connector_id (pipe_crc->fd, + connector->connector_id); +drmModeFreeConnector (connector); + +if (crtc_index && crtc_index == pipe_crc->crtc_index) { +unigraf_read_crc (0 , out); +return ; + } + +for (stream_id =0 ; stream_id <unigraf_get_mst_stream_count (); stream_id++) { +int connector_id =unigraf_get_connector_id_by_stream (pipe_crc->fd, + stream_id); + crtc_index =igt_get_crtc_index_from_connector_id (pipe_crc->fd, + connector_id); + +if (crtc_index && crtc_index == pipe_crc->crtc_index) { +unigraf_read_crc (stream_id, out); +return ; + } + } + } +#endif }/**
lib/unigraf/unigraf.c +22 -0
@@ -66,6 +66,13 @@ static bool unigraf_crc;*/ #define UNIGRAF_CONFIG_USE_CRC_NAME "UseCRC" +/** +* UNIGRAF_CONFIG_MST_STREAM_COUNT - Key for the stream count configuration +* +* Set to 0 to use SST, 1..4 for MST +*/ +#define UNIGRAF_CONFIG_MST_STREAM_COUNT "MSTStreams" +/** * UNIGRAF_DEFAULT_ROLE_NAME - Default role name to search on the unigraf device */
@@ -357,6 +364,7 @@ bool unigraf_open_device(int drm_fd)int chosen_device;int chosen_role;int chosen_input; +int unigraf_stream_count;assert (igt_can_fail ());
@@ -413,6 +421,15 @@ bool unigraf_open_device(int drm_fd)unigraf_debug ("CRC usage not configured, using unigraf CRC.\n" ); unigraf_crc = true; } + + cfg_error =NULL ; + unigraf_stream_count =g_key_file_get_boolean (igt_key_file,UNIGRAF_CONFIG_GROUP , +UNIGRAF_CONFIG_MST_STREAM_COUNT , + &cfg_error); +if (cfg_error) { +unigraf_debug ("MST usage not configured, using SST.\n" ); + unigraf_stream_count =0 ; + } }unigraf_assert (TSIX_DEV_RescanDevices (0 ,TSI_DEVCAP_VIDEO_CAPTURE ,0 ));
@@ -493,6 +510,11 @@ bool unigraf_open_device(int drm_fd)unigraf_reset (); +if (!unigraf_stream_count) +unigraf_set_sst (); +else +unigraf_set_mst_stream_count (unigraf_stream_count); +return unigraf_connector_name !=NULL ; }
Signature · 1 line
2.52.0
Re: [PATCH i-g-t v7 35/48] lib/igt_pipe_crc: Add unigraf crc calculation
Quoted 6 lines · On Mon, 23 Feb 2026 13:09:42 +0100 Louis Chauvet <[email protected]>…
Unigraf can read crc from the physical output, use this CRC instead of internal CRC when configured. This allows to also test the hardware signal generation.
This small addition allows to use the unigraf device for most of the kms_* tests.
Thank you!
Signature · 3 lines
Köry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com
PATCH v7 36/48 lib/i915/dp: Move DP-related function for i915 to proper folder
In reply to Louis ChauvetSome functions, prefixed with igt_ are not generic but specific to the i915 intel driver. To avoid confusion and allows the introduction of generic helpers, move those to a dedicated file.
--- lib/i915/i915_dp.c | 345 ++++++++++++++++++++++++++++++++ lib/i915/i915_dp.h | 22 ++ lib/igt_kms.c | 310 ---------------------------- lib/igt_kms.h | 13 -- lib/meson.build | 1 + tests/intel/kms_dp_link_training.c | 1 + tests/intel/kms_dp_linktrain_fallback.c | 1 + 7 files changed, 370 insertions(+), 323 deletions(-)
lib/i915/i915_dp.c new file +345 -0
@@ -0,0 +1,345 @@ +// SPDX-License-Identifier: MIT +/* +* Copyright (c) 2020, The Linux Foundation. All rights reserved. +* Copyright © 2013 Intel Corporation +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +* IN THE SOFTWARE. +* +* Authors: +* Daniel Vetter <[email protected]> +* Damien Lespiau <[email protected]> +*/ + +#include <ctype.h> +#include <stdio.h> +#include <string.h> + +#include "i915_dp.h" +#include "igt_core.h" + +/** +* igt_parse_marked_value: +* @buf: Buffer containing the content to parse +* @marked_char: The character marking the value to parse +* @result: Pointer to store the parsed value +* +* Finds the integer value in the buffer that is marked by the given character. +* +* Returns: 0 on success, -1 on failure +*/ +static int igt_parse_marked_value (const char *buf,char marked_char,int *result) +{ +char *marked_ptr, *val_ptr; + +/* +* Look for the marked character +*/ + marked_ptr =strchr (buf, marked_char); + +if (marked_ptr) { + val_ptr = marked_ptr -1 ; +while (val_ptr > buf &&isdigit (*val_ptr)) + val_ptr--; + val_ptr++; +if (sscanf (val_ptr,"%d" , result) ==1 ) +return 0 ; + } +return -1 ; +} + +/** +* igt_get_current_link_rate: +* @drm_fd: A drm file descriptor +* @output: Target output +* +* Returns: link_rate if set for output else -1 +*/ +int igt_get_current_link_rate (int drm_fd,igt_output_t *output) +{ +char buf[512 ]; +int res, ret; + + res =igt_debugfs_read_connector_file (drm_fd, output->name, +"i915_dp_force_link_rate" , + buf,sizeof (buf)); +igt_assert_f (res ==0 ,"Unable to read %s/i915_dp_force_link_rate\n" , + output->name); + res =igt_parse_marked_value (buf,'*' , &ret); +igt_assert_f (res ==0 ,"Output %s not enabled\n" , output->name); +return ret; +} + +/** +* igt_get_current_lane_count: +* @drm_fd: A drm file descriptor +* @output: Target output +* +* Returns: lane_count if set for output else -1 +*/ +int igt_get_current_lane_count (int drm_fd,igt_output_t *output) +{ +char buf[512 ]; +int res, ret; + + res =igt_debugfs_read_connector_file (drm_fd, output->name, +"i915_dp_force_lane_count" , + buf,sizeof (buf)); +igt_assert_f (res ==0 ,"Unable to read %s/i915_dp_force_lane_count\n" , + output->name); + res =igt_parse_marked_value (buf,'*' , &ret); +igt_assert_f (res ==0 ,"Output %s not enabled\n" , output->name); +return ret; +} + +/** +* igt_get_max_link_rate: +* @drm_fd: A drm file descriptor +* @output: Target output +* +* Returns: max_link_rate +*/ +int igt_get_max_link_rate (int drm_fd,igt_output_t *output) +{ +char buf[512 ]; +int res, ret; + + res =igt_debugfs_read_connector_file (drm_fd, output->name, +"i915_dp_max_link_rate" , + buf,sizeof (buf)); +igt_assert_f (res ==0 ,"Unable to read %s/i915_dp_max_link_rate\n" , + output->name); + +sscanf (buf,"%d" , &ret); +return ret; +} + +/** +* igt_get_max_link_rate: +* @drm_fd: A drm file descriptor +* @output: Target output +* +* Returns: max_link_rate +*/ +int igt_get_max_lane_count (int drm_fd,igt_output_t *output) +{ +char buf[512 ]; +int res, ret; + + res =igt_debugfs_read_connector_file (drm_fd, output->name, +"i915_dp_max_lane_count" , + buf,sizeof (buf)); +igt_assert_f (res ==0 ,"Unable to read %s/i915_dp_max_lane_count\n" , + output->name); + +sscanf (buf,"%d" , &ret); +return ret; +} + +/** +* igt_force_link_retrain: +* @drm_fd: A drm file descriptor +* @output: Target output +* @retrain_count: number of retraining required +* +* Force link retrain on the output. +*/ +void igt_force_link_retrain (int drm_fd,igt_output_t *output,int retrain_count) +{ +char value[2 ]; +int res; + +snprintf (value,sizeof (value),"%d" , retrain_count); + res =igt_debugfs_write_connector_file (drm_fd, output->name, +"i915_dp_force_link_retrain" , + value,strlen (value)); +igt_assert_f (res ==0 ,"Unable to write to %s/i915_dp_force_link_retrain\n" , + output->name); +} + +/** +* igt_force_lt_failure: +* @drm_fd: A drm file descriptor +* @output: Target output +* @failure_count: 1 for same link param and +* 2 for reduced link params +* +* Force link training failure on the output. +* @failure_count: 1 for retraining with same link params +* 2 for retraining with reduced link params +*/ +void igt_force_lt_failure (int drm_fd,igt_output_t *output,int failure_count) +{ +char value[2 ]; +int res; + +snprintf (value,sizeof (value),"%d" , failure_count); + res =igt_debugfs_write_connector_file (drm_fd, output->name, +"i915_dp_force_link_training_failure" , + value,strlen (value)); +igt_assert_f (res ==0 ,"Unable to write to %s/i915_dp_force_link_training_failure\n" , + output->name); +} + +/** +* igt_get_dp_link_retrain_disabled: +* @drm_fd: A drm file descriptor +* @output: Target output +* +* Returns: True if link retrain disabled, false otherwise +*/ +bool igt_get_dp_link_retrain_disabled (int drm_fd,igt_output_t *output) +{ +char buf[512 ]; +int res; + + res =igt_debugfs_read_connector_file (drm_fd, output->name, +"i915_dp_link_retrain_disabled" , + buf,sizeof (buf)); +igt_assert_f (res ==0 ,"Unable to read %s/i915_dp_link_retrain_disabled\n" , + output->name); +return strstr (buf,"yes" ); +} + +/** +* Checks if the force link training failure debugfs +* is available for a specific output. +* +* @drmfd: file descriptor of the DRM device. +* @output: output to check. +* Returns: +* true if the debugfs is available, false otherwise. +*/ +bool igt_has_force_link_training_failure_debugfs (int drmfd,igt_output_t *output) +{ +char buf[512 ]; +int res; + + res =igt_debugfs_read_connector_file (drmfd, output->name, +"i915_dp_link_retrain_disabled" , + buf,sizeof (buf)); +return res ==0 ; +} + +/** +* igt_get_dp_pending_lt_failures: +* @drm_fd: A drm file descriptor +* @output: Target output +* +* Returns: Number of pending link training failures. +*/ +int igt_get_dp_pending_lt_failures (int drm_fd,igt_output_t *output) +{ +char buf[512 ]; +int res, ret; + + res =igt_debugfs_read_connector_file (drm_fd, output->name, +"i915_dp_force_link_training_failure" , + buf,sizeof (buf)); +igt_assert_f (res ==0 ,"Unable to read %s/i915_dp_force_link_training_failure\n" , + output->name); +sscanf (buf,"%d" , &ret); +return ret; +} + +/** +* igt_dp_pending_retrain: +* @drm_fd: A drm file descriptor +* @output: Target output +* +* Returns: Number of pending link retrains. +*/ +int igt_get_dp_pending_retrain (int drm_fd,igt_output_t *output) +{ +char buf[512 ]; +int res, ret; + + res =igt_debugfs_read_connector_file (drm_fd, output->name, +"i915_dp_force_link_retrain" , + buf,sizeof (buf)); +igt_assert_f (res ==0 ,"Unable to read %s/i915_dp_force_link_retrain\n" , + output->name); +sscanf (buf,"%d" , &ret); +return ret; +} + +/** +* igt_reset_link_params: +* @drm_fd: A drm file descriptor +* @output: Target output +* +* Reset link rate and lane count to auto, also installs exit handler +* to set link rate and lane count to auto on exit +*/ +void igt_reset_link_params (int drm_fd,igt_output_t *output) +{ +bool valid; +drmModeConnector *temp; + + valid = true; + valid = valid &&connector_attr_set_debugfs (drm_fd, output->config.connector, +"i915_dp_force_link_rate" , +"auto" ,"auto" , true); + valid = valid &&connector_attr_set_debugfs (drm_fd, output->config.connector, +"i915_dp_force_lane_count" , +"auto" ,"auto" , true); +igt_assert_f (valid,"Unable to set attr or install exit handler\n" ); +dump_connector_attrs (); +igt_install_exit_handler (reset_connectors_at_exit); + +/* +* To allow callers to always use GetConnectorCurrent we need to force a +* redetection here. +*/ + temp =drmModeGetConnector (drm_fd, output->config.connector->connector_id); +drmModeFreeConnector (temp); +} + +/** +* igt_set_link_params: +* @drm_fd: A drm file descriptor +* @output: Target output +* +* set link rate and lane count to given value, also installs exit handler +* to set link rate and lane count to auto on exit +*/ +void igt_set_link_params (int drm_fd,igt_output_t *output, +char *link_rate,char *lane_count) +{ +bool valid; +drmModeConnector *temp; + + valid = true; + valid = valid &&connector_attr_set_debugfs (drm_fd, output->config.connector, +"i915_dp_force_link_rate" , + link_rate,"auto" , true); + valid = valid &&connector_attr_set_debugfs (drm_fd, output->config.connector, +"i915_dp_force_lane_count" , + lane_count,"auto" , true); +igt_assert_f (valid,"Unable to set attr or install exit handler\n" ); +dump_connector_attrs (); +igt_install_exit_handler (reset_connectors_at_exit); + +/* +* To allow callers to always use GetConnectorCurrent we need to force a +* redetection here. +*/ + temp =drmModeGetConnector (drm_fd, output->config.connector->connector_id); +drmModeFreeConnector (temp); +}
lib/i915/i915_dp.h new file +22 -0
@@ -0,0 +1,22 @@ +/* SPDX-License-Identifier: MIT */ + +#ifndef _I915_DP_H_ +#define _I915_DP_H_ + +#include "igt_kms.h" + +int igt_get_current_link_rate (int drm_fd,igt_output_t *output); +int igt_get_current_lane_count (int drm_fd,igt_output_t *output); +int igt_get_max_link_rate (int drm_fd,igt_output_t *output); +int igt_get_max_lane_count (int drm_fd,igt_output_t *output); +void igt_force_link_retrain (int drm_fd,igt_output_t *output,int retrain_count); +void igt_force_lt_failure (int drm_fd,igt_output_t *output,int failure_count); +bool igt_get_dp_link_retrain_disabled (int drm_fd,igt_output_t *output); +bool igt_has_force_link_training_failure_debugfs (int drmfd,igt_output_t *output); +int igt_get_dp_pending_lt_failures (int drm_fd,igt_output_t *output); +int igt_get_dp_pending_retrain (int drm_fd,igt_output_t *output); +void igt_reset_link_params (int drm_fd,igt_output_t *output); +void igt_set_link_params (int drm_fd,igt_output_t *output, +char *link_rate,char *lane_count); + +#endif
lib/igt_kms.c +0 -310
316 lines not on this page · raw message
lib/igt_kms.h +0 -13
@@ -1302,19 +1302,6 @@ bool intel_pipe_output_combo_valid(igt_display_t *display);bool igt_check_output_is_dp_mst (igt_output_t *output);int igt_get_dp_mst_connector_id (igt_output_t *output);int get_num_scalers (igt_display_t *display,enum pipe pipe); -int igt_get_current_lane_count (int drm_fd,igt_output_t *output); -int igt_get_current_link_rate (int drm_fd,igt_output_t *output); -int igt_get_max_link_rate (int drm_fd,igt_output_t *output); -int igt_get_max_lane_count (int drm_fd,igt_output_t *output); -void igt_force_link_retrain (int drm_fd,igt_output_t *output,int retrain_count); -void igt_force_lt_failure (int drm_fd,igt_output_t *output,int failure_count); -bool igt_get_dp_link_retrain_disabled (int drm_fd,igt_output_t *output); -bool igt_has_force_link_training_failure_debugfs (int drmfd,igt_output_t *output); -int igt_get_dp_pending_lt_failures (int drm_fd,igt_output_t *output); -int igt_get_dp_pending_retrain (int drm_fd,igt_output_t *output); -void igt_reset_link_params (int drm_fd,igt_output_t *output); -void igt_set_link_params (int drm_fd,igt_output_t *output, -char *link_rate,char *lane_count);int igt_backlight_read (int *result,const char *fname,igt_backlight_context_t *context);int igt_backlight_write (int value,const char *fname,igt_backlight_context_t *context);uint32_t igt_get_connected_output_count (igt_display_t *display);
lib/meson.build +1 -0
@@ -16,6 +16,7 @@ lib_sources = [ 'i915/intel_fbc.c', 'i915/intel_memory_region.c', 'i915/i915_crc.c', + 'i915/i915_dp.c', 'igt_collection.c', 'igt_color_encoding.c', 'igt_configfs.c',
tests/intel/kms_dp_link_training.c +1 -0
@@ -21,6 +21,7 @@* Description: Test we can drive non-UHBR rates over MST. */ +#include "i915/i915_dp.h" #include "igt.h" #include "igt_kms.h" #include "intel/kms_joiner_helper.h"
tests/intel/kms_dp_linktrain_fallback.c +1 -0
@@ -12,6 +12,7 @@*/ #include <sys/types.h> +#include "i915/i915_dp.h" #include "igt_sysfs.h" #include "igt.h" #include "kms_mst_helper.h"
Signature · 1 line
2.52.0
Re: [PATCH i-g-t v7 36/48] lib/i915/dp: Move DP-related function for i915 to proper folder
Quoted 3 lines · On Mon, 23 Feb 2026 13:09:43 +0100 Louis Chauvet <[email protected]>…
Some functions, prefixed with
igt_are not generic but specific to the i915 intel driver. To avoid confusion and allows the introduction of generic helpers, move those to a dedicated file.
Thank you!
Signature · 3 lines
Köry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com
PATCH v7 37/48 lib/i915/dp: Rename functions to avoid confusion
In reply to Louis ChauvetAdd the proper prefix for i915 dp-related functions. This will avoid confusion when using them.
--- lib/i915/i915_dp.c | 57 +++++++++++++++++---------------- lib/i915/i915_dp.h | 26 +++++++-------- tests/intel/kms_dp_link_training.c | 18 +++++------ tests/intel/kms_dp_linktrain_fallback.c | 56 ++++++++++++++++---------------- 4 files changed, 79 insertions(+), 78 deletions(-)
lib/i915/i915_dp.c +29 -28
@@ -35,7 +35,7 @@#include "igt_core.h" /** -* igt_parse_marked_value: +* i915_dp_parse_marked_value: * @buf: Buffer containing the content to parse * @marked_char: The character marking the value to parse * @result: Pointer to store the parsed value
@@ -44,7 +44,7 @@* * Returns: 0 on success, -1 on failure */ -static int igt_parse_marked_value (const char *buf,char marked_char,int *result) +static int i915_dp_parse_marked_value (const char *buf,char marked_char,int *result) {char *marked_ptr, *val_ptr;
@@ -65,13 +65,13 @@ static int igt_parse_marked_value(const char *buf, char marked_char, int *result }/** -* igt_get_current_link_rate: +* i915_dp_get_current_link_rate: * @drm_fd: A drm file descriptor * @output: Target output * * Returns: link_rate if set for output else -1 */ -int igt_get_current_link_rate (int drm_fd,igt_output_t *output) +int i915_dp_get_current_link_rate (int drm_fd,igt_output_t *output) {char buf[512 ];int res, ret;
@@ -81,19 +81,19 @@ int igt_get_current_link_rate(int drm_fd, igt_output_t *output) buf, sizeof(buf));igt_assert_f (res ==0 ,"Unable to read %s/i915_dp_force_link_rate\n" , output->name); - res =igt_parse_marked_value (buf,'*' , &ret); + res =i915_dp_parse_marked_value (buf,'*' , &ret);igt_assert_f (res ==0 ,"Output %s not enabled\n" , output->name);return ret; }/** -* igt_get_current_lane_count: +* i915_dp_get_current_lane_count: * @drm_fd: A drm file descriptor * @output: Target output * * Returns: lane_count if set for output else -1 */ -int igt_get_current_lane_count (int drm_fd,igt_output_t *output) +int i915_dp_get_current_lane_count (int drm_fd,igt_output_t *output) {char buf[512 ];int res, ret;
@@ -103,19 +103,19 @@ int igt_get_current_lane_count(int drm_fd, igt_output_t *output) buf, sizeof(buf));igt_assert_f (res ==0 ,"Unable to read %s/i915_dp_force_lane_count\n" , output->name); - res =igt_parse_marked_value (buf,'*' , &ret); + res =i915_dp_parse_marked_value (buf,'*' , &ret);igt_assert_f (res ==0 ,"Output %s not enabled\n" , output->name);return ret; }/** -* igt_get_max_link_rate: +* i915_dp_get_max_link_rate: * @drm_fd: A drm file descriptor * @output: Target output * * Returns: max_link_rate */ -int igt_get_max_link_rate (int drm_fd,igt_output_t *output) +int i915_dp_get_max_link_rate (int drm_fd,igt_output_t *output) {char buf[512 ];int res, ret;
@@ -131,13 +131,13 @@ int igt_get_max_link_rate(int drm_fd, igt_output_t *output) }/** -* igt_get_max_link_rate: +* i915_dp_get_max_lane_count: * @drm_fd: A drm file descriptor * @output: Target output * * Returns: max_link_rate */ -int igt_get_max_lane_count (int drm_fd,igt_output_t *output) +int i915_dp_get_max_lane_count (int drm_fd,igt_output_t *output) {char buf[512 ];int res, ret;
@@ -153,14 +153,14 @@ int igt_get_max_lane_count(int drm_fd, igt_output_t *output) }/** -* igt_force_link_retrain: +* i915_dp_force_link_retrain: * @drm_fd: A drm file descriptor * @output: Target output * @retrain_count: number of retraining required * * Force link retrain on the output. */ -void igt_force_link_retrain (int drm_fd,igt_output_t *output,int retrain_count) +void i915_dp_force_link_retrain (int drm_fd,igt_output_t *output,int retrain_count) {char value[2 ];int res;
@@ -174,7 +174,7 @@ void igt_force_link_retrain(int drm_fd, igt_output_t *output, int retrain_count) }/** -* igt_force_lt_failure: +* i915_dp_force_lt_failure: * @drm_fd: A drm file descriptor * @output: Target output * @failure_count: 1 for same link param and
@@ -184,7 +184,7 @@ void igt_force_link_retrain(int drm_fd, igt_output_t *output, int retrain_count)* @failure_count: 1 for retraining with same link params * 2 for retraining with reduced link params */ -void igt_force_lt_failure (int drm_fd,igt_output_t *output,int failure_count) +void i915_dp_force_lt_failure (int drm_fd,igt_output_t *output,int failure_count) {char value[2 ];int res;
@@ -198,13 +198,13 @@ void igt_force_lt_failure(int drm_fd, igt_output_t *output, int failure_count) }/** -* igt_get_dp_link_retrain_disabled: +* i915_dp_get_link_retrain_disabled: * @drm_fd: A drm file descriptor * @output: Target output * * Returns: True if link retrain disabled, false otherwise */ -bool igt_get_dp_link_retrain_disabled (int drm_fd,igt_output_t *output) +bool i915_dp_get_link_retrain_disabled (int drm_fd,igt_output_t *output) {char buf[512 ];int res;
@@ -218,6 +218,7 @@ bool igt_get_dp_link_retrain_disabled(int drm_fd, igt_output_t *output) }/** +* i915_dp_has_force_link_training_failure_debugfs: * Checks if the force link training failure debugfs * is available for a specific output. *
@@ -226,7 +227,7 @@ bool igt_get_dp_link_retrain_disabled(int drm_fd, igt_output_t *output)* Returns: * true if the debugfs is available, false otherwise. */ -bool igt_has_force_link_training_failure_debugfs (int drmfd,igt_output_t *output) +bool i915_dp_has_force_link_training_failure_debugfs (int drmfd,igt_output_t *output) {char buf[512 ];int res;
@@ -238,13 +239,13 @@ bool igt_has_force_link_training_failure_debugfs(int drmfd, igt_output_t *output }/** -* igt_get_dp_pending_lt_failures: +* i915_dp_get_pending_lt_failures: * @drm_fd: A drm file descriptor * @output: Target output * * Returns: Number of pending link training failures. */ -int igt_get_dp_pending_lt_failures (int drm_fd,igt_output_t *output) +int i915_dp_get_pending_lt_failures (int drm_fd,igt_output_t *output) {char buf[512 ];int res, ret;
@@ -259,13 +260,13 @@ int igt_get_dp_pending_lt_failures(int drm_fd, igt_output_t *output) }/** -* igt_dp_pending_retrain: +* i915_dp_get_pending_retrain: * @drm_fd: A drm file descriptor * @output: Target output * * Returns: Number of pending link retrains. */ -int igt_get_dp_pending_retrain (int drm_fd,igt_output_t *output) +int i915_dp_get_pending_retrain (int drm_fd,igt_output_t *output) {char buf[512 ];int res, ret;
@@ -280,14 +281,14 @@ int igt_get_dp_pending_retrain(int drm_fd, igt_output_t *output) }/** -* igt_reset_link_params: +* i915_dp_reset_link_params: * @drm_fd: A drm file descriptor * @output: Target output * * Reset link rate and lane count to auto, also installs exit handler * to set link rate and lane count to auto on exit */ -void igt_reset_link_params (int drm_fd,igt_output_t *output) +void i915_dp_reset_link_params (int drm_fd,igt_output_t *output) {bool valid;drmModeConnector *temp;
@@ -312,15 +313,15 @@ void igt_reset_link_params(int drm_fd, igt_output_t *output) }/** -* igt_set_link_params: +* i915_dp_set_link_params: * @drm_fd: A drm file descriptor * @output: Target output * * set link rate and lane count to given value, also installs exit handler * to set link rate and lane count to auto on exit */ -void igt_set_link_params (int drm_fd,igt_output_t *output, -char *link_rate,char *lane_count) +void i915_dp_set_link_params (int drm_fd,igt_output_t *output, +char *link_rate,char *lane_count) {bool valid;drmModeConnector *temp;
lib/i915/i915_dp.h +13 -13
@@ -5,18 +5,18 @@#include "igt_kms.h" -int igt_get_current_link_rate (int drm_fd,igt_output_t *output); -int igt_get_current_lane_count (int drm_fd,igt_output_t *output); -int igt_get_max_link_rate (int drm_fd,igt_output_t *output); -int igt_get_max_lane_count (int drm_fd,igt_output_t *output); -void igt_force_link_retrain (int drm_fd,igt_output_t *output,int retrain_count); -void igt_force_lt_failure (int drm_fd,igt_output_t *output,int failure_count); -bool igt_get_dp_link_retrain_disabled (int drm_fd,igt_output_t *output); -bool igt_has_force_link_training_failure_debugfs (int drmfd,igt_output_t *output); -int igt_get_dp_pending_lt_failures (int drm_fd,igt_output_t *output); -int igt_get_dp_pending_retrain (int drm_fd,igt_output_t *output); -void igt_reset_link_params (int drm_fd,igt_output_t *output); -void igt_set_link_params (int drm_fd,igt_output_t *output, -char *link_rate,char *lane_count); +int i915_dp_get_current_link_rate (int drm_fd,igt_output_t *output); +int i915_dp_get_current_lane_count (int drm_fd,igt_output_t *output); +int i915_dp_get_max_link_rate (int drm_fd,igt_output_t *output); +int i915_dp_get_max_lane_count (int drm_fd,igt_output_t *output); +void i915_dp_force_link_retrain (int drm_fd,igt_output_t *output,int retrain_count); +void i915_dp_force_lt_failure (int drm_fd,igt_output_t *output,int failure_count); +bool i915_dp_get_link_retrain_disabled (int drm_fd,igt_output_t *output); +bool i915_dp_has_force_link_training_failure_debugfs (int drmfd,igt_output_t *output); +int i915_dp_get_pending_lt_failures (int drm_fd,igt_output_t *output); +int i915_dp_get_pending_retrain (int drm_fd,igt_output_t *output); +void i915_dp_reset_link_params (int drm_fd,igt_output_t *output); +void i915_dp_set_link_params (int drm_fd,igt_output_t *output, +char *link_rate,char *lane_count);#endif
tests/intel/kms_dp_link_training.c +9 -9
@@ -201,20 +201,20 @@ static bool run_link_rate_test(data_t *data, bool mst, bool uhbr)char lane_str[32 ];igt_display_reset (&data->display); -igt_reset_link_params (data->drm_fd, data->output); +i915_dp_reset_link_params (data->drm_fd, data->output);do_modeset (data, mst);/* Retrain at default/driver parameters */ -igt_force_link_retrain (data->drm_fd, data->output,RETRAIN_COUNT ); +i915_dp_force_link_retrain (data->drm_fd, data->output,RETRAIN_COUNT );igt_assert_eq (check_condition_with_timeout (data->drm_fd, data->output, - igt_get_dp_pending_retrain, + i915_dp_get_pending_retrain,1.0 ,20.0 ),0 );assert_link_status_good (data, mst);/* FIXME : Driver may lie max link rate or max lane count */ /* Read max_link_rate and max_lane_count */ - max_link_rate =igt_get_max_link_rate (data->drm_fd, data->output); - max_lane_count =igt_get_max_lane_count (data->drm_fd, data->output); + max_link_rate =i915_dp_get_max_link_rate (data->drm_fd, data->output); + max_lane_count =i915_dp_get_max_lane_count (data->drm_fd, data->output);/* Check sink supports uhbr or not */ is_uhbr_output = (max_link_rate >=UHBR_LINK_RATE );
@@ -233,14 +233,14 @@ static bool run_link_rate_test(data_t *data, bool mst, bool uhbr) data->output->name, rate_str, max_lane_count);/* Force retrain at max link params */ -igt_set_link_params (data->drm_fd, data->output, rate_str, lane_str); -igt_force_link_retrain (data->drm_fd, data->output,RETRAIN_COUNT ); +i915_dp_set_link_params (data->drm_fd, data->output, rate_str, lane_str); +i915_dp_force_link_retrain (data->drm_fd, data->output,RETRAIN_COUNT );igt_assert_eq (check_condition_with_timeout (data->drm_fd, data->output, - igt_get_dp_pending_retrain, + i915_dp_get_pending_retrain,1.0 ,20.0 ),0 );assert_link_status_good (data, mst); - current_link_rate =igt_get_current_link_rate (data->drm_fd, data->output); + current_link_rate =i915_dp_get_current_link_rate (data->drm_fd, data->output);igt_info ("Current link rate is %d\n" , current_link_rate);igt_assert_f (current_link_rate == max_link_rate,"Link training did not succeed at max link rate.\n" );
tests/intel/kms_dp_linktrain_fallback.c +28 -28
138 lines not on this page · raw message
Signature · 1 line
2.52.0
PATCH v7 38/48 lib/i915/dp: Add helper to get maximum supported rate
In reply to Louis ChauvetSome GPU can't reach all the DP rates. To avoid false positive during testing with unigraf, add an helper to filter tests based on the maximum supported rate of the current GPU.
--- lib/i915/i915_dp.c | 35 +++++++++++++++++++++++++++++++++++ lib/i915/i915_dp.h | 1 + 2 files changed, 36 insertions(+)
lib/i915/i915_dp.c +35 -0
@@ -28,7 +28,9 @@*/ #include <ctype.h> +#include <errno.h> #include <stdio.h> +#include <stdlib.h> #include <string.h> #include "i915_dp.h"
@@ -344,3 +346,36 @@ void i915_dp_set_link_params(int drm_fd, igt_output_t *output, temp =drmModeGetConnector (drm_fd, output->config.connector->connector_id);drmModeFreeConnector (temp); } + +/** +* i915_dp_get_max_supported_rate: +* @drm_fd: A drm file descriptor +* @output: Target output +* +* Returns: Max supported link rate available for output, else -1 +*/ +int i915_dp_get_max_supported_rate (int drm_fd,const igt_output_t *output) +{ +char buf[512 ]; +int res, max_rate = -EINVAL ; +char *token; + + res =igt_debugfs_read_connector_file (drm_fd,igt_output_name (output), +"i915_dp_force_link_rate" , + buf,sizeof (buf)); +igt_assert_f (!res,"Unable to read %s/i915_dp_force_link_rate\n" , +igt_output_name (output)); + + token =strtok (buf," " ); +while (token) { +int rate; + + errno =0 ; + rate =strtol (token,NULL ,0 ); +if (!errno && rate > max_rate) + max_rate = rate; + token =strtok (NULL ," " ); + } + +return max_rate; +}
lib/i915/i915_dp.h +1 -0
@@ -18,5 +18,6 @@ int i915_dp_get_pending_retrain(int drm_fd, igt_output_t *output);void i915_dp_reset_link_params (int drm_fd,igt_output_t *output);void i915_dp_set_link_params (int drm_fd,igt_output_t *output,char *link_rate,char *lane_count); +int i915_dp_get_max_supported_rate (int drm_fd,const igt_output_t *output);#endif
Signature · 1 line
2.52.0
Re: [PATCH i-g-t v7 38/48] lib/i915/dp: Add helper to get maximum supported rate
Quoted 3 lines · On Mon, 23 Feb 2026 13:09:45 +0100 Louis Chauvet <[email protected]>…
Some GPU can't reach all the DP rates. To avoid false positive during testing with unigraf, add an helper to filter tests based on the maximum supported rate of the current GPU.
Thank you!
Signature · 3 lines
Köry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com
PATCH v7 39/48 lib/i915/dp: Properly check sscanf results
In reply to Louis ChauvetCurrent sscanf usage can fail silently, add assert to ensure that the returned value is correct.
--- lib/i915/i915_dp.c | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-)
lib/i915/i915_dp.c +14 -4
@@ -128,7 +128,9 @@ int i915_dp_get_max_link_rate(int drm_fd, igt_output_t *output)igt_assert_f (res ==0 ,"Unable to read %s/i915_dp_max_link_rate\n" , output->name); -sscanf (buf,"%d" , &ret); +igt_assert_f (sscanf (buf,"%d" , &ret) ==1 , +"Failed to parse max link rate from %s\n" , buf); +return ret; }
@@ -150,7 +152,9 @@ int i915_dp_get_max_lane_count(int drm_fd, igt_output_t *output)igt_assert_f (res ==0 ,"Unable to read %s/i915_dp_max_lane_count\n" , output->name); -sscanf (buf,"%d" , &ret); +igt_assert_f (sscanf (buf,"%d" , &ret) ==1 , +"Failed to parse max lane count from %s\n" , buf); +return ret; }
@@ -257,7 +261,10 @@ int i915_dp_get_pending_lt_failures(int drm_fd, igt_output_t *output) buf, sizeof(buf));igt_assert_f (res ==0 ,"Unable to read %s/i915_dp_force_link_training_failure\n" , output->name); -sscanf (buf,"%d" , &ret); + +igt_assert_f (sscanf (buf,"%d" , &ret) ==1 , +"Failed to parse pending link training failures from %s\n" , buf); +return ret; }
@@ -278,7 +285,10 @@ int i915_dp_get_pending_retrain(int drm_fd, igt_output_t *output) buf, sizeof(buf));igt_assert_f (res ==0 ,"Unable to read %s/i915_dp_force_link_retrain\n" , output->name); -sscanf (buf,"%d" , &ret); + +igt_assert_f (sscanf (buf,"%d" , &ret) ==1 , +"Failed to parse pending link retrains from %s\n" , buf); +return ret; }
Signature · 1 line
2.52.0
PATCH v7 40/48 lib/i915/dp: Use igt_output_name instead of private field
In reply to Louis Chauvetoutput->name is a private field, use the common helper igt_output_name instead of the field directly.
--- lib/i915/i915_dp.c | 43 ++++++++++++++++++++++--------------------- 1 file changed, 22 insertions(+), 21 deletions(-)
lib/i915/i915_dp.c +22 -21
@@ -35,6 +35,7 @@#include "i915_dp.h" #include "igt_core.h" +#include "igt_kms.h" /** * i915_dp_parse_marked_value:
@@ -78,13 +79,13 @@ int i915_dp_get_current_link_rate(int drm_fd, igt_output_t *output)char buf[512 ];int res, ret; - res =igt_debugfs_read_connector_file (drm_fd, output->name, + res =igt_debugfs_read_connector_file (drm_fd,igt_output_name (output),"i915_dp_force_link_rate" , buf,sizeof (buf));igt_assert_f (res ==0 ,"Unable to read %s/i915_dp_force_link_rate\n" , - output->name); +igt_output_name (output)); res =i915_dp_parse_marked_value (buf,'*' , &ret); -igt_assert_f (res ==0 ,"Output %s not enabled\n" , output->name); +igt_assert_f (res ==0 ,"Output %s not enabled\n" ,igt_output_name (output));return ret; }
@@ -100,13 +101,13 @@ int i915_dp_get_current_lane_count(int drm_fd, igt_output_t *output)char buf[512 ];int res, ret; - res =igt_debugfs_read_connector_file (drm_fd, output->name, + res =igt_debugfs_read_connector_file (drm_fd,igt_output_name (output),"i915_dp_force_lane_count" , buf,sizeof (buf));igt_assert_f (res ==0 ,"Unable to read %s/i915_dp_force_lane_count\n" , - output->name); +igt_output_name (output)); res =i915_dp_parse_marked_value (buf,'*' , &ret); -igt_assert_f (res ==0 ,"Output %s not enabled\n" , output->name); +igt_assert_f (res ==0 ,"Output %s not enabled\n" ,igt_output_name (output));return ret; }
@@ -122,11 +123,11 @@ int i915_dp_get_max_link_rate(int drm_fd, igt_output_t *output)char buf[512 ];int res, ret; - res =igt_debugfs_read_connector_file (drm_fd, output->name, + res =igt_debugfs_read_connector_file (drm_fd,igt_output_name (output),"i915_dp_max_link_rate" , buf,sizeof (buf));igt_assert_f (res ==0 ,"Unable to read %s/i915_dp_max_link_rate\n" , - output->name); +igt_output_name (output));igt_assert_f (sscanf (buf,"%d" , &ret) ==1 ,"Failed to parse max link rate from %s\n" , buf);
@@ -146,11 +147,11 @@ int i915_dp_get_max_lane_count(int drm_fd, igt_output_t *output)char buf[512 ];int res, ret; - res =igt_debugfs_read_connector_file (drm_fd, output->name, + res =igt_debugfs_read_connector_file (drm_fd,igt_output_name (output),"i915_dp_max_lane_count" , buf,sizeof (buf));igt_assert_f (res ==0 ,"Unable to read %s/i915_dp_max_lane_count\n" , - output->name); +igt_output_name (output));igt_assert_f (sscanf (buf,"%d" , &ret) ==1 ,"Failed to parse max lane count from %s\n" , buf);
@@ -172,11 +173,11 @@ void i915_dp_force_link_retrain(int drm_fd, igt_output_t *output, int retrain_coint res;snprintf (value,sizeof (value),"%d" , retrain_count); - res =igt_debugfs_write_connector_file (drm_fd, output->name, + res =igt_debugfs_write_connector_file (drm_fd,igt_output_name (output),"i915_dp_force_link_retrain" , value,strlen (value));igt_assert_f (res ==0 ,"Unable to write to %s/i915_dp_force_link_retrain\n" , - output->name); +igt_output_name (output)); }/**
@@ -196,11 +197,11 @@ void i915_dp_force_lt_failure(int drm_fd, igt_output_t *output, int failure_counint res;snprintf (value,sizeof (value),"%d" , failure_count); - res =igt_debugfs_write_connector_file (drm_fd, output->name, + res =igt_debugfs_write_connector_file (drm_fd,igt_output_name (output),"i915_dp_force_link_training_failure" , value,strlen (value));igt_assert_f (res ==0 ,"Unable to write to %s/i915_dp_force_link_training_failure\n" , - output->name); +igt_output_name (output)); }/**
@@ -215,11 +216,11 @@ bool i915_dp_get_link_retrain_disabled(int drm_fd, igt_output_t *output)char buf[512 ];int res; - res =igt_debugfs_read_connector_file (drm_fd, output->name, + res =igt_debugfs_read_connector_file (drm_fd,igt_output_name (output),"i915_dp_link_retrain_disabled" , buf,sizeof (buf));igt_assert_f (res ==0 ,"Unable to read %s/i915_dp_link_retrain_disabled\n" , - output->name); +igt_output_name (output));return strstr (buf,"yes" ); }
@@ -238,7 +239,7 @@ bool i915_dp_has_force_link_training_failure_debugfs(int drmfd, igt_output_t *ouchar buf[512 ];int res; - res =igt_debugfs_read_connector_file (drmfd, output->name, + res =igt_debugfs_read_connector_file (drmfd,igt_output_name (output),"i915_dp_link_retrain_disabled" , buf,sizeof (buf));return res ==0 ;
@@ -256,11 +257,11 @@ int i915_dp_get_pending_lt_failures(int drm_fd, igt_output_t *output)char buf[512 ];int res, ret; - res =igt_debugfs_read_connector_file (drm_fd, output->name, + res =igt_debugfs_read_connector_file (drm_fd,igt_output_name (output),"i915_dp_force_link_training_failure" , buf,sizeof (buf));igt_assert_f (res ==0 ,"Unable to read %s/i915_dp_force_link_training_failure\n" , - output->name); +igt_output_name (output));igt_assert_f (sscanf (buf,"%d" , &ret) ==1 ,"Failed to parse pending link training failures from %s\n" , buf);
@@ -280,11 +281,11 @@ int i915_dp_get_pending_retrain(int drm_fd, igt_output_t *output)char buf[512 ];int res, ret; - res =igt_debugfs_read_connector_file (drm_fd, output->name, + res =igt_debugfs_read_connector_file (drm_fd,igt_output_name (output),"i915_dp_force_link_retrain" , buf,sizeof (buf));igt_assert_f (res ==0 ,"Unable to read %s/i915_dp_force_link_retrain\n" , - output->name); +igt_output_name (output));igt_assert_f (sscanf (buf,"%d" , &ret) ==1 ,"Failed to parse pending link retrains from %s\n" , buf);
Signature · 1 line
2.52.0
PATCH v7 41/48 lib/igt_dp: Create generic helpers for DP information
In reply to Louis ChauvetWith the introduction of unigraf tests, there is no reason to limit the implementation to intel. Create easly extendable generic functions to help supporting multiple GPU.
--- lib/igt_dp.c | 177 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ lib/igt_dp.h | 30 ++++++++++ lib/meson.build | 1 + 3 files changed, 208 insertions(+)
lib/igt_dp.c new file +177 -0
@@ -0,0 +1,177 @@ +// SPDX-License-Identifier: MIT +/* +* Copyright © 2026 Google +* +* Authors: +* Louis Chauvet <[email protected]> +*/ + +#include "drmtest.h" +#include "i915/i915_dp.h" +#include "igt_amd.h" +#include "igt_core.h" +#include "igt_kms.h" +#include <stdint.h> +#include "igt_dp.h" + +/** +* igt_dp_get_current_link_rate: Get current link rate on a display port +* @drm_fd: DRM file descriptor +* @output: igt_output_t object representing the display port +* +* Returns: +* The current link rate in kb/s, or a negative error code on failure. +*/ +int igt_dp_get_current_link_rate (int drm_fd,igt_output_t *output) +{ +if (is_intel_device (drm_fd)) +/* +* i915_dp_get_current_link_rate returns the value in tens of kb/s because +* that what the kernel uses. Convert it to kb/s to have a sane unit... +*/ +return i915_dp_get_current_link_rate (drm_fd, output) *10 ; + +igt_assert_f (false,"Current drm device is not able to report used link rate\n" ); +return -EINVAL ; +} + +/** +* igt_dp_get_current_lane_count: Get current lane count on a display port +* @drm_fd: DRM file descriptor +* @output: igt_output_t object representing the display port +* +* Returns: +* The number of active lanes, or a negative error code on failure. +*/ +int igt_dp_get_current_lane_count (int drm_fd,igt_output_t *output) +{ +if (is_intel_device (drm_fd)) +return i915_dp_get_current_lane_count (drm_fd, output); + +igt_assert_f (false,"Current drm device is not able to report used lane count\n" ); +return -EINVAL ; +} + +/** +* igt_dp_get_max_link_rate: Get maximum link rate on a display port +* @drm_fd: DRM file descriptor +* @output: igt_output_t object representing the display port +* +* Returns: +* The maximum link rate in kb/s, or a negative error code on failure. +*/ +int igt_dp_get_max_link_rate (int drm_fd,igt_output_t *output) +{ +if (is_intel_device (drm_fd)) +/* +* i915_dp_get_max_link_rate returns the value in tens of kb/s because +* that what the kernel uses. Convert it to kb/s to have a sane unit... +*/ +return i915_dp_get_max_link_rate (drm_fd, output) *10 ; + +igt_assert_f (false,"Current drm device is not able to report max link rate\n" ); +return -EINVAL ; +} + +/** +* igt_dp_get_max_supported_rate: Get maximum supported link rate on a display port +* @drm_fd: DRM file descriptor +* @output: igt_output_t object representing the display port +* +* Returns: +* The maximum supported link rate in kb/s, or a negative error code on failure. +*/ +int igt_dp_get_max_supported_rate (int drm_fd,igt_output_t *output) +{ +if (is_intel_device (drm_fd)) +/* +* i915_dp_get_max_supported_rate returns the value in tens of kb/s because +* that what the kernel uses. Convert it to kb/s to have a sane unit... +*/ +return i915_dp_get_max_supported_rate (drm_fd, output) *10 ; + +igt_assert_f (false,"Current drm device is not able to report max link rate\n" ); +return -EINVAL ; +} + +/** +* igt_dp_get_max_lane_count: Get maximum lane count on a display port +* @drm_fd: DRM file descriptor +* @output: igt_output_t object representing the display port +* +* Returns: +* The maximum number of lanes, or a negative error code on failure. +*/ +int igt_dp_get_max_lane_count (int drm_fd,igt_output_t *output) +{ +if (is_intel_device (drm_fd)) +return i915_dp_get_max_lane_count (drm_fd, output); + +igt_assert_f (false,"Current drm device is not able to report max lane count\n" ); +return -EINVAL ; +} + +/** +* igt_dp_force_link_retrain: Force link retraining on a display port +* @drm_fd: DRM file descriptor +* @output: igt_output_t object representing the display port +* @retrain_count: Number of times to retrain the link +*/ +void igt_dp_force_link_retrain (int drm_fd,igt_output_t *output,int retrain_count) +{ +if (is_intel_device (drm_fd)) { +i915_dp_force_link_retrain (drm_fd, output, retrain_count); +return ; + } + +igt_assert_f (false,"Current drm device does not support link retraining\n" ); +} + +/** +* igt_dp_get_pending_retrain: Get pending link retrain count +* @drm_fd: DRM file descriptor +* @output: igt_output_t object representing the display port +* +* Returns: +* The number of pending retrain operations, or a negative error code on failure. +*/ +int igt_dp_get_pending_retrain (int drm_fd,igt_output_t *output) +{ +if (is_intel_device (drm_fd)) +return i915_dp_get_pending_retrain (drm_fd, output); + +igt_assert_f (false,"Current drm device does not support pending retrain count checking\n" ); +return -EINVAL ; +} + +/** +* igt_dp_wait_pending_retrain: Wait for pending link retrain operations to complete +* @drm_fd: DRM file descriptor +* @output: igt_output_t object representing the display port +* +* This function waits for any pending link retrain operations to complete on the +* specified display port. It polls the debugfs interface for the pending retrain +* count until it reaches zero, indicating all retrain operations have completed. +*/ +void igt_dp_wait_pending_retrain (int drm_fd,igt_output_t *output) +{ +double timeout =igt_default_display_detect_timeout (); +struct timespec start, now; +double elapsed; + +clock_gettime (CLOCK_MONOTONIC , &start); + +while (1 ) { +if (!igt_dp_get_pending_retrain (drm_fd, output)) +return ; + +clock_gettime (CLOCK_MONOTONIC , &now); + elapsed = (now.tv_sec - start.tv_sec) + + (now.tv_nsec - start.tv_nsec) /1e9 ; + +if (elapsed >= timeout) +break ; +usleep (10 ); + } +igt_assert_f (false,"Timeout waiting for pending retrain to complete\n" ); +}
lib/igt_dp.h new file +30 -0
@@ -0,0 +1,30 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2026 Google +* +* Authors: +* Louis Chauvet <[email protected]> +*/ + +#ifndef _IGT_DP_H_ +#define _IGT_DP_H_ + +#include "igt_kms.h" + +int igt_dp_get_current_link_rate (int drm_fd,igt_output_t *output); + +int igt_dp_get_current_lane_count (int drm_fd,igt_output_t *output); + +int igt_dp_get_max_link_rate (int drm_fd,igt_output_t *output); + +int igt_dp_get_max_supported_rate (int drm_fd,igt_output_t *output); + +int igt_dp_get_max_lane_count (int drm_fd,igt_output_t *output); + +void igt_dp_force_link_retrain (int drm_fd,igt_output_t *output,int retrain_count); + +int igt_dp_get_pending_retrain (int drm_fd,igt_output_t *output); + +void igt_dp_wait_pending_retrain (int drm_fd,igt_output_t *output); + +#endif
lib/meson.build +1 -0
@@ -29,6 +29,7 @@ lib_sources = [ 'igt_drm_fdinfo.c', 'igt_fs.c', 'igt_aux.c', + 'igt_dp.c', 'igt_gt.c', 'igt_halffloat.c', 'igt_hwmon.c',
Signature · 1 line
2.52.0
Re: [PATCH i-g-t v7 41/48] lib/igt_dp: Create generic helpers for DP information
Quoted 18 lines · On Mon, 23 Feb 2026 13:09:48 +0100 Louis Chauvet <[email protected]>…
With the introduction of unigraf tests, there is no reason to limit the implementation to intel. Create easly extendable generic functions to help supporting multiple GPU.
Signed-off-by Louis Chauvet <[email protected]>--- lib/igt_dp.c | 177 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ lib/igt_dp.h | 30 ++++++++++ lib/meson.build | 1 + 3 files changed, 208 insertions(+)lib/igt_dp.c new file +1
-0@@ -0,0 +1,177 @@ +// SPDX-License-Identifier: MIT
lib/igt_dp.c line 11
Quoted 10 lines
lib/igt_dp.c new file +10
-0+/* +* Copyright © 2026 Google +* +* Authors: +* Louis Chauvet <[email protected]> +*/ + +#include "drmtest.h" +#include "i915/i915_dp.h" +#include "igt_amd.h"
I think this header is useless, there is no amd function call here.
lib/igt_dp.c line 15
Quoted 4 lines
lib/igt_dp.c new file +4
-0+#include "igt_core.h" +#include "igt_kms.h" +#include <stdint.h> +#include "igt_dp.h"
stdint include should be at the top.
We often put system header before local header.
Quoted 22 lines
lib/igt_dp.c new file +14
-0+ +/** +* igt_dp_get_current_link_rate: Get current link rate on a display port +* @drm_fd: DRM file descriptor +* @output: igt_output_t object representing the display port +* +* Returns: +* The current link rate in kb/s, or a negative error code on failure. +*/ +int igt_dp_get_current_link_rate (int drm_fd,igt_output_t *output) +{ +if (is_intel_device (drm_fd)) +/* +* i915_dp_get_current_link_rate returns the value in tens of kb/s because
lib/igt_dp.c new file +1
-0+* that what the kernel uses. Convert it to kb/s to have a sane unit...
lib/igt_dp.c new file +4
-0+*/ +return i915_dp_get_current_link_rate (drm_fd, output) *10 ; + + igt_assert_f(false, "Current drm device is not able to report usedlink rate\n");
lib/igt_dp.c
Quoted 2 lines
lib/igt_dp.c new file +2
-0+return -EINVAL ; +}
I usually do the other way around:
if (!is_intel_device(...)) {
igt_assert(...);
return -EINVAL
}return i915_dp_get_current_link_rate(drm_fd, output) * 10;
but well that's only my coding style I am also ok with that.
...
Quoted 9 lines
lib/igt_dp.c new file +9
-0+void igt_dp_wait_pending_retrain (int drm_fd,igt_output_t *output) +{ +double timeout =igt_default_display_detect_timeout (); +struct timespec start, now; +double elapsed; + +clock_gettime (CLOCK_MONOTONIC , &start); + +while (1 ) {
lib/igt_dp.c line 174
Quoted 10 lines
lib/igt_dp.c new file +10
-0+if (!igt_dp_get_pending_retrain (drm_fd, output)) +return ; + +clock_gettime (CLOCK_MONOTONIC , &now); + elapsed = (now.tv_sec - start.tv_sec) + + (now.tv_nsec - start.tv_nsec) /1e9 ; + +if (elapsed >= timeout) +break ; +usleep (10 );
10us? I think you wanted 10ms here.
Regards,
Signature · 3 lines
Köry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com
Re: [PATCH i-g-t v7 41/48] lib/igt_dp: Create generic helpers for DP information
Quoted 68 lines · Kory Maincent
Quoted 18 lines · On Mon, 23 Feb 2026 13:09:48 +0100 Louis Chauvet <[email protected]>…
With the introduction of unigraf tests, there is no reason to limit the implementation to intel. Create easly extendable generic functions to help supporting multiple GPU.
Signed-off-by Louis Chauvet <[email protected]>--- lib/igt_dp.c | 177 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ lib/igt_dp.h | 30 ++++++++++ lib/meson.build | 1 + 3 files changed, 208 insertions(+)lib/igt_dp.c new file +1
-0@@ -0,0 +1,177 @@ +// SPDX-License-Identifier: MIT lib/igt_dp.c line 11
Quoted 10 lines
lib/igt_dp.c new file +10
-0+/* +* Copyright © 2026 Google +* +* Authors: +* Louis Chauvet <[email protected]> +*/ + +#include "drmtest.h" +#include "i915/i915_dp.h" +#include "igt_amd.h" I think this header is useless, there is no amd function call here.
lib/igt_dp.c line 15
Quoted 4 lines
lib/igt_dp.c new file +4
-0+#include "igt_core.h" +#include "igt_kms.h" +#include <stdint.h> +#include "igt_dp.h" stdint include should be at the top.
We often put system header before local header.Quoted 22 lines
lib/igt_dp.c new file +14
-0+ +/** +* igt_dp_get_current_link_rate: Get current link rate on a display port +* @drm_fd: DRM file descriptor +* @output: igt_output_t object representing the display port +* +* Returns: +* The current link rate in kb/s, or a negative error code on failure. +*/ +int igt_dp_get_current_link_rate (int drm_fd,igt_output_t *output) +{ +if (is_intel_device (drm_fd)) +/* +* i915_dp_get_current_link_rate returns the value in tens of kb/s because
lib/igt_dp.c new file +1
-0+* that what the kernel uses. Convert it to kb/s to have a sane unit...
lib/igt_dp.c new file +4
-0+*/ +return i915_dp_get_current_link_rate (drm_fd, output) *10 ; + + igt_assert_f(false, "Current drm device is not able to report usedlink rate\n");
lib/igt_dp.c
Quoted 2 lines
lib/igt_dp.c new file +2
-0+return -EINVAL ; +}I usually do the other way around:
Quoted 8 lines
if (!is_intel_device(...)) { igt_assert(...); return -EINVAL }return
i915_dp_get_current_link_rate(drm_fd, output)* 10;but well that's only my coding style I am also ok with that.
The goal is to be able to easly add amd, qualcom, whatever like this:
if (is_intel())
return intel_...
if (is_amd())
return amd_...
...
Quoted 15 lines
...
Quoted 13 lines
lib/igt_dp.c new file +13
-0+void igt_dp_wait_pending_retrain (int drm_fd,igt_output_t *output) +{ +double timeout =igt_default_display_detect_timeout (); +struct timespec start, now; +double elapsed; + +clock_gettime (CLOCK_MONOTONIC , &start); + +while (1 ) { +if (!igt_dp_get_pending_retrain (drm_fd, output)) +return ; + +clock_gettime (CLOCK_MONOTONIC , &now);
Quoted 8 lines
lib/igt_dp.c line 174
Quoted 6 lines
lib/igt_dp.c new file +6
-0+ elapsed = (now.tv_sec - start.tv_sec) + + (now.tv_nsec - start.tv_nsec) /1e9 ; + +if (elapsed >= timeout) +break ; +usleep (10 );10us? I think you wanted 10ms here.
Yes, I don't know how to count :-)
Quoted 1 line
Regards,
Re: [PATCH i-g-t v7 41/48] lib/igt_dp: Create generic helpers for DP information
Quoted 76 lines · On Wed, 25 Feb 2026 11:00:27 +0100 Louis Chauvet <[email protected]>…
Quoted 75 lines · Kory Maincent
Quoted 18 lines · On Mon, 23 Feb 2026 13:09:48 +0100 Louis Chauvet <[email protected]>…
With the introduction of unigraf tests, there is no reason to limit the implementation to intel. Create easly extendable generic functions to help supporting multiple GPU.
Signed-off-by Louis Chauvet <[email protected]>--- lib/igt_dp.c | 177 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ lib/igt_dp.h | 30 ++++++++++ lib/meson.build | 1 + 3 files changed, 208 insertions(+)lib/igt_dp.c new file +1
-0@@ -0,0 +1,177 @@ +// SPDX-License-Identifier: MIT lib/igt_dp.c line 11
Quoted 10 lines
lib/igt_dp.c new file +10
-0+/* +* Copyright © 2026 Google +* +* Authors: +* Louis Chauvet <[email protected]> +*/ + +#include "drmtest.h" +#include "i915/i915_dp.h" +#include "igt_amd.h" I think this header is useless, there is no amd function call here.
lib/igt_dp.c line 15
Quoted 4 lines
lib/igt_dp.c new file +4
-0+#include "igt_core.h" +#include "igt_kms.h" +#include <stdint.h> +#include "igt_dp.h" stdint include should be at the top.
We often put system header before local header.Quoted 22 lines
lib/igt_dp.c new file +14
-0+ +/** +* igt_dp_get_current_link_rate: Get current link rate on a display port +* @drm_fd: DRM file descriptor +* @output: igt_output_t object representing the display port +* +* Returns: +* The current link rate in kb/s, or a negative error code on failure. +*/ +int igt_dp_get_current_link_rate (int drm_fd,igt_output_t *output) +{ +if (is_intel_device (drm_fd)) +/* +* i915_dp_get_current_link_rate returns the value in tens of kb/s because
lib/igt_dp.c new file +1
-0+* that what the kernel uses. Convert it to kb/s to have a sane unit...
lib/igt_dp.c new file +4
-0+*/ +return i915_dp_get_current_link_rate (drm_fd, output) *10 ; + + igt_assert_f(false, "Current drm device is not able to report usedlink rate\n");
lib/igt_dp.c
Quoted 2 lines
lib/igt_dp.c new file +2
-0+return -EINVAL ; +}I usually do the other way around:
if (!is_intel_device(...)) { igt_assert(...); return -EINVAL }return
i915_dp_get_current_link_rate(drm_fd, output)* 10;
Quoted 8 lines
Quoted 1 line
but well that's only my coding style I am also ok with that.
The goal is to be able to easly add amd, qualcom, whatever like this:
if (
is_intel())
returnintel_...
if (is_amd())return amd_...
Oh ok legit.
Signature · 3 lines
Köry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com
Re: [PATCH i-g-t v7 41/48] lib/igt_dp: Create generic helpers for DP information
In reply to Louis ChauvetHi Louis,
Quoted 21 lines · Louis Chauvet
With the introduction of unigraf tests, there is no reason to limit the implementation to intel. Create easly extendable generic functions to help supporting multiple GPU.
Signed-off-by Louis Chauvet <[email protected]>--- lib/igt_dp.c | 177 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ lib/igt_dp.h | 30 ++++++++++ lib/meson.build | 1 + 3 files changed, 208 insertions(+)lib/igt_dp.c new file +4
-0@@ -0,0 +1,177 @@ +// SPDX-License-Identifier: MIT +/* +* Copyright © 2026 Google +*
lib/igt_dp.c line 14
Quoted 10 lines
lib/igt_dp.c new file +10
-0+* Authors: +* Louis Chauvet <[email protected]> +*/ + +#include "drmtest.h" +#include "i915/i915_dp.h" +#include "igt_amd.h" +#include "igt_core.h" +#include "igt_kms.h" +#include <stdint.h>
Please move system include before all igt ones.
Quoted 10 lines
lib/igt_dp.c new file +10
-0+#include "igt_dp.h" + +/** +* igt_dp_get_current_link_rate: Get current link rate on a display port +* @drm_fd: DRM file descriptor +* @output: igt_output_t object representing the display port +* +* Returns: +* The current link rate in kb/s, or a negative error code on failure. +*/
lib/igt_dp.c line 34
Quoted 10 lines
lib/igt_dp.c new file +10
-0+int igt_dp_get_current_link_rate (int drm_fd,igt_output_t *output) +{ +if (is_intel_device (drm_fd)) +/* +* i915_dp_get_current_link_rate returns the value in tens of kb/s because +* that what the kernel uses. Convert it to kb/s to have a sane unit... +*/ +return i915_dp_get_current_link_rate (drm_fd, output) *10 ; + +igt_assert_f (false,"Current drm device is not able to report used link rate\n" );
Add newline before return, here and in similar places below.
Regards,
Kamil
Quoted 195 lines
lib/igt_dp.c new file +143
-0+return -EINVAL ; +} + +/** +* igt_dp_get_current_lane_count: Get current lane count on a display port +* @drm_fd: DRM file descriptor +* @output: igt_output_t object representing the display port +* +* Returns: +* The number of active lanes, or a negative error code on failure. +*/ +int igt_dp_get_current_lane_count (int drm_fd,igt_output_t *output) +{ +if (is_intel_device (drm_fd)) +return i915_dp_get_current_lane_count (drm_fd, output); + +igt_assert_f (false,"Current drm device is not able to report used lane count\n" ); +return -EINVAL ; +} + +/** +* igt_dp_get_max_link_rate: Get maximum link rate on a display port +* @drm_fd: DRM file descriptor +* @output: igt_output_t object representing the display port +* +* Returns: +* The maximum link rate in kb/s, or a negative error code on failure. +*/ +int igt_dp_get_max_link_rate (int drm_fd,igt_output_t *output) +{ +if (is_intel_device (drm_fd)) +/* +* i915_dp_get_max_link_rate returns the value in tens of kb/s because +* that what the kernel uses. Convert it to kb/s to have a sane unit... +*/ +return i915_dp_get_max_link_rate (drm_fd, output) *10 ; + +igt_assert_f (false,"Current drm device is not able to report max link rate\n" ); +return -EINVAL ; +} + +/** +* igt_dp_get_max_supported_rate: Get maximum supported link rate on a display port +* @drm_fd: DRM file descriptor +* @output: igt_output_t object representing the display port +* +* Returns: +* The maximum supported link rate in kb/s, or a negative error code on failure. +*/ +int igt_dp_get_max_supported_rate (int drm_fd,igt_output_t *output) +{ +if (is_intel_device (drm_fd)) +/* +* i915_dp_get_max_supported_rate returns the value in tens of kb/s because +* that what the kernel uses. Convert it to kb/s to have a sane unit... +*/ +return i915_dp_get_max_supported_rate (drm_fd, output) *10 ; + +igt_assert_f (false,"Current drm device is not able to report max link rate\n" ); +return -EINVAL ; +} + +/** +* igt_dp_get_max_lane_count: Get maximum lane count on a display port +* @drm_fd: DRM file descriptor +* @output: igt_output_t object representing the display port +* +* Returns: +* The maximum number of lanes, or a negative error code on failure. +*/ +int igt_dp_get_max_lane_count (int drm_fd,igt_output_t *output) +{ +if (is_intel_device (drm_fd)) +return i915_dp_get_max_lane_count (drm_fd, output); + +igt_assert_f (false,"Current drm device is not able to report max lane count\n" ); +return -EINVAL ; +} + +/** +* igt_dp_force_link_retrain: Force link retraining on a display port +* @drm_fd: DRM file descriptor +* @output: igt_output_t object representing the display port +* @retrain_count: Number of times to retrain the link +*/ +void igt_dp_force_link_retrain (int drm_fd,igt_output_t *output,int retrain_count) +{ +if (is_intel_device (drm_fd)) { +i915_dp_force_link_retrain (drm_fd, output, retrain_count); +return ; + } + +igt_assert_f (false,"Current drm device does not support link retraining\n" ); +} + +/** +* igt_dp_get_pending_retrain: Get pending link retrain count +* @drm_fd: DRM file descriptor +* @output: igt_output_t object representing the display port +* +* Returns: +* The number of pending retrain operations, or a negative error code on failure. +*/ +int igt_dp_get_pending_retrain (int drm_fd,igt_output_t *output) +{ +if (is_intel_device (drm_fd)) +return i915_dp_get_pending_retrain (drm_fd, output); + +igt_assert_f (false,"Current drm device does not support pending retrain count checking\n" ); +return -EINVAL ; +} + +/** +* igt_dp_wait_pending_retrain: Wait for pending link retrain operations to complete +* @drm_fd: DRM file descriptor +* @output: igt_output_t object representing the display port +* +* This function waits for any pending link retrain operations to complete on the +* specified display port. It polls the debugfs interface for the pending retrain +* count until it reaches zero, indicating all retrain operations have completed. +*/ +void igt_dp_wait_pending_retrain (int drm_fd,igt_output_t *output) +{ +double timeout =igt_default_display_detect_timeout (); +struct timespec start, now; +double elapsed; + +clock_gettime (CLOCK_MONOTONIC , &start); + +while (1 ) { +if (!igt_dp_get_pending_retrain (drm_fd, output)) +return ; + +clock_gettime (CLOCK_MONOTONIC , &now); + elapsed = (now.tv_sec - start.tv_sec) + + (now.tv_nsec - start.tv_nsec) /1e9 ; + +if (elapsed >= timeout) +break ; +usleep (10 ); + } +igt_assert_f (false,"Timeout waiting for pending retrain to complete\n" ); +}lib/igt_dp.h new file +30
-0@@ -0,0 +1,30 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2026 Google +* +* Authors: +* Louis Chauvet <[email protected]> +*/ + +#ifndef _IGT_DP_H_ +#define _IGT_DP_H_ + +#include "igt_kms.h" + +int igt_dp_get_current_link_rate (int drm_fd,igt_output_t *output); + +int igt_dp_get_current_lane_count (int drm_fd,igt_output_t *output); + +int igt_dp_get_max_link_rate (int drm_fd,igt_output_t *output); + +int igt_dp_get_max_supported_rate (int drm_fd,igt_output_t *output); + +int igt_dp_get_max_lane_count (int drm_fd,igt_output_t *output); + +void igt_dp_force_link_retrain (int drm_fd,igt_output_t *output,int retrain_count); + +int igt_dp_get_pending_retrain (int drm_fd,igt_output_t *output); + +void igt_dp_wait_pending_retrain (int drm_fd,igt_output_t *output); + +#endif lib/meson.build +1
-0@@ -29,6 +29,7 @@ lib_sources = [ 'igt_drm_fdinfo.c', 'igt_fs.c', 'igt_aux.c', + 'igt_dp.c', 'igt_gt.c', 'igt_halffloat.c', 'igt_hwmon.c',Signature · 2 lines
-- 2.52.0
PATCH v7 42/48 lib/igt_kms: Add asserts to avoid null pointer dereference
In reply to Louis ChauvetTo help debugging and avoid null pointer dereference, add some asserts in igt_output_from_connector.
--- lib/igt_kms.c | 2 ++ 1 file changed, 2 insertions(+)
lib/igt_kms.c +2 -0
@@ -3296,6 +3296,8 @@ igt_output_t *igt_output_from_connector(igt_display_t *display, {int i;igt_output_t *found =NULL ; +igt_assert (display); +igt_assert (connector);for (i =0 ; i < display->n_outputs; i++) {igt_output_t *output = &display->outputs[i];
Signature · 1 line
2.52.0
PATCH v7 43/48 lib/igt_kms: Add helper to get a CRTC from an output
In reply to Louis ChauvetGrabbing a valid CRTC from a specific output is useful when testing the output.
--- lib/igt_kms.c | 20 ++++++++++++++++++++ lib/igt_kms.h | 2 ++ 2 files changed, 22 insertions(+)
lib/igt_kms.c +20 -0
@@ -7937,3 +7937,23 @@ int igt_get_crtc_index_from_connector_id(int drm_fd, int connector_id) }return 0 ; } + +/* +* igt_get_crtc_for_output: +* @display: display to fetch the CRTC +* @output: output to use +* +* Get a valid CRTC for a specific output. The return value is the first valid CRTC for a +* specific output. +*/ +igt_crtc_t *igt_get_crtc_for_output (igt_display_t *display, +igt_output_t *output) +{ +igt_crtc_t *crtc; + +for_each_crtc (display, crtc) +if (igt_crtc_connector_valid (crtc, output)) +return crtc; + +return NULL ; +}
lib/igt_kms.h +2 -0
@@ -1329,5 +1329,7 @@ get_list_diff(const uint32_t *list_a, int list_a_len, const uint32_t *list_b, in uint32_t **diff);int igt_get_crtc_index_from_connector_id (int drm_fd,int connector_id); +igt_crtc_t *igt_get_crtc_for_output (igt_display_t *display, +igt_output_t *output);#endif /* __IGT_KMS_H__ */
Signature · 1 line
2.52.0
Re: [PATCH i-g-t v7 43/48] lib/igt_kms: Add helper to get a CRTC from an output
Quoted 14 lines · On Mon, 23 Feb 2026 13:09:50 +0100 Louis Chauvet <[email protected]>…
Grabbing a valid CRTC from a specific output is useful when testing the output.
Signed-off-by Louis Chauvet <[email protected]>--- lib/igt_kms.c | 20 ++++++++++++++++++++ lib/igt_kms.h | 2 ++ 2 files changed, 22 insertions(+)lib/igt_kms.c +0
-0
lib/igt_kms.c int igt_get_crtc_index_from_connector_id(int drm_fd, · line 7941
Quoted 5 lines
lib/igt_kms.c +2
-0@@ -7937,3 +7937,23 @@ int igt_get_crtc_index_from_connector_id(int drm_fd, int connector_id) }return 0 ; } + +/*
Use /** for function doc.
With this fixed you can add my R-by.
Quoted 32 lines
lib/igt_kms.c +5
-0+* igt_get_crtc_for_output: +* @display: display to fetch the CRTC +* @output: output to use +* +* Get a valid CRTC for a specific output. The return value is the first valid CRTC for a
+ * specific output.
+ */lib/igt_kms.c +11
-0+igt_crtc_t *igt_get_crtc_for_output (igt_display_t *display, +igt_output_t *output) +{ +igt_crtc_t *crtc; + +for_each_crtc (display, crtc) +if (igt_crtc_connector_valid (crtc, output)) +return crtc; + +return NULL ; +}lib/igt_kms.h +2
-0@@ -1329,5 +1329,7 @@ get_list_diff(const uint32_t *list_a, int list_a_len, const uint32_t *list_b, in uint32_t **diff);int igt_get_crtc_index_from_connector_id (int drm_fd,int connector_id); +igt_crtc_t *igt_get_crtc_for_output (igt_display_t *display, +igt_output_t *output);#endif /* __IGT_KMS_H__ */
Signature · 3 lines
Köry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com
PATCH v7 44/48 lib/unigraf: Add lane count configuration
In reply to Louis ChauvetAs unigraf can emulate 1, 2 or 4 lanes display port connections, add helpers to configure the number of lanes.
--- lib/unigraf/unigraf.c | 29 +++++++++++++++++++++++++++++ lib/unigraf/unigraf.h | 4 ++++ 2 files changed, 33 insertions(+)
lib/unigraf/unigraf.c +29 -0
@@ -543,6 +543,7 @@ void unigraf_reset(void)unigraf_set_sst ();unigraf_load_default_edid ();unigraf_hpd_assert (); +unigraf_set_max_lane_count (4 ); }/**
@@ -803,3 +804,31 @@ void unigraf_assert_stream_timings(int stream, drmModeModeInfoPtr mode_info)igt_assert_eq (mode_info->vsync_start,unigraf_read_u32 (TSI_DPRX_MSA_VSTART_R ));igt_assert_eq (mode_info->hsync_start,unigraf_read_u32 (TSI_DPRX_MSA_HSTART_R )); } + +/** +* unigraf_set_max_lane_count() - Set the maximum number of lanes advertised to the DUT +* @count: The maximum number of lanes to configure on the device +* +* This function sets the maximum number of lanes that the device will advertise on the DP link. +* The actual number of lanes used may be less than the requested count if the +* DUT does not support/use it. +*/ +void unigraf_set_max_lane_count (uint32_t count) +{ +unigraf_write_u32 (TSI_DPRX_MAX_LANES , count); +} + +/** +* unigraf_get_max_lane_count() - Get the maximum number of lanes supported by the device +* +* Returns: The maximum number of lanes supported by the device. +*/ +int unigraf_get_max_lane_count (void ) +{ +int max_lanes; + +igt_assert (unigraf_device); +unigraf_assert (TSIX_TS_GetConfigItem (unigraf_device,TSI_DPRX_MAX_LANES , + &max_lanes,sizeof (max_lanes))); +return max_lanes; +}
lib/unigraf/unigraf.h +4 -0
@@ -80,4 +80,8 @@ int unigraf_get_connector_id_by_stream(int drm_fd, int stream_id);void unigraf_assert_stream_timings (int stream,drmModeModeInfoPtr mode_info); +int unigraf_get_max_lane_count (void ); + +void unigraf_set_max_lane_count (uint32_t count); +#endif // UNIGRAF_H
Signature · 1 line
2.52.0
PATCH v7 45/48 docs/unigraf: Add unigraf documentation
In reply to Louis ChauvetAdd unigraf documentation to explain how to compile and use it with IGT.
--- docs/unigraf.txt | 81 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+)
docs/unigraf.txt new file +81 -0
@@ -0,0 +1,81 @@ +Unigraf Support in IGT +======================== + +This document provides information, instructions and for Unigraf support in IGT. + +Introduction +------------ + +Unigraf devices are a set of devices that can be used to test all sort of graphical +interface and signals. See Unigraf website for more information about all the +capabilities of earch devices: https://unigraf.fi + +Unigraf documentation +--------------------- + +All the documentation for libTSI, the library used to communicate with the unigraf, +can be found on unigraf website: https://www.unigraf.fi/downloads/ + +Setting up Unigraf +------------------ + +For most of the unigraf devices, this should be as simple as "plugging the +unigraf and plug the video cable". If you need to install some license, upgrade +the firmawre... please take a look at the official unigraf documentation. + +Compiling IGT with Unigraf support +---------------------------------- + +Unfortunatly, the communication with the device use a proprietary library and the +underlaying protocol is not open. To use the unigraf you need to install the unigraf +SDK, grab the libTSI.so and make it available on the build machine and the DUT. + +Deploying the Unigraf with IGT +------------------------------ + +Unigraf may work out of the box: by default if IGT find a unigraf device, it will +try to connect and configure it to use USB-C input. This allows running most of +the existing tests without an actual screens. + +Here is a complete example configuration: + + [Unigraf] + # Choose a device using his name, you can find it in UCDConsole (installed with the SDK) + Device=UCD-500 [2434C620] + # Choose a role for the device, you can find it UCDConsole + Role=USB-C, DP Alt Mode Source and Sink + # Choose active input for the device + Input=DP RX + # Set the connector name used by the unigraf device. If not set, IGT will try to + # autodetect which connector is used. + Connector=DP-2 + # Set the EDID used by Unigraf + EDID=DEL_16543_DELL_P2314T_DP + # Enable or disable the use of Unigraf's CRCs instead of the CRTC CRCs + UseCRC=1 + # Set the number of emulated MST streams (0 = Single Stream Transport, >=1 = MST) + MSTStreams=0' + +Current Support in IGT +---------------------- + +Support for the Unigraf devices in IGT is found in the following places: +* lib/unigraf/unigraf.[ch] -> IGT API +* lib/unigraf/TSI.h -> Header for libTSI.so, not provided by Unigraf +* lib/unigraf/TSI_types.h -> Header containing all the relevant values from unigraf SDK. The unigraf SDK can't be used directly because it is only compatible with windows and c++. + +Current unigraf.c features are: +* Plug, unplug, hotplug pulse +* EDID management +* MST/SST stream management +* CRC calculation + +Current testing are: +* All igt tests that require a display and use a CRC (kms_plane, ) +* Basic EDID and MST tests + +Planned tests: +* Link training scenarios (link rate, lane count, scrambling, ...) +* Bandwidth constraint management +* HDCP content protection +* Display stream compression
Signature · 1 line
2.52.0
Re: [PATCH i-g-t v7 45/48] docs/unigraf: Add unigraf documentation
Quoted 1 line · On Mon, 23 Feb 2026 13:09:52 +0100 Louis Chauvet <[email protected]>…
Add unigraf documentation to explain how to compile and use it with IGT.
Small report from claude AI:
Multiple typos in docs/unigraf.txt:
- "earch devices" → "each device"
- "firmawre" → "firmware"
- "Unfortunatly" → "Unfortunately"
- "underlaying" → "underlying"
- "information, instructions and for Unigraf support" → "information and instructions for Unigraf support"
- MSTStreams=0' has a stray trailing single-quote
- "(kms_plane, )" has an incomplete list with a dangling comma
With these fixed you can add my R-by.
Signature · 3 lines
Köry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com
PATCH v7 46/48 lib/unigraf: Add helpers to set maximum link rate
In reply to Louis ChauvetAs link rate can vary on a display port link, add a way to change advertised link rate from unigraf.
--- lib/unigraf/unigraf.c | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++ lib/unigraf/unigraf.h | 14 ++++++++++++++ 2 files changed, 67 insertions(+)
lib/unigraf/unigraf.c +53 -0
@@ -544,6 +544,7 @@ void unigraf_reset(void)unigraf_load_default_edid ();unigraf_hpd_assert ();unigraf_set_max_lane_count (4 ); +unigraf_set_max_link_rate (UNIGRAF_RATE_8_10_GHZ ); }/**
@@ -832,3 +833,55 @@ int unigraf_get_max_lane_count(void) &max_lanes, sizeof(max_lanes)));return max_lanes; } + +/** +* unigraf_set_max_link_rate() - Set the maximum link rate advertised to the DUT +* @rate: The maximum link rate to configure on the device. Actual value is +* @rate * 270000 kHz. Common values can be found in enum unigraf_rate +* +* This function sets the maximum link rate that the device will advertise on the DP link. +* The actual link rate used may be less than the requested value if the DUT does not +* support/use it. +*/ +void unigraf_set_max_link_rate (int bandwidth) +{ +unigraf_write_u32 (TSI_DPRX_MAX_LINK_RATE , bandwidth); +} + +/** +* unigraf_get_max_link_rate() - Get the maximum link rate supported by the device +* +* Returns: The maximum link rate supported by the device. The value returned must be multiplied by +* 270000 to get the value in kHz. +*/ +int unigraf_get_max_link_rate (void ) +{ +return unigraf_read_u32 (TSI_DPRX_MAX_LINK_RATE ); +} + +/** +* unigraf_rate_to_kbs - Convert a rate value to kilobits per second +* @rate: The rate value to convert +* +* This function converts a rate value to kilobits per second (kbps). +* +* Returns: The converted rate in kilobits per second +*/ +int unigraf_rate_to_kbs (enum unigraf_rate rate) +{ +switch (rate) { +case UNIGRAF_RATE_1_62_GHZ : +return 1620000 ; +case UNIGRAF_RATE_2_7_GHZ : +return 2700000 ; +case UNIGRAF_RATE_5_4_GHZ : +return 5400000 ; +case UNIGRAF_RATE_6_75_GHZ : +return 6750000 ; +case UNIGRAF_RATE_8_10_GHZ : +return 8100000 ; +default : +igt_assert_f (0 ,"Unknown rate %d\n" , rate); +return 0 ; + } +}
lib/unigraf/unigraf.h +14 -0
@@ -84,4 +84,18 @@ int unigraf_get_max_lane_count(void);void unigraf_set_max_lane_count (uint32_t count); +enum unigraf_rate { +UNIGRAF_RATE_1_62_GHZ =6 , +UNIGRAF_RATE_2_7_GHZ =10 , +UNIGRAF_RATE_5_4_GHZ =20 , +UNIGRAF_RATE_6_75_GHZ =25 , +UNIGRAF_RATE_8_10_GHZ =30 , +}; + +void unigraf_set_max_link_rate (int rate); + +int unigraf_get_max_link_rate (void ); + +int unigraf_rate_to_kbs (enum unigraf_rate rate); +#endif // UNIGRAF_H
Signature · 1 line
2.52.0
Re: [PATCH i-g-t v7 46/48] lib/unigraf: Add helpers to set maximum link rate
Quoted 29 lines · On Mon, 23 Feb 2026 13:09:53 +0100 Louis Chauvet <[email protected]>…
As link rate can vary on a display port link, add a way to change advertised link rate from unigraf.
Reviewed-by Kory Maincent <[email protected]>Signed-off-by Louis Chauvet <[email protected]>--- lib/unigraf/unigraf.c | 53+++++++++++++++++++++++++++++++++++++++++++++++++++
lib/unigraf/unigraf.h| 14 ++++++++++++++ 2 files changed, 67 insertions(+)lib/unigraf/unigraf.c +4
-0@@ -544,6 +544,7 @@ void unigraf_reset(void)unigraf_load_default_edid ();unigraf_hpd_assert ();unigraf_set_max_lane_count (4 ); +unigraf_set_max_link_rate (UNIGRAF_RATE_8_10_GHZ ); }/** @@ -832,3 +833,55 @@ int unigraf_get_max_lane_count(void) &max_lanes, sizeof(max_lanes)));return max_lanes; } + +/** +* unigraf_set_max_link_rate() - Set the maximum link rate advertised to the
Quoted 3 lines
DUT
+ * @rate: The maximum link rate to configure on the device. Actual value is
+ * @rate * 270000 kHz. Common values can be found in enumunigraf_rate
There is a parameter name error here.
Quoted 11 lines
+ *
+ * This function sets the maximum link rate that the device will advertise on the DP link.
+ * The actual link rate used may be less than the requested value if the DUT does not
+ * support/use it.
+ */lib/unigraf/unigraf.c +4
-0+void unigraf_set_max_link_rate (int bandwidth) +{ +unigraf_write_u32 (TSI_DPRX_MAX_LINK_RATE , bandwidth); +}
Signature · 3 lines
Köry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com
PATCH v7 47/48 lib/unigraf: Add helpers to get the current LT status
In reply to Louis ChauvetTo ensure that the link training was correct, grab actual link training status from unigraf.
--- lib/unigraf/unigraf.c | 20 ++++++++++++++++++++ lib/unigraf/unigraf.h | 4 ++++ 2 files changed, 24 insertions(+)
lib/unigraf/unigraf.c +20 -0
@@ -834,6 +834,26 @@ int unigraf_get_max_lane_count(void)return max_lanes; } +/** +* unigraf_get_lt_rate() - Get the current link training rate +* +* Returns: The current link training rate in units of 270 MHz. +*/ +uint32_t unigraf_get_lt_rate (void ) +{ +return unigraf_read_u32 (TSI_DPRX_LT_RATE_R ); +} + +/** +* unigraf_get_lt_lane_count() - Get the current link training lane count +* +* Returns: The current number of lanes being used in link training. +*/ +uint32_t unigraf_get_lt_lane_count (void ) +{ +return unigraf_read_u32 (TSI_DPRX_LT_LANE_COUNT_R ); +} +/** * unigraf_set_max_link_rate() - Set the maximum link rate advertised to the DUT * @rate: The maximum link rate to configure on the device. Actual value is
lib/unigraf/unigraf.h +4 -0
@@ -98,4 +98,8 @@ int unigraf_get_max_link_rate(void);int unigraf_rate_to_kbs (enum unigraf_rate rate); +uint32_t unigraf_get_lt_rate (void ); + +uint32_t unigraf_get_lt_lane_count (void ); +#endif // UNIGRAF_H
Signature · 1 line
2.52.0
PATCH v7 48/48 tests/unigraf/unigraf_lt: Add test for link training
In reply to Louis ChauvetTo test link training on various situation, add multiple link training scenarios.
--- tests/unigraf/meson.build | 1 + tests/unigraf/unigraf_lt.c | 183 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 184 insertions(+)
tests/unigraf/meson.build +1 -0
@@ -1,5 +1,6 @@ unigraf_progs = [ 'unigraf_connectivity', + 'unigraf_lt', ] foreach prog : unigraf_progs
tests/unigraf/unigraf_lt.c new file +183 -0
183 lines not on this page · raw message
Signature · 1 line
2.52.0
Patchwork
CI✓ Xe.CI.BAT: success for Unigraf integration (rev6)
In reply to Louis Chauvet== Series Details ==
== Series Details ==
Series: Unigraf integration (rev6)
URL : https://patchwork.freedesktop.org/series/151772/
State : success
== Summary ==
CI Bug Log - changes from XEIGT_8765_BAT -> XEIGTPW_14594_BAT
====================================================
Summary
-------
**SUCCESS**
No regressions found.
Participating hosts (14 -> 14)
------------------------------
No changes in participating hosts
Known issues
------------
Here are the changes found in XEIGTPW_14594_BAT that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@xe_waitfence@reltime:
- bat-dg2-oem2: [PASS][1] -> [FAIL][2] ([Intel XE#6520])
[1]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8765/bat-dg2-oem2/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/bat-dg2-oem2/igt@[email protected]
[Intel XE#6520]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6520
Build changes
-------------
* IGT: IGT_8765 -> IGTPW_14594
* Linux: xe-4585-f8bde45966c329f3025862c5fc462e4b13f52ca8 -> xe-4590-616fe8160929511b0679615cda09751043490b18
IGTPW_14594: 14594
IGT_8765: 8765
xe-4585-f8bde45966c329f3025862c5fc462e4b13f52ca8: f8bde45966c329f3025862c5fc462e4b13f52ca8 xe-4590-616fe8160929511b0679615cda09751043490b18: 616fe8160929511b0679615cda09751043490b18
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/index.html
Patchwork
CI✗ i915.CI.BAT: failure for Unigraf integration (rev6)
In reply to Louis Chauvet== Series Details ==
== Series Details ==
Series: Unigraf integration (rev6)
URL : https://patchwork.freedesktop.org/series/151772/
State : failure
== Summary ==
CI Bug Log - changes from IGT_8765 -> IGTPW_14594
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with IGTPW_14594 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes
introduced in IGTPW_14594, please notify your bug team ([email protected]) to allow them to document this new failure mode, which will reduce false positives in CI.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14594/index.html
Participating hosts (43 -> 41)
------------------------------
Missing (2): bat-dg2-13 fi-snb-2520m
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in IGTPW_14594:
### IGT changes ###
#### Possible regressions ####
* igt@fbdev@eof:
- bat-jsl-5: [PASS][1] -> [SKIP][2] +8 other tests skip
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8765/bat-jsl-5/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14594/bat-jsl-5/igt@[email protected]
Known issues
------------
Here are the changes found in IGTPW_14594 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@fbdev@info:
- bat-jsl-5: [PASS][3] -> [SKIP][4] ([i915#1849])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8765/bat-jsl-5/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14594/bat-jsl-5/igt@[email protected]
* igt@i915_selftest@live:
- bat-dg2-8: [PASS][5] -> [DMESG-FAIL][6] ([i915#12061]) +1 other test dmesg-fail
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8765/bat-dg2-8/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14594/bat-dg2-8/igt@[email protected]
* igt@i915_selftest@live@workarounds:
- bat-arls-5: [PASS][7] -> [DMESG-FAIL][8] ([i915#12061]) +1 other test dmesg-fail
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8765/bat-arls-5/igt@i915_selftest@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14594/bat-arls-5/igt@i915_selftest@[email protected]
* igt@kms_pipe_crc_basic@nonblocking-crc:
- bat-jsl-5: [PASS][9] -> [SKIP][10] ([i915#11190]) +13 other tests skip
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8765/bat-jsl-5/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14594/bat-jsl-5/igt@[email protected]
* igt@kms_pm_rpm@basic-rte:
- bat-rpls-4: [PASS][11] -> [DMESG-WARN][12] ([i915#13400]) +1 other test dmesg-warn
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8765/bat-rpls-4/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14594/bat-rpls-4/igt@[email protected]
* igt@prime_vgem@basic-fence-flip:
- bat-jsl-5: [PASS][13] -> [SKIP][14]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8765/bat-jsl-5/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14594/bat-jsl-5/igt@[email protected]
#### Possible fixes ####
* igt@fbdev@info:
- fi-hsw-4770: [SKIP][15] ([i915#1849] / [i915#2582]) -> [PASS][16]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8765/fi-hsw-4770/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14594/fi-hsw-4770/igt@[email protected]
* igt@fbdev@nullptr:
- fi-hsw-4770: [SKIP][17] ([i915#2582]) -> [PASS][18] +3 other tests pass
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8765/fi-hsw-4770/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14594/fi-hsw-4770/igt@[email protected]
* igt@gem_softpin@safe-alignment:
- fi-hsw-4770: [FAIL][19] ([i915#15527]) -> [PASS][20]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8765/fi-hsw-4770/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14594/fi-hsw-4770/igt@[email protected]
#### Warnings ####
* igt@kms_cursor_legacy@basic-busy-flip-before-cursor-legacy:
- bat-jsl-5: [SKIP][21] ([i915#4103]) -> [SKIP][22] ([i915#11190]) +1 other test skip
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8765/bat-jsl-5/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14594/bat-jsl-5/igt@[email protected]
* igt@kms_dsc@dsc-basic:
- bat-jsl-5: [SKIP][23] ([i915#3555] / [i915#9886]) -> [SKIP][24] ([i915#11190])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8765/bat-jsl-5/igt@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14594/bat-jsl-5/igt@[email protected]
[i915#11190]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11190
[i915#12061]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12061
[i915#13400]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13400
[i915#15527]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/15527
[i915#1849]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/1849
[i915#2582]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/2582
[i915#3555]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3555
[i915#4103]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4103
[i915#9886]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9886
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_8765 -> IGTPW_14594
* Linux: CI_DRM_18016 -> CI_DRM_18021
CI-20190529: 20190529
CI_DRM_18016: f8bde45966c329f3025862c5fc462e4b13f52ca8 @ git://anongit.freedesktop.org/gfx-ci/linux
CI_DRM_18021: 616fe8160929511b0679615cda09751043490b18 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_14594: 14594
IGT_8765: 8765
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14594/index.html
Patchwork
CI✗ Xe.CI.FULL: failure for Unigraf integration (rev6)
In reply to Louis Chauvet== Series Details ==
== Series Details ==
Series: Unigraf integration (rev6)
URL : https://patchwork.freedesktop.org/series/151772/
State : failure
== Summary ==
CI Bug Log - changes from XEIGT_8765_FULL -> XEIGTPW_14594_FULL
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with XEIGTPW_14594_FULL absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes
introduced in XEIGTPW_14594_FULL, please notify your bug team ([email protected]) to allow them to document this new failure mode, which will reduce false positives in CI.
Participating hosts (2 -> 2)
------------------------------
No changes in participating hosts
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in XEIGTPW_14594_FULL:
### IGT changes ###
#### Possible regressions ####
* igt@kms_ccs@bad-rotation-90-4-tiled-bmg-ccs@pipe-a-hdmi-a-3:
- shard-bmg: [PASS][1] -> [FAIL][2] +4 other tests fail
[1]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8765/shard-bmg-5/igt@kms_ccs@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-bmg-2/igt@kms_ccs@[email protected]
* igt@kms_ccs@bad-rotation-90-4-tiled-bmg-ccs@pipe-c-dp-2:
- shard-bmg: NOTRUN -> [FAIL][3] +3 other tests fail
[3]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-bmg-2/igt@kms_ccs@[email protected]
* igt@xe_fault_injection@inject-fault-probe-function-xe_ggtt_init_early:
- shard-bmg: [PASS][4] -> [ABORT][5] +1 other test abort
[4]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8765/shard-bmg-9/igt@xe_fault_injection@inject-fault-probe-function-xe_ggtt_init_early.html
[5]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-bmg-4/igt@xe_fault_injection@inject-fault-probe-function-xe_ggtt_init_early.html
* igt@xe_module_load@force-load:
- shard-bmg: [PASS][6] -> [DMESG-WARN][7]
[6]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8765/shard-bmg-2/igt@[email protected]
[7]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-bmg-2/igt@[email protected]
Known issues
------------
Here are the changes found in XEIGTPW_14594_FULL that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@kms_async_flips@alternate-sync-async-flip:
- shard-bmg: [PASS][8] -> [FAIL][9] ([Intel XE#3718] / [Intel XE#6078])
[8]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8765/shard-bmg-6/igt@[email protected]
[9]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-bmg-5/igt@[email protected]
* igt@kms_async_flips@alternate-sync-async-flip@pipe-a-dp-1:
- shard-bmg: NOTRUN -> [FAIL][10] ([Intel XE#6078])
[10]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-bmg-5/igt@kms_async_flips@[email protected]
* igt@kms_atomic_transition@plane-all-modeset-transition:
- shard-lnl: NOTRUN -> [SKIP][11] ([Intel XE#3279])
[11]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-lnl-7/igt@[email protected]
* igt@kms_big_fb@4-tiled-32bpp-rotate-270:
- shard-bmg: NOTRUN -> [SKIP][12] ([Intel XE#2327])
[12]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-bmg-8/igt@[email protected]
* igt@kms_big_fb@linear-64bpp-rotate-90:
- shard-lnl: NOTRUN -> [SKIP][13] ([Intel XE#1407]) +1 other test skip
[13]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-lnl-8/igt@[email protected]
* igt@kms_big_fb@yf-tiled-8bpp-rotate-90:
- shard-bmg: NOTRUN -> [SKIP][14] ([Intel XE#1124]) +4 other tests skip
[14]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-bmg-2/igt@[email protected]
* igt@kms_big_fb@yf-tiled-max-hw-stride-32bpp-rotate-180-async-flip:
- shard-lnl: NOTRUN -> [SKIP][15] ([Intel XE#1124]) +4 other tests skip
[15]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-lnl-7/igt@kms_big_fb@yf-tiled-max-hw-stride-32bpp-rotate-180-async-flip.html
* igt@kms_bw@connected-linear-tiling-3-displays-2160x1440p:
- shard-lnl: NOTRUN -> [SKIP][16] ([Intel XE#2191])
[16]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-lnl-5/igt@[email protected]
* igt@kms_bw@linear-tiling-4-displays-1920x1080p:
- shard-bmg: NOTRUN -> [SKIP][17] ([Intel XE#367])
[17]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-bmg-9/igt@[email protected]
* igt@kms_ccs@ccs-on-another-bo-4-tiled-mtl-mc-ccs:
- shard-lnl: NOTRUN -> [SKIP][18] ([Intel XE#2887]) +4 other tests skip
[18]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-lnl-8/igt@[email protected]
* igt@kms_ccs@crc-primary-rotation-180-y-tiled-ccs:
- shard-bmg: NOTRUN -> [SKIP][19] ([Intel XE#2887]) +3 other tests skip
[19]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-bmg-9/igt@[email protected]
* igt@kms_ccs@crc-primary-suspend-4-tiled-mtl-mc-ccs:
- shard-lnl: NOTRUN -> [SKIP][20] ([Intel XE#3432])
[20]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-lnl-7/igt@[email protected]
- shard-bmg: NOTRUN -> [SKIP][21] ([Intel XE#3432])
[21]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-bmg-3/igt@[email protected]
* igt@kms_ccs@random-ccs-data-4-tiled-lnl-ccs@pipe-d-hdmi-a-3:
- shard-bmg: NOTRUN -> [SKIP][22] ([Intel XE#2652]) +8 other tests skip
[22]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-bmg-9/igt@kms_ccs@[email protected]
* igt@kms_cdclk@mode-transition:
- shard-bmg: NOTRUN -> [SKIP][23] ([Intel XE#2724])
[23]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-bmg-8/igt@[email protected]
* igt@kms_cdclk@mode-transition-all-outputs:
- shard-lnl: NOTRUN -> [SKIP][24] ([Intel XE#4418])
[24]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-lnl-5/igt@[email protected]
* igt@kms_cdclk@mode-transition@pipe-b-edp-1:
- shard-lnl: NOTRUN -> [SKIP][25] ([Intel XE#4417]) +3 other tests skip
[25]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-lnl-3/igt@kms_cdclk@[email protected]
* igt@kms_chamelium_color@degamma:
- shard-lnl: NOTRUN -> [SKIP][26] ([Intel XE#306])
[26]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-lnl-3/igt@[email protected]
* igt@kms_chamelium_edid@dp-edid-change-during-hibernate:
- shard-bmg: NOTRUN -> [SKIP][27] ([Intel XE#2252]) +5 other tests skip
[27]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-bmg-2/igt@[email protected]
* igt@kms_chamelium_hpd@vga-hpd-fast:
- shard-lnl: NOTRUN -> [SKIP][28] ([Intel XE#373]) +3 other tests skip
[28]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-lnl-7/igt@[email protected]
* igt@kms_content_protection@uevent-hdcp14@pipe-a-dp-1:
- shard-bmg: NOTRUN -> [FAIL][29] ([Intel XE#6707]) +1 other test fail
[29]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-bmg-5/igt@kms_content_protection@[email protected]
* igt@kms_cursor_crc@cursor-offscreen-256x85:
- shard-bmg: NOTRUN -> [SKIP][30] ([Intel XE#2320]) +1 other test skip
[30]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-bmg-2/igt@[email protected]
* igt@kms_cursor_crc@cursor-onscreen-64x21:
- shard-lnl: NOTRUN -> [SKIP][31] ([Intel XE#1424])
[31]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-lnl-8/igt@[email protected]
* igt@kms_cursor_crc@cursor-sliding-256x256:
- shard-bmg: [PASS][32] -> [DMESG-FAIL][33] ([Intel XE#5545]) +1 other test dmesg-fail
[32]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8765/shard-bmg-1/igt@[email protected]
[33]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-bmg-2/igt@[email protected]
* igt@kms_cursor_legacy@cursorb-vs-flipa-legacy:
- shard-lnl: NOTRUN -> [SKIP][34] ([Intel XE#309]) +1 other test skip
[34]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-lnl-4/igt@[email protected]
* igt@kms_dsc@dsc-fractional-bpp:
- shard-lnl: NOTRUN -> [SKIP][35] ([Intel XE#2244]) +1 other test skip
[35]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-lnl-1/igt@[email protected]
* igt@kms_dsc@dsc-with-output-formats:
- shard-bmg: NOTRUN -> [SKIP][36] ([Intel XE#2244]) +1 other test skip
[36]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-bmg-2/igt@[email protected]
* igt@kms_flip@2x-flip-vs-suspend-interruptible:
- shard-lnl: NOTRUN -> [SKIP][37] ([Intel XE#1421])
[37]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-lnl-3/igt@[email protected]
* igt@kms_flip_scaled_crc@flip-32bpp-xtile-to-64bpp-xtile-downscaling:
- shard-lnl: NOTRUN -> [SKIP][38] ([Intel XE#1397] / [Intel XE#1745]) +1 other test skip
[38]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-lnl-8/igt@kms_flip_scaled_crc@flip-32bpp-xtile-to-64bpp-xtile-downscaling.html
* igt@kms_flip_scaled_crc@flip-32bpp-xtile-to-64bpp-xtile-downscaling@pipe-a-default-mode:
- shard-lnl: NOTRUN -> [SKIP][39] ([Intel XE#1397]) +1 other test skip
[39]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-lnl-8/igt@kms_flip_scaled_crc@flip-32bpp-xtile-to-64bpp-xtile-downscaling@pipe-a-default-mode.html
* igt@kms_flip_scaled_crc@flip-p016-linear-to-p016-linear-reflect-x:
- shard-lnl: NOTRUN -> [SKIP][40] ([Intel XE#7179])
[40]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-lnl-1/igt@kms_flip_scaled_crc@flip-p016-linear-to-p016-linear-reflect-x.html
* igt@kms_frontbuffer_tracking@drrs-1p-primscrn-cur-indfb-draw-render:
- shard-lnl: NOTRUN -> [SKIP][41] ([Intel XE#651]) +3 other tests skip
[41]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-lnl-5/igt@kms_frontbuffer_tracking@drrs-1p-primscrn-cur-indfb-draw-render.html
* igt@kms_frontbuffer_tracking@drrs-2p-scndscrn-pri-indfb-draw-mmap-wc:
- shard-bmg: NOTRUN -> [SKIP][42] ([Intel XE#2311]) +13 other tests skip
[42]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-bmg-7/igt@kms_frontbuffer_tracking@drrs-2p-scndscrn-pri-indfb-draw-mmap-wc.html
* igt@kms_frontbuffer_tracking@fbc-1p-offscreen-pri-indfb-draw-blt:
- shard-bmg: NOTRUN -> [SKIP][43] ([Intel XE#4141]) +9 other tests skip
[43]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-bmg-9/igt@kms_frontbuffer_tracking@fbc-1p-offscreen-pri-indfb-draw-blt.html
* igt@kms_frontbuffer_tracking@fbcdrrs-1p-offscreen-pri-indfb-draw-mmap-wc:
- shard-lnl: NOTRUN -> [SKIP][44] ([Intel XE#6312]) +1 other test skip
[44]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-lnl-2/igt@kms_frontbuffer_tracking@fbcdrrs-1p-offscreen-pri-indfb-draw-mmap-wc.html
* igt@kms_frontbuffer_tracking@fbcdrrs-abgr161616f-draw-blt:
- shard-lnl: NOTRUN -> [SKIP][45] ([Intel XE#7061]) +2 other tests skip
[45]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-lnl-5/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbcdrrs-tiling-y:
- shard-lnl: NOTRUN -> [SKIP][46] ([Intel XE#1469])
[46]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-lnl-4/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbcpsr-argb161616f-draw-blt:
- shard-bmg: NOTRUN -> [SKIP][47] ([Intel XE#7061]) +2 other tests skip
[47]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-bmg-9/igt@[email protected]
* igt@kms_frontbuffer_tracking@psr-2p-primscrn-indfb-plflip-blt:
- shard-bmg: NOTRUN -> [SKIP][48] ([Intel XE#2313]) +13 other tests skip
[48]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-bmg-9/igt@[email protected]
* igt@kms_frontbuffer_tracking@psr-2p-primscrn-pri-indfb-draw-blt:
- shard-lnl: NOTRUN -> [SKIP][49] ([Intel XE#656]) +11 other tests skip
[49]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-lnl-8/igt@[email protected]
* igt@kms_invalid_mode@clock-too-high@pipe-a-edp-1:
- shard-lnl: NOTRUN -> [SKIP][50] ([Intel XE#1450]) +1 other test skip
[50]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-lnl-4/igt@kms_invalid_mode@[email protected]
* igt@kms_invalid_mode@clock-too-high@pipe-c-edp-1:
- shard-lnl: NOTRUN -> [SKIP][51] ([Intel XE#1450] / [Intel XE#2568]) +1 other test skip
[51]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-lnl-4/igt@kms_invalid_mode@[email protected]
* igt@kms_joiner@basic-big-joiner:
- shard-lnl: NOTRUN -> [SKIP][52] ([Intel XE#6901])
[52]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-lnl-2/igt@[email protected]
- shard-bmg: NOTRUN -> [SKIP][53] ([Intel XE#6901])
[53]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-bmg-5/igt@[email protected]
* igt@kms_multipipe_modeset@basic-max-pipe-crc-check:
- shard-bmg: NOTRUN -> [SKIP][54] ([Intel XE#2501])
[54]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-bmg-8/igt@[email protected]
- shard-lnl: NOTRUN -> [SKIP][55] ([Intel XE#356])
[55]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-lnl-1/igt@[email protected]
* igt@kms_plane@pixel-format-y-tiled-gen12-mc-ccs-modifier-source-clamping:
- shard-bmg: NOTRUN -> [SKIP][56] ([Intel XE#7283]) +4 other tests skip
[56]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-bmg-3/igt@kms_plane@pixel-format-y-tiled-gen12-mc-ccs-modifier-source-clamping.html
* igt@kms_plane@pixel-format-yf-tiled-modifier:
- shard-lnl: NOTRUN -> [SKIP][57] ([Intel XE#7283]) +1 other test skip
[57]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-lnl-1/igt@[email protected]
* igt@kms_plane_multiple@tiling-y:
- shard-lnl: NOTRUN -> [SKIP][58] ([Intel XE#5020])
[58]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-lnl-2/igt@[email protected]
* igt@kms_plane_scaling@planes-downscale-factor-0-5-unity-scaling:
- shard-lnl: NOTRUN -> [SKIP][59] ([Intel XE#2763] / [Intel XE#6886]) +7 other tests skip
[59]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-lnl-2/igt@[email protected]
* igt@kms_plane_scaling@planes-downscale-factor-0-5@pipe-c:
- shard-bmg: NOTRUN -> [SKIP][60] ([Intel XE#2763] / [Intel XE#6886]) +4 other tests skip
[60]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-bmg-1/igt@kms_plane_scaling@[email protected]
* igt@kms_pm_backlight@fade:
- shard-bmg: NOTRUN -> [SKIP][61] ([Intel XE#870]) +1 other test skip
[61]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-bmg-8/igt@[email protected]
* igt@kms_pm_dc@dc3co-vpb-simulation:
- shard-lnl: NOTRUN -> [SKIP][62] ([Intel XE#7339])
[62]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-lnl-3/igt@[email protected]
* igt@kms_pm_lpsp@kms-lpsp:
- shard-bmg: NOTRUN -> [SKIP][63] ([Intel XE#2499])
[63]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-bmg-3/igt@[email protected]
* igt@kms_psr2_sf@fbc-psr2-overlay-primary-update-sf-dmg-area:
- shard-lnl: NOTRUN -> [SKIP][64] ([Intel XE#1406] / [Intel XE#2893] / [Intel XE#4608]) +1 other test skip
[64]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-lnl-2/igt@[email protected]
* igt@kms_psr2_sf@fbc-psr2-overlay-primary-update-sf-dmg-area@pipe-b-edp-1:
- shard-lnl: NOTRUN -> [SKIP][65] ([Intel XE#1406] / [Intel XE#4608]) +3 other tests skip
[65]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-lnl-2/igt@kms_psr2_sf@[email protected]
* igt@kms_psr2_sf@pr-overlay-plane-update-continuous-sf:
- shard-lnl: NOTRUN -> [SKIP][66] ([Intel XE#1406] / [Intel XE#2893]) +1 other test skip
[66]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-lnl-4/igt@[email protected]
* igt@kms_psr2_sf@psr2-overlay-plane-move-continuous-sf:
- shard-bmg: NOTRUN -> [SKIP][67] ([Intel XE#1406] / [Intel XE#1489]) +3 other tests skip
[67]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-bmg-7/igt@[email protected]
* igt@kms_psr@fbc-pr-primary-page-flip:
- shard-bmg: NOTRUN -> [SKIP][68] ([Intel XE#1406] / [Intel XE#2234] / [Intel XE#2850]) +2 other tests skip
[68]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-bmg-8/igt@[email protected]
* igt@kms_setmode@basic:
- shard-bmg: NOTRUN -> [FAIL][69] ([Intel XE#6361]) +4 other tests fail
[69]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-bmg-7/igt@[email protected]
* igt@kms_setmode@basic-clone-single-crtc:
- shard-lnl: NOTRUN -> [SKIP][70] ([Intel XE#1435])
[70]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-lnl-2/igt@[email protected]
* igt@kms_setmode@basic@pipe-b-edp-1:
- shard-lnl: [PASS][71] -> [FAIL][72] ([Intel XE#6361]) +2 other tests fail
[71]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8765/shard-lnl-8/igt@kms_setmode@[email protected]
[72]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-lnl-4/igt@kms_setmode@[email protected]
* igt@kms_vrr@cmrr:
- shard-bmg: NOTRUN -> [SKIP][73] ([Intel XE#2168])
[73]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-bmg-1/igt@[email protected]
* igt@kms_vrr@negative-basic:
- shard-lnl: NOTRUN -> [SKIP][74] ([Intel XE#1499])
[74]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-lnl-1/igt@[email protected]
* igt@xe_eudebug@basic-close:
- shard-lnl: NOTRUN -> [SKIP][75] ([Intel XE#4837]) +2 other tests skip
[75]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-lnl-8/igt@[email protected]
* igt@xe_eudebug@basic-vm-bind-ufence-delay-ack:
- shard-bmg: NOTRUN -> [SKIP][76] ([Intel XE#4837]) +2 other tests skip
[76]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-bmg-4/igt@[email protected]
* igt@xe_eudebug_online@breakpoint-many-sessions-tiles:
- shard-bmg: NOTRUN -> [SKIP][77] ([Intel XE#4837] / [Intel XE#6665]) +2 other tests skip
[77]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-bmg-1/igt@[email protected]
* igt@xe_eudebug_online@interrupt-other-debuggable:
- shard-lnl: NOTRUN -> [SKIP][78] ([Intel XE#4837] / [Intel XE#6665]) +2 other tests skip
[78]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-lnl-3/igt@[email protected]
* igt@xe_evict@evict-beng-mixed-many-threads-small:
- shard-bmg: [PASS][79] -> [INCOMPLETE][80] ([Intel XE#6321])
[79]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8765/shard-bmg-4/igt@[email protected]
[80]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-bmg-5/igt@[email protected]
* igt@xe_evict_ccs@evict-overcommit-parallel-nofree-samefd:
- shard-lnl: NOTRUN -> [SKIP][81] ([Intel XE#6540] / [Intel XE#688]) +3 other tests skip
[81]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-lnl-8/igt@[email protected]
* igt@xe_exec_basic@multigpu-once-bindexecqueue:
- shard-bmg: NOTRUN -> [SKIP][82] ([Intel XE#2322])
[82]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-bmg-2/igt@[email protected]
* igt@xe_exec_basic@multigpu-once-userptr:
- shard-lnl: NOTRUN -> [SKIP][83] ([Intel XE#1392]) +2 other tests skip
[83]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-lnl-3/igt@[email protected]
* igt@xe_exec_basic@twice-bindexecqueue-userptr-invalidate-race:
- shard-bmg: [PASS][84] -> [SKIP][85] ([Intel XE#6703]) +7 other tests skip
[84]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8765/shard-bmg-7/igt@[email protected]
[85]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-bmg-2/igt@[email protected]
* igt@xe_exec_fault_mode@twice-multi-queue-userptr-rebind:
- shard-bmg: NOTRUN -> [SKIP][86] ([Intel XE#7136]) +3 other tests skip
[86]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-bmg-6/igt@[email protected]
* igt@xe_exec_fault_mode@twice-multi-queue-userptr-rebind-imm:
- shard-lnl: NOTRUN -> [SKIP][87] ([Intel XE#7136]) +3 other tests skip
[87]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-lnl-3/igt@[email protected]
* igt@xe_exec_multi_queue@one-queue-preempt-mode-basic-smem:
- shard-bmg: NOTRUN -> [SKIP][88] ([Intel XE#6874]) +6 other tests skip
[88]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-bmg-9/igt@[email protected]
* igt@xe_exec_multi_queue@two-queues-preempt-mode-fault-basic-smem:
- shard-lnl: NOTRUN -> [SKIP][89] ([Intel XE#6874]) +10 other tests skip
[89]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-lnl-5/igt@xe_exec_multi_queue@two-queues-preempt-mode-fault-basic-smem.html
* igt@xe_exec_system_allocator@pat-index-madvise-pat-idx-uc-comp-multi-vma:
- shard-lnl: NOTRUN -> [SKIP][90] ([Intel XE#6196])
[90]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-lnl-1/igt@xe_exec_system_allocator@pat-index-madvise-pat-idx-uc-comp-multi-vma.html
* igt@xe_exec_threads@threads-multi-queue-mixed-userptr-rebind:
- shard-bmg: NOTRUN -> [SKIP][91] ([Intel XE#7138]) +4 other tests skip
[91]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-bmg-6/igt@[email protected]
* igt@xe_exec_threads@threads-multi-queue-userptr:
- shard-lnl: NOTRUN -> [SKIP][92] ([Intel XE#7138]) +2 other tests skip
[92]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-lnl-2/igt@[email protected]
* igt@xe_fault_injection@inject-fault-probe-function-xe_device_probe_early:
- shard-bmg: [PASS][93] -> [ABORT][94] ([Intel XE#6652])
[93]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8765/shard-bmg-4/igt@xe_fault_injection@inject-fault-probe-function-xe_device_probe_early.html
[94]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-bmg-2/igt@xe_fault_injection@inject-fault-probe-function-xe_device_probe_early.html
* igt@xe_media_fill@media-fill:
- shard-lnl: NOTRUN -> [SKIP][95] ([Intel XE#560] / [Intel XE#7321])
[95]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-lnl-8/igt@[email protected]
* igt@xe_pm@d3cold-basic:
- shard-lnl: NOTRUN -> [SKIP][96] ([Intel XE#2284] / [Intel XE#366])
[96]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-lnl-4/igt@[email protected]
- shard-bmg: NOTRUN -> [SKIP][97] ([Intel XE#2284])
[97]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-bmg-3/igt@[email protected]
* igt@xe_pm@vram-d3cold-threshold:
- shard-lnl: NOTRUN -> [SKIP][98] ([Intel XE#579] / [Intel XE#7329])
[98]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-lnl-8/igt@[email protected]
* igt@xe_pxp@pxp-stale-bo-bind-post-termination-irq:
- shard-bmg: NOTRUN -> [SKIP][99] ([Intel XE#4733]) +1 other test skip
[99]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-bmg-3/igt@[email protected]
* igt@xe_sriov_admin@bulk-preempt-timeout-vfs-disabled:
- shard-lnl: NOTRUN -> [SKIP][100] ([Intel XE#7174])
[100]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-lnl-4/igt@[email protected]
* igt@xe_vm@large-binds-33554432:
- shard-bmg: NOTRUN -> [SKIP][101] ([Intel XE#6703]) +1 other test skip
[101]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-bmg-2/igt@[email protected]
#### Possible fixes ####
* igt@core_hotunplug@hotreplug:
- shard-bmg: [ABORT][102] -> [PASS][103]
[102]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8765/shard-bmg-6/igt@[email protected]
[103]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-bmg-4/igt@[email protected]
* igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions:
- shard-bmg: [FAIL][104] -> [PASS][105]
[104]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8765/shard-bmg-7/igt@[email protected]
[105]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-bmg-8/igt@[email protected]
* igt@kms_flip@flip-vs-expired-vblank@b-edp1:
- shard-lnl: [FAIL][106] ([Intel XE#301]) -> [PASS][107] +1 other test pass
[106]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8765/shard-lnl-6/igt@kms_flip@[email protected]
[107]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-lnl-2/igt@kms_flip@[email protected]
* igt@kms_pm_dc@dc5-dpms:
- shard-lnl: [FAIL][108] ([Intel XE#7340]) -> [PASS][109]
[108]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8765/shard-lnl-3/igt@[email protected]
[109]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-lnl-1/igt@[email protected]
* igt@kms_psr_stress_test@invalidate-primary-flip-overlay:
- shard-lnl: [SKIP][110] ([Intel XE#1406] / [Intel XE#4692]) -> [PASS][111]
[110]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8765/shard-lnl-1/igt@[email protected]
[111]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-lnl-3/igt@[email protected]
* igt@xe_evict@evict-mixed-many-threads-small:
- shard-bmg: [INCOMPLETE][112] ([Intel XE#6321]) -> [PASS][113]
[112]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8765/shard-bmg-5/igt@[email protected]
[113]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-bmg-5/igt@[email protected]
#### Warnings ####
* igt@kms_big_fb@4-tiled-16bpp-rotate-270:
- shard-bmg: [SKIP][114] ([Intel XE#2327]) -> [SKIP][115] ([Intel XE#6703])
[114]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8765/shard-bmg-2/igt@[email protected]
[115]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-bmg-2/igt@[email protected]
* igt@kms_ccs@bad-rotation-90-4-tiled-dg2-rc-ccs-cc:
- shard-bmg: [SKIP][116] ([Intel XE#2887]) -> [SKIP][117] ([Intel XE#6703])
[116]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8765/shard-bmg-5/igt@[email protected]
[117]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-bmg-2/igt@[email protected]
* igt@kms_chamelium_frames@hdmi-crc-nonplanar-formats:
- shard-bmg: [SKIP][118] ([Intel XE#2252]) -> [SKIP][119] ([Intel XE#6703])
[118]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8765/shard-bmg-6/igt@[email protected]
[119]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-bmg-2/igt@[email protected]
* igt@kms_frontbuffer_tracking@plane-fbc-rte:
- shard-bmg: [SKIP][120] ([Intel XE#2350]) -> [SKIP][121] ([Intel XE#6703])
[120]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8765/shard-bmg-6/igt@[email protected]
[121]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-bmg-2/igt@[email protected]
* igt@kms_hdr@brightness-with-hdr:
- shard-bmg: [SKIP][122] ([Intel XE#3374] / [Intel XE#3544]) -> [SKIP][123] ([Intel XE#3544])
[122]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8765/shard-bmg-8/igt@[email protected]
[123]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-bmg-6/igt@[email protected]
* igt@kms_psr@fbc-psr2-no-drrs:
- shard-bmg: [SKIP][124] ([Intel XE#1406] / [Intel XE#2234] / [Intel XE#2850]) -> [SKIP][125] ([Intel XE#1406] / [Intel XE#6703])
[124]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8765/shard-bmg-3/igt@[email protected]
[125]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-bmg-2/igt@[email protected]
* igt@kms_tiled_display@basic-test-pattern-with-chamelium:
- shard-bmg: [SKIP][126] ([Intel XE#2426]) -> [SKIP][127] ([Intel XE#2509])
[126]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8765/shard-bmg-1/igt@[email protected]
[127]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-bmg-2/igt@[email protected]
* igt@xe_fault_injection@probe-fail-guc-xe_guc_ct_send_recv:
- shard-bmg: [ABORT][128] ([Intel XE#5466]) -> [ABORT][129] ([Intel XE#5466] / [Intel XE#6652])
[128]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8765/shard-bmg-4/igt@xe_fault_injection@probe-fail-guc-xe_guc_ct_send_recv.html
[129]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-bmg-5/igt@xe_fault_injection@probe-fail-guc-xe_guc_ct_send_recv.html
* igt@xe_sriov_flr@flr-vfs-parallel:
- shard-bmg: [FAIL][130] ([Intel XE#5937]) -> [FAIL][131] ([Intel XE#6569])
[130]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8765/shard-bmg-2/igt@[email protected]
[131]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/shard-bmg-9/igt@[email protected]
[Intel XE#1124]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1124
[Intel XE#1392]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1392
[Intel XE#1397]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1397
[Intel XE#1406]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1406
[Intel XE#1407]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1407
[Intel XE#1421]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1421
[Intel XE#1424]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1424
[Intel XE#1435]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1435
[Intel XE#1450]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1450
[Intel XE#1469]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1469
[Intel XE#1489]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1489
[Intel XE#1499]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1499
[Intel XE#1745]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1745
[Intel XE#2168]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2168
[Intel XE#2191]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2191
[Intel XE#2234]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2234
[Intel XE#2244]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2244
[Intel XE#2252]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2252
[Intel XE#2284]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2284
[Intel XE#2311]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2311
[Intel XE#2313]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2313
[Intel XE#2320]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2320
[Intel XE#2322]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2322
[Intel XE#2327]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2327
[Intel XE#2350]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2350
[Intel XE#2426]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2426
[Intel XE#2499]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2499
[Intel XE#2501]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2501
[Intel XE#2509]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2509
[Intel XE#2568]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2568
[Intel XE#2652]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2652
[Intel XE#2724]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2724
[Intel XE#2763]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2763
[Intel XE#2850]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2850
[Intel XE#2887]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2887
[Intel XE#2893]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2893
[Intel XE#301]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/301
[Intel XE#306]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/306
[Intel XE#309]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/309
[Intel XE#3279]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3279
[Intel XE#3374]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3374
[Intel XE#3432]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3432
[Intel XE#3544]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3544
[Intel XE#356]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/356
[Intel XE#366]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/366
[Intel XE#367]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/367
[Intel XE#3718]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3718
[Intel XE#373]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/373
[Intel XE#4141]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4141
[Intel XE#4417]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4417
[Intel XE#4418]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4418
[Intel XE#4608]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4608
[Intel XE#4692]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4692
[Intel XE#4733]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4733
[Intel XE#4837]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4837
[Intel XE#5020]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5020
[Intel XE#5466]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5466
[Intel XE#5545]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5545
[Intel XE#560]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/560
[Intel XE#579]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/579
[Intel XE#5937]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5937
[Intel XE#6078]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6078
[Intel XE#6196]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6196
[Intel XE#6312]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6312
[Intel XE#6321]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6321
[Intel XE#6361]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6361
[Intel XE#651]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/651
[Intel XE#6540]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6540
[Intel XE#656]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/656
[Intel XE#6569]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6569
[Intel XE#6652]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6652
[Intel XE#6665]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6665
[Intel XE#6703]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6703
[Intel XE#6707]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6707
[Intel XE#6874]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6874
[Intel XE#688]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/688
[Intel XE#6886]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6886
[Intel XE#6901]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6901
[Intel XE#7061]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7061
[Intel XE#7136]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7136
[Intel XE#7138]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7138
[Intel XE#7174]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7174
[Intel XE#7179]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7179
[Intel XE#7283]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7283
[Intel XE#7321]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7321
[Intel XE#7329]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7329
[Intel XE#7339]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7339
[Intel XE#7340]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7340
[Intel XE#870]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/870
Build changes
-------------
* IGT: IGT_8765 -> IGTPW_14594
* Linux: xe-4585-f8bde45966c329f3025862c5fc462e4b13f52ca8 -> xe-4590-616fe8160929511b0679615cda09751043490b18
IGTPW_14594: 14594
IGT_8765: 8765
xe-4585-f8bde45966c329f3025862c5fc462e4b13f52ca8: f8bde45966c329f3025862c5fc462e4b13f52ca8 xe-4590-616fe8160929511b0679615cda09751043490b18: 616fe8160929511b0679615cda09751043490b18
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14594/index.html