tests/kms: Move Intel specific kms tests to i915 directory
PATCH 1/1 tests/kms: Move Intel specific kms tests to i915 directory
As KMS tests on IGT are officially supported on multiple SoCs and there is an active development on it. So, KMS tests are meant to be generic and if we need to test few things specific to Intel, so we can use igt_require_intel(). But if the whole test is Intel specific, then the best place for the test would be tests/i915.
This patch will move all Intel specific kms tests to tests/i915 directory. And update the tests those are generic but still open the driver as 'drm_open_driver_master(DRIVER_INTEL);'. This patch will also do some minor cleanups.
---
tests/{ => i915}/kms_big_fb.c | 0
tests/{ => i915}/kms_busy.c | 0
tests/{ => i915}/kms_ccs.c | 0
tests/{ => i915}/kms_cdclk.c | 0
tests/{ => i915}/kms_draw_crc.c | 0
tests/{ => i915}/kms_fence_pin_leak.c | 0
tests/{ => i915}/kms_flip_scaled_crc.c | 0
tests/{ => i915}/kms_flip_tiling.c | 0
tests/{ => i915}/kms_frontbuffer_tracking.c | 0
tests/{ => i915}/kms_invalid_dotclock.c | 0
tests/{ => i915}/kms_legacy_colorkey.c | 0
tests/{ => i915}/kms_pipe_b_c_ivb.c | 0
tests/{ => i915}/kms_psr.c | 0
tests/{ => i915}/kms_psr2_sf.c | 0
tests/{ => i915}/kms_psr2_su.c | 0
tests/kms_3d.c | 5 ++--
tests/kms_big_joiner.c | 2 +-
tests/kms_cursor_edge_walk.c | 9 ++++---
tests/kms_fbcon_fbt.c | 3 ++-
tests/kms_force_connector_basic.c | 4 +--
tests/kms_hdmi_inject.c | 14 +++++-----
tests/kms_mmap_write_crc.c | 8 +++---
tests/kms_pwrite_crc.c | 8 +++---
tests/kms_tv_load_detect.c | 2 +-
tests/kms_universal_plane.c | 10 ++++---
tests/meson.build | 30 ++++++++++-----------
26 files changed, 50 insertions(+), 45 deletions(-)
rename tests/{ => i915}/kms_big_fb.c (100%)
rename tests/{ => i915}/kms_busy.c (100%)
rename tests/{ => i915}/kms_ccs.c (100%)
rename tests/{ => i915}/kms_cdclk.c (100%)
rename tests/{ => i915}/kms_draw_crc.c (100%)
rename tests/{ => i915}/kms_fence_pin_leak.c (100%)
rename tests/{ => i915}/kms_flip_scaled_crc.c (100%)
rename tests/{ => i915}/kms_flip_tiling.c (100%)
rename tests/{ => i915}/kms_frontbuffer_tracking.c (100%)
rename tests/{ => i915}/kms_invalid_dotclock.c (100%)
rename tests/{ => i915}/kms_legacy_colorkey.c (100%)
rename tests/{ => i915}/kms_pipe_b_c_ivb.c (100%)
rename tests/{ => i915}/kms_psr.c (100%)
rename tests/{ => i915}/kms_psr2_sf.c (100%)
rename tests/{ => i915}/kms_psr2_su.c (100%)tests/i915/kms_big_fb.c renamed from tests/kms_big_fb.c +0 -0
tests/i915/kms_busy.c renamed from tests/kms_busy.c +0 -0
tests/i915/kms_ccs.c renamed from tests/kms_ccs.c +0 -0
tests/i915/kms_cdclk.c renamed from tests/kms_cdclk.c +0 -0
tests/i915/kms_draw_crc.c renamed from tests/kms_draw_crc.c +0 -0
tests/i915/kms_fence_pin_leak.c renamed from tests/kms_fence_pin_leak.c +0 -0
tests/i915/kms_flip_scaled_crc.c renamed from tests/kms_flip_scaled_crc.c +0 -0
tests/i915/kms_flip_tiling.c renamed from tests/kms_flip_tiling.c +0 -0
tests/i915/kms_frontbuffer_tracking.c renamed from tests/kms_frontbuffer_tracking.c +0 -0
tests/i915/kms_invalid_dotclock.c renamed from tests/kms_invalid_dotclock.c +0 -0
tests/i915/kms_legacy_colorkey.c renamed from tests/kms_legacy_colorkey.c +0 -0
tests/i915/kms_pipe_b_c_ivb.c renamed from tests/kms_pipe_b_c_ivb.c +0 -0
tests/i915/kms_psr.c renamed from tests/kms_psr.c +0 -0
tests/i915/kms_psr2_sf.c renamed from tests/kms_psr2_sf.c +0 -0
tests/i915/kms_psr2_su.c renamed from tests/kms_psr2_su.c +0 -0
tests/kms_3d.c +3 -2
@@ -34,7 +34,7 @@ igt_simple_mainconst struct edid *edid;int mode_count, connector_id; - drm_fd =drm_open_driver_master (DRIVER_INTEL ); + drm_fd =drm_open_driver_master (DRIVER_ANY ); res =drmModeGetResources (drm_fd);igt_require (res);
@@ -44,7 +44,8 @@ igt_simple_main/* find an hdmi connector */ for (int i =0 ; i < res->count_connectors; i++) { connector =drmModeGetConnectorCurrent (drm_fd, res->connectors[i]); -if (connector->connector_type ==DRM_MODE_CONNECTOR_HDMIA ) +if (connector->connector_type ==DRM_MODE_CONNECTOR_HDMIA || + connector->connector_type ==DRM_MODE_CONNECTOR_HDMIB )break ;drmModeFreeConnector (connector); connector =NULL ;
tests/kms_big_joiner.c +1 -1
@@ -258,7 +258,7 @@ igt_mainuint16_t width =0 , height =0 ; igt_fixture { - data.drm_fd =drm_open_driver_master (DRIVER_INTEL ); + data.drm_fd =drm_open_driver_master (DRIVER_ANY );kmstest_set_vt_graphics_mode ();igt_display_require (&data.display, data.drm_fd);
tests/kms_cursor_edge_walk.c +5 -4
@@ -94,8 +94,8 @@ static void cursor_move(data_t *data, int x, int y, int i)* fails). So let's accept a failure from the ioctl in that case. */ igt_assert (drmModeMoveCursor (data->drm_fd, crtc_id, x, y) ==0 || - (IS_CHERRYVIEW (data->devid) && data->pipe ==PIPE_C && - x <0 && x > -data->curw)); + (data->devid &&IS_CHERRYVIEW (data->devid) && + data->pipe ==PIPE_C && x <0 && x > -data->curw));igt_wait_for_vblank (data->drm_fd, display->pipes[data->pipe].crtc_offset); }
@@ -312,9 +312,10 @@ igt_main_args("", long_opts, help_str, opt_handler, &data) igt_fixture {int ret; - data.drm_fd =drm_open_driver_master (DRIVER_INTEL ); + data.drm_fd =drm_open_driver_master (DRIVER_ANY ); - data.devid =intel_get_drm_devid (data.drm_fd); +if (is_i915_device (data.drm_fd)) + data.devid =intel_get_drm_devid (data.drm_fd); ret =drmGetCap (data.drm_fd,DRM_CAP_CURSOR_WIDTH , &max_curw);igt_assert (ret ==0 || errno ==EINVAL );
tests/kms_fbcon_fbt.c +2 -1
@@ -337,6 +337,7 @@ static void subtest(struct drm_info *drm, struct feature *feature, bool suspend)igt_device_set_master (drm->fd);kmstest_set_vt_graphics_mode (); +igt_require_intel (drm->fd);igt_require (feature->supported_on_chipset (drm->fd, drm->debugfs_fd));disable_features (drm->fd, drm->debugfs_fd);
@@ -378,7 +379,7 @@ static void setup_environment(struct drm_info *drm) {int i; - drm->fd =drm_open_driver_master (DRIVER_INTEL ); + drm->fd =drm_open_driver_master (DRIVER_ANY );igt_require (drm->fd >=0 ); drm->debugfs_fd =igt_debugfs_dir (drm->fd);igt_require (drm->debugfs_fd >=0 );
tests/kms_force_connector_basic.c +2 -2
@@ -37,7 +37,7 @@ static void reset_connectors(void)drmModeRes *res;drmModeConnector *connector =NULL ; - drm_fd =drm_open_driver_master (DRIVER_INTEL ); + drm_fd =drm_open_driver_master (DRIVER_ANY ); res =drmModeGetResources (drm_fd);for (int i =0 ; i < res->count_connectors; i++) {
@@ -86,7 +86,7 @@ igt_main_args("", long_opts, help_str, opt_handler, NULL) igt_fixture {unsigned connector_id =0 ; - drm_fd =drm_open_driver_master (DRIVER_INTEL ); + drm_fd =drm_open_driver_master (DRIVER_ANY ); res =drmModeGetResources (drm_fd);igt_require (res);
tests/kms_hdmi_inject.c +8 -6
@@ -63,7 +63,8 @@ get_connector(int drm_fd, drmModeRes *res) connector =drmModeGetConnectorCurrent (drm_fd, res->connectors[i]); -if (connector->connector_type ==DRM_MODE_CONNECTOR_HDMIA ) +if (connector->connector_type ==DRM_MODE_CONNECTOR_HDMIA || + connector->connector_type ==DRM_MODE_CONNECTOR_HDMIB )break ;drmModeFreeConnector (connector);
@@ -82,12 +83,13 @@ hdmi_inject_4k(int drm_fd, drmModeConnector *connector)int fb_id;struct igt_fb fb;uint8_t found_4k_mode =0 ; -uint32_t devid; - devid =intel_get_drm_devid (drm_fd); +if (is_i915_device (drm_fd)) { +uint32_t devid =intel_get_drm_devid (drm_fd); -/* 4K requires at least HSW */ -igt_require (IS_HASWELL (devid) ||intel_display_ver (devid) >=8 ); +/* 4K requires at least HSW */ +igt_require (IS_HASWELL (devid) ||intel_display_ver (devid) >=8 ); + } edid =igt_kms_get_4k_edid ();kmstest_force_edid (drm_fd, connector, edid);
@@ -195,7 +197,7 @@ igt_maindrmModeConnector *connector; igt_fixture { - drm_fd =drm_open_driver_master (DRIVER_INTEL ); + drm_fd =drm_open_driver_master (DRIVER_ANY ); res =drmModeGetResources (drm_fd);igt_require (res);
tests/kms_mmap_write_crc.c +3 -5
@@ -51,7 +51,6 @@ typedef struct {enum pipe pipe;igt_crc_t ref_crc;igt_pipe_crc_t *pipe_crc; -uint32_t devid; } data_t;static int ioctl_sync = true;
@@ -103,6 +102,7 @@ static void test(data_t *data)igt_display_commit (display);/* make sure caching mode has become UC/WT */ +igt_require_intel (data->drm_fd); caching =gem_get_caching (data->drm_fd, fb->gem_handle);igt_assert (caching ==I915_CACHING_NONE || caching ==I915_CACHING_DISPLAY );
@@ -204,7 +204,7 @@ static void cleanup_crtc(data_t *data)igt_plane_set_fb (data->primary,NULL ); -igt_output_set_pipe (output,PIPE_ANY ); +igt_output_set_pipe (output,PIPE_NONE );igt_display_commit (display);igt_remove_fb (data->drm_fd, &data->fb[0 ]);
@@ -272,9 +272,7 @@ igt_main_args("n", NULL, NULL, opt_handler, NULL)int i; igt_fixture { - data.drm_fd =drm_open_driver_master (DRIVER_INTEL ); - - data.devid =intel_get_drm_devid (data.drm_fd); + data.drm_fd =drm_open_driver_master (DRIVER_ANY );kmstest_set_vt_graphics_mode ();
tests/kms_pwrite_crc.c +3 -5
@@ -42,7 +42,6 @@ typedef struct {enum pipe pipe;igt_crc_t ref_crc;igt_pipe_crc_t *pipe_crc; -uint32_t devid; } data_t;static void test (data_t *data)
@@ -77,6 +76,7 @@ static void test(data_t *data) 0, 0, fb->width << 16, fb->height << 16);/* make sure caching mode has become UC/WT */ +igt_require_intel (data->drm_fd); caching =gem_get_caching (data->drm_fd, fb->gem_handle);igt_assert (caching ==I915_CACHING_NONE || caching ==I915_CACHING_DISPLAY );
@@ -141,7 +141,7 @@ static void cleanup_crtc(data_t *data)igt_plane_set_fb (data->primary,NULL ); -igt_output_set_pipe (output,PIPE_ANY ); +igt_output_set_pipe (output,PIPE_NONE );igt_display_commit (display);igt_remove_fb (data->drm_fd, &data->fb[0 ]);
@@ -174,9 +174,7 @@ static data_t data; igt_simple_main { - data.drm_fd =drm_open_driver_master (DRIVER_INTEL ); - - data.devid =intel_get_drm_devid (data.drm_fd); + data.drm_fd =drm_open_driver_master (DRIVER_ANY );kmstest_set_vt_graphics_mode ();
tests/kms_tv_load_detect.c +1 -1
@@ -34,7 +34,7 @@ igt_maindrmModeConnector *tv_connector =NULL , *temp; igt_fixture { - drm_fd =drm_open_driver_master (DRIVER_INTEL ); + drm_fd =drm_open_driver_master (DRIVER_ANY ); res =drmModeGetResources (drm_fd);igt_require (res);
tests/kms_universal_plane.c +7 -3
@@ -107,7 +107,7 @@ functional_test_fini(functional_test_t *test, igt_output_t *output)igt_remove_fb (test->data->drm_fd, &test->red_fb);igt_remove_fb (test->data->drm_fd, &test->yellow_fb); -igt_output_set_pipe (output,PIPE_ANY ); +igt_output_set_pipe (output,PIPE_NONE );igt_display_commit2 (&test->data->display,COMMIT_LEGACY ); }
@@ -382,6 +382,7 @@ sanity_test_pipe(data_t *data, enum pipe pipe, igt_output_t *output)* doesn't cover CRTC (should fail on pre-gen9 and succeed on * gen9+). */ +igt_require_intel (data->drm_fd);igt_plane_set_fb (primary, &test.undersized_fb); expect = (data->display_ver <9 ) ? -EINVAL :0 ;igt_assert (igt_display_try_commit2 (&data->display,COMMIT_UNIVERSAL ) == expect);
@@ -579,6 +580,7 @@ cursor_leak_test_pipe(data_t *data, enum pipe pipe, igt_output_t *output)igt_require_pipe (display, pipe);igt_require (display->has_cursor_plane); +igt_require_intel (data->drm_fd);igt_output_set_pipe (output, pipe); mode =igt_output_get_mode (output);
@@ -704,6 +706,7 @@ gen9_test_pipe(data_t *data, enum pipe pipe, igt_output_t *output)int ret =0 ; +igt_require_intel (data->drm_fd);igt_skip_on (data->display_ver <9 );igt_require_pipe (&data->display, pipe);
@@ -797,8 +800,9 @@ igt_mainenum pipe pipe; igt_fixture { - data.drm_fd =drm_open_driver_master (DRIVER_INTEL ); - data.display_ver =intel_display_ver (intel_get_drm_devid (data.drm_fd)); + data.drm_fd =drm_open_driver_master (DRIVER_ANY ); +if (is_i915_device (data.drm_fd)) + data.display_ver =intel_display_ver (intel_get_drm_devid (data.drm_fd));kmstest_set_vt_graphics_mode ();
tests/meson.build +15 -15
@@ -19,11 +19,7 @@ test_progs = [ 'kms_atomic', 'kms_atomic_interruptible', 'kms_atomic_transition', - 'kms_big_fb', 'kms_big_joiner' , - 'kms_busy', - 'kms_ccs', - 'kms_cdclk', 'kms_concurrent', 'kms_content_protection', 'kms_cursor_crc',
@@ -32,26 +28,18 @@ test_progs = [ 'kms_dither', 'kms_dp_aux_dev', 'kms_dp_tiled_display', - 'kms_draw_crc', 'kms_dsc', 'kms_fbcon_fbt', - 'kms_fence_pin_leak', 'kms_flip', 'kms_flip_event_leak', - 'kms_flip_scaled_crc', - 'kms_flip_tiling', 'kms_force_connector_basic', - 'kms_frontbuffer_tracking', 'kms_getfb', 'kms_hdmi_inject', 'kms_hdr', - 'kms_invalid_dotclock', 'kms_lease', - 'kms_legacy_colorkey', 'kms_mmap_write_crc', 'kms_multipipe_modeset', 'kms_panel_fitting', - 'kms_pipe_b_c_ivb', 'kms_pipe_crc_basic', 'kms_plane', 'kms_plane_alpha_blend',
@@ -62,9 +50,6 @@ test_progs = [ 'kms_prime', 'kms_prop_blob', 'kms_properties', - 'kms_psr', - 'kms_psr2_su', - 'kms_psr2_sf', 'kms_pwrite_crc', 'kms_rmfb', 'kms_rotation_crc',
@@ -235,6 +220,21 @@ i915_progs = [ 'i915_query', 'i915_selftest', 'i915_suspend', + 'kms_big_fb', + 'kms_busy', + 'kms_ccs', + 'kms_cdclk', + 'kms_draw_crc', + 'kms_fence_pin_leak', + 'kms_flip_scaled_crc', + 'kms_flip_tiling', + 'kms_frontbuffer_tracking', + 'kms_invalid_dotclock', + 'kms_legacy_colorkey', + 'kms_pipe_b_c_ivb', + 'kms_psr', + 'kms_psr2_su', + 'kms_psr2_sf', 'sysfs_clients', 'sysfs_defaults', 'sysfs_heartbeat_interval',
Signature · 6 lines
2.32.0 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
Patchwork
CI[igt-dev] ✓ Fi.CI.BAT: success for tests/kms: Move Intel specific kms tests to i915 directory
== Series Details ==
== Series Details ==
Series: tests/kms: Move Intel specific kms tests to i915 directory
URL : https://patchwork.freedesktop.org/series/93224/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_10423 -> IGTPW_6078
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/index.html
Known issues
------------
Here are the changes found in IGTPW_6078 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@i915_selftest@live@execlists:
- fi-kbl-soraka: [PASS][1] -> [INCOMPLETE][2] ([i915#2782] / [i915#794])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10423/fi-kbl-soraka/igt@i915_selftest@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/fi-kbl-soraka/igt@i915_selftest@[email protected]
* igt@kms_chamelium@dp-crc-fast:
- fi-kbl-7500u: [PASS][3] -> [FAIL][4] ([i915#1372])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10423/fi-kbl-7500u/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/fi-kbl-7500u/igt@[email protected]
#### Possible fixes ####
* igt@i915_selftest@live@gt_heartbeat:
- {fi-tgl-dsi}: [DMESG-FAIL][5] ([i915#541]) -> [PASS][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10423/fi-tgl-dsi/igt@i915_selftest@live@gt_heartbeat.html
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/fi-tgl-dsi/igt@i915_selftest@live@gt_heartbeat.html
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[i915#1372]: https://gitlab.freedesktop.org/drm/intel/issues/1372
[i915#2782]: https://gitlab.freedesktop.org/drm/intel/issues/2782
[i915#541]: https://gitlab.freedesktop.org/drm/intel/issues/541
[i915#794]: https://gitlab.freedesktop.org/drm/intel/issues/794
Participating hosts (39 -> 33)
------------------------------
Missing (6): fi-ilk-m540 fi-hsw-4200u fi-bsw-cyan fi-ctg-p8600 fi-bdw-samus bat-jsl-1
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_6159 -> IGTPW_6078
CI-20190529: 20190529
CI_DRM_10423: 76112b9dedfa1943354f58fc3fc028203e6fe96b @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_6078: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/index.html
IGT_6159: 6135b9cc319ed965e3aafb5b2ae2abf4762a06b2 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/index.html
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Patchwork
CI[igt-dev] ✗ GitLab.Pipeline: warning for tests/kms: Move Intel specific kms tests to i915 directory
In reply to Bhanuprakash Modem== Series Details ==
== Series Details ==
Series: tests/kms: Move Intel specific kms tests to i915 directory
URL : https://patchwork.freedesktop.org/series/93224/
State : warning
== Summary ==
Pipeline status: FAILED.
see https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/pipelines/370919 for the overview.
test:ninja-test has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/12344264):
298/305 assembler test/rndd OK 0.01 s 299/305 assembler test/rndu OK 0.02 s 300/305 assembler test/rnde OK 0.02 s 301/305 assembler test/rnde-intsrc OK 0.01 s 302/305 assembler test/rndz OK 0.02 s 303/305 assembler test/lzd OK 0.01 s 304/305 assembler test/not OK 0.01 s 305/305 assembler test/immediate OK 0.02 s
Ok: 280
Expected Fail: 0 Fail: 0 Unexpected Pass: 0 Skipped: 0
Timeout: 25
Full log written to /builds/gfx-ci/igt-ci-tags/build/meson-logs/testlog.txt section_end:1627641472:step_script
ERROR: Job failed: execution took longer than 1h0m0s seconds
test:ninja-test-arm64 has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/12344267):
1/291 lib igt_assert TIMEOUT 32.12 s
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/mesonbuild/mesonmain.py", line 112, in run
return options.run_func(options)
File "/usr/lib/python3/dist-packages/mesonbuild/mtest.py", line 805, in run
return th.doit()
File "/usr/lib/python3/dist-packages/mesonbuild/mtest.py", line 555, in doit
self.run_tests(tests)
File "/usr/lib/python3/dist-packages/mesonbuild/mtest.py", line 715, in run_tests
self.drain_futures(futures)
File "/usr/lib/python3/dist-packages/mesonbuild/mtest.py", line 732, in drain_futures
self.print_stats(numlen, tests, name, result.result(), i)
File "/usr/lib/python3/dist-packages/mesonbuild/mtest.py", line 505, in print_stats
result_str += "\n\n" + result.get_log()
File "/usr/lib/python3/dist-packages/mesonbuild/mtest.py", line 178, in get_log
res += self.stde
TypeError: can only concatenate str (not "bytes") to str section_end:1627641473:step_script
ERROR: Job failed: execution took longer than 1h0m0s seconds
test:ninja-test-armhf has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/12344269):
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/mesonbuild/mesonmain.py", line 112, in run
return options.run_func(options)
File "/usr/lib/python3/dist-packages/mesonbuild/mtest.py", line 805, in run
return th.doit()
File "/usr/lib/python3/dist-packages/mesonbuild/mtest.py", line 555, in doit
self.run_tests(tests)
File "/usr/lib/python3/dist-packages/mesonbuild/mtest.py", line 715, in run_tests
self.drain_futures(futures)
File "/usr/lib/python3/dist-packages/mesonbuild/mtest.py", line 732, in drain_futures
self.print_stats(numlen, tests, name, result.result(), i)
File "/usr/lib/python3/dist-packages/mesonbuild/mtest.py", line 505, in print_stats
result_str += "\n\n" + result.get_log()
File "/usr/lib/python3/dist-packages/mesonbuild/mtest.py", line 178, in get_log
res += self.stde
TypeError: can only concatenate str (not "bytes") to str
1/291 lib igt_assert TIMEOUT 32.10 s
section_end:1627641473:step_script
ERROR: Job failed: execution took longer than 1h0m0s seconds
test:ninja-test-minimal has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/12344265):
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/mesonbuild/mesonmain.py", line 112, in run
return options.run_func(options)
File "/usr/lib/python3/dist-packages/mesonbuild/mtest.py", line 805, in run
return th.doit()
File "/usr/lib/python3/dist-packages/mesonbuild/mtest.py", line 555, in doit
self.run_tests(tests)
File "/usr/lib/python3/dist-packages/mesonbuild/mtest.py", line 715, in run_tests
self.drain_futures(futures)
File "/usr/lib/python3/dist-packages/mesonbuild/mtest.py", line 732, in drain_futures
self.print_stats(numlen, tests, name, result.result(), i)
File "/usr/lib/python3/dist-packages/mesonbuild/mtest.py", line 505, in print_stats
result_str += "\n\n" + result.get_log()
File "/usr/lib/python3/dist-packages/mesonbuild/mtest.py", line 178, in get_log
res += self.stde
TypeError: can only concatenate str (not "bytes") to str
1/24 lib igt_assert TIMEOUT 32.03 s
section_end:1627641472:step_script
ERROR: Job failed: execution took longer than 1h0m0s seconds
test:ninja-test-mips has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/12344268):
1/291 lib igt_assert TIMEOUT 32.09 s
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/mesonbuild/mesonmain.py", line 112, in run
return options.run_func(options)
File "/usr/lib/python3/dist-packages/mesonbuild/mtest.py", line 805, in run
return th.doit()
File "/usr/lib/python3/dist-packages/mesonbuild/mtest.py", line 555, in doit
self.run_tests(tests)
File "/usr/lib/python3/dist-packages/mesonbuild/mtest.py", line 715, in run_tests
self.drain_futures(futures)
File "/usr/lib/python3/dist-packages/mesonbuild/mtest.py", line 732, in drain_futures
self.print_stats(numlen, tests, name, result.result(), i)
File "/usr/lib/python3/dist-packages/mesonbuild/mtest.py", line 505, in print_stats
result_str += "\n\n" + result.get_log()
File "/usr/lib/python3/dist-packages/mesonbuild/mtest.py", line 178, in get_log
res += self.stde
TypeError: can only concatenate str (not "bytes") to str section_end:1627641473:step_script
ERROR: Job failed: execution took longer than 1h0m0s seconds
== Logs ==
For more details see: https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/pipelines/370919
Patchwork
CI[igt-dev] ✓ Fi.CI.IGT: success for tests/kms: Move Intel specific kms tests to i915 directory
In reply to Bhanuprakash Modem== Series Details ==
== Series Details ==
Series: tests/kms: Move Intel specific kms tests to i915 directory
URL : https://patchwork.freedesktop.org/series/93224/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_10423_full -> IGTPW_6078_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/index.html
Known issues
------------
Here are the changes found in IGTPW_6078_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_create@create-massive:
- shard-snb: NOTRUN -> [DMESG-WARN][1] ([i915#3002])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-snb7/igt@[email protected]
* igt@gem_ctx_persistence@engines-hostile@rcs0:
- shard-tglb: [PASS][2] -> [FAIL][3] ([i915#2410])
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10423/shard-tglb2/igt@gem_ctx_persistence@[email protected]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-tglb1/igt@gem_ctx_persistence@[email protected]
* igt@gem_ctx_persistence@legacy-engines-persistence:
- shard-snb: NOTRUN -> [SKIP][4] ([fdo#109271] / [i915#1099]) +2 similar issues
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-snb7/igt@[email protected]
* igt@gem_eio@unwedge-stress:
- shard-tglb: [PASS][5] -> [TIMEOUT][6] ([i915#2369] / [i915#3063] / [i915#3648])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10423/shard-tglb6/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-tglb6/igt@[email protected]
* igt@gem_exec_fair@basic-deadline:
- shard-apl: NOTRUN -> [FAIL][7] ([i915#2846])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-apl6/igt@[email protected]
* igt@gem_exec_fair@basic-none-share@rcs0:
- shard-apl: [PASS][8] -> [SKIP][9] ([fdo#109271])
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10423/shard-apl7/igt@gem_exec_fair@[email protected]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-apl1/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-none-solo@rcs0:
- shard-kbl: [PASS][10] -> [FAIL][11] ([i915#2842]) +2 similar issues
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10423/shard-kbl2/igt@gem_exec_fair@[email protected]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-kbl6/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-none@vcs0:
- shard-glk: [PASS][12] -> [FAIL][13] ([i915#2842]) +1 similar issue
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10423/shard-glk9/igt@gem_exec_fair@[email protected]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-glk9/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-none@vecs0:
- shard-glk: [PASS][14] -> [FAIL][15] ([i915#2842] / [i915#3468])
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10423/shard-glk9/igt@gem_exec_fair@[email protected]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-glk9/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace-share@rcs0:
- shard-tglb: [PASS][16] -> [FAIL][17] ([i915#2842]) +1 similar issue
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10423/shard-tglb5/igt@gem_exec_fair@[email protected]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-tglb1/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-throttle@rcs0:
- shard-iclb: [PASS][18] -> [FAIL][19] ([i915#2849])
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10423/shard-iclb8/igt@gem_exec_fair@[email protected]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-iclb2/igt@gem_exec_fair@[email protected]
* igt@gem_exec_whisper@basic-contexts-all:
- shard-glk: [PASS][20] -> [DMESG-WARN][21] ([i915#118] / [i915#95])
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10423/shard-glk5/igt@[email protected]
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-glk7/igt@[email protected]
* igt@gem_pwrite@basic-exhaustion:
- shard-iclb: NOTRUN -> [WARN][22] ([i915#2658])
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-iclb8/igt@[email protected]
- shard-kbl: NOTRUN -> [WARN][23] ([i915#2658])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-kbl6/igt@[email protected]
- shard-apl: NOTRUN -> [WARN][24] ([i915#2658])
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-apl7/igt@[email protected]
- shard-tglb: NOTRUN -> [WARN][25] ([i915#2658])
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-tglb8/igt@[email protected]
- shard-glk: NOTRUN -> [WARN][26] ([i915#2658])
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-glk8/igt@[email protected]
* igt@gem_render_copy@y-tiled-mc-ccs-to-y-tiled-ccs:
- shard-iclb: NOTRUN -> [SKIP][27] ([i915#768])
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-iclb3/igt@[email protected]
* igt@gem_userptr_blits@access-control:
- shard-tglb: NOTRUN -> [SKIP][28] ([i915#3297]) +1 similar issue
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-tglb2/igt@[email protected]
* igt@gem_userptr_blits@dmabuf-sync:
- shard-apl: NOTRUN -> [SKIP][29] ([fdo#109271] / [i915#3323])
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-apl6/igt@[email protected]
* igt@gem_userptr_blits@input-checking:
- shard-apl: NOTRUN -> [DMESG-WARN][30] ([i915#3002]) +1 similar issue
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-apl6/igt@[email protected]
* igt@gem_userptr_blits@invalid-mmap-offset-unsync:
- shard-iclb: NOTRUN -> [SKIP][31] ([i915#3297]) +1 similar issue
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-iclb8/igt@[email protected]
* igt@gen9_exec_parse@bb-start-cmd:
- shard-tglb: NOTRUN -> [SKIP][32] ([i915#2856])
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-tglb1/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][33] ([i915#2856])
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-iclb7/igt@[email protected]
* igt@i915_pm_rpm@basic-rte:
- shard-apl: NOTRUN -> [FAIL][34] ([i915#579])
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-apl2/igt@[email protected]
* igt@i915_pm_rpm@reg-read-ioctl:
- shard-iclb: NOTRUN -> [SKIP][35] ([i915#579]) +1 similar issue
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-iclb8/igt@[email protected]
- shard-tglb: NOTRUN -> [SKIP][36] ([i915#579]) +1 similar issue
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-tglb7/igt@[email protected]
* igt@i915_selftest@live@hangcheck:
- shard-snb: NOTRUN -> [INCOMPLETE][37] ([i915#2782])
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-snb2/igt@i915_selftest@[email protected]
* igt@kms_addfb_basic@invalid-smem-bo-on-discrete:
- shard-tglb: NOTRUN -> [SKIP][38] ([i915#3826])
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-tglb5/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][39] ([i915#3826])
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-iclb2/igt@[email protected]
* igt@kms_big_fb@linear-64bpp-rotate-90:
- shard-iclb: NOTRUN -> [SKIP][40] ([fdo#110725] / [fdo#111614])
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-iclb3/igt@[email protected]
- shard-tglb: NOTRUN -> [SKIP][41] ([fdo#111614])
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-tglb2/igt@[email protected]
* igt@kms_big_fb@x-tiled-max-hw-stride-64bpp-rotate-180-hflip:
- shard-kbl: NOTRUN -> [SKIP][42] ([fdo#109271] / [i915#3777]) +1 similar issue
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-kbl7/igt@[email protected]
- shard-glk: NOTRUN -> [SKIP][43] ([fdo#109271] / [i915#3777]) +1 similar issue
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-glk6/igt@[email protected]
- shard-apl: NOTRUN -> [SKIP][44] ([fdo#109271] / [i915#3777]) +1 similar issue
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-apl1/igt@[email protected]
* igt@kms_big_fb@yf-tiled-addfb:
- shard-tglb: NOTRUN -> [SKIP][45] ([fdo#111615]) +1 similar issue
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-tglb5/igt@[email protected]
* igt@kms_big_fb@yf-tiled-max-hw-stride-64bpp-rotate-180-async-flip:
- shard-iclb: NOTRUN -> [SKIP][46] ([fdo#110723])
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-iclb6/igt@kms_big_fb@yf-tiled-max-hw-stride-64bpp-rotate-180-async-flip.html
* igt@kms_ccs@pipe-a-crc-sprite-planes-basic-y_tiled_ccs:
- shard-tglb: NOTRUN -> [SKIP][47] ([i915#3689]) +8 similar issues
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-tglb3/igt@kms_ccs@pipe-a-crc-sprite-planes-basic-y_tiled_ccs.html
* igt@kms_chamelium@dp-frame-dump:
- shard-iclb: NOTRUN -> [SKIP][48] ([fdo#109284] / [fdo#111827]) +6 similar issues
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-iclb7/igt@[email protected]
- shard-glk: NOTRUN -> [SKIP][49] ([fdo#109271] / [fdo#111827]) +6 similar issues
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-glk3/igt@[email protected]
* igt@kms_chamelium@hdmi-edid-change-during-suspend:
- shard-apl: NOTRUN -> [SKIP][50] ([fdo#109271] / [fdo#111827]) +14 similar issues
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-apl7/igt@[email protected]
* igt@kms_color_chamelium@pipe-a-ctm-0-75:
- shard-kbl: NOTRUN -> [SKIP][51] ([fdo#109271] / [fdo#111827]) +13 similar issues
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-kbl2/igt@[email protected]
* igt@kms_color_chamelium@pipe-b-ctm-0-75:
- shard-tglb: NOTRUN -> [SKIP][52] ([fdo#109284] / [fdo#111827]) +6 similar issues
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-tglb3/igt@[email protected]
* igt@kms_color_chamelium@pipe-invalid-ctm-matrix-sizes:
- shard-snb: NOTRUN -> [SKIP][53] ([fdo#109271] / [fdo#111827]) +18 similar issues
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-snb6/igt@[email protected]
* igt@kms_content_protection@atomic:
- shard-kbl: NOTRUN -> [TIMEOUT][54] ([i915#1319]) +1 similar issue
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-kbl7/igt@[email protected]
* igt@kms_content_protection@dp-mst-lic-type-1:
- shard-iclb: NOTRUN -> [SKIP][55] ([i915#3116]) +1 similar issue
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-iclb4/igt@[email protected]
* igt@kms_content_protection@dp-mst-type-0:
- shard-tglb: NOTRUN -> [SKIP][56] ([i915#3116]) +1 similar issue
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-tglb5/igt@[email protected]
* igt@kms_content_protection@legacy:
- shard-tglb: NOTRUN -> [SKIP][57] ([fdo#111828])
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-tglb2/igt@[email protected]
* igt@kms_content_protection@srm:
- shard-apl: NOTRUN -> [TIMEOUT][58] ([i915#1319])
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-apl2/igt@[email protected]
* igt@kms_cursor_crc@pipe-b-cursor-512x512-sliding:
- shard-iclb: NOTRUN -> [SKIP][59] ([fdo#109278] / [fdo#109279])
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-iclb2/igt@[email protected]
- shard-tglb: NOTRUN -> [SKIP][60] ([fdo#109279] / [i915#3359])
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-tglb2/igt@[email protected]
* igt@kms_cursor_crc@pipe-c-cursor-max-size-onscreen:
- shard-tglb: NOTRUN -> [SKIP][61] ([i915#3359]) +3 similar issues
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-tglb3/igt@[email protected]
* igt@kms_cursor_crc@pipe-c-cursor-suspend:
- shard-apl: [PASS][62] -> [DMESG-WARN][63] ([i915#180])
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10423/shard-apl7/igt@[email protected]
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-apl1/igt@[email protected]
* igt@kms_cursor_crc@pipe-d-cursor-32x32-sliding:
- shard-tglb: NOTRUN -> [SKIP][64] ([i915#3319]) +1 similar issue
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-tglb1/igt@[email protected]
* igt@kms_cursor_edge_walk@pipe-d-128x128-right-edge:
- shard-snb: NOTRUN -> [SKIP][65] ([fdo#109271]) +389 similar issues
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-snb5/igt@[email protected]
* igt@kms_cursor_legacy@cursorb-vs-flipa-atomic:
- shard-iclb: NOTRUN -> [SKIP][66] ([fdo#109274] / [fdo#109278])
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-iclb4/igt@[email protected]
* igt@kms_cursor_legacy@pipe-d-single-move:
- shard-iclb: NOTRUN -> [SKIP][67] ([fdo#109278]) +17 similar issues
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-iclb3/igt@[email protected]
* igt@kms_dither@fb-8bpc-vs-panel-8bpc@edp-1-pipe-a:
- shard-iclb: [PASS][68] -> [SKIP][69] ([i915#3788])
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10423/shard-iclb8/igt@kms_dither@[email protected]
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-iclb2/igt@kms_dither@[email protected]
* igt@kms_dp_aux_dev:
- shard-iclb: [PASS][70] -> [DMESG-WARN][71] ([i915#262])
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10423/shard-iclb1/igt@kms_dp_aux_dev.html
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-iclb7/igt@kms_dp_aux_dev.html
* igt@kms_fbcon_fbt@fbc-suspend:
- shard-kbl: [PASS][72] -> [INCOMPLETE][73] ([i915#155] / [i915#180] / [i915#636])
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10423/shard-kbl2/igt@[email protected]
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-kbl3/igt@[email protected]
* igt@kms_flip@2x-flip-vs-panning:
- shard-iclb: NOTRUN -> [SKIP][74] ([fdo#109274]) +1 similar issue
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-iclb3/igt@[email protected]
* igt@kms_flip@flip-vs-suspend-interruptible@a-dp1:
- shard-kbl: [PASS][75] -> [DMESG-WARN][76] ([i915#180]) +5 similar issues
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10423/shard-kbl2/igt@kms_flip@[email protected]
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-kbl4/igt@kms_flip@[email protected]
* igt@kms_flip@flip-vs-suspend@c-dp1:
- shard-kbl: NOTRUN -> [DMESG-WARN][77] ([i915#180]) +3 similar issues
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-kbl4/igt@kms_flip@[email protected]
* igt@kms_flip_scaled_crc@flip-32bpp-ytileccs-to-64bpp-ytile:
- shard-tglb: NOTRUN -> [SKIP][78] ([i915#2587])
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-tglb8/igt@[email protected]
* igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-32bpp-ytilercccs:
- shard-kbl: NOTRUN -> [SKIP][79] ([fdo#109271] / [i915#2672])
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-kbl1/igt@[email protected]
- shard-glk: NOTRUN -> [SKIP][80] ([fdo#109271] / [i915#2672])
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-glk4/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][81] ([i915#2587])
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-iclb5/igt@[email protected]
- shard-apl: NOTRUN -> [SKIP][82] ([fdo#109271] / [i915#2672])
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-apl2/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-indfb-pgflip-blt:
- shard-iclb: NOTRUN -> [SKIP][83] ([fdo#109280]) +14 similar issues
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-iclb5/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-shrfb-msflip-blt:
- shard-tglb: NOTRUN -> [SKIP][84] ([fdo#111825]) +21 similar issues
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-tglb1/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbcpsr-1p-offscren-pri-indfb-draw-mmap-cpu:
- shard-glk: NOTRUN -> [SKIP][85] ([fdo#109271]) +57 similar issues
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-glk2/igt@kms_frontbuffer_tracking@fbcpsr-1p-offscren-pri-indfb-draw-mmap-cpu.html
* igt@kms_frontbuffer_tracking@psr-rgb101010-draw-mmap-wc:
- shard-kbl: NOTRUN -> [SKIP][86] ([fdo#109271]) +157 similar issues
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-kbl4/igt@[email protected]
* igt@kms_pipe_crc_basic@suspend-read-crc-pipe-d:
- shard-apl: NOTRUN -> [SKIP][87] ([fdo#109271] / [i915#533]) +1 similar issue
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-apl1/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-a-alpha-transparent-fb:
- shard-kbl: NOTRUN -> [FAIL][88] ([i915#265])
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-kbl1/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-b-constant-alpha-max:
- shard-apl: NOTRUN -> [FAIL][89] ([fdo#108145] / [i915#265])
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-apl6/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-c-constant-alpha-max:
- shard-kbl: NOTRUN -> [FAIL][90] ([fdo#108145] / [i915#265]) +1 similar issue
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-kbl4/igt@[email protected]
* igt@kms_plane_lowres@pipe-c-tiling-y:
- shard-iclb: NOTRUN -> [SKIP][91] ([i915#3536])
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-iclb8/igt@[email protected]
- shard-tglb: NOTRUN -> [SKIP][92] ([i915#3536])
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-tglb8/igt@[email protected]
* igt@kms_psr2_sf@overlay-plane-update-sf-dmg-area-4:
- shard-kbl: NOTRUN -> [SKIP][93] ([fdo#109271] / [i915#658]) +1 similar issue
[93]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-kbl2/igt@[email protected]
* igt@kms_psr2_sf@overlay-primary-update-sf-dmg-area-4:
- shard-apl: NOTRUN -> [SKIP][94] ([fdo#109271] / [i915#658]) +1 similar issue
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-apl8/igt@[email protected]
* igt@kms_psr@psr2_cursor_plane_move:
- shard-iclb: NOTRUN -> [SKIP][95] ([fdo#109441]) +1 similar issue
[95]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-iclb3/igt@kms_psr@psr2_cursor_plane_move.html
* igt@kms_psr@psr2_cursor_plane_onoff:
- shard-tglb: NOTRUN -> [FAIL][96] ([i915#132] / [i915#3467]) +1 similar issue
[96]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-tglb1/igt@kms_psr@psr2_cursor_plane_onoff.html
* igt@kms_psr@psr2_sprite_blt:
- shard-iclb: [PASS][97] -> [SKIP][98] ([fdo#109441])
[97]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10423/shard-iclb2/igt@kms_psr@psr2_sprite_blt.html
[98]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-iclb4/igt@kms_psr@psr2_sprite_blt.html
* igt@kms_sysfs_edid_timing:
- shard-apl: NOTRUN -> [FAIL][99] ([IGT#2])
[99]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-apl1/igt@kms_sysfs_edid_timing.html
- shard-kbl: NOTRUN -> [FAIL][100] ([IGT#2])
[100]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-kbl4/igt@kms_sysfs_edid_timing.html
* igt@kms_vblank@pipe-d-ts-continuation-idle:
- shard-apl: NOTRUN -> [SKIP][101] ([fdo#109271]) +237 similar issues
[101]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-apl1/igt@[email protected]
* igt@prime_nv_pcopy@test3_1:
- shard-tglb: NOTRUN -> [SKIP][102] ([fdo#109291]) +1 similar issue
[102]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-tglb5/igt@prime_nv_pcopy@test3_1.html
* igt@prime_nv_test@nv_write_i915_gtt_mmap_read:
- shard-iclb: NOTRUN -> [SKIP][103] ([fdo#109291]) +1 similar issue
[103]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-iclb5/igt@prime_nv_test@nv_write_i915_gtt_mmap_read.html
* igt@prime_vgem@fence-read-hang:
- shard-tglb: NOTRUN -> [SKIP][104] ([fdo#109295])
[104]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-tglb1/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][105] ([fdo#109295])
[105]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-iclb3/igt@[email protected]
* igt@sysfs_clients@sema-50:
- shard-iclb: NOTRUN -> [SKIP][106] ([i915#2994])
[106]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-iclb2/igt@[email protected]
- shard-kbl: NOTRUN -> [SKIP][107] ([fdo#109271] / [i915#2994])
[107]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-kbl6/igt@[email protected]
- shard-glk: NOTRUN -> [SKIP][108] ([fdo#109271] / [i915#2994])
[108]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-glk7/igt@[email protected]
- shard-tglb: NOTRUN -> [SKIP][109] ([i915#2994])
[109]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-tglb2/igt@[email protected]
* igt@sysfs_clients@split-10:
- shard-apl: NOTRUN -> [SKIP][110] ([fdo#109271] / [i915#2994]) +1 similar issue
[110]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-apl7/igt@[email protected]
#### Possible fixes ####
* igt@gem_eio@in-flight-suspend:
- shard-kbl: [DMESG-WARN][111] ([i915#180]) -> [PASS][112] +2 similar issues
[111]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10423/shard-kbl1/igt@[email protected]
[112]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-kbl2/igt@[email protected]
* igt@gem_exec_fair@basic-deadline:
- shard-glk: [FAIL][113] ([i915#2846]) -> [PASS][114]
[113]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10423/shard-glk8/igt@[email protected]
[114]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-glk2/igt@[email protected]
* igt@gem_workarounds@suspend-resume-context:
- shard-apl: [DMESG-WARN][115] ([i915#180]) -> [PASS][116]
[115]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10423/shard-apl8/igt@[email protected]
[116]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-apl1/igt@[email protected]
* igt@kms_psr@psr2_sprite_render:
- shard-iclb: [SKIP][117] ([fdo#109441]) -> [PASS][118]
[117]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10423/shard-iclb7/igt@kms_psr@psr2_sprite_render.html
[118]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-iclb2/igt@kms_psr@psr2_sprite_render.html
#### Warnings ####
* igt@i915_pm_dc@dc9-dpms:
- shard-apl: [SKIP][119] ([fdo#109271]) -> [FAIL][120] ([i915#3343])
[119]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10423/shard-apl6/igt@[email protected]
[120]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-apl1/igt@[email protected]
* igt@kms_psr2_sf@overlay-plane-update-sf-dmg-area-2:
- shard-iclb: [SKIP][121] ([i915#2920]) -> [SKIP][122] ([i915#658]) +1 similar issue
[121]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10423/shard-iclb2/igt@[email protected]
[122]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-iclb1/igt@[email protected]
* igt@kms_psr2_sf@primary-plane-update-sf-dmg-area-1:
- shard-iclb: [SKIP][123] ([i915#658]) -> [SKIP][124] ([i915#2920]) +1 similar issue
[123]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10423/shard-iclb1/igt@[email protected]
[124]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-iclb2/igt@[email protected]
* igt@runner@aborted:
- shard-kbl: ([FAIL][125], [FAIL][126], [FAIL][127], [FAIL][128], [FAIL][129], [FAIL][130], [FAIL][131], [FAIL][132], [FAIL][133]) ([i915#1436] / [i915#180] / [i915#1814] / [i915#2505] / [i915#3002] / [i915#3363] / [i915#602]) -> ([FAIL][134], [FAIL][135], [FAIL][136], [FAIL][137], [FAIL][138], [FAIL][139], [FAIL][140], [FAIL][141], [FAIL][142], [FAIL][143], [FAIL][144], [FAIL][145]) ([i915#180] / [i915#1814] / [i915#2292] / [i915#2505] / [i915#3002] / [i915#3363] / [i915#92])
[125]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10423/shard-kbl3/igt@[email protected]
[126]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10423/shard-kbl7/igt@[email protected]
[127]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10423/shard-kbl7/igt@[email protected]
[128]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10423/shard-kbl7/igt@[email protected]
[129]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10423/shard-kbl4/igt@[email protected]
[130]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10423/shard-kbl7/igt@[email protected]
[131]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10423/shard-kbl1/igt@[email protected]
[132]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10423/shard-kbl6/igt@[email protected]
[133]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10423/shard-kbl6/igt@[email protected]
[134]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-kbl6/igt@[email protected]
[135]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-kbl4/igt@[email protected]
[136]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-kbl3/igt@[email protected]
[137]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-kbl4/igt@[email protected]
[138]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-kbl7/igt@[email protected]
[139]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-kbl6/igt@[email protected]
[140]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-kbl3/igt@[email protected]
[141]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-kbl6/igt@[email protected]
[142]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-kbl7/igt@[email protected]
[143]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-kbl4/igt@[email protected]
[144]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-kbl4/igt@[email protected]
[145]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-kbl4/igt@[email protected]
- shard-apl: ([FAIL][146], [FAIL][147]) ([fdo#109271] / [i915#180] / [i915#2426] / [i915#3363]) -> ([FAIL][148], [FAIL][149], [FAIL][150]) ([i915#1814] / [i915#3002] / [i915#3363])
[146]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10423/shard-apl8/igt@[email protected]
[147]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10423/shard-apl2/igt@[email protected]
[148]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-apl1/igt@[email protected]
[149]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-apl6/igt@[email protected]
[150]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/shard-apl6/igt@[email protected]
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6078/index.html
d
Quoted 191 lines · Bhanuprakash Modem
As KMS tests on IGT are officially supported on multiple SoCs and there is an active development on it. So, KMS tests are meant to be generic and if we need to test few things specific to Intel, so we can use
igt_require_intel(). But if the whole test is Intel specific, then the best place for the test would be tests/i915.This patch will move all Intel specific kms tests to tests/i915 directory. And update the tests those are generic but still open the driver as '
drm_open_driver_master(DRIVER_INTEL);'. This patch will also do some minor cleanups.Cc Mark Yacoub <[email protected]>Cc Petri Latvala <[email protected]>Cc Vidya Srinivas <[email protected]>Cc Karthik B S <[email protected]>Signed-off-by Bhanuprakash Modem <[email protected]>--- tests/{ => i915}/kms_big_fb.c | 0 tests/{ => i915}/kms_busy.c | 0 tests/{ => i915}/kms_ccs.c | 0 tests/{ => i915}/kms_cdclk.c | 0 tests/{ => i915}/kms_draw_crc.c | 0 tests/{ => i915}/kms_fence_pin_leak.c | 0 tests/{ => i915}/kms_flip_scaled_crc.c | 0 tests/{ => i915}/kms_flip_tiling.c | 0 tests/{ => i915}/kms_frontbuffer_tracking.c | 0 tests/{ => i915}/kms_invalid_dotclock.c | 0 tests/{ => i915}/kms_legacy_colorkey.c | 0 tests/{ => i915}/kms_pipe_b_c_ivb.c | 0 tests/{ => i915}/kms_psr.c | 0 tests/{ => i915}/kms_psr2_sf.c | 0 tests/{ => i915}/kms_psr2_su.c | 0 tests/kms_3d.c | 5 ++-- tests/kms_big_joiner.c | 2 +- tests/kms_cursor_edge_walk.c | 9 ++++--- tests/kms_fbcon_fbt.c | 3 ++- tests/kms_force_connector_basic.c | 4 +-- tests/kms_hdmi_inject.c | 14 +++++----- tests/kms_mmap_write_crc.c | 8 +++--- tests/kms_pwrite_crc.c | 8 +++--- tests/kms_tv_load_detect.c | 2 +- tests/kms_universal_plane.c | 10 ++++--- tests/meson.build | 30 ++++++++++----------- 26 files changed, 50 insertions(+), 45 deletions(-) rename tests/{ => i915}/kms_big_fb.c (100%) rename tests/{ => i915}/kms_busy.c (100%) rename tests/{ => i915}/kms_ccs.c (100%) rename tests/{ => i915}/kms_cdclk.c (100%) rename tests/{ => i915}/kms_draw_crc.c (100%) rename tests/{ => i915}/kms_fence_pin_leak.c (100%) rename tests/{ => i915}/kms_flip_scaled_crc.c (100%) rename tests/{ => i915}/kms_flip_tiling.c (100%) rename tests/{ => i915}/kms_frontbuffer_tracking.c (100%) rename tests/{ => i915}/kms_invalid_dotclock.c (100%) rename tests/{ => i915}/kms_legacy_colorkey.c (100%) rename tests/{ => i915}/kms_pipe_b_c_ivb.c (100%) rename tests/{ => i915}/kms_psr.c (100%) rename tests/{ => i915}/kms_psr2_sf.c (100%) rename tests/{ => i915}/kms_psr2_su.c (100%)tests/i915/kms_big_fb.c renamed from tests/kms_big_fb.c +0
-0tests/i915/kms_busy.c renamed from tests/kms_busy.c +0
-0tests/i915/kms_ccs.c renamed from tests/kms_ccs.c +0
-0tests/i915/kms_cdclk.c renamed from tests/kms_cdclk.c +0
-0tests/i915/kms_draw_crc.c renamed from tests/kms_draw_crc.c +0
-0tests/i915/kms_fence_pin_leak.c renamed from tests/kms_fence_pin_leak.c +0
-0tests/i915/kms_flip_scaled_crc.c renamed from tests/kms_flip_scaled_crc.c +0
-0tests/i915/kms_flip_tiling.c renamed from tests/kms_flip_tiling.c +0
-0tests/i915/kms_frontbuffer_tracking.c renamed from tests/kms_frontbuffer_tracking.c +0
-0tests/i915/kms_invalid_dotclock.c renamed from tests/kms_invalid_dotclock.c +0
-0tests/i915/kms_legacy_colorkey.c renamed from tests/kms_legacy_colorkey.c +0
-0tests/i915/kms_pipe_b_c_ivb.c renamed from tests/kms_pipe_b_c_ivb.c +0
-0tests/i915/kms_psr.c renamed from tests/kms_psr.c +0
-0tests/i915/kms_psr2_sf.c renamed from tests/kms_psr2_sf.c +0
-0tests/i915/kms_psr2_su.c renamed from tests/kms_psr2_su.c +0
-0tests/kms_3d.c +3
-2@@ -34,7 +34,7 @@ igt_simple_mainconst struct edid *edid;int mode_count, connector_id; - drm_fd =drm_open_driver_master (DRIVER_INTEL ); + drm_fd =drm_open_driver_master (DRIVER_ANY ); res =drmModeGetResources (drm_fd);igt_require (res);@@ -44,7 +44,8 @@ igt_simple_main/* find an hdmi connector */ for (int i =0 ; i < res->count_connectors; i++) { connector =drmModeGetConnectorCurrent (drm_fd, res->connectors[i]); -if (connector->connector_type ==DRM_MODE_CONNECTOR_HDMIA ) +if (connector->connector_type ==DRM_MODE_CONNECTOR_HDMIA || + connector->connector_type ==DRM_MODE_CONNECTOR_HDMIB )break ;drmModeFreeConnector (connector); connector =NULL ;tests/kms_big_joiner.c +1
-1@@ -258,7 +258,7 @@ igt_mainuint16_t width =0 , height =0 ; igt_fixture { - data.drm_fd =drm_open_driver_master (DRIVER_INTEL ); + data.drm_fd =drm_open_driver_master (DRIVER_ANY );kmstest_set_vt_graphics_mode ();igt_display_require (&data.display, data.drm_fd);tests/kms_cursor_edge_walk.c +5
-4@@ -94,8 +94,8 @@ static void cursor_move(data_t *data, int x, int y, int i)* fails). So let's accept a failure from the ioctl in that case. */ igt_assert (drmModeMoveCursor (data->drm_fd, crtc_id, x, y) ==0 || - (IS_CHERRYVIEW (data->devid) && data->pipe ==PIPE_C && - x <0 && x > -data->curw)); + (data->devid &&IS_CHERRYVIEW (data->devid) && + data->pipe ==PIPE_C && x <0 && x > -data->curw));igt_wait_for_vblank (data->drm_fd, display->pipes[data->pipe].crtc_offset); }@@ -312,9 +312,10 @@ igt_main_args("", long_opts, help_str, opt_handler, &data) igt_fixture {int ret; - data.drm_fd =drm_open_driver_master (DRIVER_INTEL ); + data.drm_fd =drm_open_driver_master (DRIVER_ANY ); - data.devid =intel_get_drm_devid (data.drm_fd); +if (is_i915_device (data.drm_fd)) + data.devid =intel_get_drm_devid (data.drm_fd); ret =drmGetCap (data.drm_fd,DRM_CAP_CURSOR_WIDTH , &max_curw);igt_assert (ret ==0 || errno ==EINVAL );tests/kms_fbcon_fbt.c +0
-0
tests/kms_fbcon_fbt.c static void subtest(struct drm_info *drm, struct feature *feature, bool suspend) · line 340
Quoted 4 lines
tests/kms_fbcon_fbt.c +1
-0@@ -337,6 +337,7 @@ static void subtest(struct drm_info *drm, struct feature *feature, bool suspend)igt_device_set_master (drm->fd);kmstest_set_vt_graphics_mode (); +igt_require_intel (drm->fd);
Should this be moved to i915 as well?
tests/kms_fbcon_fbt.c static void setup_environment(struct drm_info *drm) · line 382
Quoted 9 lines
tests/kms_fbcon_fbt.c +1
-1igt_require (feature->supported_on_chipset (drm->fd, drm->debugfs_fd));disable_features (drm->fd, drm->debugfs_fd);@@ -378,7 +379,7 @@ static void setup_environment(struct drm_info *drm) {int i; - drm->fd =drm_open_driver_master (DRIVER_INTEL ); + drm->fd =drm_open_driver_master (DRIVER_ANY );
you added igt_require_intel(drm->fd); in subtest() to changing to DRIVER_ANY doesn't make the test run on other devices.
Quoted 79 lines
tests/kms_fbcon_fbt.c +0
-0igt_require (drm->fd >=0 ); drm->debugfs_fd =igt_debugfs_dir (drm->fd);igt_require (drm->debugfs_fd >=0 );tests/kms_force_connector_basic.c +2
-2@@ -37,7 +37,7 @@ static void reset_connectors(void)drmModeRes *res;drmModeConnector *connector =NULL ; - drm_fd =drm_open_driver_master (DRIVER_INTEL ); + drm_fd =drm_open_driver_master (DRIVER_ANY ); res =drmModeGetResources (drm_fd);for (int i =0 ; i < res->count_connectors; i++) {@@ -86,7 +86,7 @@ igt_main_args("", long_opts, help_str, opt_handler, NULL) igt_fixture {unsigned connector_id =0 ; - drm_fd =drm_open_driver_master (DRIVER_INTEL ); + drm_fd =drm_open_driver_master (DRIVER_ANY ); res =drmModeGetResources (drm_fd);igt_require (res);tests/kms_hdmi_inject.c +8
-6@@ -63,7 +63,8 @@ get_connector(int drm_fd, drmModeRes *res) connector =drmModeGetConnectorCurrent (drm_fd, res->connectors[i]); -if (connector->connector_type ==DRM_MODE_CONNECTOR_HDMIA ) +if (connector->connector_type ==DRM_MODE_CONNECTOR_HDMIA || + connector->connector_type ==DRM_MODE_CONNECTOR_HDMIB )break ;drmModeFreeConnector (connector);@@ -82,12 +83,13 @@ hdmi_inject_4k(int drm_fd, drmModeConnector *connector)int fb_id;struct igt_fb fb;uint8_t found_4k_mode =0 ; -uint32_t devid; - devid =intel_get_drm_devid (drm_fd); +if (is_i915_device (drm_fd)) { +uint32_t devid =intel_get_drm_devid (drm_fd); -/* 4K requires at least HSW */ -igt_require (IS_HASWELL (devid) ||intel_display_ver (devid) >=8 ); +/* 4K requires at least HSW */ +igt_require (IS_HASWELL (devid) ||intel_display_ver (devid) >=8 ); + } edid =igt_kms_get_4k_edid ();kmstest_force_edid (drm_fd, connector, edid);@@ -195,7 +197,7 @@ igt_maindrmModeConnector *connector; igt_fixture { - drm_fd =drm_open_driver_master (DRIVER_INTEL ); + drm_fd =drm_open_driver_master (DRIVER_ANY ); res =drmModeGetResources (drm_fd);igt_require (res);tests/kms_mmap_write_crc.c +0
-1@@ -51,7 +51,6 @@ typedef struct {enum pipe pipe;igt_crc_t ref_crc;igt_pipe_crc_t *pipe_crc; -uint32_t devid; } data_t;static int ioctl_sync = true;
tests/kms_mmap_write_crc.c static void test(data_t *data) · line 105
Quoted 4 lines
tests/kms_mmap_write_crc.c +1
-0@@ -103,6 +102,7 @@ static void test(data_t *data)igt_display_commit (display);/* make sure caching mode has become UC/WT */ +igt_require_intel (data->drm_fd);
same comment as above. here and other places where the same thing is done. Just curious if this is meant to allow other SoCs to expand or it's WIP to have it removed.
Quoted 179 lines
tests/kms_mmap_write_crc.c +2
-4caching =gem_get_caching (data->drm_fd, fb->gem_handle);igt_assert (caching ==I915_CACHING_NONE || caching ==I915_CACHING_DISPLAY );@@ -204,7 +204,7 @@ static void cleanup_crtc(data_t *data)igt_plane_set_fb (data->primary,NULL ); -igt_output_set_pipe (output,PIPE_ANY ); +igt_output_set_pipe (output,PIPE_NONE );igt_display_commit (display);igt_remove_fb (data->drm_fd, &data->fb[0 ]);@@ -272,9 +272,7 @@ igt_main_args("n", NULL, NULL, opt_handler, NULL)int i; igt_fixture { - data.drm_fd =drm_open_driver_master (DRIVER_INTEL ); - - data.devid =intel_get_drm_devid (data.drm_fd); + data.drm_fd =drm_open_driver_master (DRIVER_ANY );kmstest_set_vt_graphics_mode ();tests/kms_pwrite_crc.c +3
-5@@ -42,7 +42,6 @@ typedef struct {enum pipe pipe;igt_crc_t ref_crc;igt_pipe_crc_t *pipe_crc; -uint32_t devid; } data_t;static void test (data_t *data)@@ -77,6 +76,7 @@ static void test(data_t *data) 0, 0, fb->width << 16, fb->height << 16);/* make sure caching mode has become UC/WT */ +igt_require_intel (data->drm_fd); caching =gem_get_caching (data->drm_fd, fb->gem_handle);igt_assert (caching ==I915_CACHING_NONE || caching ==I915_CACHING_DISPLAY );@@ -141,7 +141,7 @@ static void cleanup_crtc(data_t *data)igt_plane_set_fb (data->primary,NULL ); -igt_output_set_pipe (output,PIPE_ANY ); +igt_output_set_pipe (output,PIPE_NONE );igt_display_commit (display);igt_remove_fb (data->drm_fd, &data->fb[0 ]);@@ -174,9 +174,7 @@ static data_t data; igt_simple_main { - data.drm_fd =drm_open_driver_master (DRIVER_INTEL ); - - data.devid =intel_get_drm_devid (data.drm_fd); + data.drm_fd =drm_open_driver_master (DRIVER_ANY );kmstest_set_vt_graphics_mode ();tests/kms_tv_load_detect.c +1
-1@@ -34,7 +34,7 @@ igt_maindrmModeConnector *tv_connector =NULL , *temp; igt_fixture { - drm_fd =drm_open_driver_master (DRIVER_INTEL ); + drm_fd =drm_open_driver_master (DRIVER_ANY ); res =drmModeGetResources (drm_fd);igt_require (res);tests/kms_universal_plane.c +7
-3@@ -107,7 +107,7 @@ functional_test_fini(functional_test_t *test, igt_output_t *output)igt_remove_fb (test->data->drm_fd, &test->red_fb);igt_remove_fb (test->data->drm_fd, &test->yellow_fb); -igt_output_set_pipe (output,PIPE_ANY ); +igt_output_set_pipe (output,PIPE_NONE );igt_display_commit2 (&test->data->display,COMMIT_LEGACY ); }@@ -382,6 +382,7 @@ sanity_test_pipe(data_t *data, enum pipe pipe, igt_output_t *output)* doesn't cover CRTC (should fail on pre-gen9 and succeed on * gen9+). */ +igt_require_intel (data->drm_fd);igt_plane_set_fb (primary, &test.undersized_fb); expect = (data->display_ver <9 ) ? -EINVAL :0 ;igt_assert (igt_display_try_commit2 (&data->display,COMMIT_UNIVERSAL ) == expect);@@ -579,6 +580,7 @@ cursor_leak_test_pipe(data_t *data, enum pipe pipe, igt_output_t *output)igt_require_pipe (display, pipe);igt_require (display->has_cursor_plane); +igt_require_intel (data->drm_fd);igt_output_set_pipe (output, pipe); mode =igt_output_get_mode (output);@@ -704,6 +706,7 @@ gen9_test_pipe(data_t *data, enum pipe pipe, igt_output_t *output)int ret =0 ; +igt_require_intel (data->drm_fd);igt_skip_on (data->display_ver <9 );igt_require_pipe (&data->display, pipe);@@ -797,8 +800,9 @@ igt_mainenum pipe pipe; igt_fixture { - data.drm_fd =drm_open_driver_master (DRIVER_INTEL ); - data.display_ver =intel_display_ver (intel_get_drm_devid (data.drm_fd)); + data.drm_fd =drm_open_driver_master (DRIVER_ANY ); +if (is_i915_device (data.drm_fd)) + data.display_ver =intel_display_ver (intel_get_drm_devid (data.drm_fd));kmstest_set_vt_graphics_mode ();tests/meson.build +0
-15@@ -19,11 +19,7 @@ test_progs = [ 'kms_atomic', 'kms_atomic_interruptible', 'kms_atomic_transition', - 'kms_big_fb', 'kms_big_joiner' , - 'kms_busy', - 'kms_ccs', - 'kms_cdclk', 'kms_concurrent', 'kms_content_protection', 'kms_cursor_crc',@@ -32,26 +28,18 @@ test_progs = [ 'kms_dither', 'kms_dp_aux_dev', 'kms_dp_tiled_display', - 'kms_draw_crc', 'kms_dsc', 'kms_fbcon_fbt', - 'kms_fence_pin_leak', 'kms_flip', 'kms_flip_event_leak', - 'kms_flip_scaled_crc', - 'kms_flip_tiling', 'kms_force_connector_basic', - 'kms_frontbuffer_tracking', 'kms_getfb', 'kms_hdmi_inject', 'kms_hdr', - 'kms_invalid_dotclock', 'kms_lease', - 'kms_legacy_colorkey', 'kms_mmap_write_crc', 'kms_multipipe_modeset', 'kms_panel_fitting', - 'kms_pipe_b_c_ivb', 'kms_pipe_crc_basic', 'kms_plane', 'kms_plane_alpha_blend',@@ -62,9 +50,6 @@ test_progs = [ 'kms_prime', 'kms_prop_blob', 'kms_properties', - 'kms_psr', - 'kms_psr2_su', - 'kms_psr2_sf', 'kms_pwrite_crc', 'kms_rmfb', 'kms_rotation_crc',
tests/meson.build i915_progs = [ · line 223
Quoted 4 lines
tests/meson.build +1
-0@@ -235,6 +220,21 @@ i915_progs = [ 'i915_query', 'i915_selftest', 'i915_suspend', + 'kms_big_fb',
Just curious, now that kms tests moved to i915, do you wanna keep it with the same prefix kms_ instead of adding i915_?
Quoted 20 lines
tests/meson.build +14
-1+ 'kms_busy', + 'kms_ccs', + 'kms_cdclk', + 'kms_draw_crc', + 'kms_fence_pin_leak', + 'kms_flip_scaled_crc', + 'kms_flip_tiling', + 'kms_frontbuffer_tracking', + 'kms_invalid_dotclock', + 'kms_legacy_colorkey', + 'kms_pipe_b_c_ivb', + 'kms_psr', + 'kms_psr2_su', + 'kms_psr2_sf', 'sysfs_clients', 'sysfs_defaults', 'sysfs_heartbeat_interval', --2.32.0
Quoted 313 lines
From: Mark Yacoub <[email protected]>
Sent: Monday, August 2, 2021 9:20 PM
To: Modem, Bhanuprakash <[email protected]>; Siqueira, Rodrigo <[email protected]>
Cc: Development mailing list for IGT GPU Tools <igt- [email protected]>; Latvala, Petri <[email protected]>; Srinivas, Vidya <[email protected]>; B S, Karthik <[email protected]>
Subject: Re: [PATCH i-g-t] tests/kms: Move Intel specific kms tests to i915 directoryd
Review
Quoted 95 lines · Bhanuprakash Modem
As KMS tests on IGT are officially supported on multiple SoCs and there is an active development on it. So, KMS tests are meant to be generic and if we need to test few things specific to Intel, so we can use
igt_require_intel(). But if the whole test is Intel specific, then the best place for the test would be tests/i915.This patch will move all Intel specific kms tests to tests/i915 directory. And update the tests those are generic but still open the driver as '
drm_open_driver_master(DRIVER_INTEL);'. This patch will also do some minor cleanups.Cc Mark Yacoub <[email protected]>Cc Petri Latvala <[email protected]>Cc Vidya Srinivas <[email protected]>Cc Karthik B S <[email protected]>Signed-off-by Bhanuprakash Modem <[email protected]>--- tests/{ => i915}/kms_big_fb.c | 0 tests/{ => i915}/kms_busy.c | 0 tests/{ => i915}/kms_ccs.c | 0 tests/{ => i915}/kms_cdclk.c | 0 tests/{ => i915}/kms_draw_crc.c | 0 tests/{ => i915}/kms_fence_pin_leak.c | 0 tests/{ => i915}/kms_flip_scaled_crc.c | 0 tests/{ => i915}/kms_flip_tiling.c | 0 tests/{ => i915}/kms_frontbuffer_tracking.c | 0 tests/{ => i915}/kms_invalid_dotclock.c | 0 tests/{ => i915}/kms_legacy_colorkey.c | 0 tests/{ => i915}/kms_pipe_b_c_ivb.c | 0 tests/{ => i915}/kms_psr.c | 0 tests/{ => i915}/kms_psr2_sf.c | 0 tests/{ => i915}/kms_psr2_su.c | 0 tests/kms_3d.c | 5 ++-- tests/kms_big_joiner.c | 2 +- tests/kms_cursor_edge_walk.c | 9 ++++--- tests/kms_fbcon_fbt.c | 3 ++- tests/kms_force_connector_basic.c | 4 +-- tests/kms_hdmi_inject.c | 14 +++++----- tests/kms_mmap_write_crc.c | 8 +++--- tests/kms_pwrite_crc.c | 8 +++--- tests/kms_tv_load_detect.c | 2 +- tests/kms_universal_plane.c | 10 ++++--- tests/meson.build | 30 ++++++++++----------- 26 files changed, 50 insertions(+), 45 deletions(-) rename tests/{ => i915}/kms_big_fb.c (100%) rename tests/{ => i915}/kms_busy.c (100%) rename tests/{ => i915}/kms_ccs.c (100%) rename tests/{ => i915}/kms_cdclk.c (100%) rename tests/{ => i915}/kms_draw_crc.c (100%) rename tests/{ => i915}/kms_fence_pin_leak.c (100%) rename tests/{ => i915}/kms_flip_scaled_crc.c (100%) rename tests/{ => i915}/kms_flip_tiling.c (100%) rename tests/{ => i915}/kms_frontbuffer_tracking.c (100%) rename tests/{ => i915}/kms_invalid_dotclock.c (100%) rename tests/{ => i915}/kms_legacy_colorkey.c (100%) rename tests/{ => i915}/kms_pipe_b_c_ivb.c (100%) rename tests/{ => i915}/kms_psr.c (100%) rename tests/{ => i915}/kms_psr2_sf.c (100%) rename tests/{ => i915}/kms_psr2_su.c (100%)tests/i915/kms_big_fb.c renamed from tests/kms_big_fb.c +0
-0tests/i915/kms_busy.c renamed from tests/kms_busy.c +0
-0tests/i915/kms_ccs.c renamed from tests/kms_ccs.c +0
-0tests/i915/kms_cdclk.c renamed from tests/kms_cdclk.c +0
-0tests/i915/kms_draw_crc.c renamed from tests/kms_draw_crc.c +0
-0tests/i915/kms_fence_pin_leak.c renamed from tests/kms_fence_pin_leak.c +0
-0tests/i915/kms_flip_scaled_crc.c renamed from tests/kms_flip_scaled_crc.c +0
-0tests/i915/kms_flip_tiling.c renamed from tests/kms_flip_tiling.c +0
-0(quoted diff) +0
-0
b/tests/i915/kms_frontbuffer_tracking.cReview
Quoted 4 lines
similarity index 100%
rename fromtests/kms_frontbuffer_tracking.c
rename totests/i915/kms_frontbuffer_tracking.c(quoted diff) +0
-0
b/tests/i915/kms_invalid_dotclock.ctests/kms_cursor_edge_walk.c igt_main_args("", long_opts, help_str, opt_handler,
Quoted 76 lines
similarity index 100%
rename fromtests/kms_invalid_dotclock.c
rename totests/i915/kms_invalid_dotclock.ctests/i915/kms_legacy_colorkey.c renamed from tests/kms_legacy_colorkey.c +0
-0tests/i915/kms_pipe_b_c_ivb.c renamed from tests/kms_pipe_b_c_ivb.c +0
-0tests/i915/kms_psr.c renamed from tests/kms_psr.c +0
-0tests/i915/kms_psr2_sf.c renamed from tests/kms_psr2_sf.c +0
-0tests/i915/kms_psr2_su.c renamed from tests/kms_psr2_su.c +0
-0tests/kms_3d.c +3
-2@@ -34,7 +34,7 @@ igt_simple_mainconst struct edid *edid;int mode_count, connector_id; - drm_fd =drm_open_driver_master (DRIVER_INTEL ); + drm_fd =drm_open_driver_master (DRIVER_ANY ); res =drmModeGetResources (drm_fd);igt_require (res);@@ -44,7 +44,8 @@ igt_simple_main/* find an hdmi connector */ for (int i =0 ; i < res->count_connectors; i++) { connector =drmModeGetConnectorCurrent (drm_fd, res- connectors[i]); -if (connector->connector_type ==DRM_MODE_CONNECTOR_HDMIA ) +if (connector->connector_type ==DRM_MODE_CONNECTOR_HDMIA || + connector->connector_type ==DRM_MODE_CONNECTOR_HDMIB )break ;drmModeFreeConnector (connector);connector = NULL;tests/kms_big_joiner.c +1
-1@@ -258,7 +258,7 @@ igt_mainuint16_t width =0 , height =0 ; igt_fixture { - data.drm_fd =drm_open_driver_master (DRIVER_INTEL ); + data.drm_fd =drm_open_driver_master (DRIVER_ANY );kmstest_set_vt_graphics_mode ();igt_display_require (&data.display, data.drm_fd);tests/kms_cursor_edge_walk.c +2
-2@@ -94,8 +94,8 @@ static void cursor_move(data_t *data, int x, int y, int i)* fails). So let's accept a failure from the ioctl in that case. */ igt_assert (drmModeMoveCursor (data->drm_fd, crtc_id, x, y) ==0 || - (IS_CHERRYVIEW (data->devid) && data->pipe ==PIPE_C && - x <0 && x > -data->curw)); + (data->devid &&IS_CHERRYVIEW (data->devid) && + data->pipe ==PIPE_C && x <0 && x > -data->curw));igt_wait_for_vblank (data->drm_fd, display->pipes[data->pipe].crtc_offset); }@@ -312,9 +312,10 @@ igt_main_args("", long_opts, help_str, opt_handler,&data)
tests/kms_cursor_edge_walk.c igt_main_args("", long_opts, help_str, opt_handler, &data)
Quoted 11 lines
tests/kms_cursor_edge_walk.c +3
-2igt_fixture {int ret; - data.drm_fd =drm_open_driver_master (DRIVER_INTEL ); + data.drm_fd =drm_open_driver_master (DRIVER_ANY ); - data.devid =intel_get_drm_devid (data.drm_fd); +if (is_i915_device (data.drm_fd)) + data.devid =intel_get_drm_devid (data.drm_fd); ret = drmGetCap(data.drm_fd, DRM_CAP_CURSOR_WIDTH,
&max_curw);tests/kms_fbcon_fbt.c static void subtest(struct drm_info *drm, struct feature
Quoted 6 lines
tests/kms_cursor_edge_walk.c +0
-0igt_assert (ret ==0 || errno ==EINVAL );tests/kms_fbcon_fbt.c +0
-0@@ -337,6 +337,7 @@ static void subtest(struct drm_info *drm, struct feature*feature, bool suspend)
tests/kms_fbcon_fbt.c static void subtest(struct drm_info *drm, struct feature *feature, bool suspend) · line 340
Quoted 4 lines
tests/kms_fbcon_fbt.c +1
-0igt_device_set_master (drm->fd);kmstest_set_vt_graphics_mode (); +igt_require_intel (drm->fd);Should this be moved to i915 as well?
tests/kms_fbcon_fbt.c static void setup_environment(struct drm_info *drm) · line 382
Quoted 10 lines
tests/kms_fbcon_fbt.c +0
-0igt_require (feature->supported_on_chipset (drm->fd, drm- debugfs_fd));disable_features(drm->fd, drm->debugfs_fd);tests/kms_fbcon_fbt.c +1
-1@@ -378,7 +379,7 @@ static void setup_environment(struct drm_info *drm) {int i; - drm->fd =drm_open_driver_master (DRIVER_INTEL ); + drm->fd =drm_open_driver_master (DRIVER_ANY );you added
igt_require_intel(drm->fd); insubtest()to changing toDRIVER_ANYdoesn't make the test run on other devices.Review
Quoted 4 lines
tests/kms_fbcon_fbt.c +0
-0igt_require (drm->fd >=0 ); drm->debugfs_fd =igt_debugfs_dir (drm->fd);igt_require (drm->debugfs_fd >=0 );(quoted diff) +0
-0
b/tests/kms_force_connector_basic.cQuoted 40 lines
index
3b0146fe9..683d36720100644tests/kms_force_connector_basic.c +2
-2@@ -37,7 +37,7 @@ static void reset_connectors(void)drmModeRes *res;drmModeConnector *connector =NULL ; - drm_fd =drm_open_driver_master (DRIVER_INTEL ); + drm_fd =drm_open_driver_master (DRIVER_ANY ); res =drmModeGetResources (drm_fd);for (int i =0 ; i < res->count_connectors; i++) {@@ -86,7 +86,7 @@ igt_main_args("", long_opts, help_str, opt_handler, NULL) igt_fixture {unsigned connector_id =0 ; - drm_fd =drm_open_driver_master (DRIVER_INTEL ); + drm_fd =drm_open_driver_master (DRIVER_ANY ); res =drmModeGetResources (drm_fd);igt_require (res);tests/kms_hdmi_inject.c +2
-1@@ -63,7 +63,8 @@ get_connector(int drm_fd, drmModeRes *res) connector =drmModeGetConnectorCurrent (drm_fd, res- connectors[i]); -if (connector->connector_type ==DRM_MODE_CONNECTOR_HDMIA ) +if (connector->connector_type ==DRM_MODE_CONNECTOR_HDMIA || + connector->connector_type ==DRM_MODE_CONNECTOR_HDMIB )break ;drmModeFreeConnector(connector);tests/kms_hdmi_inject.c +0
-0@@ -82,12 +83,13 @@ hdmi_inject_4k(int drm_fd, drmModeConnector *connector)int fb_id;struct igt_fb fb;uint8_t found_4k_mode =0 ;tests/kms_hdmi_inject.c hdmi_inject_4k(int drm_fd, drmModeConnector *connector) · line 91
Quoted 10 lines
tests/kms_hdmi_inject.c +4
-4-uint32_t devid; - devid =intel_get_drm_devid (drm_fd); + if (is_i915_device(drm_fd)) { + uint32_t devid = intel_get_drm_devid(drm_fd); -/* 4K requires at least HSW */ -igt_require (IS_HASWELL (devid) ||intel_display_ver (devid) >=8 ); + /* 4K requires at least HSW */ + igt_require(IS_HASWELL(devid) || intel_display_ver(devid) >=8);
Quoted 28 lines
tests/kms_hdmi_inject.c +2
-1+ } edid =igt_kms_get_4k_edid ();kmstest_force_edid (drm_fd, connector, edid);@@ -195,7 +197,7 @@ igt_maindrmModeConnector *connector; igt_fixture { - drm_fd =drm_open_driver_master (DRIVER_INTEL ); + drm_fd =drm_open_driver_master (DRIVER_ANY ); res =drmModeGetResources (drm_fd);igt_require (res);tests/kms_mmap_write_crc.c +0
-1@@ -51,7 +51,6 @@ typedef struct {enum pipe pipe;igt_crc_t ref_crc;igt_pipe_crc_t *pipe_crc; -uint32_t devid; } data_t;static int ioctl_sync = true;@@ -103,6 +102,7 @@ static void test(data_t *data)igt_display_commit (display);
Quoted 5 lines
tests/kms_mmap_write_crc.c static void test(data_t *data) · line 105
Quoted 2 lines
tests/kms_mmap_write_crc.c +1
-0/* make sure caching mode has become UC/WT */ +igt_require_intel (data->drm_fd);same comment as above. here and other places where the same thing is done. Just curious if this is meant to allow other SoCs to expand or it's WIP to have it removed.
Intension of this patch is to move i915 specific KMS tests to tests/i915 dir, and make other KMS tests to support all SOCs. As of now only i915 is using these tests, so I have added this check. Whoever wants to expand/use these tests can remove this check.
Quoted 186 lines
tests/kms_mmap_write_crc.c static void test(data_t *data) · line 107
Quoted 2 lines
tests/kms_mmap_write_crc.c +0
-0caching =gem_get_caching (data->drm_fd, fb->gem_handle); igt_assert(caching == I915_CACHING_NONE || caching ==
I915_CACHING_DISPLAY);Quoted 34 lines
tests/kms_mmap_write_crc.c +2
-4@@ -204,7 +204,7 @@ static void cleanup_crtc(data_t *data)igt_plane_set_fb (data->primary,NULL ); -igt_output_set_pipe (output,PIPE_ANY ); +igt_output_set_pipe (output,PIPE_NONE );igt_display_commit (display);igt_remove_fb (data->drm_fd, &data->fb[0 ]);@@ -272,9 +272,7 @@ igt_main_args("n", NULL, NULL, opt_handler, NULL)int i; igt_fixture { - data.drm_fd =drm_open_driver_master (DRIVER_INTEL ); - - data.devid =intel_get_drm_devid (data.drm_fd); + data.drm_fd =drm_open_driver_master (DRIVER_ANY );kmstest_set_vt_graphics_mode ();tests/kms_pwrite_crc.c +0
-1@@ -42,7 +42,6 @@ typedef struct {enum pipe pipe;igt_crc_t ref_crc;igt_pipe_crc_t *pipe_crc; -uint32_t devid; } data_t;static void test (data_t *data)tests/kms_pwrite_crc.c static void test(data_t *data) · line 81
Quoted 6 lines
tests/kms_pwrite_crc.c +1
-0@@ -77,6 +76,7 @@ static void test(data_t *data) 0, 0, fb->width << 16, fb->height << 16);/* make sure caching mode has become UC/WT */ +igt_require_intel (data->drm_fd); caching =gem_get_caching (data->drm_fd, fb->gem_handle); igt_assert(caching == I915_CACHING_NONE || caching ==
I915_CACHING_DISPLAY);tests/kms_universal_plane.c functional_test_fini(functional_test_t *test,
Quoted 39 lines
tests/kms_pwrite_crc.c +2
-4@@ -141,7 +141,7 @@ static void cleanup_crtc(data_t *data)igt_plane_set_fb (data->primary,NULL ); -igt_output_set_pipe (output,PIPE_ANY ); +igt_output_set_pipe (output,PIPE_NONE );igt_display_commit (display);igt_remove_fb (data->drm_fd, &data->fb[0 ]);@@ -174,9 +174,7 @@ static data_t data; igt_simple_main { - data.drm_fd =drm_open_driver_master (DRIVER_INTEL ); - - data.devid =intel_get_drm_devid (data.drm_fd); + data.drm_fd =drm_open_driver_master (DRIVER_ANY );kmstest_set_vt_graphics_mode ();tests/kms_tv_load_detect.c +1
-1@@ -34,7 +34,7 @@ igt_maindrmModeConnector *tv_connector =NULL , *temp; igt_fixture { - drm_fd =drm_open_driver_master (DRIVER_INTEL ); + drm_fd =drm_open_driver_master (DRIVER_ANY ); res =drmModeGetResources (drm_fd);igt_require (res);tests/kms_universal_plane.c +0
-0@@ -107,7 +107,7 @@ functional_test_fini(functional_test_t *test,
igt_output_t*output)tests/kms_universal_plane.c sanity_test_pipe(data_t *data, enum pipe pipe,
Quoted 9 lines
tests/kms_universal_plane.c +1
-1igt_remove_fb (test->data->drm_fd, &test->red_fb);igt_remove_fb (test->data->drm_fd, &test->yellow_fb); -igt_output_set_pipe (output,PIPE_ANY ); +igt_output_set_pipe (output,PIPE_NONE );igt_display_commit2 (&test->data->display,COMMIT_LEGACY ); }@@ -382,6 +382,7 @@ sanity_test_pipe(data_t *data, enum pipe pipe,
igt_output_t*output)tests/kms_universal_plane.c sanity_test_pipe(data_t *data, enum pipe pipe, igt_output_t *output)
Quoted 7 lines
tests/kms_universal_plane.c +1
-0* doesn't cover CRTC (should fail on pre-gen9 and succeed on * gen9+). */ +igt_require_intel (data->drm_fd);igt_plane_set_fb (primary, &test.undersized_fb); expect = (data->display_ver <9 ) ? -EINVAL :0 ; igt_assert(igt_display_try_commit2(&data->display, COMMIT_UNIVERSAL)== expect);
tests/kms_universal_plane.c cursor_leak_test_pipe(data_t *data, enum pipe pipe,
Quoted 1 line
tests/kms_universal_plane.c +0
-0@@ -579,6 +580,7 @@ cursor_leak_test_pipe(data_t *data, enum pipe pipe,
igt_output_t*output)tests/kms_universal_plane.c gen9_test_pipe(data_t *data, enum pipe pipe,
Quoted 8 lines
tests/kms_universal_plane.c +1
-0igt_require_pipe (display, pipe);igt_require (display->has_cursor_plane); +igt_require_intel (data->drm_fd);igt_output_set_pipe (output, pipe); mode =igt_output_get_mode (output);@@ -704,6 +706,7 @@ gen9_test_pipe(data_t *data, enum pipe pipe,
igt_output_t*output)tests/kms_universal_plane.c igt_main · line 801
Quoted 13 lines
tests/kms_universal_plane.c +1
-2int ret =0 ; +igt_require_intel (data->drm_fd);igt_skip_on (data->display_ver <9 );igt_require_pipe (&data->display, pipe);@@ -797,8 +800,9 @@ igt_mainenum pipe pipe; igt_fixture { - data.drm_fd =drm_open_driver_master (DRIVER_INTEL ); - data.display_ver =intel_display_ver(intel_get_drm_devid(data.drm_fd));
tests/kms_universal_plane.c igt_main · line 805
Quoted 3 lines
tests/kms_universal_plane.c +3
-0+ data.drm_fd =drm_open_driver_master (DRIVER_ANY ); +if (is_i915_device (data.drm_fd)) + data.display_ver =intel_display_ver(intel_get_drm_devid(data.drm_fd));
Quoted 55 lines
tests/kms_universal_plane.c +0
-0kmstest_set_vt_graphics_mode ();tests/meson.build +0
-15@@ -19,11 +19,7 @@ test_progs = [ 'kms_atomic', 'kms_atomic_interruptible', 'kms_atomic_transition', - 'kms_big_fb', 'kms_big_joiner' , - 'kms_busy', - 'kms_ccs', - 'kms_cdclk', 'kms_concurrent', 'kms_content_protection', 'kms_cursor_crc',@@ -32,26 +28,18 @@ test_progs = [ 'kms_dither', 'kms_dp_aux_dev', 'kms_dp_tiled_display', - 'kms_draw_crc', 'kms_dsc', 'kms_fbcon_fbt', - 'kms_fence_pin_leak', 'kms_flip', 'kms_flip_event_leak', - 'kms_flip_scaled_crc', - 'kms_flip_tiling', 'kms_force_connector_basic', - 'kms_frontbuffer_tracking', 'kms_getfb', 'kms_hdmi_inject', 'kms_hdr', - 'kms_invalid_dotclock', 'kms_lease', - 'kms_legacy_colorkey', 'kms_mmap_write_crc', 'kms_multipipe_modeset', 'kms_panel_fitting', - 'kms_pipe_b_c_ivb', 'kms_pipe_crc_basic', 'kms_plane', 'kms_plane_alpha_blend',@@ -62,9 +50,6 @@ test_progs = [ 'kms_prime', 'kms_prop_blob', 'kms_properties', - 'kms_psr', - 'kms_psr2_su', - 'kms_psr2_sf', 'kms_pwrite_crc', 'kms_rmfb',
Quoted 8 lines
tests/meson.build i915_progs = [ · line 223
Quoted 6 lines
tests/meson.build +1
-0'kms_rotation_crc',@@ -235,6 +220,21 @@ i915_progs = [ 'i915_query', 'i915_selftest', 'i915_suspend', + 'kms_big_fb',Just curious, now that kms tests moved to i915, do you wanna keep it with the same prefix
kms_instead of addingi915_?
Even though these tests moved i915, still I can see these tests are KMS tests only :-)
Perti, any suggestions?
- Bhanu
Quoted 20 lines
Quoted 20 lines
tests/meson.build +14
-1+ 'kms_busy', + 'kms_ccs', + 'kms_cdclk', + 'kms_draw_crc', + 'kms_fence_pin_leak', + 'kms_flip_scaled_crc', + 'kms_flip_tiling', + 'kms_frontbuffer_tracking', + 'kms_invalid_dotclock', + 'kms_legacy_colorkey', + 'kms_pipe_b_c_ivb', + 'kms_psr', + 'kms_psr2_su', + 'kms_psr2_sf', 'sysfs_clients', 'sysfs_defaults', 'sysfs_heartbeat_interval', --2.32.0
Quoted 519 lines · Bhanuprakash
Quoted 313 lines
From: Mark Yacoub <[email protected]>
Sent: Monday, August 2, 2021 9:20 PM
To: Modem, Bhanuprakash <[email protected]>; Siqueira, Rodrigo <[email protected]>
Cc: Development mailing list for IGT GPU Tools <igt- [email protected]>; Latvala, Petri <[email protected]>; Srinivas, Vidya <[email protected]>; B S, Karthik <[email protected]>
Subject: Re: [PATCH i-g-t] tests/kms: Move Intel specific kms tests to i915 directoryd
Review
Quoted 95 lines · Bhanuprakash Modem
As KMS tests on IGT are officially supported on multiple SoCs and there is an active development on it. So, KMS tests are meant to be generic and if we need to test few things specific to Intel, so we can use
igt_require_intel(). But if the whole test is Intel specific, then the best place for the test would be tests/i915.This patch will move all Intel specific kms tests to tests/i915 directory. And update the tests those are generic but still open the driver as '
drm_open_driver_master(DRIVER_INTEL);'. This patch will also do some minor cleanups.Cc Mark Yacoub <[email protected]>Cc Petri Latvala <[email protected]>Cc Vidya Srinivas <[email protected]>Cc Karthik B S <[email protected]>Signed-off-by Bhanuprakash Modem <[email protected]>--- tests/{ => i915}/kms_big_fb.c | 0 tests/{ => i915}/kms_busy.c | 0 tests/{ => i915}/kms_ccs.c | 0 tests/{ => i915}/kms_cdclk.c | 0 tests/{ => i915}/kms_draw_crc.c | 0 tests/{ => i915}/kms_fence_pin_leak.c | 0 tests/{ => i915}/kms_flip_scaled_crc.c | 0 tests/{ => i915}/kms_flip_tiling.c | 0 tests/{ => i915}/kms_frontbuffer_tracking.c | 0 tests/{ => i915}/kms_invalid_dotclock.c | 0 tests/{ => i915}/kms_legacy_colorkey.c | 0 tests/{ => i915}/kms_pipe_b_c_ivb.c | 0 tests/{ => i915}/kms_psr.c | 0 tests/{ => i915}/kms_psr2_sf.c | 0 tests/{ => i915}/kms_psr2_su.c | 0 tests/kms_3d.c | 5 ++-- tests/kms_big_joiner.c | 2 +- tests/kms_cursor_edge_walk.c | 9 ++++--- tests/kms_fbcon_fbt.c | 3 ++- tests/kms_force_connector_basic.c | 4 +-- tests/kms_hdmi_inject.c | 14 +++++----- tests/kms_mmap_write_crc.c | 8 +++--- tests/kms_pwrite_crc.c | 8 +++--- tests/kms_tv_load_detect.c | 2 +- tests/kms_universal_plane.c | 10 ++++--- tests/meson.build | 30 ++++++++++----------- 26 files changed, 50 insertions(+), 45 deletions(-) rename tests/{ => i915}/kms_big_fb.c (100%) rename tests/{ => i915}/kms_busy.c (100%) rename tests/{ => i915}/kms_ccs.c (100%) rename tests/{ => i915}/kms_cdclk.c (100%) rename tests/{ => i915}/kms_draw_crc.c (100%) rename tests/{ => i915}/kms_fence_pin_leak.c (100%) rename tests/{ => i915}/kms_flip_scaled_crc.c (100%) rename tests/{ => i915}/kms_flip_tiling.c (100%) rename tests/{ => i915}/kms_frontbuffer_tracking.c (100%) rename tests/{ => i915}/kms_invalid_dotclock.c (100%) rename tests/{ => i915}/kms_legacy_colorkey.c (100%) rename tests/{ => i915}/kms_pipe_b_c_ivb.c (100%) rename tests/{ => i915}/kms_psr.c (100%) rename tests/{ => i915}/kms_psr2_sf.c (100%) rename tests/{ => i915}/kms_psr2_su.c (100%)tests/i915/kms_big_fb.c renamed from tests/kms_big_fb.c +0
-0tests/i915/kms_busy.c renamed from tests/kms_busy.c +0
-0tests/i915/kms_ccs.c renamed from tests/kms_ccs.c +0
-0tests/i915/kms_cdclk.c renamed from tests/kms_cdclk.c +0
-0tests/i915/kms_draw_crc.c renamed from tests/kms_draw_crc.c +0
-0tests/i915/kms_fence_pin_leak.c renamed from tests/kms_fence_pin_leak.c +0
-0tests/i915/kms_flip_scaled_crc.c renamed from tests/kms_flip_scaled_crc.c +0
-0tests/i915/kms_flip_tiling.c renamed from tests/kms_flip_tiling.c +0
-0(quoted diff) +0
-0
b/tests/i915/kms_frontbuffer_tracking.cReview
Quoted 4 lines
similarity index 100%
rename fromtests/kms_frontbuffer_tracking.c
rename totests/i915/kms_frontbuffer_tracking.c(quoted diff) +0
-0
b/tests/i915/kms_invalid_dotclock.ctests/kms_cursor_edge_walk.c igt_main_args("", long_opts, help_str, opt_handler,
Quoted 76 lines
similarity index 100%
rename fromtests/kms_invalid_dotclock.c
rename totests/i915/kms_invalid_dotclock.ctests/i915/kms_legacy_colorkey.c renamed from tests/kms_legacy_colorkey.c +0
-0tests/i915/kms_pipe_b_c_ivb.c renamed from tests/kms_pipe_b_c_ivb.c +0
-0tests/i915/kms_psr.c renamed from tests/kms_psr.c +0
-0tests/i915/kms_psr2_sf.c renamed from tests/kms_psr2_sf.c +0
-0tests/i915/kms_psr2_su.c renamed from tests/kms_psr2_su.c +0
-0tests/kms_3d.c +3
-2@@ -34,7 +34,7 @@ igt_simple_mainconst struct edid *edid;int mode_count, connector_id; - drm_fd =drm_open_driver_master (DRIVER_INTEL ); + drm_fd =drm_open_driver_master (DRIVER_ANY ); res =drmModeGetResources (drm_fd);igt_require (res);@@ -44,7 +44,8 @@ igt_simple_main/* find an hdmi connector */ for (int i =0 ; i < res->count_connectors; i++) { connector =drmModeGetConnectorCurrent (drm_fd, res- connectors[i]); -if (connector->connector_type ==DRM_MODE_CONNECTOR_HDMIA ) +if (connector->connector_type ==DRM_MODE_CONNECTOR_HDMIA || + connector->connector_type ==DRM_MODE_CONNECTOR_HDMIB )break ;drmModeFreeConnector (connector);connector = NULL;tests/kms_big_joiner.c +1
-1@@ -258,7 +258,7 @@ igt_mainuint16_t width =0 , height =0 ; igt_fixture { - data.drm_fd =drm_open_driver_master (DRIVER_INTEL ); + data.drm_fd =drm_open_driver_master (DRIVER_ANY );kmstest_set_vt_graphics_mode ();igt_display_require (&data.display, data.drm_fd);tests/kms_cursor_edge_walk.c +2
-2@@ -94,8 +94,8 @@ static void cursor_move(data_t *data, int x, int y, int i)* fails). So let's accept a failure from the ioctl in that case. */ igt_assert (drmModeMoveCursor (data->drm_fd, crtc_id, x, y) ==0 || - (IS_CHERRYVIEW (data->devid) && data->pipe ==PIPE_C && - x <0 && x > -data->curw)); + (data->devid &&IS_CHERRYVIEW (data->devid) && + data->pipe ==PIPE_C && x <0 && x > -data->curw));igt_wait_for_vblank (data->drm_fd, display->pipes[data->pipe].crtc_offset); }@@ -312,9 +312,10 @@ igt_main_args("", long_opts, help_str, opt_handler,&data)
tests/kms_cursor_edge_walk.c igt_main_args("", long_opts, help_str, opt_handler, &data)
Quoted 11 lines
tests/kms_cursor_edge_walk.c +3
-2igt_fixture {int ret; - data.drm_fd =drm_open_driver_master (DRIVER_INTEL ); + data.drm_fd =drm_open_driver_master (DRIVER_ANY ); - data.devid =intel_get_drm_devid (data.drm_fd); +if (is_i915_device (data.drm_fd)) + data.devid =intel_get_drm_devid (data.drm_fd); ret = drmGetCap(data.drm_fd, DRM_CAP_CURSOR_WIDTH,
&max_curw);tests/kms_fbcon_fbt.c static void subtest(struct drm_info *drm, struct feature
Quoted 6 lines
tests/kms_cursor_edge_walk.c +0
-0igt_assert (ret ==0 || errno ==EINVAL );tests/kms_fbcon_fbt.c +0
-0@@ -337,6 +337,7 @@ static void subtest(struct drm_info *drm, struct feature*feature, bool suspend)
tests/kms_fbcon_fbt.c static void subtest(struct drm_info *drm, struct feature *feature, bool suspend) · line 340
Quoted 4 lines
tests/kms_fbcon_fbt.c +1
-0igt_device_set_master (drm->fd);kmstest_set_vt_graphics_mode (); +igt_require_intel (drm->fd);Should this be moved to i915 as well?
tests/kms_fbcon_fbt.c static void setup_environment(struct drm_info *drm) · line 382
Quoted 10 lines
tests/kms_fbcon_fbt.c +0
-0igt_require (feature->supported_on_chipset (drm->fd, drm- debugfs_fd));disable_features(drm->fd, drm->debugfs_fd);tests/kms_fbcon_fbt.c +1
-1@@ -378,7 +379,7 @@ static void setup_environment(struct drm_info *drm) {int i; - drm->fd =drm_open_driver_master (DRIVER_INTEL ); + drm->fd =drm_open_driver_master (DRIVER_ANY );you added
igt_require_intel(drm->fd); insubtest()to changing toDRIVER_ANYdoesn't make the test run on other devices.Review
Quoted 4 lines
tests/kms_fbcon_fbt.c +0
-0igt_require (drm->fd >=0 ); drm->debugfs_fd =igt_debugfs_dir (drm->fd);igt_require (drm->debugfs_fd >=0 );(quoted diff) +0
-0
b/tests/kms_force_connector_basic.cQuoted 40 lines
index
3b0146fe9..683d36720100644tests/kms_force_connector_basic.c +2
-2@@ -37,7 +37,7 @@ static void reset_connectors(void)drmModeRes *res;drmModeConnector *connector =NULL ; - drm_fd =drm_open_driver_master (DRIVER_INTEL ); + drm_fd =drm_open_driver_master (DRIVER_ANY ); res =drmModeGetResources (drm_fd);for (int i =0 ; i < res->count_connectors; i++) {@@ -86,7 +86,7 @@ igt_main_args("", long_opts, help_str, opt_handler, NULL) igt_fixture {unsigned connector_id =0 ; - drm_fd =drm_open_driver_master (DRIVER_INTEL ); + drm_fd =drm_open_driver_master (DRIVER_ANY ); res =drmModeGetResources (drm_fd);igt_require (res);tests/kms_hdmi_inject.c +2
-1@@ -63,7 +63,8 @@ get_connector(int drm_fd, drmModeRes *res) connector =drmModeGetConnectorCurrent (drm_fd, res- connectors[i]); -if (connector->connector_type ==DRM_MODE_CONNECTOR_HDMIA ) +if (connector->connector_type ==DRM_MODE_CONNECTOR_HDMIA || + connector->connector_type ==DRM_MODE_CONNECTOR_HDMIB )break ;drmModeFreeConnector(connector);tests/kms_hdmi_inject.c +0
-0@@ -82,12 +83,13 @@ hdmi_inject_4k(int drm_fd, drmModeConnector *connector)int fb_id;struct igt_fb fb;uint8_t found_4k_mode =0 ;tests/kms_hdmi_inject.c hdmi_inject_4k(int drm_fd, drmModeConnector *connector) · line 91
Quoted 10 lines
tests/kms_hdmi_inject.c +4
-4-uint32_t devid; - devid =intel_get_drm_devid (drm_fd); + if (is_i915_device(drm_fd)) { + uint32_t devid = intel_get_drm_devid(drm_fd); -/* 4K requires at least HSW */ -igt_require (IS_HASWELL (devid) ||intel_display_ver (devid) >=8 ); + /* 4K requires at least HSW */ + igt_require(IS_HASWELL(devid) || intel_display_ver(devid) >=8);
Quoted 28 lines
tests/kms_hdmi_inject.c +2
-1+ } edid =igt_kms_get_4k_edid ();kmstest_force_edid (drm_fd, connector, edid);@@ -195,7 +197,7 @@ igt_maindrmModeConnector *connector; igt_fixture { - drm_fd =drm_open_driver_master (DRIVER_INTEL ); + drm_fd =drm_open_driver_master (DRIVER_ANY ); res =drmModeGetResources (drm_fd);igt_require (res);tests/kms_mmap_write_crc.c +0
-1@@ -51,7 +51,6 @@ typedef struct {enum pipe pipe;igt_crc_t ref_crc;igt_pipe_crc_t *pipe_crc; -uint32_t devid; } data_t;static int ioctl_sync = true;@@ -103,6 +102,7 @@ static void test(data_t *data)igt_display_commit (display);Quoted 5 lines
tests/kms_mmap_write_crc.c static void test(data_t *data) · line 105
Quoted 2 lines
tests/kms_mmap_write_crc.c +1
-0/* make sure caching mode has become UC/WT */ +igt_require_intel (data->drm_fd);same comment as above. here and other places where the same thing is done. Just curious if this is meant to allow other SoCs to expand or it's WIP to have it removed.
Intension of this patch is to move i915 specific KMS tests to tests/i915 dir, and make other KMS tests to support all SOCs. As of now only i915 is using these tests, so I have added this check. Whoever wants to expand/use these tests can remove this check.
Quoted 186 lines
tests/kms_mmap_write_crc.c static void test(data_t *data) · line 107
Quoted 2 lines
tests/kms_mmap_write_crc.c +0
-0caching =gem_get_caching (data->drm_fd, fb->gem_handle); igt_assert(caching == I915_CACHING_NONE || caching ==
I915_CACHING_DISPLAY);Quoted 34 lines
tests/kms_mmap_write_crc.c +2
-4@@ -204,7 +204,7 @@ static void cleanup_crtc(data_t *data)igt_plane_set_fb (data->primary,NULL ); -igt_output_set_pipe (output,PIPE_ANY ); +igt_output_set_pipe (output,PIPE_NONE );igt_display_commit (display);igt_remove_fb (data->drm_fd, &data->fb[0 ]);@@ -272,9 +272,7 @@ igt_main_args("n", NULL, NULL, opt_handler, NULL)int i; igt_fixture { - data.drm_fd =drm_open_driver_master (DRIVER_INTEL ); - - data.devid =intel_get_drm_devid (data.drm_fd); + data.drm_fd =drm_open_driver_master (DRIVER_ANY );kmstest_set_vt_graphics_mode ();tests/kms_pwrite_crc.c +0
-1@@ -42,7 +42,6 @@ typedef struct {enum pipe pipe;igt_crc_t ref_crc;igt_pipe_crc_t *pipe_crc; -uint32_t devid; } data_t;static void test (data_t *data)tests/kms_pwrite_crc.c static void test(data_t *data) · line 81
Quoted 6 lines
tests/kms_pwrite_crc.c +1
-0@@ -77,6 +76,7 @@ static void test(data_t *data) 0, 0, fb->width << 16, fb->height << 16);/* make sure caching mode has become UC/WT */ +igt_require_intel (data->drm_fd); caching =gem_get_caching (data->drm_fd, fb->gem_handle); igt_assert(caching == I915_CACHING_NONE || caching ==
I915_CACHING_DISPLAY);tests/kms_universal_plane.c functional_test_fini(functional_test_t *test,
Quoted 39 lines
tests/kms_pwrite_crc.c +2
-4@@ -141,7 +141,7 @@ static void cleanup_crtc(data_t *data)igt_plane_set_fb (data->primary,NULL ); -igt_output_set_pipe (output,PIPE_ANY ); +igt_output_set_pipe (output,PIPE_NONE );igt_display_commit (display);igt_remove_fb (data->drm_fd, &data->fb[0 ]);@@ -174,9 +174,7 @@ static data_t data; igt_simple_main { - data.drm_fd =drm_open_driver_master (DRIVER_INTEL ); - - data.devid =intel_get_drm_devid (data.drm_fd); + data.drm_fd =drm_open_driver_master (DRIVER_ANY );kmstest_set_vt_graphics_mode ();tests/kms_tv_load_detect.c +1
-1@@ -34,7 +34,7 @@ igt_maindrmModeConnector *tv_connector =NULL , *temp; igt_fixture { - drm_fd =drm_open_driver_master (DRIVER_INTEL ); + drm_fd =drm_open_driver_master (DRIVER_ANY ); res =drmModeGetResources (drm_fd);igt_require (res);tests/kms_universal_plane.c +0
-0@@ -107,7 +107,7 @@ functional_test_fini(functional_test_t *test,
igt_output_t*output)tests/kms_universal_plane.c sanity_test_pipe(data_t *data, enum pipe pipe,
Quoted 9 lines
tests/kms_universal_plane.c +1
-1igt_remove_fb (test->data->drm_fd, &test->red_fb);igt_remove_fb (test->data->drm_fd, &test->yellow_fb); -igt_output_set_pipe (output,PIPE_ANY ); +igt_output_set_pipe (output,PIPE_NONE );igt_display_commit2 (&test->data->display,COMMIT_LEGACY ); }@@ -382,6 +382,7 @@ sanity_test_pipe(data_t *data, enum pipe pipe,
igt_output_t*output)tests/kms_universal_plane.c sanity_test_pipe(data_t *data, enum pipe pipe, igt_output_t *output)
Quoted 7 lines
tests/kms_universal_plane.c +1
-0* doesn't cover CRTC (should fail on pre-gen9 and succeed on * gen9+). */ +igt_require_intel (data->drm_fd);igt_plane_set_fb (primary, &test.undersized_fb); expect = (data->display_ver <9 ) ? -EINVAL :0 ; igt_assert(igt_display_try_commit2(&data->display, COMMIT_UNIVERSAL)== expect);
tests/kms_universal_plane.c cursor_leak_test_pipe(data_t *data, enum pipe pipe,
Quoted 1 line
tests/kms_universal_plane.c +0
-0@@ -579,6 +580,7 @@ cursor_leak_test_pipe(data_t *data, enum pipe pipe,
igt_output_t*output)tests/kms_universal_plane.c gen9_test_pipe(data_t *data, enum pipe pipe,
Quoted 8 lines
tests/kms_universal_plane.c +1
-0igt_require_pipe (display, pipe);igt_require (display->has_cursor_plane); +igt_require_intel (data->drm_fd);igt_output_set_pipe (output, pipe); mode =igt_output_get_mode (output);@@ -704,6 +706,7 @@ gen9_test_pipe(data_t *data, enum pipe pipe,
igt_output_t*output)tests/kms_universal_plane.c igt_main · line 801
Quoted 13 lines
tests/kms_universal_plane.c +1
-2int ret =0 ; +igt_require_intel (data->drm_fd);igt_skip_on (data->display_ver <9 );igt_require_pipe (&data->display, pipe);@@ -797,8 +800,9 @@ igt_mainenum pipe pipe; igt_fixture { - data.drm_fd =drm_open_driver_master (DRIVER_INTEL ); - data.display_ver =intel_display_ver(intel_get_drm_devid(data.drm_fd));
tests/kms_universal_plane.c igt_main · line 805
Quoted 3 lines
tests/kms_universal_plane.c +3
-0+ data.drm_fd =drm_open_driver_master (DRIVER_ANY ); +if (is_i915_device (data.drm_fd)) + data.display_ver =intel_display_ver(intel_get_drm_devid(data.drm_fd));
Quoted 55 lines
tests/kms_universal_plane.c +0
-0kmstest_set_vt_graphics_mode ();tests/meson.build +0
-15@@ -19,11 +19,7 @@ test_progs = [ 'kms_atomic', 'kms_atomic_interruptible', 'kms_atomic_transition', - 'kms_big_fb', 'kms_big_joiner' , - 'kms_busy', - 'kms_ccs', - 'kms_cdclk', 'kms_concurrent', 'kms_content_protection', 'kms_cursor_crc',@@ -32,26 +28,18 @@ test_progs = [ 'kms_dither', 'kms_dp_aux_dev', 'kms_dp_tiled_display', - 'kms_draw_crc', 'kms_dsc', 'kms_fbcon_fbt', - 'kms_fence_pin_leak', 'kms_flip', 'kms_flip_event_leak', - 'kms_flip_scaled_crc', - 'kms_flip_tiling', 'kms_force_connector_basic', - 'kms_frontbuffer_tracking', 'kms_getfb', 'kms_hdmi_inject', 'kms_hdr', - 'kms_invalid_dotclock', 'kms_lease', - 'kms_legacy_colorkey', 'kms_mmap_write_crc', 'kms_multipipe_modeset', 'kms_panel_fitting', - 'kms_pipe_b_c_ivb', 'kms_pipe_crc_basic', 'kms_plane', 'kms_plane_alpha_blend',@@ -62,9 +50,6 @@ test_progs = [ 'kms_prime', 'kms_prop_blob', 'kms_properties', - 'kms_psr', - 'kms_psr2_su', - 'kms_psr2_sf', 'kms_pwrite_crc', 'kms_rmfb',Quoted 8 lines
tests/meson.build i915_progs = [ · line 223
Quoted 6 lines
tests/meson.build +1
-0'kms_rotation_crc',@@ -235,6 +220,21 @@ i915_progs = [ 'i915_query', 'i915_selftest', 'i915_suspend', + 'kms_big_fb',Just curious, now that kms tests moved to i915, do you wanna keep it with the same prefix
kms_instead of addingi915_?
Quoted 4 lines
Even though these tests moved i915, still I can see these tests are KMS tests only :-)
Perti, any suggestions?
Keep the kms_ name. They're still testing kms interfaces.
Signature · 1 line
Petri Latvala
Quoted 321 lines · Petri Latvala
Quoted 319 lines · Bhanuprakash
Quoted 318 lines
From: Mark Yacoub <[email protected]>
Sent: Monday, August 2, 2021 9:20 PM
To: Modem, Bhanuprakash <[email protected]>; Siqueira, Rodrigo <[email protected]>
Cc: Development mailing list for IGT GPU Tools <igt- [email protected]>; Latvala, Petri <[email protected]>; Srinivas, Vidya <[email protected]>; B S, Karthik <[email protected]>
Subject: Re: [PATCH i-g-t] tests/kms: Move Intel specific kms tests to i915 directoryd
Review
Quoted 95 lines · Bhanuprakash Modem
As KMS tests on IGT are officially supported on multiple SoCs and there is an active development on it. So, KMS tests are meant to be generic and if we need to test few things specific to Intel, so we can use
igt_require_intel(). But if the whole test is Intel specific, then the best place for the test would be tests/i915.This patch will move all Intel specific kms tests to tests/i915 directory. And update the tests those are generic but still open the driver as '
drm_open_driver_master(DRIVER_INTEL);'. This patch will also do some minor cleanups.Cc Mark Yacoub <[email protected]>Cc Petri Latvala <[email protected]>Cc Vidya Srinivas <[email protected]>Cc Karthik B S <[email protected]>Signed-off-by Bhanuprakash Modem <[email protected]>--- tests/{ => i915}/kms_big_fb.c | 0 tests/{ => i915}/kms_busy.c | 0 tests/{ => i915}/kms_ccs.c | 0 tests/{ => i915}/kms_cdclk.c | 0 tests/{ => i915}/kms_draw_crc.c | 0 tests/{ => i915}/kms_fence_pin_leak.c | 0 tests/{ => i915}/kms_flip_scaled_crc.c | 0 tests/{ => i915}/kms_flip_tiling.c | 0 tests/{ => i915}/kms_frontbuffer_tracking.c | 0 tests/{ => i915}/kms_invalid_dotclock.c | 0 tests/{ => i915}/kms_legacy_colorkey.c | 0 tests/{ => i915}/kms_pipe_b_c_ivb.c | 0 tests/{ => i915}/kms_psr.c | 0 tests/{ => i915}/kms_psr2_sf.c | 0 tests/{ => i915}/kms_psr2_su.c | 0 tests/kms_3d.c | 5 ++-- tests/kms_big_joiner.c | 2 +- tests/kms_cursor_edge_walk.c | 9 ++++--- tests/kms_fbcon_fbt.c | 3 ++- tests/kms_force_connector_basic.c | 4 +-- tests/kms_hdmi_inject.c | 14 +++++----- tests/kms_mmap_write_crc.c | 8 +++--- tests/kms_pwrite_crc.c | 8 +++--- tests/kms_tv_load_detect.c | 2 +- tests/kms_universal_plane.c | 10 ++++--- tests/meson.build | 30 ++++++++++----------- 26 files changed, 50 insertions(+), 45 deletions(-) rename tests/{ => i915}/kms_big_fb.c (100%) rename tests/{ => i915}/kms_busy.c (100%) rename tests/{ => i915}/kms_ccs.c (100%) rename tests/{ => i915}/kms_cdclk.c (100%) rename tests/{ => i915}/kms_draw_crc.c (100%) rename tests/{ => i915}/kms_fence_pin_leak.c (100%) rename tests/{ => i915}/kms_flip_scaled_crc.c (100%) rename tests/{ => i915}/kms_flip_tiling.c (100%) rename tests/{ => i915}/kms_frontbuffer_tracking.c (100%) rename tests/{ => i915}/kms_invalid_dotclock.c (100%) rename tests/{ => i915}/kms_legacy_colorkey.c (100%) rename tests/{ => i915}/kms_pipe_b_c_ivb.c (100%) rename tests/{ => i915}/kms_psr.c (100%) rename tests/{ => i915}/kms_psr2_sf.c (100%) rename tests/{ => i915}/kms_psr2_su.c (100%)tests/i915/kms_big_fb.c renamed from tests/kms_big_fb.c +0
-0tests/i915/kms_busy.c renamed from tests/kms_busy.c +0
-0tests/i915/kms_ccs.c renamed from tests/kms_ccs.c +0
-0tests/i915/kms_cdclk.c renamed from tests/kms_cdclk.c +0
-0tests/i915/kms_draw_crc.c renamed from tests/kms_draw_crc.c +0
-0tests/i915/kms_fence_pin_leak.c renamed from tests/kms_fence_pin_leak.c +0
-0tests/i915/kms_flip_scaled_crc.c renamed from tests/kms_flip_scaled_crc.c +0
-0tests/i915/kms_flip_tiling.c renamed from tests/kms_flip_tiling.c +0
-0(quoted diff) +0
-0
b/tests/i915/kms_frontbuffer_tracking.cReview
Quoted 4 lines
similarity index 100%
rename fromtests/kms_frontbuffer_tracking.c
rename totests/i915/kms_frontbuffer_tracking.c(quoted diff) +0
-0
b/tests/i915/kms_invalid_dotclock.ctests/kms_cursor_edge_walk.c igt_main_args("", long_opts, help_str, opt_handler,
Quoted 76 lines
similarity index 100%
rename fromtests/kms_invalid_dotclock.c
rename totests/i915/kms_invalid_dotclock.ctests/i915/kms_legacy_colorkey.c renamed from tests/kms_legacy_colorkey.c +0
-0tests/i915/kms_pipe_b_c_ivb.c renamed from tests/kms_pipe_b_c_ivb.c +0
-0tests/i915/kms_psr.c renamed from tests/kms_psr.c +0
-0tests/i915/kms_psr2_sf.c renamed from tests/kms_psr2_sf.c +0
-0tests/i915/kms_psr2_su.c renamed from tests/kms_psr2_su.c +0
-0tests/kms_3d.c +3
-2@@ -34,7 +34,7 @@ igt_simple_mainconst struct edid *edid;int mode_count, connector_id; - drm_fd =drm_open_driver_master (DRIVER_INTEL ); + drm_fd =drm_open_driver_master (DRIVER_ANY ); res =drmModeGetResources (drm_fd);igt_require (res);@@ -44,7 +44,8 @@ igt_simple_main/* find an hdmi connector */ for (int i =0 ; i < res->count_connectors; i++) { connector =drmModeGetConnectorCurrent (drm_fd, res- connectors[i]); -if (connector->connector_type ==DRM_MODE_CONNECTOR_HDMIA ) +if (connector->connector_type ==DRM_MODE_CONNECTOR_HDMIA || + connector->connector_type ==DRM_MODE_CONNECTOR_HDMIB )break ;drmModeFreeConnector (connector);connector = NULL;tests/kms_big_joiner.c +1
-1@@ -258,7 +258,7 @@ igt_mainuint16_t width =0 , height =0 ; igt_fixture { - data.drm_fd =drm_open_driver_master (DRIVER_INTEL ); + data.drm_fd =drm_open_driver_master (DRIVER_ANY );kmstest_set_vt_graphics_mode ();igt_display_require (&data.display, data.drm_fd);tests/kms_cursor_edge_walk.c +2
-2@@ -94,8 +94,8 @@ static void cursor_move(data_t *data, int x, int y, int i)* fails). So let's accept a failure from the ioctl in that case. */ igt_assert (drmModeMoveCursor (data->drm_fd, crtc_id, x, y) ==0 || - (IS_CHERRYVIEW (data->devid) && data->pipe ==PIPE_C && - x <0 && x > -data->curw)); + (data->devid &&IS_CHERRYVIEW (data->devid) && + data->pipe ==PIPE_C && x <0 && x > -data->curw));igt_wait_for_vblank (data->drm_fd, display->pipes[data->pipe].crtc_offset); }@@ -312,9 +312,10 @@ igt_main_args("", long_opts, help_str, opt_handler,&data)
tests/kms_cursor_edge_walk.c igt_main_args("", long_opts, help_str, opt_handler, &data)
Quoted 11 lines
tests/kms_cursor_edge_walk.c +3
-2igt_fixture {int ret; - data.drm_fd =drm_open_driver_master (DRIVER_INTEL ); + data.drm_fd =drm_open_driver_master (DRIVER_ANY ); - data.devid =intel_get_drm_devid (data.drm_fd); +if (is_i915_device (data.drm_fd)) + data.devid =intel_get_drm_devid (data.drm_fd); ret = drmGetCap(data.drm_fd, DRM_CAP_CURSOR_WIDTH,
&max_curw);tests/kms_fbcon_fbt.c static void subtest(struct drm_info *drm, struct feature
Quoted 6 lines
tests/kms_cursor_edge_walk.c +0
-0igt_assert (ret ==0 || errno ==EINVAL );tests/kms_fbcon_fbt.c +0
-0@@ -337,6 +337,7 @@ static void subtest(struct drm_info *drm, struct feature*feature, bool suspend)
tests/kms_fbcon_fbt.c static void subtest(struct drm_info *drm, struct feature *feature, bool suspend) · line 340
Quoted 4 lines
tests/kms_fbcon_fbt.c +1
-0igt_device_set_master (drm->fd);kmstest_set_vt_graphics_mode (); +igt_require_intel (drm->fd);Should this be moved to i915 as well?
tests/kms_fbcon_fbt.c static void setup_environment(struct drm_info *drm) · line 382
Quoted 10 lines
tests/kms_fbcon_fbt.c +0
-0igt_require (feature->supported_on_chipset (drm->fd, drm- debugfs_fd));disable_features(drm->fd, drm->debugfs_fd);tests/kms_fbcon_fbt.c +1
-1@@ -378,7 +379,7 @@ static void setup_environment(struct drm_info *drm) {int i; - drm->fd =drm_open_driver_master (DRIVER_INTEL ); + drm->fd =drm_open_driver_master (DRIVER_ANY );you added
igt_require_intel(drm->fd); insubtest()to changing toDRIVER_ANYdoesn't make the test run on other devices.Review
Quoted 4 lines
tests/kms_fbcon_fbt.c +0
-0igt_require (drm->fd >=0 ); drm->debugfs_fd =igt_debugfs_dir (drm->fd);igt_require (drm->debugfs_fd >=0 );(quoted diff) +0
-0
b/tests/kms_force_connector_basic.cQuoted 40 lines
index
3b0146fe9..683d36720100644tests/kms_force_connector_basic.c +2
-2@@ -37,7 +37,7 @@ static void reset_connectors(void)drmModeRes *res;drmModeConnector *connector =NULL ; - drm_fd =drm_open_driver_master (DRIVER_INTEL ); + drm_fd =drm_open_driver_master (DRIVER_ANY ); res =drmModeGetResources (drm_fd);for (int i =0 ; i < res->count_connectors; i++) {@@ -86,7 +86,7 @@ igt_main_args("", long_opts, help_str, opt_handler, NULL) igt_fixture {unsigned connector_id =0 ; - drm_fd =drm_open_driver_master (DRIVER_INTEL ); + drm_fd =drm_open_driver_master (DRIVER_ANY ); res =drmModeGetResources (drm_fd);igt_require (res);tests/kms_hdmi_inject.c +2
-1@@ -63,7 +63,8 @@ get_connector(int drm_fd, drmModeRes *res) connector =drmModeGetConnectorCurrent (drm_fd, res- connectors[i]); -if (connector->connector_type ==DRM_MODE_CONNECTOR_HDMIA ) +if (connector->connector_type ==DRM_MODE_CONNECTOR_HDMIA || + connector->connector_type ==DRM_MODE_CONNECTOR_HDMIB )break ;drmModeFreeConnector(connector);tests/kms_hdmi_inject.c +0
-0@@ -82,12 +83,13 @@ hdmi_inject_4k(int drm_fd, drmModeConnector *connector)int fb_id;struct igt_fb fb;uint8_t found_4k_mode =0 ;tests/kms_hdmi_inject.c hdmi_inject_4k(int drm_fd, drmModeConnector *connector) · line 91
Quoted 10 lines
tests/kms_hdmi_inject.c +4
-4-uint32_t devid; - devid =intel_get_drm_devid (drm_fd); + if (is_i915_device(drm_fd)) { + uint32_t devid = intel_get_drm_devid(drm_fd); -/* 4K requires at least HSW */ -igt_require (IS_HASWELL (devid) ||intel_display_ver (devid) >=8 ); + /* 4K requires at least HSW */ + igt_require(IS_HASWELL(devid) || intel_display_ver(devid) >=8);
Quoted 26 lines
tests/kms_hdmi_inject.c +2
-1+ } edid =igt_kms_get_4k_edid ();kmstest_force_edid (drm_fd, connector, edid);@@ -195,7 +197,7 @@ igt_maindrmModeConnector *connector; igt_fixture { - drm_fd =drm_open_driver_master (DRIVER_INTEL ); + drm_fd =drm_open_driver_master (DRIVER_ANY ); res =drmModeGetResources (drm_fd);igt_require (res);tests/kms_mmap_write_crc.c +0
-1@@ -51,7 +51,6 @@ typedef struct {enum pipe pipe;igt_crc_t ref_crc;igt_pipe_crc_t *pipe_crc; -uint32_t devid; } data_t;static int ioctl_sync = true;tests/kms_mmap_write_crc.c static void test(data_t *data) · line 105
Quoted 4 lines
tests/kms_mmap_write_crc.c +1
-0@@ -103,6 +102,7 @@ static void test(data_t *data)igt_display_commit (display);/* make sure caching mode has become UC/WT */ +igt_require_intel (data->drm_fd);same comment as above. here and other places where the same thing is done. Just curious if this is meant to allow other SoCs to expand or it's WIP to have it removed.
Quoted 4 lines
Quoted 4 lines
Intension of this patch is to move i915 specific KMS tests to tests/i915 dir, and make other KMS tests to support all SOCs. As of now only i915 is using these tests, so I have added this check. Whoever wants to expand/use these tests can remove this check.
fair enough. thanks for explaining.
Quoted 206 lines
Quoted 196 lines
Quoted 187 lines
tests/kms_mmap_write_crc.c static void test(data_t *data) · line 107
Quoted 3 lines
tests/kms_mmap_write_crc.c +0
-0caching =gem_get_caching (data->drm_fd, fb->gem_handle); igt_assert(caching == I915_CACHING_NONE || caching ==
I915_CACHING_DISPLAY);Quoted 34 lines
tests/kms_mmap_write_crc.c +2
-4@@ -204,7 +204,7 @@ static void cleanup_crtc(data_t *data)igt_plane_set_fb (data->primary,NULL ); -igt_output_set_pipe (output,PIPE_ANY ); +igt_output_set_pipe (output,PIPE_NONE );igt_display_commit (display);igt_remove_fb (data->drm_fd, &data->fb[0 ]);@@ -272,9 +272,7 @@ igt_main_args("n", NULL, NULL, opt_handler, NULL)int i; igt_fixture { - data.drm_fd =drm_open_driver_master (DRIVER_INTEL ); - - data.devid =intel_get_drm_devid (data.drm_fd); + data.drm_fd =drm_open_driver_master (DRIVER_ANY );kmstest_set_vt_graphics_mode ();tests/kms_pwrite_crc.c +0
-1@@ -42,7 +42,6 @@ typedef struct {enum pipe pipe;igt_crc_t ref_crc;igt_pipe_crc_t *pipe_crc; -uint32_t devid; } data_t;static void test (data_t *data)tests/kms_pwrite_crc.c static void test(data_t *data) · line 81
Quoted 6 lines
tests/kms_pwrite_crc.c +1
-0@@ -77,6 +76,7 @@ static void test(data_t *data) 0, 0, fb->width << 16, fb->height << 16);/* make sure caching mode has become UC/WT */ +igt_require_intel (data->drm_fd); caching =gem_get_caching (data->drm_fd, fb->gem_handle); igt_assert(caching == I915_CACHING_NONE || caching ==
I915_CACHING_DISPLAY);tests/kms_universal_plane.c functional_test_fini(functional_test_t *test,
Quoted 39 lines
tests/kms_pwrite_crc.c +2
-4@@ -141,7 +141,7 @@ static void cleanup_crtc(data_t *data)igt_plane_set_fb (data->primary,NULL ); -igt_output_set_pipe (output,PIPE_ANY ); +igt_output_set_pipe (output,PIPE_NONE );igt_display_commit (display);igt_remove_fb (data->drm_fd, &data->fb[0 ]);@@ -174,9 +174,7 @@ static data_t data; igt_simple_main { - data.drm_fd =drm_open_driver_master (DRIVER_INTEL ); - - data.devid =intel_get_drm_devid (data.drm_fd); + data.drm_fd =drm_open_driver_master (DRIVER_ANY );kmstest_set_vt_graphics_mode ();tests/kms_tv_load_detect.c +1
-1@@ -34,7 +34,7 @@ igt_maindrmModeConnector *tv_connector =NULL , *temp; igt_fixture { - drm_fd =drm_open_driver_master (DRIVER_INTEL ); + drm_fd =drm_open_driver_master (DRIVER_ANY ); res =drmModeGetResources (drm_fd);igt_require (res);tests/kms_universal_plane.c +0
-0@@ -107,7 +107,7 @@ functional_test_fini(functional_test_t *test,
igt_output_t*output)tests/kms_universal_plane.c sanity_test_pipe(data_t *data, enum pipe pipe,
Quoted 9 lines
tests/kms_universal_plane.c +1
-1igt_remove_fb (test->data->drm_fd, &test->red_fb);igt_remove_fb (test->data->drm_fd, &test->yellow_fb); -igt_output_set_pipe (output,PIPE_ANY ); +igt_output_set_pipe (output,PIPE_NONE );igt_display_commit2 (&test->data->display,COMMIT_LEGACY ); }@@ -382,6 +382,7 @@ sanity_test_pipe(data_t *data, enum pipe pipe,
igt_output_t*output)tests/kms_universal_plane.c sanity_test_pipe(data_t *data, enum pipe pipe, igt_output_t *output)
Quoted 7 lines
tests/kms_universal_plane.c +1
-0* doesn't cover CRTC (should fail on pre-gen9 and succeed on * gen9+). */ +igt_require_intel (data->drm_fd);igt_plane_set_fb (primary, &test.undersized_fb); expect = (data->display_ver <9 ) ? -EINVAL :0 ; igt_assert(igt_display_try_commit2(&data->display, COMMIT_UNIVERSAL)== expect);
tests/kms_universal_plane.c cursor_leak_test_pipe(data_t *data, enum pipe pipe,
Quoted 1 line
tests/kms_universal_plane.c +0
-0@@ -579,6 +580,7 @@ cursor_leak_test_pipe(data_t *data, enum pipe pipe,
igt_output_t*output)tests/kms_universal_plane.c gen9_test_pipe(data_t *data, enum pipe pipe,
Quoted 8 lines
tests/kms_universal_plane.c +1
-0igt_require_pipe (display, pipe);igt_require (display->has_cursor_plane); +igt_require_intel (data->drm_fd);igt_output_set_pipe (output, pipe); mode =igt_output_get_mode (output);@@ -704,6 +706,7 @@ gen9_test_pipe(data_t *data, enum pipe pipe,
igt_output_t*output)tests/kms_universal_plane.c igt_main · line 801
Quoted 13 lines
tests/kms_universal_plane.c +1
-2int ret =0 ; +igt_require_intel (data->drm_fd);igt_skip_on (data->display_ver <9 );igt_require_pipe (&data->display, pipe);@@ -797,8 +800,9 @@ igt_mainenum pipe pipe; igt_fixture { - data.drm_fd =drm_open_driver_master (DRIVER_INTEL ); - data.display_ver =intel_display_ver(intel_get_drm_devid(data.drm_fd));
tests/kms_universal_plane.c igt_main · line 805
Quoted 3 lines
tests/kms_universal_plane.c +3
-0+ data.drm_fd =drm_open_driver_master (DRIVER_ANY ); +if (is_i915_device (data.drm_fd)) + data.display_ver =intel_display_ver(intel_get_drm_devid(data.drm_fd));
Quoted 55 lines
tests/kms_universal_plane.c +0
-0kmstest_set_vt_graphics_mode ();tests/meson.build +0
-15@@ -19,11 +19,7 @@ test_progs = [ 'kms_atomic', 'kms_atomic_interruptible', 'kms_atomic_transition', - 'kms_big_fb', 'kms_big_joiner' , - 'kms_busy', - 'kms_ccs', - 'kms_cdclk', 'kms_concurrent', 'kms_content_protection', 'kms_cursor_crc',@@ -32,26 +28,18 @@ test_progs = [ 'kms_dither', 'kms_dp_aux_dev', 'kms_dp_tiled_display', - 'kms_draw_crc', 'kms_dsc', 'kms_fbcon_fbt', - 'kms_fence_pin_leak', 'kms_flip', 'kms_flip_event_leak', - 'kms_flip_scaled_crc', - 'kms_flip_tiling', 'kms_force_connector_basic', - 'kms_frontbuffer_tracking', 'kms_getfb', 'kms_hdmi_inject', 'kms_hdr', - 'kms_invalid_dotclock', 'kms_lease', - 'kms_legacy_colorkey', 'kms_mmap_write_crc', 'kms_multipipe_modeset', 'kms_panel_fitting', - 'kms_pipe_b_c_ivb', 'kms_pipe_crc_basic', 'kms_plane', 'kms_plane_alpha_blend',@@ -62,9 +50,6 @@ test_progs = [ 'kms_prime', 'kms_prop_blob', 'kms_properties', - 'kms_psr', - 'kms_psr2_su', - 'kms_psr2_sf', 'kms_pwrite_crc', 'kms_rmfb',Quoted 8 lines
tests/meson.build i915_progs = [ · line 223
Quoted 6 lines
tests/meson.build +1
-0'kms_rotation_crc',@@ -235,6 +220,21 @@ i915_progs = [ 'i915_query', 'i915_selftest', 'i915_suspend', + 'kms_big_fb',Just curious, now that kms tests moved to i915, do you wanna keep it with the same prefix
kms_instead of addingi915_?Quoted 4 lines
Even though these tests moved i915, still I can see these tests are KMS tests only :-)
Perti, any suggestions?
Keep the
kms_name. They're still testing kms interfaces.--
Petri Latvala
Hi,
First of all, thanks a lot for this series. In general, this patch lgtm, I just have a few comments but just for discussion.
Quoted 175 lines · Bhanuprakash Modem
As KMS tests on IGT are officially supported on multiple SoCs and there is an active development on it. So, KMS tests are meant to be generic and if we need to test few things specific to Intel, so we can use
igt_require_intel(). But if the whole test is Intel specific, then the best place for the test would be tests/i915.This patch will move all Intel specific kms tests to tests/i915 directory. And update the tests those are generic but still open the driver as '
drm_open_driver_master(DRIVER_INTEL);'. This patch will also do some minor cleanups.Cc Mark Yacoub <[email protected]>Cc Petri Latvala <[email protected]>Cc Vidya Srinivas <[email protected]>Cc Karthik B S <[email protected]>Signed-off-by Bhanuprakash Modem <[email protected]>--- tests/{ => i915}/kms_big_fb.c | 0 tests/{ => i915}/kms_busy.c | 0 tests/{ => i915}/kms_ccs.c | 0 tests/{ => i915}/kms_cdclk.c | 0 tests/{ => i915}/kms_draw_crc.c | 0 tests/{ => i915}/kms_fence_pin_leak.c | 0 tests/{ => i915}/kms_flip_scaled_crc.c | 0 tests/{ => i915}/kms_flip_tiling.c | 0 tests/{ => i915}/kms_frontbuffer_tracking.c | 0 tests/{ => i915}/kms_invalid_dotclock.c | 0 tests/{ => i915}/kms_legacy_colorkey.c | 0 tests/{ => i915}/kms_pipe_b_c_ivb.c | 0 tests/{ => i915}/kms_psr.c | 0 tests/{ => i915}/kms_psr2_sf.c | 0 tests/{ => i915}/kms_psr2_su.c | 0 tests/kms_3d.c | 5 ++-- tests/kms_big_joiner.c | 2 +- tests/kms_cursor_edge_walk.c | 9 ++++--- tests/kms_fbcon_fbt.c | 3 ++- tests/kms_force_connector_basic.c | 4 +-- tests/kms_hdmi_inject.c | 14 +++++----- tests/kms_mmap_write_crc.c | 8 +++--- tests/kms_pwrite_crc.c | 8 +++--- tests/kms_tv_load_detect.c | 2 +- tests/kms_universal_plane.c | 10 ++++--- tests/meson.build | 30 ++++++++++----------- 26 files changed, 50 insertions(+), 45 deletions(-) rename tests/{ => i915}/kms_big_fb.c (100%) rename tests/{ => i915}/kms_busy.c (100%) rename tests/{ => i915}/kms_ccs.c (100%) rename tests/{ => i915}/kms_cdclk.c (100%) rename tests/{ => i915}/kms_draw_crc.c (100%) rename tests/{ => i915}/kms_fence_pin_leak.c (100%) rename tests/{ => i915}/kms_flip_scaled_crc.c (100%) rename tests/{ => i915}/kms_flip_tiling.c (100%) rename tests/{ => i915}/kms_frontbuffer_tracking.c (100%) rename tests/{ => i915}/kms_invalid_dotclock.c (100%) rename tests/{ => i915}/kms_legacy_colorkey.c (100%) rename tests/{ => i915}/kms_pipe_b_c_ivb.c (100%) rename tests/{ => i915}/kms_psr.c (100%) rename tests/{ => i915}/kms_psr2_sf.c (100%) rename tests/{ => i915}/kms_psr2_su.c (100%)tests/i915/kms_big_fb.c renamed from tests/kms_big_fb.c +0
-0tests/i915/kms_busy.c renamed from tests/kms_busy.c +0
-0tests/i915/kms_ccs.c renamed from tests/kms_ccs.c +0
-0tests/i915/kms_cdclk.c renamed from tests/kms_cdclk.c +0
-0tests/i915/kms_draw_crc.c renamed from tests/kms_draw_crc.c +0
-0tests/i915/kms_fence_pin_leak.c renamed from tests/kms_fence_pin_leak.c +0
-0tests/i915/kms_flip_scaled_crc.c renamed from tests/kms_flip_scaled_crc.c +0
-0tests/i915/kms_flip_tiling.c renamed from tests/kms_flip_tiling.c +0
-0tests/i915/kms_frontbuffer_tracking.c renamed from tests/kms_frontbuffer_tracking.c +0
-0tests/i915/kms_invalid_dotclock.c renamed from tests/kms_invalid_dotclock.c +0
-0tests/i915/kms_legacy_colorkey.c renamed from tests/kms_legacy_colorkey.c +0
-0tests/i915/kms_pipe_b_c_ivb.c renamed from tests/kms_pipe_b_c_ivb.c +0
-0tests/i915/kms_psr.c renamed from tests/kms_psr.c +0
-0tests/i915/kms_psr2_sf.c renamed from tests/kms_psr2_sf.c +0
-0tests/i915/kms_psr2_su.c renamed from tests/kms_psr2_su.c +0
-0tests/kms_3d.c +3
-2@@ -34,7 +34,7 @@ igt_simple_mainconst struct edid *edid;int mode_count, connector_id; - drm_fd =drm_open_driver_master (DRIVER_INTEL ); + drm_fd =drm_open_driver_master (DRIVER_ANY ); res =drmModeGetResources (drm_fd);igt_require (res);@@ -44,7 +44,8 @@ igt_simple_main/* find an hdmi connector */ for (int i =0 ; i < res->count_connectors; i++) { connector =drmModeGetConnectorCurrent (drm_fd, res->connectors[i]); -if (connector->connector_type ==DRM_MODE_CONNECTOR_HDMIA ) +if (connector->connector_type ==DRM_MODE_CONNECTOR_HDMIA || + connector->connector_type ==DRM_MODE_CONNECTOR_HDMIB )break ;drmModeFreeConnector (connector); connector =NULL ;tests/kms_big_joiner.c +1
-1@@ -258,7 +258,7 @@ igt_mainuint16_t width =0 , height =0 ; igt_fixture { - data.drm_fd =drm_open_driver_master (DRIVER_INTEL ); + data.drm_fd =drm_open_driver_master (DRIVER_ANY );kmstest_set_vt_graphics_mode ();igt_display_require (&data.display, data.drm_fd);tests/kms_cursor_edge_walk.c +2
-2@@ -94,8 +94,8 @@ static void cursor_move(data_t *data, int x, int y, int i)* fails). So let's accept a failure from the ioctl in that case. */ igt_assert (drmModeMoveCursor (data->drm_fd, crtc_id, x, y) ==0 || - (IS_CHERRYVIEW (data->devid) && data->pipe ==PIPE_C && - x <0 && x > -data->curw)); + (data->devid &&IS_CHERRYVIEW (data->devid) && + data->pipe ==PIPE_C && x <0 && x > -data->curw));igt_wait_for_vblank (data->drm_fd, display->pipes[data->pipe].crtc_offset); }@@ -312,9 +312,10 @@ igt_main_args("", long_opts, help_str, opt_handler, &data) igt_fixture {int ret;
tests/kms_cursor_edge_walk.c igt_main_args("", long_opts, help_str, opt_handler, &data) · line 321
Quoted 10 lines
tests/kms_cursor_edge_walk.c +3
-2- data.drm_fd =drm_open_driver_master (DRIVER_INTEL ); + data.drm_fd =drm_open_driver_master (DRIVER_ANY ); - data.devid =intel_get_drm_devid (data.drm_fd); +if (is_i915_device (data.drm_fd)) + data.devid =intel_get_drm_devid (data.drm_fd); ret =drmGetCap (data.drm_fd,DRM_CAP_CURSOR_WIDTH , &max_curw);igt_assert (ret ==0 || errno ==EINVAL );
After this changes, all of these tests pass on Radeon RX 5600 :)
Quoted 13 lines
tests/kms_fbcon_fbt.c +1
-0@@ -337,6 +337,7 @@ static void subtest(struct drm_info *drm, struct feature *feature, bool suspend)igt_device_set_master (drm->fd);kmstest_set_vt_graphics_mode (); +igt_require_intel (drm->fd);igt_require (feature->supported_on_chipset (drm->fd, drm->debugfs_fd));disable_features (drm->fd, drm->debugfs_fd);
tests/kms_fbcon_fbt.c static void setup_environment(struct drm_info *drm) · line 385
Quoted 8 lines
tests/kms_fbcon_fbt.c +1
-1@@ -378,7 +379,7 @@ static void setup_environment(struct drm_info *drm) {int i; - drm->fd =drm_open_driver_master (DRIVER_INTEL ); + drm->fd =drm_open_driver_master (DRIVER_ANY );igt_require (drm->fd >=0 ); drm->debugfs_fd =igt_debugfs_dir (drm->fd);igt_require (drm->debugfs_fd >=0 );
All of these tests skip on AMD devices. I noticed that two of them require psr, which I suppose cannot be generic, right?
Quoted 55 lines
tests/kms_force_connector_basic.c +2
-2@@ -37,7 +37,7 @@ static void reset_connectors(void)drmModeRes *res;drmModeConnector *connector =NULL ; - drm_fd =drm_open_driver_master (DRIVER_INTEL ); + drm_fd =drm_open_driver_master (DRIVER_ANY ); res =drmModeGetResources (drm_fd);for (int i =0 ; i < res->count_connectors; i++) {@@ -86,7 +86,7 @@ igt_main_args("", long_opts, help_str, opt_handler, NULL) igt_fixture {unsigned connector_id =0 ; - drm_fd =drm_open_driver_master (DRIVER_INTEL ); + drm_fd =drm_open_driver_master (DRIVER_ANY ); res =drmModeGetResources (drm_fd);igt_require (res);tests/kms_hdmi_inject.c +7
-5@@ -63,7 +63,8 @@ get_connector(int drm_fd, drmModeRes *res) connector =drmModeGetConnectorCurrent (drm_fd, res->connectors[i]); -if (connector->connector_type ==DRM_MODE_CONNECTOR_HDMIA ) +if (connector->connector_type ==DRM_MODE_CONNECTOR_HDMIA || + connector->connector_type ==DRM_MODE_CONNECTOR_HDMIB )break ;drmModeFreeConnector (connector);@@ -82,12 +83,13 @@ hdmi_inject_4k(int drm_fd, drmModeConnector *connector)int fb_id;struct igt_fb fb;uint8_t found_4k_mode =0 ; -uint32_t devid; - devid =intel_get_drm_devid (drm_fd); +if (is_i915_device (drm_fd)) { +uint32_t devid =intel_get_drm_devid (drm_fd); -/* 4K requires at least HSW */ -igt_require (IS_HASWELL (devid) ||intel_display_ver (devid) >=8 ); +/* 4K requires at least HSW */ +igt_require (IS_HASWELL (devid) ||intel_display_ver (devid) >=8 ); + } edid =igt_kms_get_4k_edid ();kmstest_force_edid (drm_fd, connector, edid);
tests/kms_hdmi_inject.c igt_main · line 203
Quoted 8 lines
tests/kms_hdmi_inject.c +1
-1@@ -195,7 +197,7 @@ igt_maindrmModeConnector *connector; igt_fixture { - drm_fd =drm_open_driver_master (DRIVER_INTEL ); + drm_fd =drm_open_driver_master (DRIVER_ANY ); res =drmModeGetResources (drm_fd);igt_require (res);
I tried this test using Radeon RX 5600, with HDMI, connected to a 4k display; however, it failed:
Starting subtest: inject-4k
(kms_hdmi_inject:2531) CRITICAL: Test assertion failure function hdmi_inject_4k, file ../tests/kms_hdmi_inject.c:112:
(kms_hdmi_inject:2531) CRITICAL: Failed assertion: found_4k_mode
Stack trace:
#0 ../lib/igt_core.c:1745 __igt_fail_assert()
#1 [hdmi_inject_4k+0x26c]
#2 ../tests/kms_hdmi_inject.c:213 __real_main193()
#3 ../tests/kms_hdmi_inject.c:193 main()
#4 ../csu/libc-start.c:342 __libc_start_main()
#5 [_start+0x2e]
Subtest inject-4k failed
Any hint?
Quoted 13 lines
tests/kms_mmap_write_crc.c +0
-1@@ -51,7 +51,6 @@ typedef struct {enum pipe pipe;igt_crc_t ref_crc;igt_pipe_crc_t *pipe_crc; -uint32_t devid; } data_t;static int ioctl_sync = true;
tests/kms_mmap_write_crc.c static void test(data_t *data) · line 105
Quoted 4 lines
tests/kms_mmap_write_crc.c +1
-0@@ -103,6 +102,7 @@ static void test(data_t *data)igt_display_commit (display);/* make sure caching mode has become UC/WT */ +igt_require_intel (data->drm_fd);
This test skips because this line. If this cannot be generic, maybe consider moving it to i915?
Quoted 36 lines
tests/kms_mmap_write_crc.c +2
-4caching =gem_get_caching (data->drm_fd, fb->gem_handle);igt_assert (caching ==I915_CACHING_NONE || caching ==I915_CACHING_DISPLAY );@@ -204,7 +204,7 @@ static void cleanup_crtc(data_t *data)igt_plane_set_fb (data->primary,NULL ); -igt_output_set_pipe (output,PIPE_ANY ); +igt_output_set_pipe (output,PIPE_NONE );igt_display_commit (display);igt_remove_fb (data->drm_fd, &data->fb[0 ]);@@ -272,9 +272,7 @@ igt_main_args("n", NULL, NULL, opt_handler, NULL)int i; igt_fixture { - data.drm_fd =drm_open_driver_master (DRIVER_INTEL ); - - data.devid =intel_get_drm_devid (data.drm_fd); + data.drm_fd =drm_open_driver_master (DRIVER_ANY );kmstest_set_vt_graphics_mode ();tests/kms_pwrite_crc.c +0
-1@@ -42,7 +42,6 @@ typedef struct {enum pipe pipe;igt_crc_t ref_crc;igt_pipe_crc_t *pipe_crc; -uint32_t devid; } data_t;static void test (data_t *data)
tests/kms_pwrite_crc.c static void test(data_t *data) · line 79
Quoted 4 lines
tests/kms_pwrite_crc.c +1
-0@@ -77,6 +76,7 @@ static void test(data_t *data) 0, 0, fb->width << 16, fb->height << 16);/* make sure caching mode has become UC/WT */ +igt_require_intel (data->drm_fd);
Same idea from my previous comment.
Thanks
Siqueira
Quoted 167 lines
tests/kms_pwrite_crc.c +2
-4caching =gem_get_caching (data->drm_fd, fb->gem_handle);igt_assert (caching ==I915_CACHING_NONE || caching ==I915_CACHING_DISPLAY );@@ -141,7 +141,7 @@ static void cleanup_crtc(data_t *data)igt_plane_set_fb (data->primary,NULL ); -igt_output_set_pipe (output,PIPE_ANY ); +igt_output_set_pipe (output,PIPE_NONE );igt_display_commit (display);igt_remove_fb (data->drm_fd, &data->fb[0 ]);@@ -174,9 +174,7 @@ static data_t data; igt_simple_main { - data.drm_fd =drm_open_driver_master (DRIVER_INTEL ); - - data.devid =intel_get_drm_devid (data.drm_fd); + data.drm_fd =drm_open_driver_master (DRIVER_ANY );kmstest_set_vt_graphics_mode ();tests/kms_tv_load_detect.c +1
-1@@ -34,7 +34,7 @@ igt_maindrmModeConnector *tv_connector =NULL , *temp; igt_fixture { - drm_fd =drm_open_driver_master (DRIVER_INTEL ); + drm_fd =drm_open_driver_master (DRIVER_ANY ); res =drmModeGetResources (drm_fd);igt_require (res);tests/kms_universal_plane.c +7
-3@@ -107,7 +107,7 @@ functional_test_fini(functional_test_t *test, igt_output_t *output)igt_remove_fb (test->data->drm_fd, &test->red_fb);igt_remove_fb (test->data->drm_fd, &test->yellow_fb); -igt_output_set_pipe (output,PIPE_ANY ); +igt_output_set_pipe (output,PIPE_NONE );igt_display_commit2 (&test->data->display,COMMIT_LEGACY ); }@@ -382,6 +382,7 @@ sanity_test_pipe(data_t *data, enum pipe pipe, igt_output_t *output)* doesn't cover CRTC (should fail on pre-gen9 and succeed on * gen9+). */ +igt_require_intel (data->drm_fd);igt_plane_set_fb (primary, &test.undersized_fb); expect = (data->display_ver <9 ) ? -EINVAL :0 ;igt_assert (igt_display_try_commit2 (&data->display,COMMIT_UNIVERSAL ) == expect);@@ -579,6 +580,7 @@ cursor_leak_test_pipe(data_t *data, enum pipe pipe, igt_output_t *output)igt_require_pipe (display, pipe);igt_require (display->has_cursor_plane); +igt_require_intel (data->drm_fd);igt_output_set_pipe (output, pipe); mode =igt_output_get_mode (output);@@ -704,6 +706,7 @@ gen9_test_pipe(data_t *data, enum pipe pipe, igt_output_t *output)int ret =0 ; +igt_require_intel (data->drm_fd);igt_skip_on (data->display_ver <9 );igt_require_pipe (&data->display, pipe);@@ -797,8 +800,9 @@ igt_mainenum pipe pipe; igt_fixture { - data.drm_fd =drm_open_driver_master (DRIVER_INTEL ); - data.display_ver =intel_display_ver (intel_get_drm_devid (data.drm_fd)); + data.drm_fd =drm_open_driver_master (DRIVER_ANY ); +if (is_i915_device (data.drm_fd)) + data.display_ver =intel_display_ver (intel_get_drm_devid (data.drm_fd));kmstest_set_vt_graphics_mode ();tests/meson.build +15
-15@@ -19,11 +19,7 @@ test_progs = [ 'kms_atomic', 'kms_atomic_interruptible', 'kms_atomic_transition', - 'kms_big_fb', 'kms_big_joiner' , - 'kms_busy', - 'kms_ccs', - 'kms_cdclk', 'kms_concurrent', 'kms_content_protection', 'kms_cursor_crc',@@ -32,26 +28,18 @@ test_progs = [ 'kms_dither', 'kms_dp_aux_dev', 'kms_dp_tiled_display', - 'kms_draw_crc', 'kms_dsc', 'kms_fbcon_fbt', - 'kms_fence_pin_leak', 'kms_flip', 'kms_flip_event_leak', - 'kms_flip_scaled_crc', - 'kms_flip_tiling', 'kms_force_connector_basic', - 'kms_frontbuffer_tracking', 'kms_getfb', 'kms_hdmi_inject', 'kms_hdr', - 'kms_invalid_dotclock', 'kms_lease', - 'kms_legacy_colorkey', 'kms_mmap_write_crc', 'kms_multipipe_modeset', 'kms_panel_fitting', - 'kms_pipe_b_c_ivb', 'kms_pipe_crc_basic', 'kms_plane', 'kms_plane_alpha_blend',@@ -62,9 +50,6 @@ test_progs = [ 'kms_prime', 'kms_prop_blob', 'kms_properties', - 'kms_psr', - 'kms_psr2_su', - 'kms_psr2_sf', 'kms_pwrite_crc', 'kms_rmfb', 'kms_rotation_crc',@@ -235,6 +220,21 @@ i915_progs = [ 'i915_query', 'i915_selftest', 'i915_suspend', + 'kms_big_fb', + 'kms_busy', + 'kms_ccs', + 'kms_cdclk', + 'kms_draw_crc', + 'kms_fence_pin_leak', + 'kms_flip_scaled_crc', + 'kms_flip_tiling', + 'kms_frontbuffer_tracking', + 'kms_invalid_dotclock', + 'kms_legacy_colorkey', + 'kms_pipe_b_c_ivb', + 'kms_psr', + 'kms_psr2_su', + 'kms_psr2_sf', 'sysfs_clients', 'sysfs_defaults', 'sysfs_heartbeat_interval',Signature · 6 lines
2.32.0 _______________________________________________ igt-dev mailing list [email protected] https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Figt-dev&data=04%7C01%7CRodrigo.Siqueira%40amd.com%7Cd1a308d9ee3441dd2db508d9532a9b5b%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637632264727564399%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=yY%2BAdDWByyM3k4LOoLq58Qj6w%2BRm2QnxIwXwQDwDhew%3D&reserved=0
Signature · 2 lines
Rodrigo Siqueira https://siqueira.tech
Quoted 223 lines
From: Rodrigo Siqueira <[email protected]>
Sent: Tuesday, August 3, 2021 9:37 PM
To: Modem, Bhanuprakash <[email protected]>
Cc: [email protected]; Latvala, Petri <[email protected]>; [email protected]; Melissa Wen <[email protected]>; Mark Yacoub <[email protected]>; Anson Jacob <[email protected]>
Subject: Re: [igt-dev] [PATCH i-g-t] tests/kms: Move Intel specific kms tests to i915 directoryHi,
First of all, thanks a lot for this series. In general, this patch lgtm, I just have a few comments but just for discussion.
Review
Quoted 94 lines · Bhanuprakash Modem
As KMS tests on IGT are officially supported on multiple SoCs and there is an active development on it. So, KMS tests are meant to be generic and if we need to test few things specific to Intel, so we can use
igt_require_intel(). But if the whole test is Intel specific, then the best place for the test would be tests/i915.This patch will move all Intel specific kms tests to tests/i915 directory. And update the tests those are generic but still open the driver as '
drm_open_driver_master(DRIVER_INTEL);'. This patch will also do some minor cleanups.Cc Mark Yacoub <[email protected]>Cc Petri Latvala <[email protected]>Cc Vidya Srinivas <[email protected]>Cc Karthik B S <[email protected]>Signed-off-by Bhanuprakash Modem <[email protected]>--- tests/{ => i915}/kms_big_fb.c | 0 tests/{ => i915}/kms_busy.c | 0 tests/{ => i915}/kms_ccs.c | 0 tests/{ => i915}/kms_cdclk.c | 0 tests/{ => i915}/kms_draw_crc.c | 0 tests/{ => i915}/kms_fence_pin_leak.c | 0 tests/{ => i915}/kms_flip_scaled_crc.c | 0 tests/{ => i915}/kms_flip_tiling.c | 0 tests/{ => i915}/kms_frontbuffer_tracking.c | 0 tests/{ => i915}/kms_invalid_dotclock.c | 0 tests/{ => i915}/kms_legacy_colorkey.c | 0 tests/{ => i915}/kms_pipe_b_c_ivb.c | 0 tests/{ => i915}/kms_psr.c | 0 tests/{ => i915}/kms_psr2_sf.c | 0 tests/{ => i915}/kms_psr2_su.c | 0 tests/kms_3d.c | 5 ++-- tests/kms_big_joiner.c | 2 +- tests/kms_cursor_edge_walk.c | 9 ++++--- tests/kms_fbcon_fbt.c | 3 ++- tests/kms_force_connector_basic.c | 4 +-- tests/kms_hdmi_inject.c | 14 +++++----- tests/kms_mmap_write_crc.c | 8 +++--- tests/kms_pwrite_crc.c | 8 +++--- tests/kms_tv_load_detect.c | 2 +- tests/kms_universal_plane.c | 10 ++++--- tests/meson.build | 30 ++++++++++----------- 26 files changed, 50 insertions(+), 45 deletions(-) rename tests/{ => i915}/kms_big_fb.c (100%) rename tests/{ => i915}/kms_busy.c (100%) rename tests/{ => i915}/kms_ccs.c (100%) rename tests/{ => i915}/kms_cdclk.c (100%) rename tests/{ => i915}/kms_draw_crc.c (100%) rename tests/{ => i915}/kms_fence_pin_leak.c (100%) rename tests/{ => i915}/kms_flip_scaled_crc.c (100%) rename tests/{ => i915}/kms_flip_tiling.c (100%) rename tests/{ => i915}/kms_frontbuffer_tracking.c (100%) rename tests/{ => i915}/kms_invalid_dotclock.c (100%) rename tests/{ => i915}/kms_legacy_colorkey.c (100%) rename tests/{ => i915}/kms_pipe_b_c_ivb.c (100%) rename tests/{ => i915}/kms_psr.c (100%) rename tests/{ => i915}/kms_psr2_sf.c (100%) rename tests/{ => i915}/kms_psr2_su.c (100%)tests/i915/kms_big_fb.c renamed from tests/kms_big_fb.c +0
-0tests/i915/kms_busy.c renamed from tests/kms_busy.c +0
-0tests/i915/kms_ccs.c renamed from tests/kms_ccs.c +0
-0tests/i915/kms_cdclk.c renamed from tests/kms_cdclk.c +0
-0tests/i915/kms_draw_crc.c renamed from tests/kms_draw_crc.c +0
-0tests/i915/kms_fence_pin_leak.c renamed from tests/kms_fence_pin_leak.c +0
-0tests/i915/kms_flip_scaled_crc.c renamed from tests/kms_flip_scaled_crc.c +0
-0tests/i915/kms_flip_tiling.c renamed from tests/kms_flip_tiling.c +0
-0(quoted diff) +0
-0
b/tests/i915/kms_frontbuffer_tracking.cReview
Quoted 4 lines
similarity index 100%
rename fromtests/kms_frontbuffer_tracking.c
rename totests/i915/kms_frontbuffer_tracking.c(quoted diff) +0
-0
b/tests/i915/kms_invalid_dotclock.ctests/kms_cursor_edge_walk.c igt_main_args("", long_opts, help_str, opt_handler,
Quoted 75 lines
similarity index 100%
rename fromtests/kms_invalid_dotclock.c
rename totests/i915/kms_invalid_dotclock.ctests/i915/kms_legacy_colorkey.c renamed from tests/kms_legacy_colorkey.c +0
-0tests/i915/kms_pipe_b_c_ivb.c renamed from tests/kms_pipe_b_c_ivb.c +0
-0tests/i915/kms_psr.c renamed from tests/kms_psr.c +0
-0tests/i915/kms_psr2_sf.c renamed from tests/kms_psr2_sf.c +0
-0tests/i915/kms_psr2_su.c renamed from tests/kms_psr2_su.c +0
-0tests/kms_3d.c +3
-2@@ -34,7 +34,7 @@ igt_simple_mainconst struct edid *edid;int mode_count, connector_id; - drm_fd =drm_open_driver_master (DRIVER_INTEL ); + drm_fd =drm_open_driver_master (DRIVER_ANY ); res =drmModeGetResources (drm_fd);igt_require (res);@@ -44,7 +44,8 @@ igt_simple_main/* find an hdmi connector */ for (int i =0 ; i < res->count_connectors; i++) { connector =drmModeGetConnectorCurrent (drm_fd, res->connectors[i]); -if (connector->connector_type ==DRM_MODE_CONNECTOR_HDMIA ) +if (connector->connector_type ==DRM_MODE_CONNECTOR_HDMIA || + connector->connector_type ==DRM_MODE_CONNECTOR_HDMIB )break ;drmModeFreeConnector (connector); connector =NULL ;tests/kms_big_joiner.c +1
-1@@ -258,7 +258,7 @@ igt_mainuint16_t width =0 , height =0 ; igt_fixture { - data.drm_fd =drm_open_driver_master (DRIVER_INTEL ); + data.drm_fd =drm_open_driver_master (DRIVER_ANY );kmstest_set_vt_graphics_mode ();igt_display_require (&data.display, data.drm_fd);tests/kms_cursor_edge_walk.c +2
-2@@ -94,8 +94,8 @@ static void cursor_move(data_t *data, int x, int y, int i)* fails). So let's accept a failure from the ioctl in that case. */ igt_assert (drmModeMoveCursor (data->drm_fd, crtc_id, x, y) ==0 || - (IS_CHERRYVIEW (data->devid) && data->pipe ==PIPE_C && - x <0 && x > -data->curw)); + (data->devid &&IS_CHERRYVIEW (data->devid) && + data->pipe ==PIPE_C && x <0 && x > -data->curw));igt_wait_for_vblank (data->drm_fd, display->pipes[data->pipe].crtc_offset); }@@ -312,9 +312,10 @@ igt_main_args("", long_opts, help_str, opt_handler,&data)
tests/kms_cursor_edge_walk.c igt_main_args("", long_opts, help_str, opt_handler, &data) · line 321
Quoted 12 lines
tests/kms_cursor_edge_walk.c +3
-2igt_fixture {int ret; - data.drm_fd =drm_open_driver_master (DRIVER_INTEL ); + data.drm_fd =drm_open_driver_master (DRIVER_ANY ); - data.devid =intel_get_drm_devid (data.drm_fd); +if (is_i915_device (data.drm_fd)) + data.devid =intel_get_drm_devid (data.drm_fd); ret =drmGetCap (data.drm_fd,DRM_CAP_CURSOR_WIDTH , &max_curw);igt_assert (ret ==0 || errno ==EINVAL );After this changes, all of these tests pass on Radeon RX 5600 :)
tests/kms_fbcon_fbt.c static void subtest(struct drm_info *drm, struct feature
Quoted 5 lines
tests/kms_fbcon_fbt.c +0
-0@@ -337,6 +337,7 @@ static void subtest(struct drm_info *drm, struct feature*feature, bool suspend)
Quoted 11 lines
tests/kms_fbcon_fbt.c +1
-0igt_device_set_master (drm->fd);kmstest_set_vt_graphics_mode (); +igt_require_intel (drm->fd);igt_require (feature->supported_on_chipset (drm->fd, drm->debugfs_fd));disable_features (drm->fd, drm->debugfs_fd);@@ -378,7 +379,7 @@ static void setup_environment(struct drm_info *drm) {int i;
Quoted 8 lines
tests/kms_fbcon_fbt.c static void setup_environment(struct drm_info *drm) · line 385
Quoted 5 lines
tests/kms_fbcon_fbt.c +1
-1- drm->fd =drm_open_driver_master (DRIVER_INTEL ); + drm->fd =drm_open_driver_master (DRIVER_ANY );igt_require (drm->fd >=0 ); drm->debugfs_fd =igt_debugfs_dir (drm->fd);igt_require (drm->debugfs_fd >=0 );All of these tests skip on AMD devices. I noticed that two of them require psr, which I suppose cannot be generic, right?
True, but we can restrict those tests by adding above check. igt_require_intel(drm->fd);
Intension of this patch is:
If the whole test is i915 specific, then move it to tests/i915 directory. If few subtests are specific to i915, still we can consider that whole test as generic & restrict the i915 specific stuff with igt_require_intel()
Quoted 82 lines
Review
Quoted 2 lines
(quoted diff) +0
-0
b/tests/kms_force_connector_basic.cQuoted 54 lines
index
3b0146fe9..683d36720100644tests/kms_force_connector_basic.c +2
-2@@ -37,7 +37,7 @@ static void reset_connectors(void)drmModeRes *res;drmModeConnector *connector =NULL ; - drm_fd =drm_open_driver_master (DRIVER_INTEL ); + drm_fd =drm_open_driver_master (DRIVER_ANY ); res =drmModeGetResources (drm_fd);for (int i =0 ; i < res->count_connectors; i++) {@@ -86,7 +86,7 @@ igt_main_args("", long_opts, help_str, opt_handler, NULL) igt_fixture {unsigned connector_id =0 ; - drm_fd =drm_open_driver_master (DRIVER_INTEL ); + drm_fd =drm_open_driver_master (DRIVER_ANY ); res =drmModeGetResources (drm_fd);igt_require (res);tests/kms_hdmi_inject.c +7
-5@@ -63,7 +63,8 @@ get_connector(int drm_fd, drmModeRes *res) connector =drmModeGetConnectorCurrent (drm_fd, res->connectors[i]); -if (connector->connector_type ==DRM_MODE_CONNECTOR_HDMIA ) +if (connector->connector_type ==DRM_MODE_CONNECTOR_HDMIA || + connector->connector_type ==DRM_MODE_CONNECTOR_HDMIB )break ;drmModeFreeConnector (connector);@@ -82,12 +83,13 @@ hdmi_inject_4k(int drm_fd, drmModeConnector *connector)int fb_id;struct igt_fb fb;uint8_t found_4k_mode =0 ; -uint32_t devid; - devid =intel_get_drm_devid (drm_fd); +if (is_i915_device (drm_fd)) { +uint32_t devid =intel_get_drm_devid (drm_fd); -/* 4K requires at least HSW */ -igt_require (IS_HASWELL (devid) ||intel_display_ver (devid) >=8 ); +/* 4K requires at least HSW */ +igt_require (IS_HASWELL (devid) ||intel_display_ver (devid) >=8 ); + } edid =igt_kms_get_4k_edid ();kmstest_force_edid (drm_fd, connector, edid);tests/kms_hdmi_inject.c igt_main · line 203
Quoted 8 lines
tests/kms_hdmi_inject.c +1
-1@@ -195,7 +197,7 @@ igt_maindrmModeConnector *connector; igt_fixture { - drm_fd =drm_open_driver_master (DRIVER_INTEL ); + drm_fd =drm_open_driver_master (DRIVER_ANY ); res =drmModeGetResources (drm_fd);igt_require (res);I tried this test using Radeon RX 5600, with HDMI, connected to a 4k display; however, it failed:
Starting subtest: inject-4k
(kms_hdmi_inject:2531) CRITICAL: Test assertion failure functionhdmi_inject_4k, file../tests/kms_hdmi_inject.c:112:
(kms_hdmi_inject:2531) CRITICAL: Failed assertion:found_4k_modeStack trace:
#0../lib/igt_core.c:1745__igt_fail_assert()
#1 [hdmi_inject_4k+0x26c]
#2../tests/kms_hdmi_inject.c:213__real_main193()#3../tests/kms_hdmi_inject.c:193main()
#4../csu/libc-start.c:342__libc_start_main()
#5 [_start+0x2e]
Subtest inject-4k failed
Quoted 1 line
Any hint?
From this log, we can say that we haven't find the 4k mode from the connected display. You can add below snippet on top of this patch to dump all supported modes.
@@ -102,6 +102,8 @@ hdmi_inject_4k(int drm_fd, drmModeConnector *connector)
connector = drmModeGetConnectorCurrent(drm_fd, cid);
for (i = 0; i < connector->count_modes; i++) {
+ kmstest_dump_mode(&connector->modes[i]);
+
if (connector->modes[i].hdisplay == HDISPLAY_4K &&
connector->modes[i].vdisplay == VDISPLAY_4K) {
found_4k_mode++;Quoted 16 lines
Quoted 16 lines
tests/kms_mmap_write_crc.c +0
-1@@ -51,7 +51,6 @@ typedef struct {enum pipe pipe;igt_crc_t ref_crc;igt_pipe_crc_t *pipe_crc; -uint32_t devid; } data_t;static int ioctl_sync = true;@@ -103,6 +102,7 @@ static void test(data_t *data)igt_display_commit (display);
Quoted 5 lines
tests/kms_mmap_write_crc.c static void test(data_t *data) · line 105
Quoted 2 lines
tests/kms_mmap_write_crc.c +1
-0/* make sure caching mode has become UC/WT */ +igt_require_intel (data->drm_fd);This test skips because this line. If this cannot be generic, maybe consider moving it to i915?
As of now only i915 is using these tests, so I have added this check. Whoever (non-Intel SOCs) wants to expand/use these tests can remove this check.
Quoted 36 lines
tests/kms_mmap_write_crc.c static void test(data_t *data) · line 107
Quoted 3 lines
tests/kms_mmap_write_crc.c +0
-0caching =gem_get_caching (data->drm_fd, fb->gem_handle); igt_assert(caching == I915_CACHING_NONE || caching ==
I915_CACHING_DISPLAY);Quoted 32 lines
tests/kms_mmap_write_crc.c +2
-4@@ -204,7 +204,7 @@ static void cleanup_crtc(data_t *data)igt_plane_set_fb (data->primary,NULL ); -igt_output_set_pipe (output,PIPE_ANY ); +igt_output_set_pipe (output,PIPE_NONE );igt_display_commit (display);igt_remove_fb (data->drm_fd, &data->fb[0 ]);@@ -272,9 +272,7 @@ igt_main_args("n", NULL, NULL, opt_handler, NULL)int i; igt_fixture { - data.drm_fd =drm_open_driver_master (DRIVER_INTEL ); - - data.devid =intel_get_drm_devid (data.drm_fd); + data.drm_fd =drm_open_driver_master (DRIVER_ANY );kmstest_set_vt_graphics_mode ();tests/kms_pwrite_crc.c +0
-1@@ -42,7 +42,6 @@ typedef struct {enum pipe pipe;igt_crc_t ref_crc;igt_pipe_crc_t *pipe_crc; -uint32_t devid; } data_t;
Quoted 8 lines
tests/kms_pwrite_crc.c static void test(data_t *data) · line 79
Quoted 6 lines
tests/kms_pwrite_crc.c +1
-0static void test (data_t *data)@@ -77,6 +76,7 @@ static void test(data_t *data) 0, 0, fb->width << 16, fb->height << 16);/* make sure caching mode has become UC/WT */ +igt_require_intel (data->drm_fd);Same idea from my previous comment.
Please consider my previous comments.
- Bhanu
Quoted 190 lines
Thanks
Siqueiratests/kms_pwrite_crc.c static void test(data_t *data) · line 81
Quoted 2 lines
tests/kms_pwrite_crc.c +0
-0caching =gem_get_caching (data->drm_fd, fb->gem_handle); igt_assert(caching == I915_CACHING_NONE || caching ==
I915_CACHING_DISPLAY);tests/kms_universal_plane.c functional_test_fini(functional_test_t *test,
Quoted 39 lines
tests/kms_pwrite_crc.c +2
-4@@ -141,7 +141,7 @@ static void cleanup_crtc(data_t *data)igt_plane_set_fb (data->primary,NULL ); -igt_output_set_pipe (output,PIPE_ANY ); +igt_output_set_pipe (output,PIPE_NONE );igt_display_commit (display);igt_remove_fb (data->drm_fd, &data->fb[0 ]);@@ -174,9 +174,7 @@ static data_t data; igt_simple_main { - data.drm_fd =drm_open_driver_master (DRIVER_INTEL ); - - data.devid =intel_get_drm_devid (data.drm_fd); + data.drm_fd =drm_open_driver_master (DRIVER_ANY );kmstest_set_vt_graphics_mode ();tests/kms_tv_load_detect.c +1
-1@@ -34,7 +34,7 @@ igt_maindrmModeConnector *tv_connector =NULL , *temp; igt_fixture { - drm_fd =drm_open_driver_master (DRIVER_INTEL ); + drm_fd =drm_open_driver_master (DRIVER_ANY ); res =drmModeGetResources (drm_fd);igt_require (res);tests/kms_universal_plane.c +0
-0@@ -107,7 +107,7 @@ functional_test_fini(functional_test_t *test,
igt_output_t*output)tests/kms_universal_plane.c sanity_test_pipe(data_t *data, enum pipe pipe,
Quoted 9 lines
tests/kms_universal_plane.c +1
-1igt_remove_fb (test->data->drm_fd, &test->red_fb);igt_remove_fb (test->data->drm_fd, &test->yellow_fb); -igt_output_set_pipe (output,PIPE_ANY ); +igt_output_set_pipe (output,PIPE_NONE );igt_display_commit2 (&test->data->display,COMMIT_LEGACY ); }@@ -382,6 +382,7 @@ sanity_test_pipe(data_t *data, enum pipe pipe,
igt_output_t*output)tests/kms_universal_plane.c sanity_test_pipe(data_t *data, enum pipe pipe, igt_output_t *output)
Quoted 7 lines
tests/kms_universal_plane.c +1
-0* doesn't cover CRTC (should fail on pre-gen9 and succeed on * gen9+). */ +igt_require_intel (data->drm_fd);igt_plane_set_fb (primary, &test.undersized_fb); expect = (data->display_ver <9 ) ? -EINVAL :0 ; igt_assert(igt_display_try_commit2(&data->display, COMMIT_UNIVERSAL) ==expect);
tests/kms_universal_plane.c cursor_leak_test_pipe(data_t *data, enum pipe pipe,
Quoted 1 line
tests/kms_universal_plane.c +0
-0@@ -579,6 +580,7 @@ cursor_leak_test_pipe(data_t *data, enum pipe pipe,
igt_output_t*output)tests/kms_universal_plane.c gen9_test_pipe(data_t *data, enum pipe pipe,
Quoted 8 lines
tests/kms_universal_plane.c +1
-0igt_require_pipe (display, pipe);igt_require (display->has_cursor_plane); +igt_require_intel (data->drm_fd);igt_output_set_pipe (output, pipe); mode =igt_output_get_mode (output);@@ -704,6 +706,7 @@ gen9_test_pipe(data_t *data, enum pipe pipe,
igt_output_t*output)tests/kms_universal_plane.c igt_main · line 801
Quoted 13 lines
tests/kms_universal_plane.c +1
-2int ret =0 ; +igt_require_intel (data->drm_fd);igt_skip_on (data->display_ver <9 );igt_require_pipe (&data->display, pipe);@@ -797,8 +800,9 @@ igt_mainenum pipe pipe; igt_fixture { - data.drm_fd =drm_open_driver_master (DRIVER_INTEL ); - data.display_ver =intel_display_ver(intel_get_drm_devid(data.drm_fd));
tests/kms_universal_plane.c igt_main · line 805
Quoted 3 lines
tests/kms_universal_plane.c +3
-0+ data.drm_fd =drm_open_driver_master (DRIVER_ANY ); +if (is_i915_device (data.drm_fd)) + data.display_ver =intel_display_ver(intel_get_drm_devid(data.drm_fd));
Quoted 81 lines
tests/kms_universal_plane.c +0
-0kmstest_set_vt_graphics_mode ();tests/meson.build +15
-16@@ -19,11 +19,7 @@ test_progs = [ 'kms_atomic', 'kms_atomic_interruptible', 'kms_atomic_transition', - 'kms_big_fb', 'kms_big_joiner' , - 'kms_busy', - 'kms_ccs', - 'kms_cdclk', 'kms_concurrent', 'kms_content_protection', 'kms_cursor_crc',@@ -32,26 +28,18 @@ test_progs = [ 'kms_dither', 'kms_dp_aux_dev', 'kms_dp_tiled_display', - 'kms_draw_crc', 'kms_dsc', 'kms_fbcon_fbt', - 'kms_fence_pin_leak', 'kms_flip', 'kms_flip_event_leak', - 'kms_flip_scaled_crc', - 'kms_flip_tiling', 'kms_force_connector_basic', - 'kms_frontbuffer_tracking', 'kms_getfb', 'kms_hdmi_inject', 'kms_hdr', - 'kms_invalid_dotclock', 'kms_lease', - 'kms_legacy_colorkey', 'kms_mmap_write_crc', 'kms_multipipe_modeset', 'kms_panel_fitting', - 'kms_pipe_b_c_ivb', 'kms_pipe_crc_basic', 'kms_plane', 'kms_plane_alpha_blend',@@ -62,9 +50,6 @@ test_progs = [ 'kms_prime', 'kms_prop_blob', 'kms_properties', - 'kms_psr', - 'kms_psr2_su', - 'kms_psr2_sf', 'kms_pwrite_crc', 'kms_rmfb', 'kms_rotation_crc',@@ -235,6 +220,21 @@ i915_progs = [ 'i915_query', 'i915_selftest', 'i915_suspend', + 'kms_big_fb', + 'kms_busy', + 'kms_ccs', + 'kms_cdclk', + 'kms_draw_crc', + 'kms_fence_pin_leak', + 'kms_flip_scaled_crc', + 'kms_flip_tiling', + 'kms_frontbuffer_tracking', + 'kms_invalid_dotclock', + 'kms_legacy_colorkey', + 'kms_pipe_b_c_ivb', + 'kms_psr', + 'kms_psr2_su', + 'kms_psr2_sf', 'sysfs_clients', 'sysfs_defaults', 'sysfs_heartbeat_interval', --2.32.0
Quoted 4 lines
_______________________________________________
igt-dev mailing list
[email protected]https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freede
sktop.org%2Fmailman%2Flistinfo%2Figt- dev&data=04%7C01%7CRodrigo.Siqueira%40amd.com%7Cd1a308d9ee3441dd2db508d953 2a9b5b%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637632264727564399%7CUnkno wn%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6M n0%3D%7C1000&sdata=yY%2BAdDWByyM3k4LOoLq58Qj6w%2BRm2QnxIwXwQDwDhew%3D& reserved=0--
Rodrigo Siqueira
https://siqueira.tech