Test tiled display with aid of chamelium.
cover Test tiled display with aid of chamelium.
As of now we have kms_dp_tiled_display test which needs a physical panel. Added changes to have chamelium act as a tiled panel and then execute the test.
Kunal Joshi (4):
Make basic chamelium function accessible to other tests Added structures and functions to generate tiled edids Added a subtest where chamelium acts as a tiled panel
HAX: Run in BAT
lib/igt_chamelium.c | 198 ++++++++++++++ lib/igt_chamelium.h | 33 +++ lib/igt_edid.c | 27 ++ lib/igt_edid.h | 20 ++ lib/igt_kms.c | 202 ++++++++++++++ lib/igt_kms.h | 25 +- tests/intel-ci/fast-feedback.testlist | 13 +- tests/kms_chamelium.c | 378 +++++++++----------------- tests/kms_dp_tiled_display.c | 119 ++++++-- 9 files changed, 736 insertions(+), 279 deletions(-)
Signature · 6 lines
2.25.1 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
PATCH 1/4 Make basic chamelium function accessible to other tests
There are many use case where we can integrate chamelium with other tests, Migrating some of basic chamelium functions to igt_chamelium lib to avoid Code rewriting.
v2: Moved one more function reset_state from tests/kms_chamelium to lib/igt_chamelium.
v3: - Shifted disabling of modeset to igt_kms
- Replace connection_str with kmstest_connector_status_str (Petri)
- Generalized require__connector_present (Petri)
- Avoided using data_chamelium_t struct (Petri)
v4: - Moved function to library (Petri)
- Renamed some functions and added documentation (Petri)
v6: - Documentation of functions(Petri)
- Shifted function to igt_kms and renamed (Petri)
--- lib/igt_chamelium.c | 131 +++++++++++++++ lib/igt_chamelium.h | 28 ++++ lib/igt_kms.c | 100 +++++++++++ lib/igt_kms.h | 23 ++- tests/kms_chamelium.c | 378 +++++++++++++++--------------------------- 5 files changed, 411 insertions(+), 249 deletions(-)
lib/igt_chamelium.c +131 -0
@@ -220,6 +220,137 @@ const char *chamelium_port_get_name(struct chamelium_port *port)return port->name; } +/** +* chamelium_require_connector_present +* @ports: All connected ports +* @type: Required port type +* @port_count: Total port count +* @count: The required number of port count +* +* Check there are required ports connected of given type +*/ +void +chamelium_require_connector_present (struct chamelium_port **ports, +unsigned int type, +int port_count, +int count) +{ +int i; +int found =0 ; + +for (i =0 ; i < port_count; i++) { +if (chamelium_port_get_type (ports[i]) == type) + found++; + } + +igt_require_f (found >= count, +"port of type %s found %d and required %d\n" , +kmstest_connector_type_str (type), found, count); +} + +/** +* chamelium_reprobe_connector +* @display: A pointer to an #igt_display_t structure +* @chamelium: The Chamelium instance to use +* @port: Chamelium port to reprobe +* +* Reprobe the given connector and fetch current status +* +* Returns: drmModeConnection +*/ +drmModeConnection +chamelium_reprobe_connector (igt_display_t *display, +struct chamelium *chamelium, +struct chamelium_port *port) +{ +drmModeConnector *connector; +drmModeConnection status; +igt_output_t *output; + +igt_debug ("Reprobing %s...\n" ,chamelium_port_get_name (port)); + connector =chamelium_port_get_connector (chamelium, port, true); +igt_assert (connector); + status = connector->connection; + +/* let's make sure that igt_display is up to date too */ + output =igt_output_from_connector (display, connector); + output->force_reprobe = true; +igt_output_refresh (output); + +drmModeFreeConnector (connector); +return status; +} + +/** +* chamelium_wait_for_conn_status_change +* @display: A pointer to an #igt_display_t structure +* @chamelium: The Chamelium instance to use +* @port: Chamelium port to check connector status update +* @status: Enum which describes connector states +* +* Wait for the connector to change the status +*/ +void +chamelium_wait_for_conn_status_change (igt_display_t *display, +struct chamelium *chamelium, +struct chamelium_port *port, +drmModeConnection status) +{ +igt_debug ("Waiting for %s to get %s...\n" , +chamelium_port_get_name (port), +kmstest_connector_status_str (status)); + +/* +* Rely on simple reprobing so we don't fail tests that don't require +* that hpd events work in the event that hpd doesn't work on the system +*/ +igt_until_timeout (CHAMELIUM_HOTPLUG_TIMEOUT ) { +if (chamelium_reprobe_connector (display, + chamelium, port) == status) +return ; + +usleep (50000 ); + } + +igt_assert_f (false,"Timed out waiting for %s to get %s\n" , +chamelium_port_get_name (port), +kmstest_connector_status_str (status)); +} + +/** +* chamelium_reset_state +* +* @chamelium: The Chamelium instance to use +* @port: Chamelium port to reset +* @ports: All connected ports +* @port_count: Count of connected ports +* +* Reset chamelium ports +*/ +void +chamelium_reset_state (igt_display_t *display, +struct chamelium *chamelium, +struct chamelium_port *port, +struct chamelium_port **ports, +int port_count) +{ +int p; + +chamelium_reset (chamelium); + +if (port) { +chamelium_wait_for_conn_status_change (display, chamelium, + port, +DRM_MODE_DISCONNECTED ); + }else { +for (p =0 ; p < port_count; p++) { + port = ports[p]; +chamelium_wait_for_conn_status_change (display, chamelium, + port,DRM_MODE_DISCONNECTED ); + } + } +} +/** * chamelium_destroy_frame_dump: * @dump: The frame dump to destroy
lib/igt_chamelium.h +28 -0
@@ -32,6 +32,7 @@#include <xf86drmMode.h> #include "igt_debugfs.h" +#include "igt_kms.h" struct igt_fb ;struct edid ;
@@ -81,6 +82,11 @@ struct chamelium_infoframe {struct chamelium_edid ; +/* Set of Video Identification Codes advertised in the EDID */ +static const uint8_t edid_ar_svds[] = { +16 ,/* 1080p @ 60Hz, 16:9 */ +}; +/** * CHAMELIUM_MAX_PORTS: the maximum number of ports supported by igt_chamelium. *
@@ -102,6 +108,8 @@ struct chamelium_edid;extern bool igt_chamelium_allow_fsm_handling; +#define CHAMELIUM_HOTPLUG_TIMEOUT 20/* seconds */ +void chamelium_deinit_rpc_only (struct chamelium *chamelium);struct chamelium *chamelium_init_rpc_only (void );struct chamelium *chamelium_init (int drm_fd);
@@ -115,6 +123,26 @@ drmModeConnector *chamelium_port_get_connector(struct chamelium *chamelium,struct chamelium_port *port, bool reprobe);const char *chamelium_port_get_name (struct chamelium_port *port); +void +chamelium_require_connector_present (struct chamelium_port **ports, +unsigned int type, +int port_count, +int count); +drmModeConnection +chamelium_reprobe_connector (igt_display_t *display, +struct chamelium *chamelium, +struct chamelium_port *port); +void +chamelium_wait_for_conn_status_change (igt_display_t *display, +struct chamelium *chamelium, +struct chamelium_port *port, +drmModeConnection status); +void +chamelium_reset_state (igt_display_t *display, +struct chamelium *chamelium, +struct chamelium_port *port, +struct chamelium_port **ports, +int port_count);bool chamelium_wait_reachable (struct chamelium *chamelium,int timeout);void chamelium_assert_reachable (struct chamelium *chamelium,int timeout);
lib/igt_kms.c +100 -0
112 lines not on this page · raw message
lib/igt_kms.h +22 -1
@@ -77,6 +77,25 @@ enum port { I915_MAX_PORTS }; +/** +* igt_custom_edid_type: +* +* Enum used for the helper function igt_custom_edid_type +* @IGT_CUSTOM_EDID_BASE: Returns base edid +* @IGT_CUSTOM_EDID_ALT: Returns alternate edid +* @IGT_CUSTOM_EDID_HDMI_AUDIO: Returns edid with HDMI audio block +* @IGT_CUSTOM_EDID_DP_AUDIO: Returns edid with DP audio block +* @IGT_CUSTOM_EDID_ASPECT_RATIO: Returns base edid with apect ratio data block +*/ +enum igt_custom_edid_type { +IGT_CUSTOM_EDID_BASE , +IGT_CUSTOM_EDID_ALT , +IGT_CUSTOM_EDID_HDMI_AUDIO , +IGT_CUSTOM_EDID_DP_AUDIO , +IGT_CUSTOM_EDID_ASPECT_RATIO , +}; +#define IGT_CUSTOM_EDID_COUNT 5 +/** * kmstest_port_name: * @port: display plane
@@ -446,6 +465,7 @@ igt_output_t *igt_output_from_connector(igt_display_t *display,void igt_output_refresh (igt_output_t *output);const drmModeModeInfo *igt_std_1024_mode_get (void );void igt_output_set_writeback_fb (igt_output_t *output,struct igt_fb *fb); +void igt_modeset_disable_all_outputs (igt_display_t *display);igt_plane_t *igt_pipe_get_plane_type (igt_pipe_t *pipe,int plane_type);int igt_pipe_count_plane_type (igt_pipe_t *pipe,int plane_type);
@@ -795,7 +815,8 @@ const struct edid *igt_kms_get_hdmi_audio_edid(void);const struct edid *igt_kms_get_dp_audio_edid (void );const struct edid *igt_kms_get_4k_edid (void );const struct edid *igt_kms_get_3d_edid (void ); - +const struct edid *igt_kms_get_aspect_ratio_edid (void ); +const struct edid *igt_kms_get_custom_edid (enum igt_custom_edid_type edid);struct udev_monitor *igt_watch_uevents (void );bool igt_hotplug_detected (struct udev_monitor *mon,int timeout_secs);
tests/kms_chamelium.c +130 -248
749 lines not on this page · raw message
Signature · 6 lines
2.25.1 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
PATCH 2/4 Added structures and functions to generate tiled edids
In reply to Kunal JoshiGenerating the tiled edid which can be flashed on chamelium and added some functions to support the same.
v2: No change.
v3: No change.
v4: No change.
v5: No change.
--- lib/igt_chamelium.c | 67 +++++++++++++++++++++++++++++ lib/igt_chamelium.h | 5 +++ lib/igt_edid.c | 27 ++++++++++++ lib/igt_edid.h | 20 +++++++++ lib/igt_kms.c | 102 ++++++++++++++++++++++++++++++++++++++++++++ lib/igt_kms.h | 2 + 6 files changed, 223 insertions(+)
lib/igt_chamelium.c +67 -0
@@ -856,6 +856,33 @@ const struct edid *chamelium_edid_get_raw(struct chamelium_edid *edid,return edid->raw[port_index]; } +/** +* chamelium_edid_get_editable_raw: get the raw EDID which can be edited later. +* @edid: the Chamelium EDID +* @port: the Chamelium port +* +* The EDID provided to #chamelium_new_edid may be mutated for identification +* purposes. This function allows to retrieve the exact EDID that will be set +* for a given port. +* +* The returned raw EDID is only valid until the next call to this function. +*/ +struct edid *chamelium_edid_get_editable_raw (struct chamelium_edid *edid, +struct chamelium_port *port) +{ +size_t port_index = port - edid->chamelium->ports; +size_t edid_size; + +if (!edid->raw[port_index]) { + edid_size =edid_get_size (edid->base); + edid->raw[port_index] =malloc (edid_size); +memcpy (edid->raw[port_index], edid->base, edid_size); +chamelium_port_tag_edid (port, edid->raw[port_index]); + } + +return edid->raw[port_index]; +} +/** * chamelium_port_set_edid: * @chamelium: The Chamelium instance to use
@@ -894,6 +921,46 @@ void chamelium_port_set_edid(struct chamelium *chamelium, port->id, edid_id)); } +/** +* chamelium_port_set_tiled_edid: +* @chamelium: The Chamelium instance to use +* @port: The port on the Chamelium to set the EDID on +* @edid: The Chamelium EDID to set or NULL to use the default Chamelium EDID +* +* Sets unique serial for tiled edid. +* Sets a port on the chamelium to use the specified EDID. This does not fire a +* hotplug pulse on it's own, and merely changes what EDID the chamelium port +* will report to us the next time we probe it. Users will need to reprobe the +* connectors themselves if they want to see the EDID reported by the port +* change. +* +* To create an EDID, see #chamelium_new_edid. +*/ +void chamelium_port_set_tiled_edid (struct chamelium *chamelium, +struct chamelium_port *port, +struct chamelium_edid *edid) +{ +int edid_id; +size_t port_index; +struct edid *raw_edid; + +if (edid) { + port_index = port - chamelium->ports; + edid_id = edid->ids[port_index]; +if (edid_id ==0 ) { + raw_edid =chamelium_edid_get_editable_raw (edid, port); + raw_edid->serial[0 ] =0x02 ; +base_edid_update_checksum (raw_edid); + edid_id =chamelium_upload_edid (chamelium, raw_edid); + edid->ids[port_index] = edid_id; + } + }else { + edid_id =0 ; + } +xmlrpc_DECREF (chamelium_rpc (chamelium,NULL ,"ApplyEdid" ,"(ii)" , + port->id, edid_id)); +} +/** * chamelium_port_set_ddc_state: * @chamelium: The Chamelium instance to use
lib/igt_chamelium.h +5 -0
@@ -165,9 +165,14 @@ struct chamelium_edid *chamelium_new_edid(struct chamelium *chamelium, const struct edid *edid);const struct edid *chamelium_edid_get_raw (struct chamelium_edid *edid,struct chamelium_port *port); +struct edid *chamelium_edid_get_editable_raw (struct chamelium_edid *edid, +struct chamelium_port *port);void chamelium_port_set_edid (struct chamelium *chamelium,struct chamelium_port *port,struct chamelium_edid *edid); +void chamelium_port_set_tiled_edid (struct chamelium *chamelium, +struct chamelium_port *port, +struct chamelium_edid *edid);bool chamelium_port_get_ddc_state (struct chamelium *chamelium,struct chamelium_port *port); void chamelium_port_set_ddc_state(struct chamelium *chamelium,
lib/igt_edid.c +27 -0
@@ -313,9 +313,27 @@ void edid_update_checksum(struct edid *edid) ext->data.cea.checksum =compute_checksum ((uint8_t *) ext,sizeof (struct edid_ext )); + else if (ext->tag == EDID_EXT_DISPLAYID) { + ext->data.tile.extension_checksum = +compute_checksum ((uint8_t *) &ext->data.tile, +sizeof (struct edid_ext )); + ext->data.tile.checksum = +compute_checksum ((uint8_t *) ext, +sizeof (struct edid_ext )); + } } } +/** +* base_edid_update_checksum: compute and update the checksum of the main EDID +* block +*/ +void base_edid_update_checksum (struct edid *edid) +{ + edid->checksum =compute_checksum ((uint8_t *) edid, +sizeof (struct edid )); +} +/** * edid_get_size: return the size of the EDID block in bytes including EDID * extensions, if any.
@@ -458,6 +476,15 @@ size_t edid_cea_data_block_set_speaker_alloc(struct edid_cea_data_block *block,return sizeof (struct edid_cea_data_block ) + size; } +/** +* edid_ext_set_tile initialize an EDID extension block to be identified +* as a tiled display topology block +*/ +void edid_ext_set_displayid (struct edid_ext *ext) +{ + ext->tag =EDID_EXT_DISPLAYID ; +} +/** * edid_ext_set_cea: initialize an EDID extension block to contain a CEA * extension. CEA extensions contain a Data Block Collection (with multiple
lib/igt_edid.h +20 -0
@@ -304,12 +304,30 @@ struct edid_cea {enum edid_ext_tag {EDID_EXT_CEA =0x02 , +EDID_EXT_DISPLAYID =0x70 , +}; + +struct edid_tile { +uint8_t header[7 ]; +uint8_t tile_cap; +uint8_t topo[3 ]; +uint8_t tile_size[4 ]; +uint8_t tile_pixel_bezel[5 ]; +uint8_t topology_id[9 ]; +uint8_t data[96 ]; +uint8_t extension_checksum; +uint8_t checksum; +} __attribute__((packed)); + +enum edid_tile_cap { +SCALE_TO_FIT =0x82 , };struct edid_ext {uint8_t tag;/* enum edid_ext_tag */ union {struct edid_cea cea; +struct edid_tile tile; } data; } __attribute__((packed));
@@ -356,6 +374,7 @@ struct edid {void edid_init (struct edid *edid);void edid_init_with_mode (struct edid *edid,drmModeModeInfo *mode);void edid_update_checksum (struct edid *edid); +void base_edid_update_checksum (struct edid *edid);size_t edid_get_size (const struct edid *edid);void edid_get_mfg (const struct edid *edid,char out[static 3 ]); void detailed_timing_set_mode(struct detailed_timing *dt, drmModeModeInfo *mode,
@@ -383,4 +402,5 @@ size_t edid_cea_data_block_set_speaker_alloc(struct edid_cea_data_block *block,void edid_ext_set_cea (struct edid_ext *ext,size_t data_blocks_size,uint8_t num_native_dtds,uint8_t flags); +void edid_ext_set_displayid (struct edid_ext *ext);#endif
lib/igt_kms.c +102 -0
120 lines not on this page · raw message
lib/igt_kms.h +2 -0
@@ -810,12 +810,14 @@ void igt_reset_connectors(void);uint32_t kmstest_get_vbl_flag (int crtc_offset);const struct edid *igt_kms_get_base_edid (void ); +const struct edid *igt_kms_get_base_tile_edid (void );const struct edid *igt_kms_get_alt_edid (void );const struct edid *igt_kms_get_hdmi_audio_edid (void );const struct edid *igt_kms_get_dp_audio_edid (void );const struct edid *igt_kms_get_4k_edid (void );const struct edid *igt_kms_get_3d_edid (void );const struct edid *igt_kms_get_aspect_ratio_edid (void ); +struct edid **igt_kms_get_tiled_edid (uint8_t htile,uint8_t vtile);const struct edid *igt_kms_get_custom_edid (enum igt_custom_edid_type edid);struct udev_monitor *igt_watch_uevents (void ); bool igt_hotplug_detected(struct udev_monitor *mon,
Signature · 6 lines
2.25.1 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
PATCH 3/4 Added a subtest where chamelium acts as a tiled panel
In reply to Kunal JoshiSplit kms_dp_tiled_display into to two subtest.First to execute the basic test with physical tiled panel and second with chamelium.
v2: Revised to just have basic test if chamelium dependencies are not
present. Reset ports after the test executes.Changed subtest name from with-chamelium to basic-test-pattern-with-chamelium
v3: Changes required to adapt to changes done in first patch.
v4: Changes required to adapt to changes done in first patch.
v5: Changes required to adapt to changes done in first patch.
--- tests/kms_dp_tiled_display.c | 119 ++++++++++++++++++++++++++++------- 1 file changed, 95 insertions(+), 24 deletions(-)
tests/kms_dp_tiled_display.c +95 -24
@@ -40,6 +40,7 @@#include "poll.h" #include "drm_mode.h" #include "drm_fourcc.h" +#include "igt_edid.h" IGT_TEST_DESCRIPTION ("Test for Transcoder Port Sync for Display Port Tiled Displays" );
@@ -59,8 +60,22 @@ typedef struct {data_connector_t *conns;enum igt_commit_style commit;struct timeval first_ts; + +#ifdef HAVE_CHAMELIUM +struct chamelium *chamelium; +struct chamelium_port **ports; +int port_count; +struct chamelium_edid *edids[IGT_CUSTOM_EDID_COUNT ]; +#endif + } data_t; +void basic_test (data_t *data,drmEventContext *drm_event,struct pollfd *pfd); + +#ifdef HAVE_CHAMELIUM +static void test_with_chamelium (data_t *data); +#endif +static int drm_property_is_tile (drmModePropertyPtr prop) { return (strcmp(prop->name, "TILE") ? 0 : 1) &&
@@ -199,7 +214,6 @@ static void test_cleanup(data_t *data)igt_display_commit2 (data->display, data->commit);memset (conns,0 ,sizeof (data_connector_t) * data->num_h_tiles); } -static void setup_mode (data_t *data) {int count =0 , prev =0 , i =0 ;
@@ -373,21 +387,83 @@ static bool got_all_page_flips(data_t *data)return true; } +#ifdef HAVE_CHAMELIUM +static void test_with_chamelium (data_t *data) +{ +int i, count =0 ; +uint8_t htile =2 , vtile =1 ; +struct edid **edid; + + data->chamelium =chamelium_init (data->drm_fd); +igt_assert (data->chamelium); + data->ports =chamelium_get_ports + (data->chamelium, &data->port_count); +chamelium_require_connector_present (data->ports, + DRM_MODE_CONNECTOR_DisplayPort, + data->port_count,2 ); + edid =igt_kms_get_tiled_edid (htile-1 , vtile-1 ); + +for (i =0 ; i <2 ; i++) + data->edids[i] = +chamelium_new_edid (data->chamelium, edid[i]); + +for (i =0 ; i < data->port_count; i++) { +if (chamelium_port_get_type (data->ports[i]) == + DRM_MODE_CONNECTOR_DisplayPort) { + +chamelium_port_set_tiled_edid (data->chamelium, + data->ports[i], data->edids[i]); +chamelium_plug (data->chamelium, + data->ports[i]); +chamelium_wait_for_conn_status_change (data->display, + data->chamelium, + data->ports[i], +DRM_MODE_CONNECTED ); + count++; + } +if (count ==2 ) +break ; + } +} +#endif + +void basic_test (data_t *data,drmEventContext *drm_event,struct pollfd *pfd) +{ +int ret; + +get_number_of_h_tiles (data); +igt_debug ("Number of Horizontal Tiles: %d\n" , + data->num_h_tiles); +igt_require (data->num_h_tiles >0 ); + data->conns =calloc (data->num_h_tiles, +sizeof (data_connector_t)); +igt_assert (data->conns); + +get_connectors (data); +setup_mode (data); +setup_framebuffer (data); +timerclear (&data->first_ts); +igt_display_commit_atomic (data->display, +DRM_MODE_ATOMIC_NONBLOCK | +DRM_MODE_PAGE_FLIP_EVENT , data); +while (!got_all_page_flips (data)) { + ret =poll (pfd,1 ,1000 ); +igt_assert (ret ==1 ); +drmHandleEvent (data->drm_fd, drm_event); + } +} + igt_main {igt_display_t display;data_t data = {0 };struct pollfd pfd = {0 };drmEventContext drm_event = {0 }; -int ret; - igt_fixture { data.drm_fd =drm_open_driver_master (DRIVER_ANY ); -kmstest_set_vt_graphics_mode ();igt_display_require (&display, data.drm_fd);igt_display_reset (&display); - data.display = &display; pfd.fd = data.drm_fd; pfd.events =POLLIN ;
@@ -395,33 +471,28 @@ igt_main drm_event.page_flip_handler2 = page_flip_handler; data.commit = data.display->is_atomic ?COMMIT_ATOMIC :COMMIT_LEGACY ;igt_require (data.commit ==COMMIT_ATOMIC ); - -get_number_of_h_tiles (&data); -igt_debug ("Number of Horizontal Tiles: %d\n" , data.num_h_tiles); -igt_require (data.num_h_tiles >0 ); - data.conns =calloc (data.num_h_tiles,sizeof (data_connector_t)); }igt_describe ("Make sure the Tiled CRTCs are synchronized and we get " "page flips for all tiled CRTCs in one vblank." ); igt_subtest("basic-test-pattern") { -igt_assert (data.conns); - -get_connectors (&data); -setup_mode (&data); -setup_framebuffer (&data); -timerclear (&data.first_ts); -igt_display_commit_atomic (data.display,DRM_MODE_ATOMIC_NONBLOCK | -DRM_MODE_PAGE_FLIP_EVENT , &data); -while (!got_all_page_flips (&data)) { - ret =poll (&pfd,1 ,1000 ); -igt_assert (ret ==1 ); -drmHandleEvent (data.drm_fd, &drm_event); - } - +basic_test (&data, &drm_event, &pfd);test_cleanup (&data); } +#ifdef HAVE_CHAMELIUM + igt_subtest_f("basic-test-pattern-with-chamelium") { +int i; + +test_with_chamelium (&data); +basic_test (&data, &drm_event, &pfd); +test_cleanup (&data); +for (i =0 ; i < data.port_count; i++) +chamelium_reset_state (data.display, data.chamelium, + data.ports[i], data.ports, + data.port_count); + } +#endif igt_fixture {free (data.conns);close (data.drm_fd);
Signature · 6 lines
2.25.1 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
Re: [igt-dev] [PATCH i-g-t 3/4] Added a subtest where chamelium acts as a tiled panel
Quoted 67 lines · Kunal Joshi
Split
kms_dp_tiled_displayinto to two subtest.First to execute the basic test with physical tiled panel and second with chamelium.v2: Revised to just have basic test if chamelium dependencies are not
present. Reset ports after the test executes.Changed subtest name from with-chamelium to basic-test-pattern-with-chameliumv3: Changes required to adapt to changes done in first patch.
v4: Changes required to adapt to changes done in first patch.
v5: Changes required to adapt to changes done in first patch.
Signed-off-by Kunal Joshi <[email protected]>Signed-off-by Karthik B S <[email protected]>Reviewed-by Navare Manasi D <[email protected]>Reviewed-by Petri Latvala <[email protected]>--- tests/kms_dp_tiled_display.c | 119 ++++++++++++++++++++++++++++------- 1 file changed, 95 insertions(+), 24 deletions(-)tests/kms_dp_tiled_display.c +15
-1@@ -40,6 +40,7 @@#include "poll.h" #include "drm_mode.h" #include "drm_fourcc.h" +#include "igt_edid.h" IGT_TEST_DESCRIPTION ("Test for Transcoder Port Sync for Display Port Tiled Displays" );@@ -59,8 +60,22 @@ typedef struct {data_connector_t *conns;enum igt_commit_style commit;struct timeval first_ts; + +#ifdef HAVE_CHAMELIUM +struct chamelium *chamelium; +struct chamelium_port **ports; +int port_count; +struct chamelium_edid *edids[IGT_CUSTOM_EDID_COUNT ]; +#endif + } data_t; +void basic_test (data_t *data,drmEventContext *drm_event,struct pollfd *pfd); + +#ifdef HAVE_CHAMELIUM +static void test_with_chamelium (data_t *data); +#endif +static int drm_property_is_tile (drmModePropertyPtr prop) { return (strcmp(prop->name, "TILE") ? 0 : 1) &&@@ -199,7 +214,6 @@ static void test_cleanup(data_t *data)igt_display_commit2 (data->display, data->commit);memset (conns,0 ,sizeof (data_connector_t) * data->num_h_tiles); } -static void setup_mode (data_t *data) {int count =0 , prev =0 , i =0 ;@@ -373,21 +387,83 @@ static bool got_all_page_flips(data_t *data)return true; }
tests/kms_dp_tiled_display.c static bool got_all_page_flips(data_t *data) · line 398
Quoted 10 lines
tests/kms_dp_tiled_display.c +9
-0+#ifdef HAVE_CHAMELIUM +static void test_with_chamelium (data_t *data) +{ +int i, count =0 ; +uint8_t htile =2 , vtile =1 ; +struct edid **edid; + + data->chamelium =chamelium_init (data->drm_fd); +igt_assert (data->chamelium);
igt_require here, not igt_assert.
Signature · 1 line
Petri Latvala
Quoted 126 lines
tests/kms_dp_tiled_display.c +71
-23+ data->ports =chamelium_get_ports + (data->chamelium, &data->port_count); +chamelium_require_connector_present (data->ports, + DRM_MODE_CONNECTOR_DisplayPort, + data->port_count,2 ); + edid =igt_kms_get_tiled_edid (htile-1 , vtile-1 ); + +for (i =0 ; i <2 ; i++) + data->edids[i] = +chamelium_new_edid (data->chamelium, edid[i]); + +for (i =0 ; i < data->port_count; i++) { +if (chamelium_port_get_type (data->ports[i]) == + DRM_MODE_CONNECTOR_DisplayPort) { + +chamelium_port_set_tiled_edid (data->chamelium, + data->ports[i], data->edids[i]); +chamelium_plug (data->chamelium, + data->ports[i]); +chamelium_wait_for_conn_status_change (data->display, + data->chamelium, + data->ports[i], +DRM_MODE_CONNECTED ); + count++; + } +if (count ==2 ) +break ; + } +} +#endif + +void basic_test (data_t *data,drmEventContext *drm_event,struct pollfd *pfd) +{ +int ret; + +get_number_of_h_tiles (data); +igt_debug ("Number of Horizontal Tiles: %d\n" , + data->num_h_tiles); +igt_require (data->num_h_tiles >0 ); + data->conns =calloc (data->num_h_tiles, +sizeof (data_connector_t)); +igt_assert (data->conns); + +get_connectors (data); +setup_mode (data); +setup_framebuffer (data); +timerclear (&data->first_ts); +igt_display_commit_atomic (data->display, +DRM_MODE_ATOMIC_NONBLOCK | +DRM_MODE_PAGE_FLIP_EVENT , data); +while (!got_all_page_flips (data)) { + ret =poll (pfd,1 ,1000 ); +igt_assert (ret ==1 ); +drmHandleEvent (data->drm_fd, drm_event); + } +} + igt_main {igt_display_t display;data_t data = {0 };struct pollfd pfd = {0 };drmEventContext drm_event = {0 }; -int ret; - igt_fixture { data.drm_fd =drm_open_driver_master (DRIVER_ANY ); -kmstest_set_vt_graphics_mode ();igt_display_require (&display, data.drm_fd);igt_display_reset (&display); - data.display = &display; pfd.fd = data.drm_fd; pfd.events =POLLIN ;@@ -395,33 +471,28 @@ igt_main drm_event.page_flip_handler2 = page_flip_handler; data.commit = data.display->is_atomic ?COMMIT_ATOMIC :COMMIT_LEGACY ;igt_require (data.commit ==COMMIT_ATOMIC ); - -get_number_of_h_tiles (&data); -igt_debug ("Number of Horizontal Tiles: %d\n" , data.num_h_tiles); -igt_require (data.num_h_tiles >0 ); - data.conns =calloc (data.num_h_tiles,sizeof (data_connector_t)); }igt_describe ("Make sure the Tiled CRTCs are synchronized and we get " "page flips for all tiled CRTCs in one vblank." ); igt_subtest("basic-test-pattern") { -igt_assert (data.conns); - -get_connectors (&data); -setup_mode (&data); -setup_framebuffer (&data); -timerclear (&data.first_ts); -igt_display_commit_atomic (data.display,DRM_MODE_ATOMIC_NONBLOCK | -DRM_MODE_PAGE_FLIP_EVENT , &data); -while (!got_all_page_flips (&data)) { - ret =poll (&pfd,1 ,1000 ); -igt_assert (ret ==1 ); -drmHandleEvent (data.drm_fd, &drm_event); - } - +basic_test (&data, &drm_event, &pfd);test_cleanup (&data); } +#ifdef HAVE_CHAMELIUM + igt_subtest_f("basic-test-pattern-with-chamelium") { +int i; + +test_with_chamelium (&data); +basic_test (&data, &drm_event, &pfd); +test_cleanup (&data); +for (i =0 ; i < data.port_count; i++) +chamelium_reset_state (data.display, data.chamelium, + data.ports[i], data.ports, + data.port_count); + } +#endif igt_fixture {free (data.conns);close (data.drm_fd);Signature · 1 line
2.25.1
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Re: [igt-dev] [PATCH i-g-t 3/4] Added a subtest where chamelium acts as a tiled panel
Quoted 4 lines
Quoted 4 lines
tests/kms_dp_tiled_display.c +4
-0+#ifdef HAVE_CHAMELIUM +static void test_with_chamelium (data_t *data) { +int i, count =0 ; +uint8_t htile =2 , vtile =1 ;
Quoted 8 lines
tests/kms_dp_tiled_display.c static bool got_all_page_flips(data_t *data) · line 398
Quoted 4 lines
tests/kms_dp_tiled_display.c +4
-0+struct edid **edid; + + data->chamelium =chamelium_init (data->drm_fd); +igt_assert (data->chamelium);
igt_requirehere, notigt_assert.
-
Petri Latvala
Corrected this, Thanks petri
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
PATCH 4/4 HAX: Run in BAT
In reply to Kunal JoshiBAT run to test the patch, not for merge
--- tests/intel-ci/fast-feedback.testlist | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-)
tests/intel-ci/fast-feedback.testlist +7 -6
@@ -1,5 +1,12 @@ # Keep alphabetically sorted by default +igt@kms_dp_tiled_display@basic-test-pattern-with-chamelium +igt@kms_chamelium@dp-hpd-fast +igt@kms_chamelium@dp-edid-read +igt@kms_chamelium@dp-crc-fast +igt@kms_chamelium@hdmi-hpd-fast +igt@kms_chamelium@hdmi-edid-read +igt@kms_chamelium@hdmi-crc-fast igt@core_auth@basic-auth igt@debugfs_test@read_all_entries igt@fbdev@eof
@@ -89,12 +96,6 @@ igt@kms_addfb_basic@unused-modifier igt@kms_addfb_basic@unused-offsets igt@kms_addfb_basic@unused-pitches igt@kms_busy@basic -igt@kms_chamelium@dp-hpd-fast -igt@kms_chamelium@dp-edid-read -igt@kms_chamelium@dp-crc-fast -igt@kms_chamelium@hdmi-hpd-fast -igt@kms_chamelium@hdmi-edid-read -igt@kms_chamelium@hdmi-crc-fast igt@kms_chamelium@vga-hpd-fast igt@kms_chamelium@vga-edid-read igt@kms_chamelium@common-hpd-after-suspend
Signature · 6 lines
2.25.1 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
Patchwork
CI[igt-dev] ✗ Fi.CI.BAT: failure for Test tiled display with aid of chamelium. (rev7)
In reply to Kunal Joshi== Series Details ==
== Series Details ==
Series: Test tiled display with aid of chamelium. (rev7)
URL : https://patchwork.freedesktop.org/series/71393/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_10005 -> IGTPW_5762
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with IGTPW_5762 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in IGTPW_5762, please notify your bug team 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_5762/index.html
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in IGTPW_5762:
### IGT changes ###
#### Possible regressions ####
* igt@kms_chamelium@dp-edid-read:
- fi-icl-u2: [PASS][1] -> [FAIL][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10005/fi-icl-u2/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5762/fi-icl-u2/igt@[email protected]
* {igt@kms_dp_tiled_display@basic-test-pattern-with-chamelium} (NEW):
- fi-bdw-5557u: NOTRUN -> [FAIL][3]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5762/fi-bdw-5557u/igt@[email protected]
- fi-kbl-7567u: NOTRUN -> [FAIL][4]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5762/fi-kbl-7567u/igt@[email protected]
- fi-kbl-guc: NOTRUN -> [FAIL][5]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5762/fi-kbl-guc/igt@[email protected]
- {fi-hsw-gt1}: NOTRUN -> [FAIL][6]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5762/fi-hsw-gt1/igt@[email protected]
- fi-bdw-gvtdvm: NOTRUN -> [FAIL][7]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5762/fi-bdw-gvtdvm/igt@[email protected]
- fi-hsw-4770: NOTRUN -> [FAIL][8]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5762/fi-hsw-4770/igt@[email protected]
- fi-cfl-8700k: NOTRUN -> [FAIL][9]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5762/fi-cfl-8700k/igt@[email protected]
- fi-icl-u2: NOTRUN -> [SKIP][10]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5762/fi-icl-u2/igt@[email protected]
- fi-skl-6600u: NOTRUN -> [FAIL][11]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5762/fi-skl-6600u/igt@[email protected]
- fi-cml-u2: NOTRUN -> [FAIL][12]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5762/fi-cml-u2/igt@[email protected]
- {fi-jsl-1}: NOTRUN -> [FAIL][13]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5762/fi-jsl-1/igt@[email protected]
- fi-apl-guc: NOTRUN -> [FAIL][14]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5762/fi-apl-guc/igt@[email protected]
- fi-snb-2520m: NOTRUN -> [FAIL][15]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5762/fi-snb-2520m/igt@[email protected]
- {fi-tgl-dsi}: NOTRUN -> [FAIL][16]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5762/fi-tgl-dsi/igt@[email protected]
- fi-bxt-dsi: NOTRUN -> [FAIL][17]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5762/fi-bxt-dsi/igt@[email protected]
- fi-cfl-guc: NOTRUN -> [FAIL][18]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5762/fi-cfl-guc/igt@[email protected]
- fi-cml-s: NOTRUN -> [FAIL][19]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5762/fi-cml-s/igt@[email protected]
- fi-kbl-soraka: NOTRUN -> [FAIL][20]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5762/fi-kbl-soraka/igt@[email protected]
- fi-tgl-u2: NOTRUN -> [FAIL][21]
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5762/fi-tgl-u2/igt@[email protected]
- {fi-ehl-1}: NOTRUN -> [FAIL][22]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5762/fi-ehl-1/igt@[email protected]
- fi-ilk-650: NOTRUN -> [FAIL][23]
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5762/fi-ilk-650/igt@[email protected]
- fi-bsw-kefka: NOTRUN -> [FAIL][24]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5762/fi-bsw-kefka/igt@[email protected]
- fi-snb-2600: NOTRUN -> [FAIL][25]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5762/fi-snb-2600/igt@[email protected]
- fi-tgl-y: NOTRUN -> [FAIL][26]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5762/fi-tgl-y/igt@[email protected]
- {fi-rkl-11500t}: NOTRUN -> [FAIL][27]
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5762/fi-rkl-11500t/igt@[email protected]
- fi-kbl-x1275: NOTRUN -> [FAIL][28]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5762/fi-kbl-x1275/igt@[email protected]
- fi-bsw-nick: NOTRUN -> [FAIL][29]
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5762/fi-bsw-nick/igt@[email protected]
- fi-cfl-8109u: NOTRUN -> [FAIL][30]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5762/fi-cfl-8109u/igt@[email protected]
- {fi-ehl-2}: NOTRUN -> [FAIL][31]
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5762/fi-ehl-2/igt@[email protected]
- fi-kbl-r: NOTRUN -> [FAIL][32]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5762/fi-kbl-r/igt@[email protected]
#### Warnings ####
* igt@kms_chamelium@vga-edid-read:
- fi-icl-u2: [SKIP][33] ([fdo#109309]) -> [SKIP][34] +1 similar issue
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10005/fi-icl-u2/igt@[email protected]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5762/fi-icl-u2/igt@[email protected]
New tests
---------
New tests have been introduced between CI_DRM_10005 and IGTPW_5762:
### New IGT tests (1) ###
* igt@kms_dp_tiled_display@basic-test-pattern-with-chamelium:
- Statuses : 1 abort(s) 29 fail(s) 5 skip(s)
- Exec time: [0.0, 0.56] s
Known issues
------------
Here are the changes found in IGTPW_5762 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@i915_selftest@live@late_gt_pm:
- fi-bsw-nick: [PASS][35] -> [DMESG-FAIL][36] ([i915#2927])
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10005/fi-bsw-nick/igt@i915_selftest@live@late_gt_pm.html
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5762/fi-bsw-nick/igt@i915_selftest@live@late_gt_pm.html
* igt@kms_chamelium@dp-edid-read:
- fi-bdw-gvtdvm: NOTRUN -> [SKIP][37] ([fdo#109271] / [fdo#111827]) +5 similar issues
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5762/fi-bdw-gvtdvm/igt@[email protected]
* igt@kms_chamelium@hdmi-hpd-fast:
- fi-apl-guc: NOTRUN -> [SKIP][38] ([fdo#109271] / [fdo#111827]) +5 similar issues
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5762/fi-apl-guc/igt@[email protected]
* {igt@kms_dp_tiled_display@basic-test-pattern-with-chamelium} (NEW):
- fi-bwr-2160: NOTRUN -> [SKIP][39] ([fdo#109271])
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5762/fi-bwr-2160/igt@[email protected]
- fi-kbl-7500u: NOTRUN -> [{ABORT}][40] ([i915#1814])
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5762/fi-kbl-7500u/igt@[email protected]
- fi-pnv-d510: NOTRUN -> [SKIP][41] ([fdo#109271])
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5762/fi-pnv-d510/igt@[email protected]
- fi-skl-6700k2: NOTRUN -> [SKIP][42] ([fdo#109271])
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5762/fi-skl-6700k2/igt@[email protected]
- fi-elk-e7500: NOTRUN -> [SKIP][43] ([fdo#109271])
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5762/fi-elk-e7500/igt@[email protected]
* igt@runner@aborted:
- fi-bsw-nick: NOTRUN -> [FAIL][44] ([i915#1436])
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5762/fi-bsw-nick/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109285]: https://bugs.freedesktop.org/show_bug.cgi?id=109285
[fdo#109309]: https://bugs.freedesktop.org/show_bug.cgi?id=109309
[fdo#109315]: https://bugs.freedesktop.org/show_bug.cgi?id=109315
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072
[i915#1222]: https://gitlab.freedesktop.org/drm/intel/issues/1222
[i915#1436]: https://gitlab.freedesktop.org/drm/intel/issues/1436
[i915#1814]: https://gitlab.freedesktop.org/drm/intel/issues/1814
[i915#2190]: https://gitlab.freedesktop.org/drm/intel/issues/2190
[i915#2927]: https://gitlab.freedesktop.org/drm/intel/issues/2927
[i915#3012]: https://gitlab.freedesktop.org/drm/intel/issues/3012
[i915#3276]: https://gitlab.freedesktop.org/drm/intel/issues/3276
[i915#3277]: https://gitlab.freedesktop.org/drm/intel/issues/3277
[i915#3282]: https://gitlab.freedesktop.org/drm/intel/issues/3282
[i915#3283]: https://gitlab.freedesktop.org/drm/intel/issues/3283
[i915#3291]: https://gitlab.freedesktop.org/drm/intel/issues/3291
[i915#3301]: https://gitlab.freedesktop.org/drm/intel/issues/3301
[i915#3303]: https://gitlab.freedesktop.org/drm/intel/issues/3303
[i915#533]: https://gitlab.freedesktop.org/drm/intel/issues/533
Participating hosts (43 -> 36)
------------------------------
Additional (1): fi-rkl-11500t
Missing (8): fi-ilk-m540 fi-bsw-n3050 fi-hsw-4200u fi-skl-guc fi-bsw-cyan fi-dg1-1 fi-icl-y fi-bdw-samus
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_6074 -> IGTPW_5762
CI-20190529: 20190529
CI_DRM_10005: 7a27cb7ac19a95d801c391044cea5274677e7744 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_5762: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5762/index.html
IGT_6074: 3f43ae9fd22dc5a517786b984dc3aa717997664f @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
== Testlist changes ==
+igt@kms_dp_tiled_display@basic-test-pattern-with-chamelium
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5762/index.html
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Patchwork
CI[igt-dev] ✗ GitLab.Pipeline: warning for Test tiled display with aid of chamelium. (rev7)
In reply to Kunal Joshi== Series Details ==
== Series Details ==
Series: Test tiled display with aid of chamelium. (rev7)
URL : https://patchwork.freedesktop.org/series/71393/
State : warning
== Summary ==
Pipeline status: FAILED.
see https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/pipelines/308346 for the overview.
build:tests-debian-meson-arm64 has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/9196770):
[16/752] Linking static target lib/libigt-rendercopy_gen8_c.a.
[17/752] Linking static target lib/libigt-intel_aux_pgtable_c.a.
[18/752] Linking static target lib/libigt-rendercopy_gen9_c.a.
[19/752] Linking static target lib/libigt-sw_sync_c.a.
[20/752] Compiling C object 'lib/76b5a35@@igt-igt_kms_c@sta/igt_kms.c.o'.
FAILED: lib/76b5a35@@igt-igt_kms_c@sta/igt_kms.c.o
/usr/bin/aarch64-linux-gnu-gcc -Ilib/76b5a35@@igt-igt_kms_c@sta -Ilib -I../lib -I../include/drm-uapi -I../lib/stubs/syscalls -I. -I../ -I../lib/stubs/drm -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libdrm -I/usr/include/libdrm/nouveau -I/usr/include/aarch64-linux-gnu -I/usr/include/valgrind -I/usr/include/alsa -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -O2 -g -D_GNU_SOURCE -include config.h -D_FORTIFY_SOURCE=2 -Wbad-function-cast -Wdeclaration-after-statement -Wformat=2 -Wimplicit-fallthrough=0 -Wlogical-op -Wmissing-declarations -Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wuninitialized -Wunused -Wno-clobbered -Wno-maybe-uninitialized -Wno-missing-field-initializers -Wno-pointer-arith -Wno-sign-compare -Wno-type-limits -Wno-unused-parameter -Wno-unused-result -Werror=address -Werror=array-bounds -Werror=implicit -Werror=init-self -Werror=int-to-pointer-cast -Werror=main -Werror=missing-braces -Werror=nonnull -Werror=pointer-to-int-cast -Werror=return-type -Werror=sequence-point -Werror=trigraphs -Werror=write-strings -fno-builtin-malloc -fno-builtin-calloc -fcommon -fPIC -pthread '-DIGT_DATADIR="/usr/local/share/igt-gpu-tools"' '-DIGT_SRCDIR="/builds/gfx-ci/igt-ci-tags/tests"' '-DIGT_LOG_DOMAIN="igt_kms"' -MD -MQ 'lib/76b5a35@@igt-igt_kms_c@sta/igt_kms.c.o' -MF 'lib/76b5a35@@igt-igt_kms_c@sta/igt_kms.c.o.d' -o 'lib/76b5a35@@igt-igt_kms_c@sta/igt_kms.c.o' -c ../lib/igt_kms.c ../lib/igt_kms.c: In function ‘igt_kms_get_aspect_ratio_edid’:
../lib/igt_kms.c:521:54: error: ‘edid_ar_svds’ undeclared (first use in this function); did you mean ‘edid_4k_svds’?
cea_data_size += edid_cea_data_block_set_svd(block, edid_ar_svds,
^~~~~~~~~~~~
edid_4k_svds ../lib/igt_kms.c:521:54: note: each undeclared identifier is reported only once for each function it appears in
ninja: build stopped: subcommand failed.
section_end:1619424446:step_script
section_start:1619424446:cleanup_file_variables
Cleaning up file based variables
section_end:1619424447:cleanup_file_variables
ERROR: Job failed: exit code 1
build:tests-debian-meson-armhf has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/9196769):
[13/819] Linking static target lib/libigt-rendercopy_gen7_c.a.
[14/819] Linking static target lib/libigt-rendercopy_gen8_c.a.
[15/819] Linking static target lib/libigt-intel_aux_pgtable_c.a.
[16/819] Linking static target lib/libigt-rendercopy_gen9_c.a.
[17/819] Compiling C object 'lib/76b5a35@@igt-igt_kms_c@sta/igt_kms.c.o'.
FAILED: lib/76b5a35@@igt-igt_kms_c@sta/igt_kms.c.o
/usr/bin/arm-linux-gnueabihf-gcc -Ilib/76b5a35@@igt-igt_kms_c@sta -Ilib -I../lib -I../include/drm-uapi -I../lib/stubs/syscalls -I. -I../ -I../lib/stubs/drm -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libdrm -I/usr/include/libdrm/nouveau -I/usr/include/arm-linux-gnueabihf -I/usr/include/valgrind -I/usr/include/alsa -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -O2 -g -D_GNU_SOURCE -include config.h -D_FORTIFY_SOURCE=2 -Wbad-function-cast -Wdeclaration-after-statement -Wformat=2 -Wimplicit-fallthrough=0 -Wlogical-op -Wmissing-declarations -Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wuninitialized -Wunused -Wno-clobbered -Wno-maybe-uninitialized -Wno-missing-field-initializers -Wno-pointer-arith -Wno-sign-compare -Wno-type-limits -Wno-unused-parameter -Wno-unused-result -Werror=address -Werror=array-bounds -Werror=implicit -Werror=init-self -Werror=int-to-pointer-cast -Werror=main -Werror=missing-braces -Werror=nonnull -Werror=pointer-to-int-cast -Werror=return-type -Werror=sequence-point -Werror=trigraphs -Werror=write-strings -fno-builtin-malloc -fno-builtin-calloc -fcommon -fPIC -pthread '-DIGT_DATADIR="/usr/local/share/igt-gpu-tools"' '-DIGT_SRCDIR="/builds/gfx-ci/igt-ci-tags/tests"' '-DIGT_LOG_DOMAIN="igt_kms"' -MD -MQ 'lib/76b5a35@@igt-igt_kms_c@sta/igt_kms.c.o' -MF 'lib/76b5a35@@igt-igt_kms_c@sta/igt_kms.c.o.d' -o 'lib/76b5a35@@igt-igt_kms_c@sta/igt_kms.c.o' -c ../lib/igt_kms.c ../lib/igt_kms.c: In function ‘igt_kms_get_aspect_ratio_edid’:
../lib/igt_kms.c:521:54: error: ‘edid_ar_svds’ undeclared (first use in this function); did you mean ‘edid_4k_svds’?
cea_data_size += edid_cea_data_block_set_svd(block, edid_ar_svds,
^~~~~~~~~~~~
edid_4k_svds ../lib/igt_kms.c:521:54: note: each undeclared identifier is reported only once for each function it appears in
ninja: build stopped: subcommand failed.
section_end:1619424425:step_script
section_start:1619424425:cleanup_file_variables
Cleaning up file based variables
section_end:1619424431:cleanup_file_variables
ERROR: Job failed: exit code 1
build:tests-debian-meson-mips has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/9196771):
[11/843] Linking static target lib/libigt-rendercopy_gen4_c.a.
[12/843] Linking static target lib/libigt-rendercopy_gen9_c.a.
[13/843] Linking static target lib/libigt-rendercopy_gen8_c.a.
[14/843] Linking static target lib/libigt-intel_aux_pgtable_c.a.
[15/843] Compiling C object 'lib/76b5a35@@igt-igt_kms_c@sta/igt_kms.c.o'.
FAILED: lib/76b5a35@@igt-igt_kms_c@sta/igt_kms.c.o
/usr/bin/mips-linux-gnu-gcc -Ilib/76b5a35@@igt-igt_kms_c@sta -Ilib -I../lib -I../include/drm-uapi -I../lib/stubs/syscalls -I. -I../ -I../lib/stubs/drm -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/mips-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libdrm -I/usr/include/libdrm/nouveau -I/usr/include/mips-linux-gnu -I/usr/include/valgrind -I/usr/include/alsa -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -O2 -g -D_GNU_SOURCE -include config.h -D_FORTIFY_SOURCE=2 -Wbad-function-cast -Wdeclaration-after-statement -Wformat=2 -Wimplicit-fallthrough=0 -Wlogical-op -Wmissing-declarations -Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wuninitialized -Wunused -Wno-clobbered -Wno-maybe-uninitialized -Wno-missing-field-initializers -Wno-pointer-arith -Wno-sign-compare -Wno-type-limits -Wno-unused-parameter -Wno-unused-result -Werror=address -Werror=array-bounds -Werror=implicit -Werror=init-self -Werror=int-to-pointer-cast -Werror=main -Werror=missing-braces -Werror=nonnull -Werror=pointer-to-int-cast -Werror=return-type -Werror=sequence-point -Werror=trigraphs -Werror=write-strings -fno-builtin-malloc -fno-builtin-calloc -fcommon -fPIC -pthread '-DIGT_DATADIR="/usr/local/share/igt-gpu-tools"' '-DIGT_SRCDIR="/builds/gfx-ci/igt-ci-tags/tests"' '-DIGT_LOG_DOMAIN="igt_kms"' -MD -MQ 'lib/76b5a35@@igt-igt_kms_c@sta/igt_kms.c.o' -MF 'lib/76b5a35@@igt-igt_kms_c@sta/igt_kms.c.o.d' -o 'lib/76b5a35@@igt-igt_kms_c@sta/igt_kms.c.o' -c ../lib/igt_kms.c ../lib/igt_kms.c: In function ‘igt_kms_get_aspect_ratio_edid’:
../lib/igt_kms.c:521:54: error: ‘edid_ar_svds’ undeclared (first use in this function); did you mean ‘edid_4k_svds’?
cea_data_size += edid_cea_data_block_set_svd(block, edid_ar_svds,
^~~~~~~~~~~~
edid_4k_svds ../lib/igt_kms.c:521:54: note: each undeclared identifier is reported only once for each function it appears in
ninja: build stopped: subcommand failed.
section_end:1619424419:step_script
section_start:1619424419:cleanup_file_variables
Cleaning up file based variables
section_end:1619424425:cleanup_file_variables
ERROR: Job failed: exit code 1
build:tests-debian-minimal has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/9196768):
[17/164] Linking static target lib/libigt-rendercopy_gen8_c.a.
[18/164] Linking static target lib/libigt-intel_aux_pgtable_c.a.
[19/164] Linking static target lib/libigt-rendercopy_gen9_c.a.
[20/164] Linking static target lib/libigt-igt_draw_c.a.
[21/164] Compiling C object 'lib/76b5a35@@igt-igt_kms_c@sta/igt_kms.c.o'.
FAILED: lib/76b5a35@@igt-igt_kms_c@sta/igt_kms.c.o
cc -Ilib/76b5a35@@igt-igt_kms_c@sta -Ilib -I../lib -I../include/drm-uapi -I../lib/stubs/syscalls -I. -I../ -I../lib/stubs/drm -I../lib/stubs/libunwind -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libdrm -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -O2 -g -D_GNU_SOURCE -include config.h -D_FORTIFY_SOURCE=2 -Wbad-function-cast -Wdeclaration-after-statement -Wformat=2 -Wimplicit-fallthrough=0 -Wlogical-op -Wmissing-declarations -Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wuninitialized -Wunused -Wno-clobbered -Wno-maybe-uninitialized -Wno-missing-field-initializers -Wno-pointer-arith -Wno-sign-compare -Wno-type-limits -Wno-unused-parameter -Wno-unused-result -Werror=address -Werror=array-bounds -Werror=implicit -Werror=init-self -Werror=int-to-pointer-cast -Werror=main -Werror=missing-braces -Werror=nonnull -Werror=pointer-to-int-cast -Werror=return-type -Werror=sequence-point -Werror=trigraphs -Werror=write-strings -fno-builtin-malloc -fno-builtin-calloc -fcommon -fPIC -pthread '-DIGT_DATADIR="/usr/local/share/igt-gpu-tools"' '-DIGT_SRCDIR="/builds/gfx-ci/igt-ci-tags/tests"' '-DIGT_LOG_DOMAIN="igt_kms"' -MD -MQ 'lib/76b5a35@@igt-igt_kms_c@sta/igt_kms.c.o' -MF 'lib/76b5a35@@igt-igt_kms_c@sta/igt_kms.c.o.d' -o 'lib/76b5a35@@igt-igt_kms_c@sta/igt_kms.c.o' -c ../lib/igt_kms.c ../lib/igt_kms.c: In function ‘igt_kms_get_aspect_ratio_edid’:
../lib/igt_kms.c:521:54: error: ‘edid_ar_svds’ undeclared (first use in this function); did you mean ‘edid_4k_svds’?
cea_data_size += edid_cea_data_block_set_svd(block, edid_ar_svds,
^~~~~~~~~~~~
edid_4k_svds ../lib/igt_kms.c:521:54: note: each undeclared identifier is reported only once for each function it appears in
ninja: build stopped: subcommand failed.
section_end:1619424441:step_script
section_start:1619424441:cleanup_file_variables
Cleaning up file based variables
section_end:1619424443:cleanup_file_variables
ERROR: Job failed: exit code 1
== Logs ==
For more details see: https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/pipelines/308346
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev