amdgpu/amd_mode_switch: Introduce mode switch test
PATCH 1/1 amdgpu/amd_mode_switch: Introduce mode switch test
From: Aurabindo Pillai <[email protected]>
Switching between different modes could potentially create pstate warnings if clocks are not being set correctly.
The subtest gets the highest and lowest mode supported on the connector and switch between them.
--- tests/amdgpu/amd_mode_switch.c | 210 +++++++++++++++++++++++++++++++++ tests/amdgpu/meson.build | 1 + 2 files changed, 211 insertions(+) create mode 100644 tests/amdgpu/amd_mode_switch.c
tests/amdgpu/amd_mode_switch.c new file +210 -0
@@ -0,0 +1,210 @@ +/* +* Copyright 2021 Advanced Micro Devices, Inc. +* +* 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 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 COPYRIGHT HOLDER(S) OR AUTHOR(S) 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. +*/ + +#include "igt.h" +#include <xf86drmMode.h> + +#define MAX_PIPES 6 + +/* Common test data. */ +typedef struct data { +igt_display_t display; +igt_plane_t *primary[MAX_PIPES ]; +igt_output_t *output[MAX_PIPES ]; +int fd; +}data_t ; + +static void test_init (data_t *data) +{ +igt_display_t *display = &data->display; +int i; + +for_each_pipe (display, i) { +igt_output_t *output = &display->outputs[i]; + + data->primary[i] =igt_pipe_get_plane_type ( + &data->display.pipes[i],DRM_PLANE_TYPE_PRIMARY ); + + data->output[i] = output; + } + +igt_require (data->output[0 ]); +igt_display_reset (display); +} + +static void test_fini (data_t *data) +{ +igt_display_t *display = &data->display; + +igt_display_reset (display); +igt_display_commit_atomic (display,DRM_MODE_ATOMIC_ALLOW_MODESET ,0 ); +} + +/* Forces a mode for a connector. */ +static void force_output_mode (data_t *d,igt_output_t *output, +const drmModeModeInfo *mode) +{ +/* This allows us to create a virtual sink. */ +if (!igt_output_is_connected (output)) { +kmstest_force_edid (d->fd, output->config.connector, +igt_kms_get_4k_edid ()); + +kmstest_force_connector (d->fd, output->config.connector, +FORCE_CONNECTOR_DIGITAL ); + } + +igt_output_override_mode (output, mode); +} + +static void run_mode_switch_first_last (data_t *data,int num_pipes) +{ +igt_output_t *output; +struct igt_fb *buffer1[MAX_PIPES ] = {NULL }; +struct igt_fb *buffer2[MAX_PIPES ] = {NULL }; +drmModeConnectorPtr conn; +drmModeModeInfoPtr kmode; +void *user_data =NULL ; +int i =0 ; +int j =0 ; + +test_init (data); + +igt_skip_on_f (num_pipes >igt_display_get_n_pipes (&data->display) || + num_pipes > data->display.n_outputs, +"ASIC does not have %d outputs/pipes\n" , num_pipes); + +/* First supported mode */ + +for (j =0 ; j < num_pipes; j++) { + output = data->output[j]; +if (!igt_output_is_connected (output)) +continue ; + + conn =drmModeGetConnector ( + data->fd, output->config.connector->connector_id); + + kmode = &conn->modes[0 ]; +if (buffer1[j] ==NULL ) { +igt_fb_t fb; + buffer1[j] = &fb; +igt_create_color_fb (data->fd, kmode->hdisplay, + kmode->vdisplay, +DRM_FORMAT_XRGB8888 , +DRM_FORMAT_MOD_NONE ,1.f ,0.f , +0.f , buffer1[j]); + } +igt_output_set_pipe (output, j); +force_output_mode (data, output, kmode); +igt_plane_set_fb (data->primary[j], buffer1[j]); +drmModeFreeConnector (conn); + } + +igt_display_commit_atomic (&data->display,DRM_MODE_ATOMIC_ALLOW_MODESET , + user_data); + +/* Last supported mode */ + +for (j =0 ; j < num_pipes; j++) { + output = data->output[j]; +if (!igt_output_is_connected (output)) +continue ; + + conn =drmModeGetConnector ( + data->fd, output->config.connector->connector_id); + + kmode = &conn->modes[conn->count_modes -1 ]; +if (buffer2[j] ==NULL ) { +igt_fb_t fb; + buffer2[j] = &fb; +igt_create_color_fb (data->fd, kmode->hdisplay, + kmode->vdisplay, +DRM_FORMAT_XRGB8888 , +DRM_FORMAT_MOD_NONE ,1.f ,0.f , +0.f , buffer2[j]); + } +force_output_mode (data, output, kmode); +igt_plane_set_fb (data->primary[j], buffer2[j]); +drmModeFreeConnector (conn); + } + +igt_display_commit_atomic (&data->display,DRM_MODE_ATOMIC_ALLOW_MODESET , + user_data); + +/* First supported again */ +for (j =0 ; j < num_pipes; j++) { + output = data->output[j]; +if (!igt_output_is_connected (output)) +continue ; + + conn =drmModeGetConnector ( + data->fd, output->config.connector->connector_id); + + kmode = &conn->modes[0 ]; +force_output_mode (data, output, kmode); +igt_plane_set_fb (data->primary[j], buffer1[j]); +drmModeFreeConnector (conn); + } + +igt_display_commit_atomic (&data->display,DRM_MODE_ATOMIC_ALLOW_MODESET , + user_data); + +test_fini (data); + +for (i =0 ; i <= num_pipes; i++) { +igt_remove_fb (data->fd, buffer1[i]); +igt_remove_fb (data->fd, buffer2[i]); + } +} + +IGT_TEST_DESCRIPTION ("Test switching between supported modes" ); +igt_main +{ +data_t data; +int i =0 ; + +igt_skip_on_simulation (); + +memset (&data,0 ,sizeof (data)); + + igt_fixture + { + data.fd =drm_open_driver_master (DRIVER_AMDGPU ); + +kmstest_set_vt_graphics_mode (); + +igt_display_require (&data.display, data.fd); +igt_require (&data.display.is_atomic); +igt_display_require_output (&data.display); + } + +for (i =0 ; i <MAX_PIPES ; i++) { +igt_describe ( +"Test between switching highest and lowest supported mode" ); + igt_subtest_f("mode-switch-first-last-pipe-%d", i) +run_mode_switch_first_last (&data, i +1 ); + } + + igt_fixture + { +igt_display_fini (&data.display); + } +}
tests/amdgpu/meson.build +1 -0
@@ -16,6 +16,7 @@ if libdrm_amdgpu.found() 'amd_mem_leak', 'amd_link_settings', 'amd_vrr_range', + 'amd_mode_switch', ] amdgpu_deps += libdrm_amdgpu endif
Signature · 1 line
2.25.1
The test looks pretty generic to me, can we make it a kms_ instead of AMD only?
Quoted 248 lines · Rodrigo Siqueira
From: Aurabindo Pillai <[email protected]>
Switching between different modes could potentially create pstate warnings if clocks are not being set correctly.
The subtest gets the highest and lowest mode supported on the connector and switch between them.
Signed-off-by Rodrigo Siqueira <[email protected]>Signed-off-by Aurabindo Pillai <[email protected]>--- tests/amdgpu/amd_mode_switch.c | 210 +++++++++++++++++++++++++++++++++ tests/amdgpu/meson.build | 1 + 2 files changed, 211 insertions(+) create mode 100644 tests/amdgpu/amd_mode_switch.ctests/amdgpu/amd_mode_switch.c new file +210
-0@@ -0,0 +1,210 @@ +/* +* Copyright 2021 Advanced Micro Devices, Inc. +* +* 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 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 COPYRIGHT HOLDER(S) OR AUTHOR(S) 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. +*/ + +#include "igt.h" +#include <xf86drmMode.h> + +#define MAX_PIPES 6 + +/* Common test data. */ +typedef struct data { +igt_display_t display; +igt_plane_t *primary[MAX_PIPES ]; +igt_output_t *output[MAX_PIPES ]; +int fd; +}data_t ; + +static void test_init (data_t *data) +{ +igt_display_t *display = &data->display; +int i; + +for_each_pipe (display, i) { +igt_output_t *output = &display->outputs[i]; + + data->primary[i] =igt_pipe_get_plane_type ( + &data->display.pipes[i],DRM_PLANE_TYPE_PRIMARY ); + + data->output[i] = output; + } + +igt_require (data->output[0 ]); +igt_display_reset (display); +} + +static void test_fini (data_t *data) +{ +igt_display_t *display = &data->display; + +igt_display_reset (display); +igt_display_commit_atomic (display,DRM_MODE_ATOMIC_ALLOW_MODESET ,0 ); +} + +/* Forces a mode for a connector. */ +static void force_output_mode (data_t *d,igt_output_t *output, +const drmModeModeInfo *mode) +{ +/* This allows us to create a virtual sink. */ +if (!igt_output_is_connected (output)) { +kmstest_force_edid (d->fd, output->config.connector, +igt_kms_get_4k_edid ()); + +kmstest_force_connector (d->fd, output->config.connector, +FORCE_CONNECTOR_DIGITAL ); + } + +igt_output_override_mode (output, mode); +} + +static void run_mode_switch_first_last (data_t *data,int num_pipes) +{ +igt_output_t *output; +struct igt_fb *buffer1[MAX_PIPES ] = {NULL }; +struct igt_fb *buffer2[MAX_PIPES ] = {NULL }; +drmModeConnectorPtr conn; +drmModeModeInfoPtr kmode; +void *user_data =NULL ; +int i =0 ; +int j =0 ; + +test_init (data); + +igt_skip_on_f (num_pipes >igt_display_get_n_pipes (&data->display) || + num_pipes > data->display.n_outputs, +"ASIC does not have %d outputs/pipes\n" , num_pipes); + +/* First supported mode */ + +for (j =0 ; j < num_pipes; j++) { + output = data->output[j]; +if (!igt_output_is_connected (output)) +continue ; + + conn =drmModeGetConnector ( + data->fd, output->config.connector->connector_id); + + kmode = &conn->modes[0 ]; +if (buffer1[j] ==NULL ) { +igt_fb_t fb; + buffer1[j] = &fb; +igt_create_color_fb (data->fd, kmode->hdisplay, + kmode->vdisplay, +DRM_FORMAT_XRGB8888 , +DRM_FORMAT_MOD_NONE ,1.f ,0.f , +0.f , buffer1[j]); + } +igt_output_set_pipe (output, j); +force_output_mode (data, output, kmode); +igt_plane_set_fb (data->primary[j], buffer1[j]); +drmModeFreeConnector (conn); + } + +igt_display_commit_atomic (&data->display,DRM_MODE_ATOMIC_ALLOW_MODESET , + user_data); + +/* Last supported mode */ + +for (j =0 ; j < num_pipes; j++) { + output = data->output[j]; +if (!igt_output_is_connected (output)) +continue ; + + conn =drmModeGetConnector ( + data->fd, output->config.connector->connector_id); + + kmode = &conn->modes[conn->count_modes -1 ]; +if (buffer2[j] ==NULL ) { +igt_fb_t fb; + buffer2[j] = &fb; +igt_create_color_fb (data->fd, kmode->hdisplay, + kmode->vdisplay, +DRM_FORMAT_XRGB8888 , +DRM_FORMAT_MOD_NONE ,1.f ,0.f , +0.f , buffer2[j]); + } +force_output_mode (data, output, kmode); +igt_plane_set_fb (data->primary[j], buffer2[j]); +drmModeFreeConnector (conn); + } + +igt_display_commit_atomic (&data->display,DRM_MODE_ATOMIC_ALLOW_MODESET , + user_data); + +/* First supported again */ +for (j =0 ; j < num_pipes; j++) { + output = data->output[j]; +if (!igt_output_is_connected (output)) +continue ; + + conn =drmModeGetConnector ( + data->fd, output->config.connector->connector_id); + + kmode = &conn->modes[0 ]; +force_output_mode (data, output, kmode); +igt_plane_set_fb (data->primary[j], buffer1[j]); +drmModeFreeConnector (conn); + } + +igt_display_commit_atomic (&data->display,DRM_MODE_ATOMIC_ALLOW_MODESET , + user_data); + +test_fini (data); + +for (i =0 ; i <= num_pipes; i++) { +igt_remove_fb (data->fd, buffer1[i]); +igt_remove_fb (data->fd, buffer2[i]); + } +} + +IGT_TEST_DESCRIPTION ("Test switching between supported modes" ); +igt_main +{ +data_t data; +int i =0 ; + +igt_skip_on_simulation (); + +memset (&data,0 ,sizeof (data)); + + igt_fixture + { + data.fd =drm_open_driver_master (DRIVER_AMDGPU ); + +kmstest_set_vt_graphics_mode (); + +igt_display_require (&data.display, data.fd); +igt_require (&data.display.is_atomic); +igt_display_require_output (&data.display); + } + +for (i =0 ; i <MAX_PIPES ; i++) { +igt_describe ( +"Test between switching highest and lowest supported mode" ); + igt_subtest_f("mode-switch-first-last-pipe-%d", i) +run_mode_switch_first_last (&data, i +1 ); + } + + igt_fixture + { +igt_display_fini (&data.display); + } +}tests/amdgpu/meson.build +1
-1@@ -16,6 +16,7 @@ if libdrm_amdgpu.found() 'amd_mem_leak', 'amd_link_settings', 'amd_vrr_range', + 'amd_mode_switch', ] amdgpu_deps += libdrm_amdgpu endif --2.25.1
I was wondering how is this different from kms_plane_lowres? On kms_plane_lowres is also used crc to check also what's on screen stay good.
/Juha-Pekka
Mark Yacoub kirjoitti 16.11.2021 klo 23.29:
Quoted 252 lines
The test looks pretty generic to me, can we make it a
kms_instead of AMD only?Quoted 248 lines · Rodrigo Siqueira
From: Aurabindo Pillai <[email protected]>
Switching between different modes could potentially create pstate warnings if clocks are not being set correctly.
The subtest gets the highest and lowest mode supported on the connector and switch between them.
Signed-off-by Rodrigo Siqueira <[email protected]>Signed-off-by Aurabindo Pillai <[email protected]>--- tests/amdgpu/amd_mode_switch.c | 210 +++++++++++++++++++++++++++++++++ tests/amdgpu/meson.build | 1 + 2 files changed, 211 insertions(+)create mode 100644
tests/amdgpu/amd_mode_switch.ctests/amdgpu/amd_mode_switch.c new file +210
-0@@ -0,0 +1,210 @@ +/* +* Copyright 2021 Advanced Micro Devices, Inc. +* +* 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 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 COPYRIGHT HOLDER(S) OR AUTHOR(S) 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. +*/ + +#include "igt.h" +#include <xf86drmMode.h> + +#define MAX_PIPES 6 + +/* Common test data. */ +typedef struct data { +igt_display_t display; +igt_plane_t *primary[MAX_PIPES ]; +igt_output_t *output[MAX_PIPES ]; +int fd; +}data_t ; + +static void test_init (data_t *data) +{ +igt_display_t *display = &data->display; +int i; + +for_each_pipe (display, i) { +igt_output_t *output = &display->outputs[i]; + + data->primary[i] =igt_pipe_get_plane_type ( + &data->display.pipes[i],DRM_PLANE_TYPE_PRIMARY ); + + data->output[i] = output; + } + +igt_require (data->output[0 ]); +igt_display_reset (display); +} + +static void test_fini (data_t *data) +{ +igt_display_t *display = &data->display; + +igt_display_reset (display); +igt_display_commit_atomic (display,DRM_MODE_ATOMIC_ALLOW_MODESET ,0 ); +} + +/* Forces a mode for a connector. */ +static void force_output_mode (data_t *d,igt_output_t *output, +const drmModeModeInfo *mode) +{ +/* This allows us to create a virtual sink. */ +if (!igt_output_is_connected (output)) { +kmstest_force_edid (d->fd, output->config.connector, +igt_kms_get_4k_edid ()); + +kmstest_force_connector (d->fd, output->config.connector, +FORCE_CONNECTOR_DIGITAL ); + } + +igt_output_override_mode (output, mode); +} + +static void run_mode_switch_first_last (data_t *data,int num_pipes) +{ +igt_output_t *output; +struct igt_fb *buffer1[MAX_PIPES ] = {NULL }; +struct igt_fb *buffer2[MAX_PIPES ] = {NULL }; +drmModeConnectorPtr conn; +drmModeModeInfoPtr kmode; +void *user_data =NULL ; +int i =0 ; +int j =0 ; + +test_init (data); + +igt_skip_on_f (num_pipes >igt_display_get_n_pipes (&data->display) || + num_pipes > data->display.n_outputs, +"ASIC does not have %d outputs/pipes\n" , num_pipes); + +/* First supported mode */ + +for (j =0 ; j < num_pipes; j++) { + output = data->output[j]; +if (!igt_output_is_connected (output)) +continue ; + + conn =drmModeGetConnector ( + data->fd, output->config.connector->connector_id); + + kmode = &conn->modes[0 ]; +if (buffer1[j] ==NULL ) { +igt_fb_t fb; + buffer1[j] = &fb; +igt_create_color_fb (data->fd, kmode->hdisplay, + kmode->vdisplay, +DRM_FORMAT_XRGB8888 , +DRM_FORMAT_MOD_NONE ,1.f ,0.f , +0.f , buffer1[j]); + } +igt_output_set_pipe (output, j); +force_output_mode (data, output, kmode); +igt_plane_set_fb (data->primary[j], buffer1[j]); +drmModeFreeConnector (conn); + } + +igt_display_commit_atomic (&data->display,DRM_MODE_ATOMIC_ALLOW_MODESET , + user_data); + +/* Last supported mode */ + +for (j =0 ; j < num_pipes; j++) { + output = data->output[j]; +if (!igt_output_is_connected (output)) +continue ; + + conn =drmModeGetConnector ( + data->fd, output->config.connector->connector_id); + + kmode = &conn->modes[conn->count_modes -1 ]; +if (buffer2[j] ==NULL ) { +igt_fb_t fb; + buffer2[j] = &fb; +igt_create_color_fb (data->fd, kmode->hdisplay, + kmode->vdisplay, +DRM_FORMAT_XRGB8888 , +DRM_FORMAT_MOD_NONE ,1.f ,0.f , +0.f , buffer2[j]); + } +force_output_mode (data, output, kmode); +igt_plane_set_fb (data->primary[j], buffer2[j]); +drmModeFreeConnector (conn); + } + +igt_display_commit_atomic (&data->display,DRM_MODE_ATOMIC_ALLOW_MODESET , + user_data); + +/* First supported again */ +for (j =0 ; j < num_pipes; j++) { + output = data->output[j]; +if (!igt_output_is_connected (output)) +continue ; + + conn =drmModeGetConnector ( + data->fd, output->config.connector->connector_id); + + kmode = &conn->modes[0 ]; +force_output_mode (data, output, kmode); +igt_plane_set_fb (data->primary[j], buffer1[j]); +drmModeFreeConnector (conn); + } + +igt_display_commit_atomic (&data->display,DRM_MODE_ATOMIC_ALLOW_MODESET , + user_data); + +test_fini (data); + +for (i =0 ; i <= num_pipes; i++) { +igt_remove_fb (data->fd, buffer1[i]); +igt_remove_fb (data->fd, buffer2[i]); + } +} + +IGT_TEST_DESCRIPTION ("Test switching between supported modes" ); +igt_main +{ +data_t data; +int i =0 ; + +igt_skip_on_simulation (); + +memset (&data,0 ,sizeof (data)); + + igt_fixture + { + data.fd =drm_open_driver_master (DRIVER_AMDGPU ); + +kmstest_set_vt_graphics_mode (); + +igt_display_require (&data.display, data.fd); +igt_require (&data.display.is_atomic); +igt_display_require_output (&data.display); + } + +for (i =0 ; i <MAX_PIPES ; i++) { +igt_describe ( +"Test between switching highest and lowest supported mode" ); + igt_subtest_f("mode-switch-first-last-pipe-%d", i) +run_mode_switch_first_last (&data, i +1 ); + } + + igt_fixture + { +igt_display_fini (&data.display); + } +}tests/amdgpu/meson.build +1
-1@@ -16,6 +16,7 @@ if libdrm_amdgpu.found() 'amd_mem_leak', 'amd_link_settings', 'amd_vrr_range', + 'amd_mode_switch', ] amdgpu_deps += libdrm_amdgpu endif --2.25.1
Hi,
Quoted 1 line · Juha-Pekka Heikkilä
I was wondering how is this different from
kms_plane_lowres? Onkms_plane_lowresis also used crc to check also what's on screen stay good.
Afaik, we ignore kms_plane_lowres since most tests look related to tiling-[x|y], which I think is an Intel modifier (again, maybe I'm wrong). Anyway, I tried to run it on an AMD device, and most kms_plane_lowres subtest skips.
Quoted 4 lines
/Juha-Pekka
Mark Yacoub kirjoitti 16.11.2021 klo 23.29:
Quoted 1 line
The test looks pretty generic to me, can we make it a
kms_instead of AMD only?
Mark, Juha-Pekka,
Tbh, right now, I prefer to keep this test as AMD-specific because we are trying to fully upstream all of our tests, so we can rely on igt from the upstream. I can create a README file for amdgpu tests and create a TODO section where I can highlight that we can make this test and other generic; how about that?
Hi Lakshmi,
This test is specific to AMD, but CI is failing. I think it is another false-positive. Here is the patch:
https://patchwork.freedesktop.org/series/96996/
Thanks
Siqueira
Quoted 275 lines
Quoted 275 lines
Quoted 273 lines · Rodrigo Siqueira
From: Aurabindo Pillai <[email protected]>
Switching between different modes could potentially create pstate warnings if clocks are not being set correctly.
The subtest gets the highest and lowest mode supported on the connector and switch between them.
Signed-off-by Rodrigo Siqueira <[email protected]>Signed-off-by Aurabindo Pillai <[email protected]>---
tests/amdgpu/amd_mode_switch.c| 210 +++++++++++++++++++++++++++++++++ tests/amdgpu/meson.build | 1 +2 files changed, 211 insertions(+)create mode 100644
tests/amdgpu/amd_mode_switch.ctests/amdgpu/amd_mode_switch.c new file +4
-0@@ -0,0 +1,210 @@ +/* +* Copyright 2021 Advanced Micro Devices, Inc. +* +* 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 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 COPYRIGHT HOLDER(S) OR AUTHOR(S) 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.
+ */tests/amdgpu/amd_mode_switch.c new file +24
-0+ +#include "igt.h" +#include <xf86drmMode.h> + +#define MAX_PIPES 6 + +/* Common test data. */ +typedef struct data { + igt_display_t display; + igt_plane_t *primary[MAX_PIPES]; + igt_output_t *output[MAX_PIPES]; + int fd; +}data_t ; + +static void test_init(data_t *data) +{ + igt_display_t *display = &data->display; + int i; + + for_each_pipe(display, i) { + igt_output_t *output = &display->outputs[i]; + + data->primary[i] = igt_pipe_get_plane_type( + &data->display.pipes[i],
DRM_PLANE_TYPE_PRIMARY);tests/amdgpu/amd_mode_switch.c new file +14
-0+ + data->output[i] = output; + } + + igt_require(data->output[0]); + igt_display_reset(display); +} + +static void test_fini (data_t *data) +{ + igt_display_t *display = &data->display; + + igt_display_reset(display); + igt_display_commit_atomic(display,
DRM_MODE_ATOMIC_ALLOW_MODESET, 0);tests/amdgpu/amd_mode_switch.c new file +32
-0+} + +/* Forces a mode for a connector. */ +static void force_output_mode (data_t *d,igt_output_t *output, + const drmModeModeInfo *mode) +{ + /* This allows us to create a virtual sink. */ + if (!igt_output_is_connected(output)) { + kmstest_force_edid(d->fd, output->config.connector, + igt_kms_get_4k_edid()); + + kmstest_force_connector(d->fd, output->config.connector, + FORCE_CONNECTOR_DIGITAL); + } + + igt_output_override_mode(output, mode); +} + +static void run_mode_switch_first_last (data_t *data,int num_pipes) +{ + igt_output_t *output; + struct igt_fb *buffer1[MAX_PIPES] = { NULL }; + struct igt_fb *buffer2[MAX_PIPES] = { NULL }; + drmModeConnectorPtr conn; + drmModeModeInfoPtr kmode; + void *user_data = NULL; + int i = 0; + int j = 0; + + test_init(data); + + igt_skip_on_f(num_pipes >
igt_display_get_n_pipes(&data->display)||
+num_pipes>data->display.n_outputs, + "ASIC does not have %d outputs/pipes\n",num_pipes);tests/amdgpu/amd_mode_switch.c new file +10
-0+ + /* First supported mode */ + + for (j = 0; j < num_pipes; j++) { + output = data->output[j]; + if (!igt_output_is_connected(output)) + continue; + + conn = drmModeGetConnector( + data->fd,
output->config.connector->connector_id);
+
+ kmode = &conn->modes[0];
+ if (buffer1[j] == NULL) {
+igt_fb_tfb;
+ buffer1[j] = &fb;
+ igt_create_color_fb(data->fd,kmode->hdisplay, +kmode->vdisplay, +DRM_FORMAT_XRGB8888, +DRM_FORMAT_MOD_NONE, 1.f, 0.f,
+ 0.f, buffer1[j]); + }
+igt_output_set_pipe(output, j);
+force_output_mode(data, output, kmode);
+igt_plane_set_fb(data->primary[j], buffer1[j]); + drmModeFreeConnector(conn);
+ }
+
+ igt_display_commit_atomic(&data->display,DRM_MODE_ATOMIC_ALLOW_MODESET,
+user_data);tests/amdgpu/amd_mode_switch.c new file +10
-0+ + /* Last supported mode */ + + for (j = 0; j < num_pipes; j++) { + output = data->output[j]; + if (!igt_output_is_connected(output)) + continue; + + conn = drmModeGetConnector( + data->fd,
output->config.connector->connector_id);
+
+ kmode = &conn->modes[conn->count_modes - 1]; + if (buffer2[j] == NULL) {
+igt_fb_tfb;
+ buffer2[j] = &fb;
+ igt_create_color_fb(data->fd,kmode->hdisplay, +kmode->vdisplay, +DRM_FORMAT_XRGB8888, +DRM_FORMAT_MOD_NONE, 1.f, 0.f,
+ 0.f, buffer2[j]); + }
+force_output_mode(data, output, kmode);
+igt_plane_set_fb(data->primary[j], buffer2[j]); + drmModeFreeConnector(conn);
+ }
+
+ igt_display_commit_atomic(&data->display,DRM_MODE_ATOMIC_ALLOW_MODESET,
+user_data);tests/amdgpu/amd_mode_switch.c new file +9
-0+ + /* First supported again */ + for (j = 0; j < num_pipes; j++) { + output = data->output[j]; + if (!igt_output_is_connected(output)) + continue; + + conn = drmModeGetConnector( + data->fd,
output->config.connector->connector_id);tests/amdgpu/amd_mode_switch.c new file +8
-0+ + kmode = &conn->modes[0]; + force_output_mode(data, output, kmode); + igt_plane_set_fb(data->primary[j], buffer1[j]); + drmModeFreeConnector(conn); + } + + igt_display_commit_atomic(&data->display,
DRM_MODE_ATOMIC_ALLOW_MODESET,
+user_data);tests/amdgpu/amd_mode_switch.c new file +33
-0+ + test_fini(data); + + for (i = 0; i <= num_pipes; i++) { + igt_remove_fb(data->fd, buffer1[i]); + igt_remove_fb(data->fd, buffer2[i]); + } +} + +IGT_TEST_DESCRIPTION ("Test switching between supported modes" ); +igt_main +{ + data_t data; + int i = 0; + + igt_skip_on_simulation(); + + memset(&data, 0, sizeof(data)); + + igt_fixture + { + data.fd = drm_open_driver_master(DRIVER_AMDGPU); + + kmstest_set_vt_graphics_mode(); + + igt_display_require(&data.display, data.fd); + igt_require(&data.display.is_atomic); + igt_display_require_output(&data.display); + } + + for (i = 0; i < MAX_PIPES; i++) { + igt_describe( + "Test between switching highest and lowestsupported mode");
+igt_subtest_f("mode-switch-first-last-pipe-%d", i)+run_mode_switch_first_last(&data, i + 1); + }tests/amdgpu/amd_mode_switch.c new file +6
-0+ + igt_fixture + { + igt_display_fini(&data.display); + } +}tests/amdgpu/meson.build +1
-0@@ -16,6 +16,7 @@ if libdrm_amdgpu.found() 'amd_mem_leak', 'amd_link_settings', 'amd_vrr_range', + 'amd_mode_switch',]
amdgpu_deps+=libdrm_amdgpu
endifSignature · 1 line
2.25.1
Quoted 18 lines · Rodrigo Siqueira Jordao
Hi,
Quoted 2 lines · Juha-Pekka Heikkilä
I was wondering how is this different from
kms_plane_lowres? Onkms_plane_lowresis also used crc to check also what's on screen stay good.Afaik, we ignore
kms_plane_lowressince most tests look related to tiling-[x|y], which I think is an Intel modifier (again, maybe I'm wrong). Anyway, I tried to run it on an AMD device, and mostkms_plane_lowressubtest skips.Quoted 5 lines
/Juha-Pekka
Mark Yacoub kirjoitti 16.11.2021 klo 23.29:
Quoted 2 lines
The test looks pretty generic to me, can we make it a
kms_instead of AMD only?
Quoted 7 lines
Mark, Juha-Pekka,
Tbh, right now, I prefer to keep this test as AMD-specific because we are trying to fully upstream all of our tests, so we can rely on igt from the upstream. I can create a README file for amdgpu tests and create a TODO section where I can highlight that we can make this test and other generic; how about that?
A TODO section sounds good to me on Chromium end.
Quoted 288 lines
Hi Lakshmi,
This test is specific to AMD, but CI is failing. I think it is another false-positive. Here is the patch:
https://patchwork.freedesktop.org/series/96996/
Thanks
SiqueiraQuoted 276 lines
Quoted 276 lines
Quoted 274 lines · Rodrigo Siqueira
From: Aurabindo Pillai <[email protected]>
Switching between different modes could potentially create pstate warnings if clocks are not being set correctly.
The subtest gets the highest and lowest mode supported on the connector and switch between them.
Signed-off-by Rodrigo Siqueira <[email protected]>Signed-off-by Aurabindo Pillai <[email protected]>--- tests/amdgpu/amd_mode_switch.c | 210 +++++++++++++++++++++++++++++++++ tests/amdgpu/meson.build | 1 + 2 files changed, 211 insertions(+)create mode 100644
tests/amdgpu/amd_mode_switch.ctests/amdgpu/amd_mode_switch.c new file +4
-0@@ -0,0 +1,210 @@ +/* +* Copyright 2021 Advanced Micro Devices, Inc. +* +* 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 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 COPYRIGHT HOLDER(S) OR AUTHOR(S) 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.
+ */tests/amdgpu/amd_mode_switch.c new file +24
-0+ +#include "igt.h" +#include <xf86drmMode.h> + +#define MAX_PIPES 6 + +/* Common test data. */ +typedef struct data { +igt_display_t display; +igt_plane_t *primary[MAX_PIPES ]; +igt_output_t *output[MAX_PIPES ]; +int fd; +}data_t ; + +static void test_init (data_t *data) +{ +igt_display_t *display = &data->display; +int i; + +for_each_pipe (display, i) { +igt_output_t *output = &display->outputs[i]; + + data->primary[i] = igt_pipe_get_plane_type( + &data->display.pipes[i],
DRM_PLANE_TYPE_PRIMARY);tests/amdgpu/amd_mode_switch.c new file +14
-0+ + data->output[i] = output; + } + +igt_require (data->output[0 ]); +igt_display_reset (display); +} + +static void test_fini (data_t *data) +{ +igt_display_t *display = &data->display; + +igt_display_reset (display); + igt_display_commit_atomic(display,
DRM_MODE_ATOMIC_ALLOW_MODESET, 0);tests/amdgpu/amd_mode_switch.c new file +32
-0+} + +/* Forces a mode for a connector. */ +static void force_output_mode (data_t *d,igt_output_t *output, +const drmModeModeInfo *mode) +{ +/* This allows us to create a virtual sink. */ +if (!igt_output_is_connected (output)) { +kmstest_force_edid (d->fd, output->config.connector, +igt_kms_get_4k_edid ()); + +kmstest_force_connector (d->fd, output->config.connector, +FORCE_CONNECTOR_DIGITAL ); + } + +igt_output_override_mode (output, mode); +} + +static void run_mode_switch_first_last (data_t *data,int num_pipes) +{ +igt_output_t *output; +struct igt_fb *buffer1[MAX_PIPES ] = {NULL }; +struct igt_fb *buffer2[MAX_PIPES ] = {NULL }; +drmModeConnectorPtr conn; +drmModeModeInfoPtr kmode; +void *user_data =NULL ; +int i =0 ; +int j =0 ; + +test_init (data); + + igt_skip_on_f(num_pipes >
igt_display_get_n_pipes(&data->display)||tests/amdgpu/amd_mode_switch.c new file +2
-0+ num_pipes > data->display.n_outputs, + "ASIC does not have %d outputs/pipes\n",
num_pipes);tests/amdgpu/amd_mode_switch.c new file +10
-0+ +/* First supported mode */ + +for (j =0 ; j < num_pipes; j++) { + output = data->output[j]; +if (!igt_output_is_connected (output)) +continue ; + + conn = drmModeGetConnector( + data->fd,
output->config.connector->connector_id);tests/amdgpu/amd_mode_switch.c new file +9
-0+ + kmode = &conn->modes[0 ]; +if (buffer1[j] ==NULL ) { +igt_fb_t fb; + buffer1[j] = &fb; + igt_create_color_fb(data->fd, kmode->hdisplay, + kmode->vdisplay, + DRM_FORMAT_XRGB8888, + DRM_FORMAT_MOD_NONE, 1.f,0.f,
tests/amdgpu/amd_mode_switch.c new file +9
-0+ 0.f, buffer1[j]); + } +igt_output_set_pipe (output, j); +force_output_mode (data, output, kmode); +igt_plane_set_fb (data->primary[j], buffer1[j]); +drmModeFreeConnector (conn); + } + + igt_display_commit_atomic(&data->display,
DRM_MODE_ATOMIC_ALLOW_MODESET,tests/amdgpu/amd_mode_switch.c new file +11
-0+ user_data); + +/* Last supported mode */ + +for (j =0 ; j < num_pipes; j++) { + output = data->output[j]; +if (!igt_output_is_connected (output)) +continue ; + + conn = drmModeGetConnector( + data->fd,
output->config.connector->connector_id);tests/amdgpu/amd_mode_switch.c new file +9
-0+ + kmode = &conn->modes[conn->count_modes -1 ]; +if (buffer2[j] ==NULL ) { +igt_fb_t fb; + buffer2[j] = &fb; + igt_create_color_fb(data->fd, kmode->hdisplay, + kmode->vdisplay, + DRM_FORMAT_XRGB8888, + DRM_FORMAT_MOD_NONE, 1.f,0.f,
tests/amdgpu/amd_mode_switch.c new file +8
-0+ 0.f, buffer2[j]); + } +force_output_mode (data, output, kmode); +igt_plane_set_fb (data->primary[j], buffer2[j]); +drmModeFreeConnector (conn); + } + + igt_display_commit_atomic(&data->display,
DRM_MODE_ATOMIC_ALLOW_MODESET,tests/amdgpu/amd_mode_switch.c new file +10
-0+ user_data); + +/* First supported again */ +for (j =0 ; j < num_pipes; j++) { + output = data->output[j]; +if (!igt_output_is_connected (output)) +continue ; + + conn = drmModeGetConnector( + data->fd,
output->config.connector->connector_id);tests/amdgpu/amd_mode_switch.c new file +8
-0+ + kmode = &conn->modes[0 ]; +force_output_mode (data, output, kmode); +igt_plane_set_fb (data->primary[j], buffer1[j]); +drmModeFreeConnector (conn); + } + + igt_display_commit_atomic(&data->display,
DRM_MODE_ATOMIC_ALLOW_MODESET,tests/amdgpu/amd_mode_switch.c new file +34
-0+ user_data); + +test_fini (data); + +for (i =0 ; i <= num_pipes; i++) { +igt_remove_fb (data->fd, buffer1[i]); +igt_remove_fb (data->fd, buffer2[i]); + } +} + +IGT_TEST_DESCRIPTION ("Test switching between supported modes" ); +igt_main +{ +data_t data; +int i =0 ; + +igt_skip_on_simulation (); + +memset (&data,0 ,sizeof (data)); + + igt_fixture + { + data.fd =drm_open_driver_master (DRIVER_AMDGPU ); + +kmstest_set_vt_graphics_mode (); + +igt_display_require (&data.display, data.fd); +igt_require (&data.display.is_atomic); +igt_display_require_output (&data.display); + } + +for (i =0 ; i <MAX_PIPES ; i++) { + igt_describe( + "Test between switching highest and lowestsupported mode");
tests/amdgpu/amd_mode_switch.c new file +9
-0+ igt_subtest_f("mode-switch-first-last-pipe-%d", i) +run_mode_switch_first_last (&data, i +1 ); + } + + igt_fixture + { +igt_display_fini (&data.display); + } +}tests/amdgpu/meson.build +1
-1@@ -16,6 +16,7 @@ if libdrm_amdgpu.found() 'amd_mem_leak', 'amd_link_settings', 'amd_vrr_range', + 'amd_mode_switch', ] amdgpu_deps += libdrm_amdgpu endif --2.25.1
Quoted 7 lines · Rodrigo Siqueira Jordao
Hi,
Quoted 1 line · Juha-Pekka Heikkilä
I was wondering how is this different from
kms_plane_lowres? Onkms_plane_lowresis also used crc to check also what's on screen stay good.Afaik, we ignore
kms_plane_lowressince most tests look related to tiling-[x|y], which I think is an Intel modifier (again, maybe I'm wrong). Anyway, I tried to run it on an AMD device, and mostkms_plane_lowressubtest skips.
Quoted 8 lines
Quoted 4 lines
/Juha-Pekka
Mark Yacoub kirjoitti 16.11.2021 klo 23.29:
Quoted 1 line
The test looks pretty generic to me, can we make it a
kms_instead of AMD only?Mark, Juha-Pekka,
Tbh, right now, I prefer to keep this test as AMD-specific because we are trying to fully upstream all of our tests, so we can rely on igt from the upstream. I can create a README file for amdgpu tests and create a TODO section where I can highlight that we can make this test and other generic; how about that?
Hi Siqueira,
I was not objecting of upstreaming AMD-specific tests, I don't have AMD hw at hand hence I could not guess what are corners there might be hit. I was just pointing there's test which seems to do by code and description mostly what is done here, agreed only linear modifier test will run on AMD hw now.
I think would be good idea to put TODO comment in to remind about similarity of these tests, if they're the same test someone can go and start merging them later.
/Juha-Pekka
Quoted 289 lines
Hi Lakshmi,
This test is specific to AMD, but CI is failing. I think it is another false-positive. Here is the patch:
https://patchwork.freedesktop.org/series/96996/
Thanks
SiqueiraQuoted 278 lines
Quoted 278 lines
Quoted 276 lines · Rodrigo Siqueira
From: Aurabindo Pillai <[email protected]>
Switching between different modes could potentially create pstate warnings if clocks are not being set correctly.
The subtest gets the highest and lowest mode supported on the connector and switch between them.
Signed-off-by Rodrigo Siqueira <[email protected]>Signed-off-by Aurabindo Pillai <[email protected]>---
tests/amdgpu/amd_mode_switch.c| 210
+++++++++++++++++++++++++++++++++
tests/amdgpu/meson.build | 1 +2 files changed, 211 insertions(+)create mode 100644
tests/amdgpu/amd_mode_switch.ctests/amdgpu/amd_mode_switch.c new file +4
-0@@ -0,0 +1,210 @@ +/* +* Copyright 2021 Advanced Micro Devices, Inc. +* +* 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 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 COPYRIGHT HOLDER(S) OR AUTHOR(S) 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.
+ */tests/amdgpu/amd_mode_switch.c new file +24
-0+ +#include "igt.h" +#include <xf86drmMode.h> + +#define MAX_PIPES 6 + +/* Common test data. */ +typedef struct data { + igt_display_t display; + igt_plane_t *primary[MAX_PIPES]; + igt_output_t *output[MAX_PIPES]; + int fd; +}data_t ; + +static void test_init(data_t *data) +{ + igt_display_t *display = &data->display; + int i; + + for_each_pipe(display, i) { + igt_output_t *output = &display->outputs[i]; + + data->primary[i] = igt_pipe_get_plane_type( + &data->display.pipes[i],
DRM_PLANE_TYPE_PRIMARY);tests/amdgpu/amd_mode_switch.c new file +14
-0+ + data->output[i] = output; + } + + igt_require(data->output[0]); + igt_display_reset(display); +} + +static void test_fini (data_t *data) +{ + igt_display_t *display = &data->display; + + igt_display_reset(display); + igt_display_commit_atomic(display,
DRM_MODE_ATOMIC_ALLOW_MODESET, 0);tests/amdgpu/amd_mode_switch.c new file +12
-0+} + +/* Forces a mode for a connector. */ +static void force_output_mode (data_t *d,igt_output_t *output, + const drmModeModeInfo *mode) +{ + /* This allows us to create a virtual sink. */ + if (!igt_output_is_connected(output)) { + kmstest_force_edid(d->fd, output->config.connector, + igt_kms_get_4k_edid()); + + kmstest_force_connector(d->fd,
output->config.connector,
+FORCE_CONNECTOR_DIGITAL); + }tests/amdgpu/amd_mode_switch.c new file +18
-0+ + igt_output_override_mode(output, mode); +} + +static void run_mode_switch_first_last (data_t *data,int num_pipes) +{ + igt_output_t *output; + struct igt_fb *buffer1[MAX_PIPES] = { NULL }; + struct igt_fb *buffer2[MAX_PIPES] = { NULL }; + drmModeConnectorPtr conn; + drmModeModeInfoPtr kmode; + void *user_data = NULL; + int i = 0; + int j = 0; + + test_init(data); + + igt_skip_on_f(num_pipes >
igt_display_get_n_pipes(&data->display)||
+num_pipes>data->display.n_outputs, + "ASIC does not have %d outputs/pipes\n",num_pipes);tests/amdgpu/amd_mode_switch.c new file +10
-0+ + /* First supported mode */ + + for (j = 0; j < num_pipes; j++) { + output = data->output[j]; + if (!igt_output_is_connected(output)) + continue; + + conn = drmModeGetConnector( + data->fd,
output->config.connector->connector_id);
+
+ kmode = &conn->modes[0];
+ if (buffer1[j] == NULL) {
+igt_fb_tfb;
+ buffer1[j] = &fb;
+ igt_create_color_fb(data->fd,kmode->hdisplay, +kmode->vdisplay, +DRM_FORMAT_XRGB8888, +DRM_FORMAT_MOD_NONE, 1.f, 0.f,
+ 0.f, buffer1[j]); + }
+igt_output_set_pipe(output, j);
+force_output_mode(data, output, kmode);
+igt_plane_set_fb(data->primary[j], buffer1[j]); + drmModeFreeConnector(conn);
+ }
+
+ igt_display_commit_atomic(&data->display,DRM_MODE_ATOMIC_ALLOW_MODESET,
+user_data);tests/amdgpu/amd_mode_switch.c new file +10
-0+ + /* Last supported mode */ + + for (j = 0; j < num_pipes; j++) { + output = data->output[j]; + if (!igt_output_is_connected(output)) + continue; + + conn = drmModeGetConnector( + data->fd,
output->config.connector->connector_id);
+
+ kmode = &conn->modes[conn->count_modes - 1]; + if (buffer2[j] == NULL) {
+igt_fb_tfb;
+ buffer2[j] = &fb;
+ igt_create_color_fb(data->fd,kmode->hdisplay, +kmode->vdisplay, +DRM_FORMAT_XRGB8888, +DRM_FORMAT_MOD_NONE, 1.f, 0.f,
+ 0.f, buffer2[j]); + }
+force_output_mode(data, output, kmode);
+igt_plane_set_fb(data->primary[j], buffer2[j]); + drmModeFreeConnector(conn);
+ }
+
+ igt_display_commit_atomic(&data->display,DRM_MODE_ATOMIC_ALLOW_MODESET,
+user_data);tests/amdgpu/amd_mode_switch.c new file +9
-0+ + /* First supported again */ + for (j = 0; j < num_pipes; j++) { + output = data->output[j]; + if (!igt_output_is_connected(output)) + continue; + + conn = drmModeGetConnector( + data->fd,
output->config.connector->connector_id);tests/amdgpu/amd_mode_switch.c new file +8
-0+ + kmode = &conn->modes[0]; + force_output_mode(data, output, kmode); + igt_plane_set_fb(data->primary[j], buffer1[j]); + drmModeFreeConnector(conn); + } + + igt_display_commit_atomic(&data->display,
DRM_MODE_ATOMIC_ALLOW_MODESET,
+user_data);tests/amdgpu/amd_mode_switch.c new file +33
-0+ + test_fini(data); + + for (i = 0; i <= num_pipes; i++) { + igt_remove_fb(data->fd, buffer1[i]); + igt_remove_fb(data->fd, buffer2[i]); + } +} + +IGT_TEST_DESCRIPTION ("Test switching between supported modes" ); +igt_main +{ + data_t data; + int i = 0; + + igt_skip_on_simulation(); + + memset(&data, 0, sizeof(data)); + + igt_fixture + { + data.fd = drm_open_driver_master(DRIVER_AMDGPU); + + kmstest_set_vt_graphics_mode(); + + igt_display_require(&data.display, data.fd); + igt_require(&data.display.is_atomic); + igt_display_require_output(&data.display); + } + + for (i = 0; i < MAX_PIPES; i++) { + igt_describe( + "Test between switching highest and lowestsupported mode");
+igt_subtest_f("mode-switch-first-last-pipe-%d", i)+run_mode_switch_first_last(&data, i + 1); + }tests/amdgpu/amd_mode_switch.c new file +6
-0+ + igt_fixture + { + igt_display_fini(&data.display); + } +}tests/amdgpu/meson.build +1
-0@@ -16,6 +16,7 @@ if libdrm_amdgpu.found() 'amd_mem_leak', 'amd_link_settings', 'amd_vrr_range', + 'amd_mode_switch',]
amdgpu_deps+=libdrm_amdgpu
endifSignature · 1 line
2.25.1
Quoted 15 lines · Juha-Pekka Heikkila
Quoted 14 lines · Rodrigo Siqueira Jordao
Hi,
Quoted 1 line · Juha-Pekka Heikkilä
I was wondering how is this different from
kms_plane_lowres? Onkms_plane_lowresis also used crc to check also what's on screen stay good.Afaik, we ignore
kms_plane_lowressince most tests look related to tiling-[x|y], which I think is an Intel modifier (again, maybe I'm wrong). Anyway, I tried to run it on an AMD device, and mostkms_plane_lowressubtest skips.Quoted 4 lines
/Juha-Pekka
Mark Yacoub kirjoitti 16.11.2021 klo 23.29:
Quoted 1 line
The test looks pretty generic to me, can we make it a
kms_instead of AMD only?Mark, Juha-Pekka,
Quoted 7 lines
Quoted 1 line
Tbh, right now, I prefer to keep this test as AMD-specific because we are trying to fully upstream all of our tests, so we can rely on igt from the upstream. I can create a README file for amdgpu tests and create a TODO section where I can highlight that we can make this test and other generic; how about that?
Hi Siqueira,
I was not objecting of upstreaming AMD-specific tests, I don't have AMD hw at hand hence I could not guess what are corners there might be hit. I was just pointing there's test which seems to do by code and description mostly what is done here, agreed only linear modifier test will run on AMD hw now.
I think would be good idea to put TODO comment in to remind about similarity of these tests, if they're the same test someone can go and start merging them later.
Thanks Mark/Juha-Pekka/Lakshmi
I will create a README and a TODO file under amdgpu folder to keep track of these suggestions.
Thanks again
Siqueira
Quoted 293 lines
/Juha-Pekka
Quoted 290 lines
Hi Lakshmi,
This test is specific to AMD, but CI is failing. I think it is another false-positive. Here is the patch:
https://patchwork.freedesktop.org/series/96996/
Thanks
SiqueiraQuoted 278 lines
Quoted 278 lines
Quoted 276 lines · Rodrigo Siqueira
From: Aurabindo Pillai <[email protected]>
Switching between different modes could potentially create pstate warnings if clocks are not being set correctly.
The subtest gets the highest and lowest mode supported on the connector and switch between them.
Signed-off-by Rodrigo Siqueira <[email protected]>Signed-off-by Aurabindo Pillai <[email protected]>---
tests/amdgpu/amd_mode_switch.c| 210
+++++++++++++++++++++++++++++++++
tests/amdgpu/meson.build | 1 +2 files changed, 211 insertions(+)create mode 100644
tests/amdgpu/amd_mode_switch.ctests/amdgpu/amd_mode_switch.c new file +4
-0@@ -0,0 +1,210 @@ +/* +* Copyright 2021 Advanced Micro Devices, Inc. +* +* 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 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 COPYRIGHT HOLDER(S) OR AUTHOR(S) 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.
+ */tests/amdgpu/amd_mode_switch.c new file +24
-0+ +#include "igt.h" +#include <xf86drmMode.h> + +#define MAX_PIPES 6 + +/* Common test data. */ +typedef struct data { + igt_display_t display; + igt_plane_t *primary[MAX_PIPES]; + igt_output_t *output[MAX_PIPES]; + int fd; +}data_t ; + +static void test_init(data_t *data) +{ + igt_display_t *display = &data->display; + int i; + + for_each_pipe(display, i) { + igt_output_t *output = &display->outputs[i]; + + data->primary[i] = igt_pipe_get_plane_type( + &data->display.pipes[i],
DRM_PLANE_TYPE_PRIMARY);tests/amdgpu/amd_mode_switch.c new file +14
-0+ + data->output[i] = output; + } + + igt_require(data->output[0]); + igt_display_reset(display); +} + +static void test_fini (data_t *data) +{ + igt_display_t *display = &data->display; + + igt_display_reset(display); + igt_display_commit_atomic(display,
DRM_MODE_ATOMIC_ALLOW_MODESET, 0);tests/amdgpu/amd_mode_switch.c new file +12
-0+} + +/* Forces a mode for a connector. */ +static void force_output_mode (data_t *d,igt_output_t *output, + const drmModeModeInfo *mode) +{ + /* This allows us to create a virtual sink. */ + if (!igt_output_is_connected(output)) { + kmstest_force_edid(d->fd, output->config.connector, + igt_kms_get_4k_edid()); + + kmstest_force_connector(d->fd,
output->config.connector,
+FORCE_CONNECTOR_DIGITAL); + }tests/amdgpu/amd_mode_switch.c new file +18
-0+ + igt_output_override_mode(output, mode); +} + +static void run_mode_switch_first_last (data_t *data,int num_pipes) +{ + igt_output_t *output; + struct igt_fb *buffer1[MAX_PIPES] = { NULL }; + struct igt_fb *buffer2[MAX_PIPES] = { NULL }; + drmModeConnectorPtr conn; + drmModeModeInfoPtr kmode; + void *user_data = NULL; + int i = 0; + int j = 0; + + test_init(data); + + igt_skip_on_f(num_pipes >
igt_display_get_n_pipes(&data->display)||
+num_pipes>data->display.n_outputs, + "ASIC does not have %d outputs/pipes\n",num_pipes);tests/amdgpu/amd_mode_switch.c new file +10
-0+ + /* First supported mode */ + + for (j = 0; j < num_pipes; j++) { + output = data->output[j]; + if (!igt_output_is_connected(output)) + continue; + + conn = drmModeGetConnector( + data->fd,
output->config.connector->connector_id);
+
+ kmode = &conn->modes[0];
+ if (buffer1[j] == NULL) {
+igt_fb_tfb;
+ buffer1[j] = &fb;
+ igt_create_color_fb(data->fd,kmode->hdisplay, +kmode->vdisplay, +DRM_FORMAT_XRGB8888, +DRM_FORMAT_MOD_NONE, 1.f, 0.f,
+ 0.f, buffer1[j]); + }
+igt_output_set_pipe(output, j);
+force_output_mode(data, output, kmode);
+igt_plane_set_fb(data->primary[j], buffer1[j]); + drmModeFreeConnector(conn);
+ }
+
+ igt_display_commit_atomic(&data->display,DRM_MODE_ATOMIC_ALLOW_MODESET,
+user_data);tests/amdgpu/amd_mode_switch.c new file +10
-0+ + /* Last supported mode */ + + for (j = 0; j < num_pipes; j++) { + output = data->output[j]; + if (!igt_output_is_connected(output)) + continue; + + conn = drmModeGetConnector( + data->fd,
output->config.connector->connector_id);
+
+ kmode = &conn->modes[conn->count_modes - 1]; + if (buffer2[j] == NULL) {
+igt_fb_tfb;
+ buffer2[j] = &fb;
+ igt_create_color_fb(data->fd,kmode->hdisplay, +kmode->vdisplay, +DRM_FORMAT_XRGB8888, +DRM_FORMAT_MOD_NONE, 1.f, 0.f,
+ 0.f, buffer2[j]); + }
+force_output_mode(data, output, kmode);
+igt_plane_set_fb(data->primary[j], buffer2[j]); + drmModeFreeConnector(conn);
+ }
+
+ igt_display_commit_atomic(&data->display,DRM_MODE_ATOMIC_ALLOW_MODESET,
+user_data);tests/amdgpu/amd_mode_switch.c new file +9
-0+ + /* First supported again */ + for (j = 0; j < num_pipes; j++) { + output = data->output[j]; + if (!igt_output_is_connected(output)) + continue; + + conn = drmModeGetConnector( + data->fd,
output->config.connector->connector_id);tests/amdgpu/amd_mode_switch.c new file +8
-0+ + kmode = &conn->modes[0]; + force_output_mode(data, output, kmode); + igt_plane_set_fb(data->primary[j], buffer1[j]); + drmModeFreeConnector(conn); + } + + igt_display_commit_atomic(&data->display,
DRM_MODE_ATOMIC_ALLOW_MODESET,
+user_data);tests/amdgpu/amd_mode_switch.c new file +33
-0+ + test_fini(data); + + for (i = 0; i <= num_pipes; i++) { + igt_remove_fb(data->fd, buffer1[i]); + igt_remove_fb(data->fd, buffer2[i]); + } +} + +IGT_TEST_DESCRIPTION ("Test switching between supported modes" ); +igt_main +{ + data_t data; + int i = 0; + + igt_skip_on_simulation(); + + memset(&data, 0, sizeof(data)); + + igt_fixture + { + data.fd = drm_open_driver_master(DRIVER_AMDGPU); + + kmstest_set_vt_graphics_mode(); + + igt_display_require(&data.display, data.fd); + igt_require(&data.display.is_atomic); + igt_display_require_output(&data.display); + } + + for (i = 0; i < MAX_PIPES; i++) { + igt_describe( + "Test between switching highest and lowestsupported mode");
+igt_subtest_f("mode-switch-first-last-pipe-%d", i)+run_mode_switch_first_last(&data, i + 1); + }tests/amdgpu/amd_mode_switch.c new file +6
-0+ + igt_fixture + { + igt_display_fini(&data.display); + } +}tests/amdgpu/meson.build +1
-0@@ -16,6 +16,7 @@ if libdrm_amdgpu.found() 'amd_mem_leak', 'amd_link_settings', 'amd_vrr_range', + 'amd_mode_switch',]
amdgpu_deps+=libdrm_amdgpu
endifSignature · 1 line
2.25.1
Re-reported. Here is the bug for the regression
https://gitlab.freedesktop.org/drm/intel/-/issues/4564
igt@gem_exec_suspend@basic-s3 - incomplete - INFO: task jbd2/nvme0n1p2-:161 blocked for more than 30 seconds.
Lakshmi.
-----Original Message-----
From: Rodrigo Siqueira Jordao <[email protected]>
Sent: Friday, November 19, 2021 6:48 AM
To: Juha-Pekka Heikkilä <[email protected]>; Mark Yacoub <[email protected]>; Rodrigo Siqueira <[email protected]>; Vudum, Lakshminarayana <[email protected]>
Cc: [email protected]; [email protected]; Wentland, Harry <[email protected]>
Subject: Re: [igt-dev] [PATCH i-g-t] amdgpu/amd_mode_switch: Introduce mode switch test
Hi,
Quoted 2 lines · Juha-Pekka Heikkilä
I was wondering how is this different from
kms_plane_lowres? Onkms_plane_lowresis also used crc to check also what's on screen stay good.
Afaik, we ignore kms_plane_lowres since most tests look related to tiling-[x|y], which I think is an Intel modifier (again, maybe I'm wrong). Anyway, I tried to run it on an AMD device, and most kms_plane_lowres subtest skips.
Quoted 5 lines
/Juha-Pekka
Mark Yacoub kirjoitti 16.11.2021 klo 23.29:
Quoted 2 lines
The test looks pretty generic to me, can we make it a
kms_instead of AMD only?
Mark, Juha-Pekka,
Tbh, right now, I prefer to keep this test as AMD-specific because we are trying to fully upstream all of our tests, so we can rely on igt from the upstream. I can create a README file for amdgpu tests and create a TODO section where I can highlight that we can make this test and other generic; how about that?
Hi Lakshmi,
This test is specific to AMD, but CI is failing. I think it is another false-positive. Here is the patch:
https://patchwork.freedesktop.org/series/96996/
Thanks
Siqueira
Quoted 277 lines
Quoted 277 lines
Quoted 275 lines · Rodrigo Siqueira
From: Aurabindo Pillai <[email protected]>
Switching between different modes could potentially create pstate warnings if clocks are not being set correctly.
The subtest gets the highest and lowest mode supported on the connector and switch between them.
Signed-off-by Rodrigo Siqueira <[email protected]>Signed-off-by Aurabindo Pillai <[email protected]>---
tests/amdgpu/amd_mode_switch.c| 210
+++++++++++++++++++++++++++++++++
tests/amdgpu/meson.build | 1 +2 files changed, 211 insertions(+)create mode 100644
tests/amdgpu/amd_mode_switch.c(quoted diff) +0
-0
b/tests/amdgpu/amd_mode_switch.cnew file mode 100644 index 00000000..270b1b9ftests/amdgpu/amd_mode_switch.c new file +4
-0@@ -0,0 +1,210 @@ +/* +* Copyright 2021 Advanced Micro Devices, Inc. +* +* 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 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 COPYRIGHT HOLDER(S) OR AUTHOR(S) 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.
+ */tests/amdgpu/amd_mode_switch.c new file +23
-0+ +#include "igt.h" +#include <xf86drmMode.h> + +#define MAX_PIPES 6 + +/* Common test data. */ +typedef struct data { + igt_display_t display; + igt_plane_t *primary[MAX_PIPES]; + igt_output_t *output[MAX_PIPES]; + int fd; +}data_t ; + +static void test_init(data_t *data) { + igt_display_t *display = &data->display; + int i; + + for_each_pipe(display, i) { + igt_output_t *output = &display->outputs[i]; + + data->primary[i] = igt_pipe_get_plane_type( + &data->display.pipes[i],
DRM_PLANE_TYPE_PRIMARY);tests/amdgpu/amd_mode_switch.c new file +13
-0+ + data->output[i] = output; + } + + igt_require(data->output[0]); + igt_display_reset(display); +} + +static void test_fini (data_t *data) { + igt_display_t *display = &data->display; + + igt_display_reset(display); + igt_display_commit_atomic(display,
DRM_MODE_ATOMIC_ALLOW_MODESET, 0);tests/amdgpu/amd_mode_switch.c new file +31
-0+} + +/* Forces a mode for a connector. */ static void +force_output_mode (data_t *d,igt_output_t *output, + const drmModeModeInfo *mode) { + /* This allows us to create a virtual sink. */ + if (!igt_output_is_connected(output)) { + kmstest_force_edid(d->fd, output->config.connector, + igt_kms_get_4k_edid()); + + kmstest_force_connector(d->fd, +output->config.connector, + FORCE_CONNECTOR_DIGITAL); + } + + igt_output_override_mode(output, mode); } + +static void run_mode_switch_first_last (data_t *data,int num_pipes) +{ + igt_output_t *output; + struct igt_fb *buffer1[MAX_PIPES] = { NULL }; + struct igt_fb *buffer2[MAX_PIPES] = { NULL }; + drmModeConnectorPtr conn; + drmModeModeInfoPtr kmode; + void *user_data = NULL; + int i = 0; + int j = 0; + + test_init(data); + + igt_skip_on_f(num_pipes >
igt_display_get_n_pipes(&data->display)||
+num_pipes>data->display.n_outputs, + "ASIC does not have %d outputs/pipes\n",num_pipes);tests/amdgpu/amd_mode_switch.c new file +10
-0+ + /* First supported mode */ + + for (j = 0; j < num_pipes; j++) { + output = data->output[j]; + if (!igt_output_is_connected(output)) + continue; + + conn = drmModeGetConnector( + data->fd,
output->config.connector->connector_id);tests/amdgpu/amd_mode_switch.c new file +11
-0+ + kmode = &conn->modes[0]; + if (buffer1[j] == NULL) { + igt_fb_t fb; + buffer1[j] = &fb; + igt_create_color_fb(data->fd, +kmode->hdisplay, + kmode->vdisplay, + DRM_FORMAT_XRGB8888, + DRM_FORMAT_MOD_NONE, +1.f,0.f,
+ 0.f, buffer1[j]); + }
+igt_output_set_pipe(output, j);
+force_output_mode(data, output, kmode); +igt_plane_set_fb(data->primary[j], buffer1[j]); + drmModeFreeConnector(conn);
+ }
+
+ igt_display_commit_atomic(&data->display,DRM_MODE_ATOMIC_ALLOW_MODESET,
+user_data);tests/amdgpu/amd_mode_switch.c new file +10
-0+ + /* Last supported mode */ + + for (j = 0; j < num_pipes; j++) { + output = data->output[j]; + if (!igt_output_is_connected(output)) + continue; + + conn = drmModeGetConnector( + data->fd,
output->config.connector->connector_id);tests/amdgpu/amd_mode_switch.c new file +11
-0+ + kmode = &conn->modes[conn->count_modes - 1]; + if (buffer2[j] == NULL) { + igt_fb_t fb; + buffer2[j] = &fb; + igt_create_color_fb(data->fd, +kmode->hdisplay, + kmode->vdisplay, + DRM_FORMAT_XRGB8888, + DRM_FORMAT_MOD_NONE, +1.f,0.f,
+ 0.f, buffer2[j]); + }
+force_output_mode(data, output, kmode); +igt_plane_set_fb(data->primary[j], buffer2[j]); + drmModeFreeConnector(conn);
+ }
+
+ igt_display_commit_atomic(&data->display,DRM_MODE_ATOMIC_ALLOW_MODESET,
+user_data);tests/amdgpu/amd_mode_switch.c new file +9
-0+ + /* First supported again */ + for (j = 0; j < num_pipes; j++) { + output = data->output[j]; + if (!igt_output_is_connected(output)) + continue; + + conn = drmModeGetConnector( + data->fd,
output->config.connector->connector_id);tests/amdgpu/amd_mode_switch.c new file +8
-0+ + kmode = &conn->modes[0]; + force_output_mode(data, output, kmode); + igt_plane_set_fb(data->primary[j], buffer1[j]); + drmModeFreeConnector(conn); + } + + igt_display_commit_atomic(&data->display,
DRM_MODE_ATOMIC_ALLOW_MODESET,
+user_data);tests/amdgpu/amd_mode_switch.c new file +32
-0+ + test_fini(data); + + for (i = 0; i <= num_pipes; i++) { + igt_remove_fb(data->fd, buffer1[i]); + igt_remove_fb(data->fd, buffer2[i]); + } +} + +IGT_TEST_DESCRIPTION ("Test switching between supported modes" ); +igt_main { + data_t data; + int i = 0; + + igt_skip_on_simulation(); + + memset(&data, 0, sizeof(data)); + + igt_fixture + { + data.fd = drm_open_driver_master(DRIVER_AMDGPU); + + kmstest_set_vt_graphics_mode(); + + igt_display_require(&data.display, data.fd); + igt_require(&data.display.is_atomic); + igt_display_require_output(&data.display); + } + + for (i = 0; i < MAX_PIPES; i++) { + igt_describe( + "Test between switching highest and lowestsupported mode");
+igt_subtest_f("mode-switch-first-last-pipe-%d", i)+run_mode_switch_first_last(&data, i + 1); + }tests/amdgpu/amd_mode_switch.c new file +6
-0+ + igt_fixture + { + igt_display_fini(&data.display); + } +}tests/amdgpu/meson.build +1
-0@@ -16,6 +16,7 @@ if libdrm_amdgpu.found() 'amd_mem_leak', 'amd_link_settings', 'amd_vrr_range', + 'amd_mode_switch',]
amdgpu_deps+=libdrm_amdgpu
endif
--
2.25.1
Patchwork
CI[igt-dev] ✗ Fi.CI.BAT: failure for amdgpu/amd_mode_switch: Introduce mode switch test
In reply to Rodrigo Siqueira== Series Details ==
== Series Details ==
Series: amdgpu/amd_mode_switch: Introduce mode switch test
URL : https://patchwork.freedesktop.org/series/96996/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_10888 -> IGTPW_6408
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with IGTPW_6408 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in IGTPW_6408, 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_6408/index.html
Participating hosts (39 -> 33)
------------------------------
Additional (1): fi-kbl-soraka
Missing (7): fi-ilk-m540 bat-dg1-6 fi-tgl-u2 fi-hsw-4200u fi-icl-u2 fi-bsw-cyan fi-ctg-p8600
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in IGTPW_6408:
### IGT changes ###
#### Possible regressions ####
* igt@gem_exec_suspend@basic-s3:
- fi-skl-6600u: [PASS][1] -> [FAIL][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10888/fi-skl-6600u/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/fi-skl-6600u/igt@[email protected]
Known issues
------------
Here are the changes found in IGTPW_6408 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_exec_fence@basic-busy@bcs0:
- fi-kbl-soraka: NOTRUN -> [SKIP][3] ([fdo#109271]) +8 similar issues
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/fi-kbl-soraka/igt@gem_exec_fence@[email protected]
* igt@gem_exec_suspend@basic-s0:
- fi-tgl-1115g4: [PASS][4] -> [FAIL][5] ([i915#1888])
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10888/fi-tgl-1115g4/igt@[email protected]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/fi-tgl-1115g4/igt@[email protected]
* igt@gem_huc_copy@huc-copy:
- fi-kbl-soraka: NOTRUN -> [SKIP][6] ([fdo#109271] / [i915#2190])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/fi-kbl-soraka/igt@[email protected]
* igt@i915_selftest@live@gt_pm:
- fi-kbl-soraka: NOTRUN -> [DMESG-FAIL][7] ([i915#1886] / [i915#2291])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/fi-kbl-soraka/igt@i915_selftest@live@gt_pm.html
* igt@kms_chamelium@common-hpd-after-suspend:
- fi-kbl-soraka: NOTRUN -> [SKIP][8] ([fdo#109271] / [fdo#111827]) +8 similar issues
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/fi-kbl-soraka/igt@[email protected]
* igt@kms_pipe_crc_basic@compare-crc-sanitycheck-pipe-d:
- fi-kbl-soraka: NOTRUN -> [SKIP][9] ([fdo#109271] / [i915#533])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/fi-kbl-soraka/igt@[email protected]
* igt@kms_pipe_crc_basic@suspend-read-crc-pipe-a:
- fi-bdw-5557u: [PASS][10] -> [INCOMPLETE][11] ([i915#146])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10888/fi-bdw-5557u/igt@[email protected]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/fi-bdw-5557u/igt@[email protected]
* igt@runner@aborted:
- fi-skl-6600u: NOTRUN -> [FAIL][12] ([i915#3363] / [i915#4312])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/fi-skl-6600u/igt@[email protected]
#### Possible fixes ####
* igt@i915_selftest@live@hangcheck:
- {fi-hsw-gt1}: [DMESG-WARN][13] ([i915#3303]) -> [PASS][14]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10888/fi-hsw-gt1/igt@i915_selftest@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/fi-hsw-gt1/igt@i915_selftest@[email protected]
* igt@kms_frontbuffer_tracking@basic:
- fi-cml-u2: [DMESG-WARN][15] ([i915#4269]) -> [PASS][16]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10888/fi-cml-u2/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/fi-cml-u2/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#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[i915#146]: https://gitlab.freedesktop.org/drm/intel/issues/146
[i915#1886]: https://gitlab.freedesktop.org/drm/intel/issues/1886
[i915#1888]: https://gitlab.freedesktop.org/drm/intel/issues/1888
[i915#2190]: https://gitlab.freedesktop.org/drm/intel/issues/2190
[i915#2291]: https://gitlab.freedesktop.org/drm/intel/issues/2291
[i915#3303]: https://gitlab.freedesktop.org/drm/intel/issues/3303
[i915#3363]: https://gitlab.freedesktop.org/drm/intel/issues/3363
[i915#4269]: https://gitlab.freedesktop.org/drm/intel/issues/4269
[i915#4312]: https://gitlab.freedesktop.org/drm/intel/issues/4312
[i915#533]: https://gitlab.freedesktop.org/drm/intel/issues/533
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_6281 -> IGTPW_6408
CI-20190529: 20190529
CI_DRM_10888: d4a23275467825243fea6f50938fc89711b9a53c @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_6408: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/index.html
IGT_6281: 551f33d68fc780e3d264abd69ec59fe1af1bb65b @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
== Testlist changes ==
+igt@amdgpu/amd_mode_switch@mode-switch-first-last-pipe-0 +igt@amdgpu/amd_mode_switch@mode-switch-first-last-pipe-1 +igt@amdgpu/amd_mode_switch@mode-switch-first-last-pipe-2 +igt@amdgpu/amd_mode_switch@mode-switch-first-last-pipe-3 +igt@amdgpu/amd_mode_switch@mode-switch-first-last-pipe-4 +igt@amdgpu/amd_mode_switch@mode-switch-first-last-pipe-5
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/index.html
Patchwork
CI[igt-dev] ✓ Fi.CI.BAT: success for amdgpu/amd_mode_switch: Introduce mode switch test
In reply to Rodrigo Siqueira== Series Details ==
== Series Details ==
Series: amdgpu/amd_mode_switch: Introduce mode switch test
URL : https://patchwork.freedesktop.org/series/96996/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_10888 -> IGTPW_6408
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/index.html
Participating hosts (39 -> 33)
------------------------------
Additional (1): fi-kbl-soraka
Missing (7): fi-ilk-m540 bat-dg1-6 fi-tgl-u2 fi-hsw-4200u fi-icl-u2 fi-bsw-cyan fi-ctg-p8600
Known issues
------------
Here are the changes found in IGTPW_6408 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_exec_fence@basic-busy@bcs0:
- fi-kbl-soraka: NOTRUN -> [SKIP][1] ([fdo#109271]) +8 similar issues
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/fi-kbl-soraka/igt@gem_exec_fence@[email protected]
* igt@gem_exec_suspend@basic-s0:
- fi-tgl-1115g4: [PASS][2] -> [FAIL][3] ([i915#1888])
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10888/fi-tgl-1115g4/igt@[email protected]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/fi-tgl-1115g4/igt@[email protected]
* igt@gem_exec_suspend@basic-s3:
- fi-skl-6600u: [PASS][4] -> [FAIL][5] ([i915#4564])
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10888/fi-skl-6600u/igt@[email protected]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/fi-skl-6600u/igt@[email protected]
* igt@gem_huc_copy@huc-copy:
- fi-kbl-soraka: NOTRUN -> [SKIP][6] ([fdo#109271] / [i915#2190])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/fi-kbl-soraka/igt@[email protected]
* igt@i915_selftest@live@gt_pm:
- fi-kbl-soraka: NOTRUN -> [DMESG-FAIL][7] ([i915#1886] / [i915#2291])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/fi-kbl-soraka/igt@i915_selftest@live@gt_pm.html
* igt@kms_chamelium@common-hpd-after-suspend:
- fi-kbl-soraka: NOTRUN -> [SKIP][8] ([fdo#109271] / [fdo#111827]) +8 similar issues
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/fi-kbl-soraka/igt@[email protected]
* igt@kms_pipe_crc_basic@compare-crc-sanitycheck-pipe-d:
- fi-kbl-soraka: NOTRUN -> [SKIP][9] ([fdo#109271] / [i915#533])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/fi-kbl-soraka/igt@[email protected]
* igt@kms_pipe_crc_basic@suspend-read-crc-pipe-a:
- fi-bdw-5557u: [PASS][10] -> [INCOMPLETE][11] ([i915#146])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10888/fi-bdw-5557u/igt@[email protected]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/fi-bdw-5557u/igt@[email protected]
* igt@runner@aborted:
- fi-skl-6600u: NOTRUN -> [FAIL][12] ([i915#3363] / [i915#4312])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/fi-skl-6600u/igt@[email protected]
#### Possible fixes ####
* igt@i915_selftest@live@hangcheck:
- {fi-hsw-gt1}: [DMESG-WARN][13] ([i915#3303]) -> [PASS][14]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10888/fi-hsw-gt1/igt@i915_selftest@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/fi-hsw-gt1/igt@i915_selftest@[email protected]
* igt@kms_frontbuffer_tracking@basic:
- fi-cml-u2: [DMESG-WARN][15] ([i915#4269]) -> [PASS][16]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10888/fi-cml-u2/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/fi-cml-u2/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#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[i915#146]: https://gitlab.freedesktop.org/drm/intel/issues/146
[i915#1886]: https://gitlab.freedesktop.org/drm/intel/issues/1886
[i915#1888]: https://gitlab.freedesktop.org/drm/intel/issues/1888
[i915#2190]: https://gitlab.freedesktop.org/drm/intel/issues/2190
[i915#2291]: https://gitlab.freedesktop.org/drm/intel/issues/2291
[i915#3303]: https://gitlab.freedesktop.org/drm/intel/issues/3303
[i915#3363]: https://gitlab.freedesktop.org/drm/intel/issues/3363
[i915#4269]: https://gitlab.freedesktop.org/drm/intel/issues/4269
[i915#4312]: https://gitlab.freedesktop.org/drm/intel/issues/4312
[i915#4564]: https://gitlab.freedesktop.org/drm/intel/issues/4564
[i915#533]: https://gitlab.freedesktop.org/drm/intel/issues/533
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_6281 -> IGTPW_6408
CI-20190529: 20190529
CI_DRM_10888: d4a23275467825243fea6f50938fc89711b9a53c @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_6408: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/index.html
IGT_6281: 551f33d68fc780e3d264abd69ec59fe1af1bb65b @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
== Testlist changes ==
+igt@amdgpu/amd_mode_switch@mode-switch-first-last-pipe-0 +igt@amdgpu/amd_mode_switch@mode-switch-first-last-pipe-1 +igt@amdgpu/amd_mode_switch@mode-switch-first-last-pipe-2 +igt@amdgpu/amd_mode_switch@mode-switch-first-last-pipe-3 +igt@amdgpu/amd_mode_switch@mode-switch-first-last-pipe-4 +igt@amdgpu/amd_mode_switch@mode-switch-first-last-pipe-5
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/index.html
Patchwork
CI[igt-dev] ✓ Fi.CI.BAT: success for amdgpu/amd_mode_switch: Introduce mode switch test
In reply to Rodrigo Siqueira== Series Details ==
== Series Details ==
Series: amdgpu/amd_mode_switch: Introduce mode switch test
URL : https://patchwork.freedesktop.org/series/96996/
State : success
== Summary ==
CI Bug Log - changes from IGTPW_6408 -> IGTPW_6408
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/index.html
Participating hosts (33 -> 33)
------------------------------
No changes in participating hosts
Changes
-------
No changes found
Build changes
-------------
No differences in builds
CI_DRM_10888: d4a23275467825243fea6f50938fc89711b9a53c @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_6408: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/index.html
== Testlist changes ==
+igt@amdgpu/amd_mode_switch@mode-switch-first-last-pipe-0 +igt@amdgpu/amd_mode_switch@mode-switch-first-last-pipe-1 +igt@amdgpu/amd_mode_switch@mode-switch-first-last-pipe-2 +igt@amdgpu/amd_mode_switch@mode-switch-first-last-pipe-3 +igt@amdgpu/amd_mode_switch@mode-switch-first-last-pipe-4 +igt@amdgpu/amd_mode_switch@mode-switch-first-last-pipe-5
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip//index.html
Patchwork
CI[igt-dev] ✗ Fi.CI.IGT: failure for amdgpu/amd_mode_switch: Introduce mode switch test
In reply to Rodrigo Siqueira== Series Details ==
== Series Details ==
Series: amdgpu/amd_mode_switch: Introduce mode switch test
URL : https://patchwork.freedesktop.org/series/96996/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_10888_full -> IGTPW_6408_full
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with IGTPW_6408_full absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in IGTPW_6408_full, 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_6408/index.html
Participating hosts (11 -> 7)
------------------------------
Missing (4): pig-skl-6260u pig-kbl-iris shard-rkl pig-glk-j5005
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in IGTPW_6408_full:
### IGT changes ###
#### Possible regressions ####
* igt@kms_plane_cursor@pipe-c-viewport-size-128:
- shard-kbl: [PASS][1] -> [INCOMPLETE][2] +1 similar issue
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10888/shard-kbl6/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-kbl7/igt@[email protected]
Known issues
------------
Here are the changes found in IGTPW_6408_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_create@create-massive:
- shard-kbl: NOTRUN -> [DMESG-WARN][3] ([i915#3002])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-kbl2/igt@[email protected]
- shard-apl: NOTRUN -> [DMESG-WARN][4] ([i915#3002])
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-apl2/igt@[email protected]
* igt@gem_ctx_persistence@engines-hostile@vcs0:
- shard-apl: [PASS][5] -> [FAIL][6] ([i915#2410])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10888/shard-apl1/igt@gem_ctx_persistence@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-apl7/igt@gem_ctx_persistence@[email protected]
* igt@gem_ctx_persistence@engines-mixed:
- shard-snb: NOTRUN -> [SKIP][7] ([fdo#109271] / [i915#1099])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-snb7/igt@[email protected]
* igt@gem_exec_fair@basic-none-rrul@rcs0:
- shard-iclb: [PASS][8] -> [FAIL][9] ([i915#2842])
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10888/shard-iclb7/igt@gem_exec_fair@[email protected]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-iclb1/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-none-solo@rcs0:
- shard-kbl: NOTRUN -> [FAIL][10] ([i915#2842])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-kbl6/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-none-vip@rcs0:
- shard-kbl: [PASS][11] -> [FAIL][12] ([i915#2842])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10888/shard-kbl7/igt@gem_exec_fair@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-kbl1/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-none@vcs0:
- shard-apl: [PASS][13] -> [FAIL][14] ([i915#2842])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10888/shard-apl8/igt@gem_exec_fair@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-apl7/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace-share@rcs0:
- shard-tglb: [PASS][15] -> [FAIL][16] ([i915#2842])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10888/shard-tglb5/igt@gem_exec_fair@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-tglb8/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace@bcs0:
- shard-tglb: NOTRUN -> [FAIL][17] ([i915#2842]) +4 similar issues
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-tglb8/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace@vcs0:
- shard-iclb: NOTRUN -> [FAIL][18] ([i915#2842]) +3 similar issues
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-iclb3/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace@vecs0:
- shard-glk: [PASS][19] -> [FAIL][20] ([i915#2842]) +2 similar issues
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10888/shard-glk9/igt@gem_exec_fair@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-glk3/igt@gem_exec_fair@[email protected]
* igt@gem_media_vme:
- shard-tglb: NOTRUN -> [SKIP][21] ([i915#284])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-tglb1/igt@gem_media_vme.html
* igt@gem_pwrite@basic-exhaustion:
- shard-kbl: NOTRUN -> [WARN][22] ([i915#2658])
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-kbl1/igt@[email protected]
* igt@gem_pxp@dmabuf-shared-protected-dst-is-context-refcounted:
- shard-iclb: NOTRUN -> [SKIP][23] ([i915#4270])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-iclb2/igt@[email protected]
* igt@gem_pxp@verify-pxp-stale-ctx-execution:
- shard-tglb: NOTRUN -> [SKIP][24] ([i915#4270]) +2 similar issues
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-tglb8/igt@[email protected]
* igt@gem_render_copy@y-tiled-to-vebox-y-tiled:
- shard-iclb: NOTRUN -> [SKIP][25] ([i915#768])
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-iclb7/igt@[email protected]
* igt@gem_userptr_blits@dmabuf-sync:
- shard-kbl: NOTRUN -> [SKIP][26] ([fdo#109271] / [i915#3323])
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-kbl6/igt@[email protected]
* igt@gem_userptr_blits@dmabuf-unsync:
- shard-tglb: NOTRUN -> [SKIP][27] ([i915#3297])
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-tglb7/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][28] ([i915#3297])
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-iclb1/igt@[email protected]
* igt@gen9_exec_parse@bb-large:
- shard-tglb: NOTRUN -> [SKIP][29] ([i915#2856]) +1 similar issue
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-tglb7/igt@[email protected]
* igt@i915_pm_dc@dc6-dpms:
- shard-iclb: [PASS][30] -> [FAIL][31] ([i915#454]) +1 similar issue
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10888/shard-iclb7/igt@[email protected]
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-iclb3/igt@[email protected]
* igt@i915_pm_dc@dc9-dpms:
- shard-tglb: NOTRUN -> [SKIP][32] ([i915#4281])
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-tglb5/igt@[email protected]
* igt@i915_pm_rpm@dpms-mode-unset-non-lpsp:
- shard-tglb: NOTRUN -> [SKIP][33] ([fdo#111644] / [i915#1397] / [i915#2411])
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-tglb2/igt@[email protected]
* igt@i915_suspend@forcewake:
- shard-kbl: NOTRUN -> [DMESG-WARN][34] ([i915#180])
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-kbl7/igt@[email protected]
* igt@kms_big_fb@linear-16bpp-rotate-270:
- shard-tglb: NOTRUN -> [SKIP][35] ([fdo#111614]) +4 similar issues
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-tglb8/igt@[email protected]
* igt@kms_big_fb@linear-32bpp-rotate-180:
- shard-glk: [PASS][36] -> [DMESG-WARN][37] ([i915#118]) +2 similar issues
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10888/shard-glk9/igt@[email protected]
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-glk5/igt@[email protected]
* igt@kms_big_fb@x-tiled-8bpp-rotate-270:
- shard-iclb: NOTRUN -> [SKIP][38] ([fdo#110725] / [fdo#111614]) +2 similar issues
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-iclb1/igt@[email protected]
* igt@kms_big_fb@y-tiled-max-hw-stride-64bpp-rotate-0-hflip:
- shard-kbl: NOTRUN -> [SKIP][39] ([fdo#109271] / [i915#3777])
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-kbl6/igt@[email protected]
* igt@kms_big_fb@yf-tiled-8bpp-rotate-180:
- shard-tglb: NOTRUN -> [SKIP][40] ([fdo#111615]) +4 similar issues
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-tglb2/igt@[email protected]
* igt@kms_big_fb@yf-tiled-max-hw-stride-64bpp-rotate-0-hflip:
- shard-iclb: NOTRUN -> [SKIP][41] ([fdo#110723])
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-iclb8/igt@[email protected]
* igt@kms_ccs@pipe-a-crc-sprite-planes-basic-y_tiled_gen12_rc_ccs_cc:
- shard-kbl: NOTRUN -> [SKIP][42] ([fdo#109271] / [i915#3886]) +7 similar issues
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-kbl6/igt@kms_ccs@pipe-a-crc-sprite-planes-basic-y_tiled_gen12_rc_ccs_cc.html
* igt@kms_ccs@pipe-a-missing-ccs-buffer-y_tiled_gen12_mc_ccs:
- shard-iclb: NOTRUN -> [SKIP][43] ([fdo#109278] / [i915#3886]) +3 similar issues
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-iclb7/igt@kms_ccs@pipe-a-missing-ccs-buffer-y_tiled_gen12_mc_ccs.html
* igt@kms_ccs@pipe-b-ccs-on-another-bo-y_tiled_gen12_mc_ccs:
- shard-glk: NOTRUN -> [SKIP][44] ([fdo#109271] / [i915#3886]) +1 similar issue
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-glk3/igt@kms_ccs@pipe-b-ccs-on-another-bo-y_tiled_gen12_mc_ccs.html
* igt@kms_ccs@pipe-b-crc-sprite-planes-basic-y_tiled_gen12_mc_ccs:
- shard-tglb: NOTRUN -> [SKIP][45] ([i915#3689] / [i915#3886]) +6 similar issues
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-tglb2/igt@kms_ccs@pipe-b-crc-sprite-planes-basic-y_tiled_gen12_mc_ccs.html
* igt@kms_ccs@pipe-b-crc-sprite-planes-basic-y_tiled_gen12_rc_ccs_cc:
- shard-apl: NOTRUN -> [SKIP][46] ([fdo#109271] / [i915#3886]) +10 similar issues
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-apl1/igt@kms_ccs@pipe-b-crc-sprite-planes-basic-y_tiled_gen12_rc_ccs_cc.html
* igt@kms_ccs@pipe-c-crc-sprite-planes-basic-yf_tiled_ccs:
- shard-tglb: NOTRUN -> [SKIP][47] ([fdo#111615] / [i915#3689]) +2 similar issues
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-tglb2/igt@kms_ccs@pipe-c-crc-sprite-planes-basic-yf_tiled_ccs.html
* igt@kms_ccs@pipe-d-bad-aux-stride-y_tiled_gen12_mc_ccs:
- shard-tglb: NOTRUN -> [SKIP][48] ([i915#3689]) +5 similar issues
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-tglb1/igt@kms_ccs@pipe-d-bad-aux-stride-y_tiled_gen12_mc_ccs.html
* igt@kms_chamelium@hdmi-audio:
- shard-iclb: NOTRUN -> [SKIP][49] ([fdo#109284] / [fdo#111827]) +6 similar issues
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-iclb8/igt@[email protected]
* igt@kms_chamelium@hdmi-crc-nonplanar-formats:
- shard-glk: NOTRUN -> [SKIP][50] ([fdo#109271] / [fdo#111827]) +6 similar issues
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-glk6/igt@[email protected]
* igt@kms_chamelium@hdmi-edid-change-during-suspend:
- shard-apl: NOTRUN -> [SKIP][51] ([fdo#109271] / [fdo#111827]) +13 similar issues
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-apl7/igt@[email protected]
* igt@kms_chamelium@vga-hpd:
- shard-snb: NOTRUN -> [SKIP][52] ([fdo#109271] / [fdo#111827]) +5 similar issues
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-snb5/igt@[email protected]
* igt@kms_chamelium@vga-hpd-without-ddc:
- shard-kbl: NOTRUN -> [SKIP][53] ([fdo#109271] / [fdo#111827]) +14 similar issues
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-kbl7/igt@[email protected]
* igt@kms_color_chamelium@pipe-b-ctm-0-75:
- shard-tglb: NOTRUN -> [SKIP][54] ([fdo#109284] / [fdo#111827]) +11 similar issues
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-tglb5/igt@[email protected]
* igt@kms_color_chamelium@pipe-d-ctm-green-to-red:
- shard-iclb: NOTRUN -> [SKIP][55] ([fdo#109278] / [fdo#109284] / [fdo#111827])
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-iclb7/igt@[email protected]
* igt@kms_content_protection@content_type_change:
- shard-tglb: NOTRUN -> [SKIP][56] ([fdo#111828]) +1 similar issue
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-tglb2/igt@kms_content_protection@content_type_change.html
* igt@kms_cursor_crc@pipe-a-cursor-512x170-random:
- shard-tglb: NOTRUN -> [SKIP][57] ([fdo#109279] / [i915#3359]) +4 similar issues
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-tglb3/igt@[email protected]
* igt@kms_cursor_crc@pipe-c-cursor-512x170-sliding:
- shard-iclb: NOTRUN -> [SKIP][58] ([fdo#109278] / [fdo#109279]) +2 similar issues
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-iclb8/igt@[email protected]
* igt@kms_cursor_crc@pipe-d-cursor-512x170-rapid-movement:
- shard-tglb: NOTRUN -> [SKIP][59] ([i915#3359]) +11 similar issues
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-tglb1/igt@[email protected]
* igt@kms_cursor_legacy@cursora-vs-flipb-atomic-transitions-varying-size:
- shard-iclb: NOTRUN -> [SKIP][60] ([fdo#109274] / [fdo#109278])
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-iclb7/igt@kms_cursor_legacy@cursora-vs-flipb-atomic-transitions-varying-size.html
* igt@kms_cursor_legacy@flip-vs-cursor-toggle:
- shard-iclb: [PASS][61] -> [FAIL][62] ([i915#2346])
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10888/shard-iclb3/igt@[email protected]
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-iclb7/igt@[email protected]
* igt@kms_cursor_legacy@pipe-d-torture-bo:
- shard-kbl: NOTRUN -> [SKIP][63] ([fdo#109271] / [i915#533]) +2 similar issues
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-kbl7/igt@[email protected]
* igt@kms_flip@2x-absolute-wf_vblank:
- shard-tglb: NOTRUN -> [SKIP][64] ([fdo#111825] / [i915#3966])
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-tglb2/igt@kms_flip@2x-absolute-wf_vblank.html
* igt@kms_flip@2x-flip-vs-wf_vblank-interruptible:
- shard-iclb: NOTRUN -> [SKIP][65] ([fdo#109274]) +4 similar issues
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-iclb3/igt@kms_flip@2x-flip-vs-wf_vblank-interruptible.html
* igt@kms_flip@flip-vs-expired-vblank@c-dp1:
- shard-kbl: [PASS][66] -> [FAIL][67] ([i915#79])
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10888/shard-kbl2/igt@kms_flip@[email protected]
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-kbl7/igt@kms_flip@[email protected]
* igt@kms_flip@flip-vs-suspend@c-dp1:
- shard-kbl: [PASS][68] -> [DMESG-WARN][69] ([i915#180]) +6 similar issues
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10888/shard-kbl4/igt@kms_flip@[email protected]
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-kbl4/igt@kms_flip@[email protected]
* igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytilegen12rcccs:
- shard-apl: NOTRUN -> [SKIP][70] ([fdo#109271] / [i915#2672])
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-apl6/igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytilegen12rcccs.html
* igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-cur-indfb-draw-blt:
- shard-iclb: NOTRUN -> [SKIP][71] ([fdo#109280]) +9 similar issues
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-iclb4/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-suspend:
- shard-tglb: [PASS][72] -> [INCOMPLETE][73] ([i915#2411] / [i915#2828] / [i915#456])
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10888/shard-tglb3/igt@[email protected]
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-tglb7/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbcpsr-1p-offscren-pri-indfb-draw-mmap-cpu:
- shard-glk: NOTRUN -> [SKIP][74] ([fdo#109271]) +47 similar issues
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-glk3/igt@kms_frontbuffer_tracking@fbcpsr-1p-offscren-pri-indfb-draw-mmap-cpu.html
* igt@kms_frontbuffer_tracking@fbcpsr-suspend:
- shard-tglb: NOTRUN -> [INCOMPLETE][75] ([i915#2411] / [i915#456])
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-tglb7/igt@[email protected]
* igt@kms_frontbuffer_tracking@psr-2p-scndscrn-spr-indfb-draw-pwrite:
- shard-tglb: NOTRUN -> [SKIP][76] ([fdo#111825]) +30 similar issues
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-tglb8/igt@kms_frontbuffer_tracking@psr-2p-scndscrn-spr-indfb-draw-pwrite.html
* igt@kms_frontbuffer_tracking@psr-rgb101010-draw-mmap-wc:
- shard-kbl: NOTRUN -> [SKIP][77] ([fdo#109271]) +140 similar issues
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-kbl2/igt@[email protected]
* igt@kms_hdr@bpc-switch-suspend:
- shard-apl: [PASS][78] -> [DMESG-WARN][79] ([i915#180]) +2 similar issues
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10888/shard-apl2/igt@[email protected]
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-apl2/igt@[email protected]
* igt@kms_hdr@static-swap:
- shard-tglb: NOTRUN -> [SKIP][80] ([i915#1187])
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-tglb8/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][81] ([i915#1187])
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-iclb8/igt@[email protected]
* igt@kms_pipe_b_c_ivb@from-pipe-c-to-b-with-3-lanes:
- shard-tglb: NOTRUN -> [SKIP][82] ([fdo#109289])
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-tglb3/igt@[email protected]
* igt@kms_pipe_crc_basic@suspend-read-crc-pipe-d:
- shard-apl: NOTRUN -> [SKIP][83] ([fdo#109271] / [i915#533]) +2 similar issues
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-apl4/igt@[email protected]
- shard-glk: NOTRUN -> [SKIP][84] ([fdo#109271] / [i915#533])
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-glk7/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-a-alpha-transparent-fb:
- shard-kbl: NOTRUN -> [FAIL][85] ([i915#265])
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-kbl2/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-b-constant-alpha-max:
- shard-apl: NOTRUN -> [FAIL][86] ([fdo#108145] / [i915#265])
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-apl8/igt@[email protected]
* igt@kms_plane_cursor@pipe-d-overlay-size-256:
- shard-iclb: NOTRUN -> [SKIP][87] ([fdo#109278]) +18 similar issues
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-iclb6/igt@[email protected]
* igt@kms_plane_lowres@pipe-d-tiling-x:
- shard-tglb: NOTRUN -> [SKIP][88] ([i915#3536])
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-tglb1/igt@[email protected]
* igt@kms_plane_multiple@atomic-pipe-d-tiling-yf:
- shard-tglb: NOTRUN -> [SKIP][89] ([fdo#111615] / [fdo#112054])
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-tglb7/igt@[email protected]
* igt@kms_psr2_sf@primary-plane-update-sf-dmg-area-3:
- shard-snb: NOTRUN -> [SKIP][90] ([fdo#109271]) +85 similar issues
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-snb2/igt@[email protected]
- shard-tglb: NOTRUN -> [SKIP][91] ([i915#2920]) +2 similar issues
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-tglb6/igt@[email protected]
* igt@kms_psr2_sf@primary-plane-update-sf-dmg-area-5:
- shard-kbl: NOTRUN -> [SKIP][92] ([fdo#109271] / [i915#658]) +1 similar issue
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-kbl6/igt@[email protected]
- shard-apl: NOTRUN -> [SKIP][93] ([fdo#109271] / [i915#658]) +2 similar issues
[93]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-apl4/igt@[email protected]
- shard-glk: NOTRUN -> [SKIP][94] ([fdo#109271] / [i915#658]) +1 similar issue
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-glk3/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][95] ([i915#658]) +1 similar issue
[95]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-iclb6/igt@[email protected]
* igt@kms_psr2_su@page_flip:
- shard-tglb: NOTRUN -> [SKIP][96] ([i915#1911])
[96]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-tglb3/igt@kms_psr2_su@page_flip.html
- shard-iclb: NOTRUN -> [SKIP][97] ([fdo#109642] / [fdo#111068] / [i915#658])
[97]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-iclb6/igt@kms_psr2_su@page_flip.html
* igt@kms_psr@psr2_primary_page_flip:
- shard-tglb: NOTRUN -> [FAIL][98] ([i915#132] / [i915#3467])
[98]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-tglb2/igt@kms_psr@psr2_primary_page_flip.html
* igt@kms_vrr@flip-basic:
- shard-tglb: NOTRUN -> [SKIP][99] ([fdo#109502]) +1 similar issue
[99]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-tglb1/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][100] ([fdo#109502]) +1 similar issue
[100]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-iclb7/igt@[email protected]
* igt@kms_writeback@writeback-fb-id:
- shard-tglb: NOTRUN -> [SKIP][101] ([i915#2437])
[101]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-tglb8/igt@[email protected]
* igt@nouveau_crc@pipe-c-source-rg:
- shard-iclb: NOTRUN -> [SKIP][102] ([i915#2530])
[102]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-iclb6/igt@[email protected]
- shard-tglb: NOTRUN -> [SKIP][103] ([i915#2530])
[103]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-tglb7/igt@[email protected]
* igt@prime_nv_api@i915_nv_reimport_twice_check_flink_name:
- shard-apl: NOTRUN -> [SKIP][104] ([fdo#109271]) +120 similar issues
[104]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-apl3/igt@prime_nv_api@i915_nv_reimport_twice_check_flink_name.html
- shard-tglb: NOTRUN -> [SKIP][105] ([fdo#109291]) +2 similar issues
[105]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-tglb5/igt@prime_nv_api@i915_nv_reimport_twice_check_flink_name.html
- shard-iclb: NOTRUN -> [SKIP][106] ([fdo#109291]) +2 similar issues
[106]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-iclb6/igt@prime_nv_api@i915_nv_reimport_twice_check_flink_name.html
* igt@sysfs_clients@fair-3:
- shard-tglb: NOTRUN -> [SKIP][107] ([i915#2994])
[107]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-tglb2/igt@[email protected]
* igt@sysfs_clients@split-50:
- shard-apl: NOTRUN -> [SKIP][108] ([fdo#109271] / [i915#2994]) +2 similar issues
[108]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-apl3/igt@[email protected]
* igt@tools_test@sysfs_l3_parity:
- shard-tglb: NOTRUN -> [SKIP][109] ([fdo#109307])
[109]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-tglb8/igt@tools_test@sysfs_l3_parity.html
#### Possible fixes ####
* igt@gem_exec_fair@basic-none-share@rcs0:
- shard-iclb: [FAIL][110] ([i915#2842]) -> [PASS][111]
[110]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10888/shard-iclb3/igt@gem_exec_fair@[email protected]
[111]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-iclb7/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace-share@rcs0:
- shard-glk: [FAIL][112] ([i915#2842]) -> [PASS][113]
[112]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10888/shard-glk6/igt@gem_exec_fair@[email protected]
[113]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-glk9/igt@gem_exec_fair@[email protected]
* igt@gem_exec_whisper@basic-contexts-forked:
- shard-glk: [DMESG-WARN][114] ([i915#118]) -> [PASS][115] +2 similar issues
[114]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10888/shard-glk2/igt@[email protected]
[115]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-glk1/igt@[email protected]
* igt@i915_suspend@fence-restore-tiled2untiled:
- shard-tglb: [INCOMPLETE][116] ([i915#456] / [i915#750]) -> [PASS][117]
[116]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10888/shard-tglb7/igt@[email protected]
[117]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-tglb8/igt@[email protected]
* igt@i915_suspend@fence-restore-untiled:
- shard-tglb: [INCOMPLETE][118] ([i915#456]) -> [PASS][119]
[118]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10888/shard-tglb7/igt@[email protected]
[119]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-tglb5/igt@[email protected]
* igt@kms_big_fb@yf-tiled-16bpp-rotate-180:
- shard-glk: [FAIL][120] ([i915#3653]) -> [PASS][121]
[120]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10888/shard-glk6/igt@[email protected]
[121]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-glk1/igt@[email protected]
* igt@kms_fbcon_fbt@fbc-suspend:
- shard-apl: [INCOMPLETE][122] ([i915#180] / [i915#1982]) -> [PASS][123]
[122]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10888/shard-apl4/igt@[email protected]
[123]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-apl2/igt@[email protected]
* igt@kms_fbcon_fbt@psr-suspend:
- shard-tglb: [INCOMPLETE][124] ([i915#2411] / [i915#456]) -> [PASS][125]
[124]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10888/shard-tglb7/igt@[email protected]
[125]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-tglb2/igt@[email protected]
* igt@kms_flip@2x-flip-vs-expired-vblank@ab-hdmi-a1-hdmi-a2:
- shard-glk: [FAIL][126] ([i915#2122]) -> [PASS][127]
[126]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10888/shard-glk5/igt@kms_flip@[email protected]
[127]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-glk1/igt@kms_flip@[email protected]
* igt@kms_flip@flip-vs-suspend-interruptible@a-dp1:
- shard-kbl: [DMESG-WARN][128] ([i915#180]) -> [PASS][129] +7 similar issues
[128]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10888/shard-kbl3/igt@kms_flip@[email protected]
[129]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-kbl2/igt@kms_flip@[email protected]
* igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-32bpp-ytile:
- shard-iclb: [SKIP][130] ([i915#3701]) -> [PASS][131]
[130]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10888/shard-iclb2/igt@[email protected]
[131]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/shard-iclb6/igt@[email protected]
* igt@kms_plane@plane-panning-bottom-right-suspend@pipe-a-planes:
- shard-apl: [DMESG-WARN][132] ([i915#180]) -> [PASS][133] +5 similar issues
[132]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10888/shard-apl3/igt@kms_plane@[email protected]
[133]: https://intel-gfx-ci.01.org/tree/d
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/index.html
Patchwork
CI[igt-dev] ✓ Fi.CI.IGT: success for amdgpu/amd_mode_switch: Introduce mode switch test
In reply to Rodrigo Siqueira== Series Details ==
== Series Details ==
Series: amdgpu/amd_mode_switch: Introduce mode switch test
URL : https://patchwork.freedesktop.org/series/96996/
State : success
== Summary ==
CI Bug Log - changes from IGTPW_6408_full -> IGTPW_6408_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/index.html
Participating hosts (7 -> 7)
------------------------------
No changes in participating hosts
Changes
-------
No changes found
Build changes
-------------
No differences in builds
CI_DRM_10888: d4a23275467825243fea6f50938fc89711b9a53c @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_6408: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/index.html
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6408/index.html
Quoted 10 lines · Rodrigo Siqueira
From: Aurabindo Pillai <[email protected]>
Switching between different modes could potentially create pstate warnings if clocks are not being set correctly.
The subtest gets the highest and lowest mode supported on the connector and switch between them.
Signed-off-by Rodrigo Siqueira <[email protected]>Signed-off-by Aurabindo Pillai <[email protected]>
Harry
Quoted 235 lines
--- tests/amdgpu/amd_mode_switch.c | 210 +++++++++++++++++++++++++++++++++ tests/amdgpu/meson.build | 1 + 2 files changed, 211 insertions(+) create mode 100644 tests/amdgpu/amd_mode_switch.ctests/amdgpu/amd_mode_switch.c new file +210
-0@@ -0,0 +1,210 @@ +/* +* Copyright 2021 Advanced Micro Devices, Inc. +* +* 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 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 COPYRIGHT HOLDER(S) OR AUTHOR(S) 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. +*/ + +#include "igt.h" +#include <xf86drmMode.h> + +#define MAX_PIPES 6 + +/* Common test data. */ +typedef struct data { +igt_display_t display; +igt_plane_t *primary[MAX_PIPES ]; +igt_output_t *output[MAX_PIPES ]; +int fd; +}data_t ; + +static void test_init (data_t *data) +{ +igt_display_t *display = &data->display; +int i; + +for_each_pipe (display, i) { +igt_output_t *output = &display->outputs[i]; + + data->primary[i] =igt_pipe_get_plane_type ( + &data->display.pipes[i],DRM_PLANE_TYPE_PRIMARY ); + + data->output[i] = output; + } + +igt_require (data->output[0 ]); +igt_display_reset (display); +} + +static void test_fini (data_t *data) +{ +igt_display_t *display = &data->display; + +igt_display_reset (display); +igt_display_commit_atomic (display,DRM_MODE_ATOMIC_ALLOW_MODESET ,0 ); +} + +/* Forces a mode for a connector. */ +static void force_output_mode (data_t *d,igt_output_t *output, +const drmModeModeInfo *mode) +{ +/* This allows us to create a virtual sink. */ +if (!igt_output_is_connected (output)) { +kmstest_force_edid (d->fd, output->config.connector, +igt_kms_get_4k_edid ()); + +kmstest_force_connector (d->fd, output->config.connector, +FORCE_CONNECTOR_DIGITAL ); + } + +igt_output_override_mode (output, mode); +} + +static void run_mode_switch_first_last (data_t *data,int num_pipes) +{ +igt_output_t *output; +struct igt_fb *buffer1[MAX_PIPES ] = {NULL }; +struct igt_fb *buffer2[MAX_PIPES ] = {NULL }; +drmModeConnectorPtr conn; +drmModeModeInfoPtr kmode; +void *user_data =NULL ; +int i =0 ; +int j =0 ; + +test_init (data); + +igt_skip_on_f (num_pipes >igt_display_get_n_pipes (&data->display) || + num_pipes > data->display.n_outputs, +"ASIC does not have %d outputs/pipes\n" , num_pipes); + +/* First supported mode */ + +for (j =0 ; j < num_pipes; j++) { + output = data->output[j]; +if (!igt_output_is_connected (output)) +continue ; + + conn =drmModeGetConnector ( + data->fd, output->config.connector->connector_id); + + kmode = &conn->modes[0 ]; +if (buffer1[j] ==NULL ) { +igt_fb_t fb; + buffer1[j] = &fb; +igt_create_color_fb (data->fd, kmode->hdisplay, + kmode->vdisplay, +DRM_FORMAT_XRGB8888 , +DRM_FORMAT_MOD_NONE ,1.f ,0.f , +0.f , buffer1[j]); + } +igt_output_set_pipe (output, j); +force_output_mode (data, output, kmode); +igt_plane_set_fb (data->primary[j], buffer1[j]); +drmModeFreeConnector (conn); + } + +igt_display_commit_atomic (&data->display,DRM_MODE_ATOMIC_ALLOW_MODESET , + user_data); + +/* Last supported mode */ + +for (j =0 ; j < num_pipes; j++) { + output = data->output[j]; +if (!igt_output_is_connected (output)) +continue ; + + conn =drmModeGetConnector ( + data->fd, output->config.connector->connector_id); + + kmode = &conn->modes[conn->count_modes -1 ]; +if (buffer2[j] ==NULL ) { +igt_fb_t fb; + buffer2[j] = &fb; +igt_create_color_fb (data->fd, kmode->hdisplay, + kmode->vdisplay, +DRM_FORMAT_XRGB8888 , +DRM_FORMAT_MOD_NONE ,1.f ,0.f , +0.f , buffer2[j]); + } +force_output_mode (data, output, kmode); +igt_plane_set_fb (data->primary[j], buffer2[j]); +drmModeFreeConnector (conn); + } + +igt_display_commit_atomic (&data->display,DRM_MODE_ATOMIC_ALLOW_MODESET , + user_data); + +/* First supported again */ +for (j =0 ; j < num_pipes; j++) { + output = data->output[j]; +if (!igt_output_is_connected (output)) +continue ; + + conn =drmModeGetConnector ( + data->fd, output->config.connector->connector_id); + + kmode = &conn->modes[0 ]; +force_output_mode (data, output, kmode); +igt_plane_set_fb (data->primary[j], buffer1[j]); +drmModeFreeConnector (conn); + } + +igt_display_commit_atomic (&data->display,DRM_MODE_ATOMIC_ALLOW_MODESET , + user_data); + +test_fini (data); + +for (i =0 ; i <= num_pipes; i++) { +igt_remove_fb (data->fd, buffer1[i]); +igt_remove_fb (data->fd, buffer2[i]); + } +} + +IGT_TEST_DESCRIPTION ("Test switching between supported modes" ); +igt_main +{ +data_t data; +int i =0 ; + +igt_skip_on_simulation (); + +memset (&data,0 ,sizeof (data)); + + igt_fixture + { + data.fd =drm_open_driver_master (DRIVER_AMDGPU ); + +kmstest_set_vt_graphics_mode (); + +igt_display_require (&data.display, data.fd); +igt_require (&data.display.is_atomic); +igt_display_require_output (&data.display); + } + +for (i =0 ; i <MAX_PIPES ; i++) { +igt_describe ( +"Test between switching highest and lowest supported mode" ); + igt_subtest_f("mode-switch-first-last-pipe-%d", i) +run_mode_switch_first_last (&data, i +1 ); + } + + igt_fixture + { +igt_display_fini (&data.display); + } +}tests/amdgpu/meson.build +1
-0@@ -16,6 +16,7 @@ if libdrm_amdgpu.found() 'amd_mem_leak', 'amd_link_settings', 'amd_vrr_range', + 'amd_mode_switch', ] amdgpu_deps += libdrm_amdgpu endif