* [igt-dev] [PATCH i-g-t] tests/amdgpu: Add tests that check for memory leaks @ 2021-09-01 12:27 Stylon Wang 2021-09-01 13:12 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork ` (2 more replies) 0 siblings, 3 replies; 4+ messages in thread From: Stylon Wang @ 2021-09-01 12:27 UTC (permalink / raw) To: igt-dev; +Cc: nicholas.kazlauskas, sunpeng.li, rodrigo.siqueira, Stylon Wang Check for memory leaks in these two cases: - Connector EDID parsing after suspend-resume - Triggerring of connector hotplugs Depends on CONFIG_HAVE_DEBUG_KMEMLEAK=y in kernel config. Signed-off-by: Stylon Wang <stylon.wang@amd.com> --- tests/amdgpu/amd_mem_leak.c | 236 ++++++++++++++++++++++++++++++++++++ tests/amdgpu/meson.build | 1 + 2 files changed, 237 insertions(+) create mode 100644 tests/amdgpu/amd_mem_leak.c diff --git a/tests/amdgpu/amd_mem_leak.c b/tests/amdgpu/amd_mem_leak.c new file mode 100644 index 00000000..dee563cb --- /dev/null +++ b/tests/amdgpu/amd_mem_leak.c @@ -0,0 +1,236 @@ +/* + * Copyright 2020 Advanced Micro Devices, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR + * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, + * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + */ + +#include "igt.h" +#include "igt_amd.h" +#include <fcntl.h> + +IGT_TEST_DESCRIPTION("Test checking memory leaks with suspend-resume and connector hotplug"); + +/* Common test data. */ +typedef struct data { + igt_display_t display; + igt_plane_t *primary; + igt_output_t *output; + igt_pipe_t *pipe; + drmModeModeInfo *mode; + enum pipe pipe_id; + int fd; + int w; + int h; +} data_t; + +/* Common test setup. */ +static void test_init(data_t *data) +{ + igt_display_t *display = &data->display; + + /* It doesn't matter which pipe we choose on amdpgu. */ + data->pipe_id = PIPE_A; + data->pipe = &data->display.pipes[data->pipe_id]; + + igt_display_reset(display); + + /* find a connected output */ + data->output = NULL; + for (int i=0; i < data->display.n_outputs; ++i) { + drmModeConnector *connector = data->display.outputs[i].config.connector; + if (connector->connection == DRM_MODE_CONNECTED) { + data->output = &data->display.outputs[i]; + } + } + igt_assert_f(data->output, "Requires connected output\n"); + + data->mode = igt_output_get_mode(data->output); + igt_assert(data->mode); + + data->primary = + igt_pipe_get_plane_type(data->pipe, DRM_PLANE_TYPE_PRIMARY); + + igt_output_set_pipe(data->output, data->pipe_id); + + data->w = data->mode->hdisplay; + data->h = data->mode->vdisplay; +} + +/* Common test cleanup. */ +static void test_fini(data_t *data) +{ + igt_display_reset(&data->display); +} + +/* return True if scan successfully written to kmemleak */ +static bool send_scan_memleak(void) +{ + FILE *fp; + const char *cmd = "scan"; + + fp = fopen("/sys/kernel/debug/kmemleak", "r+"); + if (!fp) return false; + + if(fwrite(cmd, 1, strlen(cmd), fp) != strlen(cmd)) { + fclose(fp); + return false; + } + fclose(fp); + return true; +} + +/* return True if clear successfully sent to kmemleak */ +static bool send_clear_memleak(void) +{ + FILE *fp; + const char *cmd = "clear"; + + fp = fopen("/sys/kernel/debug/kmemleak", "r+"); + if (!fp) return false; + + if(fwrite(cmd, 1, strlen(cmd), fp) != strlen(cmd)) { + fclose(fp); + return false; + } + fclose(fp); + return true; +} + +/* return true if kmemleak is enabled and then clear earlier leak records */ +static bool clear_memleak(data_t *data) +{ + /* Need to scan + clear twice to properly clear buffer or else leaks + * from modprobe or other tests may appear + */ + if (!send_scan_memleak() | !send_clear_memleak()) + return false; + if (!send_scan_memleak() | !send_clear_memleak()) + return false; + + return true; +} + +/* return true if kmemleak did not pick up any memory leaks */ +static bool check_memleak(data_t *data) +{ + FILE *fp; + const char *buf[1]; + const char *cmd = "scan"; + char read_buf[1024]; + + fp = fopen("/sys/kernel/debug/kmemleak", "r+"); + igt_assert_f(fp, "cannot open /sys/kernel/debug/kmemleak for reading\n"); + + /* trigger an immediate scan on memory leak */ + igt_assert_f(fwrite(cmd, 1, strlen(cmd), fp) == strlen(cmd), + "fail to trigger a scan for memory leak\n"); + + /* read back to see if any leak */ + if (fread(buf, 1, 1, fp) == 0) { + fclose(fp); + return true; + } + + /* Dump contents of kmemleak */ + fseek(fp, 0L, SEEK_SET); + while (fgets(read_buf, sizeof(read_buf), fp) != NULL) { + igt_info("%s", read_buf); + } + + fclose(fp); + return false; +} + +static void test_suspend_resume(data_t *data) +{ + igt_display_t *display = &data->display; + igt_fb_t rfb; + + test_init(data); + + if(!clear_memleak(data)) { + igt_skip("kmemleak is not enabled for this kernel\n"); + } + + igt_create_pattern_fb(data->fd, data->w, data->h, DRM_FORMAT_XRGB8888, 0, &rfb); + igt_plane_set_fb(data->primary, &rfb); + igt_display_commit_atomic(display, DRM_MODE_ATOMIC_ALLOW_MODESET, NULL); + + igt_system_suspend_autoresume(SUSPEND_STATE_MEM, SUSPEND_TEST_NONE); + + igt_assert_f(check_memleak(data), "memory leak detected\n"); + + igt_remove_fb(data->fd, &rfb); + test_fini(data); +} + +static void test_hotplug(data_t *data) +{ + igt_display_t *display = &data->display; + igt_fb_t rfb; + + test_init(data); + + igt_amd_require_hpd(&data->display, data->fd); + + if(!clear_memleak(data)) { + igt_skip("kmemleak is not enabled for this kernel\n"); + } + + igt_create_pattern_fb(data->fd, data->w, data->h, DRM_FORMAT_XRGB8888, 0, &rfb); + igt_plane_set_fb(data->primary, &rfb); + igt_display_commit_atomic(display, DRM_MODE_ATOMIC_ALLOW_MODESET, NULL); + + igt_amd_trigger_hotplug(data->fd, data->output->name); + + igt_assert_f(check_memleak(data), "memory leak detected\n"); + + igt_remove_fb(data->fd, &rfb); + test_fini(data); +} + +igt_main +{ + data_t data; + + igt_skip_on_simulation(); + + memset(&data, 0, sizeof(data)); + + igt_fixture + { + data.fd = drm_open_driver_master(DRIVER_AMDGPU); + + kmstest_set_vt_graphics_mode(); + + igt_display_require(&data.display, data.fd); + igt_require(data.display.is_atomic); + igt_display_require_output(&data.display); + } + + igt_describe("Test memory leaks after resume from suspend"); + igt_subtest("connector-suspend-resume") test_suspend_resume(&data); + igt_describe("Test memroy leaks after connector hotplug"); + igt_subtest("connector-hotplug") test_hotplug(&data); + + igt_fixture + { + igt_display_fini(&data.display); + } +} diff --git a/tests/amdgpu/meson.build b/tests/amdgpu/meson.build index 90489d82..d05a9c30 100644 --- a/tests/amdgpu/meson.build +++ b/tests/amdgpu/meson.build @@ -12,6 +12,7 @@ if libdrm_amdgpu.found() 'amd_info', 'amd_prime', 'amd_module_load', + 'amd_mem_leak', ] amdgpu_deps += libdrm_amdgpu endif -- 2.32.0 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* [igt-dev] ✓ Fi.CI.BAT: success for tests/amdgpu: Add tests that check for memory leaks 2021-09-01 12:27 [igt-dev] [PATCH i-g-t] tests/amdgpu: Add tests that check for memory leaks Stylon Wang @ 2021-09-01 13:12 ` Patchwork 2021-09-01 14:59 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork 2021-09-10 15:38 ` [igt-dev] [PATCH i-g-t] " Rodrigo Siqueira 2 siblings, 0 replies; 4+ messages in thread From: Patchwork @ 2021-09-01 13:12 UTC (permalink / raw) To: Stylon Wang; +Cc: igt-dev [-- Attachment #1: Type: text/plain, Size: 3369 bytes --] == Series Details == Series: tests/amdgpu: Add tests that check for memory leaks URL : https://patchwork.freedesktop.org/series/94245/ State : success == Summary == CI Bug Log - changes from CI_DRM_10543 -> IGTPW_6183 ==================================================== Summary ------- **SUCCESS** No regressions found. External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/index.html Known issues ------------ Here are the changes found in IGTPW_6183 that come from known issues: ### IGT changes ### #### Issues hit #### * igt@gem_exec_suspend@basic-s3: - fi-tgl-1115g4: [PASS][1] -> [FAIL][2] ([i915#1888]) [1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10543/fi-tgl-1115g4/igt@gem_exec_suspend@basic-s3.html [2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/fi-tgl-1115g4/igt@gem_exec_suspend@basic-s3.html #### Possible fixes #### * igt@i915_pm_rpm@module-reload: - fi-kbl-guc: [FAIL][3] ([i915#2203] / [i915#579]) -> [PASS][4] [3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10543/fi-kbl-guc/igt@i915_pm_rpm@module-reload.html [4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/fi-kbl-guc/igt@i915_pm_rpm@module-reload.html * igt@i915_selftest@live@gt_lrc: - fi-rkl-guc: [DMESG-WARN][5] ([i915#3958]) -> [PASS][6] [5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10543/fi-rkl-guc/igt@i915_selftest@live@gt_lrc.html [6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/fi-rkl-guc/igt@i915_selftest@live@gt_lrc.html * igt@i915_selftest@live@hangcheck: - {fi-hsw-gt1}: [DMESG-WARN][7] ([i915#3303]) -> [PASS][8] [7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10543/fi-hsw-gt1/igt@i915_selftest@live@hangcheck.html [8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/fi-hsw-gt1/igt@i915_selftest@live@hangcheck.html {name}: This element is suppressed. This means it is ignored when computing the status of the difference (SUCCESS, WARNING, or FAILURE). [i915#1436]: https://gitlab.freedesktop.org/drm/intel/issues/1436 [i915#1888]: https://gitlab.freedesktop.org/drm/intel/issues/1888 [i915#2203]: https://gitlab.freedesktop.org/drm/intel/issues/2203 [i915#2927]: https://gitlab.freedesktop.org/drm/intel/issues/2927 [i915#2966]: https://gitlab.freedesktop.org/drm/intel/issues/2966 [i915#3303]: https://gitlab.freedesktop.org/drm/intel/issues/3303 [i915#3958]: https://gitlab.freedesktop.org/drm/intel/issues/3958 [i915#579]: https://gitlab.freedesktop.org/drm/intel/issues/579 Participating hosts (43 -> 35) ------------------------------ Missing (8): fi-ilk-m540 bat-adls-5 bat-dg1-6 bat-dg1-5 fi-bsw-cyan fi-ctg-p8600 fi-bdw-samus bat-jsl-1 Build changes ------------- * CI: CI-20190529 -> None * IGT: IGT_6193 -> IGTPW_6183 CI-20190529: 20190529 CI_DRM_10543: 53abe6ce13dc725c123934c74d1f23157bf99c39 @ git://anongit.freedesktop.org/gfx-ci/linux IGTPW_6183: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/index.html IGT_6193: 080869f804cb86b25a38889e5ce9a870571cd8c4 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git == Testlist changes == +igt@amdgpu/amd_mem_leak@connector-hotplug +igt@amdgpu/amd_mem_leak@connector-suspend-resume == Logs == For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/index.html [-- Attachment #2: Type: text/html, Size: 3866 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
* [igt-dev] ✓ Fi.CI.IGT: success for tests/amdgpu: Add tests that check for memory leaks 2021-09-01 12:27 [igt-dev] [PATCH i-g-t] tests/amdgpu: Add tests that check for memory leaks Stylon Wang 2021-09-01 13:12 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork @ 2021-09-01 14:59 ` Patchwork 2021-09-10 15:38 ` [igt-dev] [PATCH i-g-t] " Rodrigo Siqueira 2 siblings, 0 replies; 4+ messages in thread From: Patchwork @ 2021-09-01 14:59 UTC (permalink / raw) To: Stylon Wang; +Cc: igt-dev [-- Attachment #1: Type: text/plain, Size: 30269 bytes --] == Series Details == Series: tests/amdgpu: Add tests that check for memory leaks URL : https://patchwork.freedesktop.org/series/94245/ State : success == Summary == CI Bug Log - changes from CI_DRM_10543_full -> IGTPW_6183_full ==================================================== Summary ------- **SUCCESS** No regressions found. External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/index.html Known issues ------------ Here are the changes found in IGTPW_6183_full that come from known issues: ### IGT changes ### #### Issues hit #### * igt@core_hotunplug@unbind-rebind: - shard-apl: [PASS][1] -> [DMESG-WARN][2] ([i915#2283]) [1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10543/shard-apl3/igt@core_hotunplug@unbind-rebind.html [2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-apl7/igt@core_hotunplug@unbind-rebind.html - shard-glk: [PASS][3] -> [DMESG-WARN][4] ([i915#2283]) [3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10543/shard-glk3/igt@core_hotunplug@unbind-rebind.html [4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-glk3/igt@core_hotunplug@unbind-rebind.html - shard-kbl: [PASS][5] -> [DMESG-WARN][6] ([i915#2283]) [5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10543/shard-kbl6/igt@core_hotunplug@unbind-rebind.html [6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-kbl1/igt@core_hotunplug@unbind-rebind.html * igt@gem_ctx_persistence@idempotent: - shard-snb: NOTRUN -> [SKIP][7] ([fdo#109271] / [i915#1099]) +7 similar issues [7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-snb2/igt@gem_ctx_persistence@idempotent.html * igt@gem_eio@in-flight-suspend: - shard-apl: [PASS][8] -> [DMESG-WARN][9] ([i915#180]) [8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10543/shard-apl2/igt@gem_eio@in-flight-suspend.html [9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-apl2/igt@gem_eio@in-flight-suspend.html * igt@gem_eio@unwedge-stress: - shard-tglb: [PASS][10] -> [TIMEOUT][11] ([i915#2369] / [i915#3063] / [i915#3648]) [10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10543/shard-tglb6/igt@gem_eio@unwedge-stress.html [11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-tglb6/igt@gem_eio@unwedge-stress.html * igt@gem_exec_fair@basic-none-share@rcs0: - shard-apl: [PASS][12] -> [SKIP][13] ([fdo#109271]) [12]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10543/shard-apl8/igt@gem_exec_fair@basic-none-share@rcs0.html [13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-apl8/igt@gem_exec_fair@basic-none-share@rcs0.html * igt@gem_exec_fair@basic-none-vip@rcs0: - shard-kbl: NOTRUN -> [FAIL][14] ([i915#2842]) [14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-kbl6/igt@gem_exec_fair@basic-none-vip@rcs0.html - shard-tglb: NOTRUN -> [FAIL][15] ([i915#2842]) [15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-tglb7/igt@gem_exec_fair@basic-none-vip@rcs0.html - shard-iclb: NOTRUN -> [FAIL][16] ([i915#2842]) [16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-iclb8/igt@gem_exec_fair@basic-none-vip@rcs0.html * igt@gem_exec_fair@basic-none@rcs0: - shard-glk: NOTRUN -> [FAIL][17] ([i915#2842]) +1 similar issue [17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-glk8/igt@gem_exec_fair@basic-none@rcs0.html * igt@gem_exec_fair@basic-none@vcs0: - shard-kbl: [PASS][18] -> [FAIL][19] ([i915#2842]) +1 similar issue [18]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10543/shard-kbl4/igt@gem_exec_fair@basic-none@vcs0.html [19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-kbl7/igt@gem_exec_fair@basic-none@vcs0.html * igt@gem_exec_fair@basic-pace-solo@rcs0: - shard-glk: [PASS][20] -> [FAIL][21] ([i915#2851]) [20]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10543/shard-glk9/igt@gem_exec_fair@basic-pace-solo@rcs0.html [21]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-glk9/igt@gem_exec_fair@basic-pace-solo@rcs0.html * igt@gem_exec_flush@basic-batch-kernel-default-cmd: - shard-iclb: NOTRUN -> [SKIP][22] ([fdo#109313]) [22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-iclb5/igt@gem_exec_flush@basic-batch-kernel-default-cmd.html - shard-tglb: NOTRUN -> [SKIP][23] ([fdo#109313]) [23]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-tglb6/igt@gem_exec_flush@basic-batch-kernel-default-cmd.html * igt@gem_exec_params@no-bsd: - shard-tglb: NOTRUN -> [SKIP][24] ([fdo#109283]) [24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-tglb2/igt@gem_exec_params@no-bsd.html - shard-iclb: NOTRUN -> [SKIP][25] ([fdo#109283]) [25]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-iclb3/igt@gem_exec_params@no-bsd.html * igt@gem_huc_copy@huc-copy: - shard-apl: NOTRUN -> [SKIP][26] ([fdo#109271] / [i915#2190]) [26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-apl8/igt@gem_huc_copy@huc-copy.html - shard-glk: NOTRUN -> [SKIP][27] ([fdo#109271] / [i915#2190]) [27]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-glk1/igt@gem_huc_copy@huc-copy.html - shard-iclb: NOTRUN -> [SKIP][28] ([i915#2190]) [28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-iclb1/igt@gem_huc_copy@huc-copy.html - shard-kbl: NOTRUN -> [SKIP][29] ([fdo#109271] / [i915#2190]) [29]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-kbl6/igt@gem_huc_copy@huc-copy.html * igt@gem_pwrite@basic-exhaustion: - shard-kbl: NOTRUN -> [WARN][30] ([i915#2658]) [30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-kbl2/igt@gem_pwrite@basic-exhaustion.html * igt@gem_render_copy@y-tiled-to-vebox-y-tiled: - shard-iclb: NOTRUN -> [SKIP][31] ([i915#768]) [31]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-iclb8/igt@gem_render_copy@y-tiled-to-vebox-y-tiled.html * igt@gem_userptr_blits@access-control: - shard-tglb: NOTRUN -> [SKIP][32] ([i915#3297]) +1 similar issue [32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-tglb3/igt@gem_userptr_blits@access-control.html * igt@gem_userptr_blits@dmabuf-sync: - shard-kbl: NOTRUN -> [SKIP][33] ([fdo#109271] / [i915#3323]) [33]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-kbl4/igt@gem_userptr_blits@dmabuf-sync.html * igt@gem_userptr_blits@readonly-pwrite-unsync: - shard-iclb: NOTRUN -> [SKIP][34] ([i915#3297]) +1 similar issue [34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-iclb3/igt@gem_userptr_blits@readonly-pwrite-unsync.html * igt@gen7_exec_parse@basic-allowed: - shard-tglb: NOTRUN -> [SKIP][35] ([fdo#109289]) +1 similar issue [35]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-tglb3/igt@gen7_exec_parse@basic-allowed.html * igt@gen9_exec_parse@allowed-all: - shard-glk: [PASS][36] -> [DMESG-WARN][37] ([i915#1436] / [i915#716]) [36]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10543/shard-glk9/igt@gen9_exec_parse@allowed-all.html [37]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-glk6/igt@gen9_exec_parse@allowed-all.html * igt@gen9_exec_parse@bb-oversize: - shard-tglb: NOTRUN -> [SKIP][38] ([i915#2856]) +1 similar issue [38]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-tglb6/igt@gen9_exec_parse@bb-oversize.html * igt@gen9_exec_parse@bb-start-far: - shard-iclb: NOTRUN -> [SKIP][39] ([i915#2856]) [39]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-iclb3/igt@gen9_exec_parse@bb-start-far.html * igt@i915_pm_rc6_residency@media-rc6-accuracy: - shard-tglb: NOTRUN -> [SKIP][40] ([fdo#109289] / [fdo#111719]) [40]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-tglb2/igt@i915_pm_rc6_residency@media-rc6-accuracy.html * igt@i915_pm_rpm@gem-execbuf-stress-pc8: - shard-iclb: NOTRUN -> [SKIP][41] ([fdo#109293] / [fdo#109506]) [41]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-iclb6/igt@i915_pm_rpm@gem-execbuf-stress-pc8.html - shard-tglb: NOTRUN -> [SKIP][42] ([fdo#109506] / [i915#2411]) [42]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-tglb3/igt@i915_pm_rpm@gem-execbuf-stress-pc8.html * igt@i915_pm_rpm@gem-mmap-type@fixed: - shard-glk: NOTRUN -> [SKIP][43] ([fdo#109271] / [i915#3976]) [43]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-glk6/igt@i915_pm_rpm@gem-mmap-type@fixed.html - shard-kbl: NOTRUN -> [SKIP][44] ([fdo#109271] / [i915#3976]) [44]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-kbl1/igt@i915_pm_rpm@gem-mmap-type@fixed.html * igt@kms_addfb_basic@invalid-smem-bo-on-discrete: - shard-tglb: NOTRUN -> [SKIP][45] ([i915#3826]) [45]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-tglb2/igt@kms_addfb_basic@invalid-smem-bo-on-discrete.html * igt@kms_big_fb@linear-32bpp-rotate-180: - shard-glk: NOTRUN -> [DMESG-WARN][46] ([i915#118] / [i915#95]) [46]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-glk9/igt@kms_big_fb@linear-32bpp-rotate-180.html * igt@kms_big_fb@x-tiled-32bpp-rotate-180: - shard-glk: [PASS][47] -> [DMESG-WARN][48] ([i915#118] / [i915#95]) [47]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10543/shard-glk4/igt@kms_big_fb@x-tiled-32bpp-rotate-180.html [48]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-glk1/igt@kms_big_fb@x-tiled-32bpp-rotate-180.html * igt@kms_big_fb@y-tiled-8bpp-rotate-90: - shard-tglb: NOTRUN -> [SKIP][49] ([fdo#111614]) [49]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-tglb2/igt@kms_big_fb@y-tiled-8bpp-rotate-90.html - shard-iclb: NOTRUN -> [SKIP][50] ([fdo#110725] / [fdo#111614]) [50]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-iclb6/igt@kms_big_fb@y-tiled-8bpp-rotate-90.html * igt@kms_big_fb@y-tiled-max-hw-stride-32bpp-rotate-0-hflip: - shard-kbl: NOTRUN -> [SKIP][51] ([fdo#109271] / [i915#3777]) +1 similar issue [51]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-kbl3/igt@kms_big_fb@y-tiled-max-hw-stride-32bpp-rotate-0-hflip.html * igt@kms_big_fb@y-tiled-max-hw-stride-32bpp-rotate-180-hflip: - shard-apl: NOTRUN -> [SKIP][52] ([fdo#109271] / [i915#3777]) +1 similar issue [52]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-apl3/igt@kms_big_fb@y-tiled-max-hw-stride-32bpp-rotate-180-hflip.html * igt@kms_big_fb@y-tiled-max-hw-stride-64bpp-rotate-0-hflip: - shard-glk: NOTRUN -> [SKIP][53] ([fdo#109271] / [i915#3777]) [53]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-glk6/igt@kms_big_fb@y-tiled-max-hw-stride-64bpp-rotate-0-hflip.html * igt@kms_big_fb@yf-tiled-max-hw-stride-32bpp-rotate-0-async-flip: - shard-tglb: NOTRUN -> [SKIP][54] ([fdo#111615]) +1 similar issue [54]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-tglb3/igt@kms_big_fb@yf-tiled-max-hw-stride-32bpp-rotate-0-async-flip.html * igt@kms_big_fb@yf-tiled-max-hw-stride-64bpp-rotate-0: - shard-apl: NOTRUN -> [SKIP][55] ([fdo#109271]) +282 similar issues [55]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-apl8/igt@kms_big_fb@yf-tiled-max-hw-stride-64bpp-rotate-0.html * igt@kms_ccs@pipe-a-bad-rotation-90-y_tiled_gen12_rc_ccs_cc: - shard-kbl: NOTRUN -> [SKIP][56] ([fdo#109271] / [i915#3886]) +3 similar issues [56]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-kbl7/igt@kms_ccs@pipe-a-bad-rotation-90-y_tiled_gen12_rc_ccs_cc.html * igt@kms_ccs@pipe-a-crc-sprite-planes-basic-y_tiled_gen12_mc_ccs: - shard-glk: NOTRUN -> [SKIP][57] ([fdo#109271] / [i915#3886]) +3 similar issues [57]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-glk4/igt@kms_ccs@pipe-a-crc-sprite-planes-basic-y_tiled_gen12_mc_ccs.html - shard-iclb: NOTRUN -> [SKIP][58] ([fdo#109278] / [i915#3886]) +3 similar issues [58]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-iclb4/igt@kms_ccs@pipe-a-crc-sprite-planes-basic-y_tiled_gen12_mc_ccs.html * igt@kms_ccs@pipe-b-ccs-on-another-bo-y_tiled_gen12_mc_ccs: - shard-tglb: NOTRUN -> [SKIP][59] ([i915#3689] / [i915#3886]) +2 similar issues [59]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-tglb1/igt@kms_ccs@pipe-b-ccs-on-another-bo-y_tiled_gen12_mc_ccs.html * igt@kms_ccs@pipe-c-bad-rotation-90-y_tiled_gen12_mc_ccs: - shard-apl: NOTRUN -> [SKIP][60] ([fdo#109271] / [i915#3886]) +14 similar issues [60]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-apl2/igt@kms_ccs@pipe-c-bad-rotation-90-y_tiled_gen12_mc_ccs.html * igt@kms_ccs@pipe-d-crc-sprite-planes-basic-y_tiled_ccs: - shard-tglb: NOTRUN -> [SKIP][61] ([i915#3689]) +6 similar issues [61]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-tglb5/igt@kms_ccs@pipe-d-crc-sprite-planes-basic-y_tiled_ccs.html * igt@kms_chamelium@dp-frame-dump: - shard-iclb: NOTRUN -> [SKIP][62] ([fdo#109284] / [fdo#111827]) +4 similar issues [62]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-iclb7/igt@kms_chamelium@dp-frame-dump.html * igt@kms_chamelium@hdmi-aspect-ratio: - shard-glk: NOTRUN -> [SKIP][63] ([fdo#109271] / [fdo#111827]) +11 similar issues [63]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-glk2/igt@kms_chamelium@hdmi-aspect-ratio.html * igt@kms_chamelium@hdmi-edid-change-during-suspend: - shard-apl: NOTRUN -> [SKIP][64] ([fdo#109271] / [fdo#111827]) +31 similar issues [64]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-apl2/igt@kms_chamelium@hdmi-edid-change-during-suspend.html * igt@kms_color_chamelium@pipe-a-ctm-blue-to-red: - shard-kbl: NOTRUN -> [SKIP][65] ([fdo#109271] / [fdo#111827]) +22 similar issues [65]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-kbl7/igt@kms_color_chamelium@pipe-a-ctm-blue-to-red.html * igt@kms_color_chamelium@pipe-b-ctm-limited-range: - shard-tglb: NOTRUN -> [SKIP][66] ([fdo#109284] / [fdo#111827]) +7 similar issues [66]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-tglb1/igt@kms_color_chamelium@pipe-b-ctm-limited-range.html * igt@kms_color_chamelium@pipe-d-gamma: - shard-iclb: NOTRUN -> [SKIP][67] ([fdo#109278] / [fdo#109284] / [fdo#111827]) +1 similar issue [67]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-iclb6/igt@kms_color_chamelium@pipe-d-gamma.html * igt@kms_color_chamelium@pipe-invalid-ctm-matrix-sizes: - shard-snb: NOTRUN -> [SKIP][68] ([fdo#109271] / [fdo#111827]) +26 similar issues [68]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-snb6/igt@kms_color_chamelium@pipe-invalid-ctm-matrix-sizes.html * igt@kms_content_protection@atomic: - shard-apl: NOTRUN -> [TIMEOUT][69] ([i915#1319]) [69]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-apl7/igt@kms_content_protection@atomic.html * igt@kms_content_protection@atomic-dpms: - shard-kbl: NOTRUN -> [TIMEOUT][70] ([i915#1319]) [70]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-kbl1/igt@kms_content_protection@atomic-dpms.html * igt@kms_content_protection@dp-mst-lic-type-0: - shard-iclb: NOTRUN -> [SKIP][71] ([i915#3116]) [71]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-iclb5/igt@kms_content_protection@dp-mst-lic-type-0.html - shard-tglb: NOTRUN -> [SKIP][72] ([i915#3116]) [72]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-tglb3/igt@kms_content_protection@dp-mst-lic-type-0.html * igt@kms_cursor_crc@pipe-a-cursor-32x32-onscreen: - shard-iclb: NOTRUN -> [SKIP][73] ([fdo#109278]) +17 similar issues [73]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-iclb7/igt@kms_cursor_crc@pipe-a-cursor-32x32-onscreen.html * igt@kms_cursor_crc@pipe-a-cursor-32x32-sliding: - shard-tglb: NOTRUN -> [SKIP][74] ([i915#3319]) +1 similar issue [74]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-tglb6/igt@kms_cursor_crc@pipe-a-cursor-32x32-sliding.html * igt@kms_cursor_crc@pipe-c-cursor-512x170-offscreen: - shard-tglb: NOTRUN -> [SKIP][75] ([fdo#109279] / [i915#3359]) +3 similar issues [75]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-tglb1/igt@kms_cursor_crc@pipe-c-cursor-512x170-offscreen.html - shard-iclb: NOTRUN -> [SKIP][76] ([fdo#109278] / [fdo#109279]) +1 similar issue [76]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-iclb2/igt@kms_cursor_crc@pipe-c-cursor-512x170-offscreen.html * igt@kms_cursor_crc@pipe-d-cursor-512x170-rapid-movement: - shard-tglb: NOTRUN -> [SKIP][77] ([i915#3359]) +2 similar issues [77]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-tglb7/igt@kms_cursor_crc@pipe-d-cursor-512x170-rapid-movement.html * igt@kms_cursor_legacy@cursorb-vs-flipa-atomic-transitions-varying-size: - shard-iclb: NOTRUN -> [SKIP][78] ([fdo#109274] / [fdo#109278]) [78]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-iclb7/igt@kms_cursor_legacy@cursorb-vs-flipa-atomic-transitions-varying-size.html * igt@kms_dither@fb-8bpc-vs-panel-8bpc@edp-1-pipe-a: - shard-tglb: NOTRUN -> [SKIP][79] ([i915#3788]) [79]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-tglb6/igt@kms_dither@fb-8bpc-vs-panel-8bpc@edp-1-pipe-a.html * igt@kms_flip@2x-plain-flip-ts-check: - shard-tglb: NOTRUN -> [SKIP][80] ([fdo#111825]) +20 similar issues [80]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-tglb6/igt@kms_flip@2x-plain-flip-ts-check.html - shard-iclb: NOTRUN -> [SKIP][81] ([fdo#109274]) +1 similar issue [81]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-iclb5/igt@kms_flip@2x-plain-flip-ts-check.html * igt@kms_flip@flip-vs-suspend@c-dp1: - shard-apl: NOTRUN -> [DMESG-WARN][82] ([i915#180]) [82]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-apl6/igt@kms_flip@flip-vs-suspend@c-dp1.html * igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytilegen12rcccs: - shard-glk: NOTRUN -> [SKIP][83] ([fdo#109271] / [i915#2672]) [83]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-glk5/igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytilegen12rcccs.html * igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-32bpp-ytilercccs: - shard-apl: NOTRUN -> [SKIP][84] ([fdo#109271] / [i915#2672]) [84]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-apl2/igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-32bpp-ytilercccs.html * igt@kms_frontbuffer_tracking@fbc-2p-primscrn-pri-indfb-draw-render: - shard-iclb: NOTRUN -> [SKIP][85] ([fdo#109280]) +17 similar issues [85]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-iclb2/igt@kms_frontbuffer_tracking@fbc-2p-primscrn-pri-indfb-draw-render.html * igt@kms_frontbuffer_tracking@psr-1p-primscrn-cur-indfb-onoff: - shard-snb: NOTRUN -> [SKIP][86] ([fdo#109271]) +455 similar issues [86]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-snb2/igt@kms_frontbuffer_tracking@psr-1p-primscrn-cur-indfb-onoff.html * igt@kms_frontbuffer_tracking@psr-rgb101010-draw-mmap-wc: - shard-kbl: NOTRUN -> [SKIP][87] ([fdo#109271]) +203 similar issues [87]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-kbl1/igt@kms_frontbuffer_tracking@psr-rgb101010-draw-mmap-wc.html * igt@kms_hdr@bpc-switch-suspend: - shard-kbl: [PASS][88] -> [INCOMPLETE][89] ([i915#155] / [i915#2828]) +1 similar issue [88]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10543/shard-kbl4/igt@kms_hdr@bpc-switch-suspend.html [89]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-kbl4/igt@kms_hdr@bpc-switch-suspend.html * igt@kms_pipe_b_c_ivb@pipe-b-dpms-off-modeset-pipe-c: - shard-iclb: NOTRUN -> [SKIP][90] ([fdo#109289]) +3 similar issues [90]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-iclb1/igt@kms_pipe_b_c_ivb@pipe-b-dpms-off-modeset-pipe-c.html * igt@kms_pipe_crc_basic@compare-crc-sanitycheck-pipe-d: - shard-glk: NOTRUN -> [SKIP][91] ([fdo#109271] / [i915#533]) [91]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-glk4/igt@kms_pipe_crc_basic@compare-crc-sanitycheck-pipe-d.html * igt@kms_pipe_crc_basic@nonblocking-crc-pipe-d-frame-sequence: - shard-apl: NOTRUN -> [SKIP][92] ([fdo#109271] / [i915#533]) [92]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-apl3/igt@kms_pipe_crc_basic@nonblocking-crc-pipe-d-frame-sequence.html * igt@kms_pipe_crc_basic@read-crc-pipe-d: - shard-kbl: NOTRUN -> [SKIP][93] ([fdo#109271] / [i915#533]) +1 similar issue [93]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-kbl6/igt@kms_pipe_crc_basic@read-crc-pipe-d.html * igt@kms_plane_alpha_blend@pipe-b-alpha-basic: - shard-apl: NOTRUN -> [FAIL][94] ([fdo#108145] / [i915#265]) +3 similar issues [94]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-apl3/igt@kms_plane_alpha_blend@pipe-b-alpha-basic.html * igt@kms_plane_alpha_blend@pipe-c-alpha-7efc: - shard-kbl: NOTRUN -> [FAIL][95] ([fdo#108145] / [i915#265]) +5 similar issues [95]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-kbl2/igt@kms_plane_alpha_blend@pipe-c-alpha-7efc.html * igt@kms_plane_scaling@scaler-with-clipping-clamping@pipe-c-scaler-with-clipping-clamping: - shard-apl: NOTRUN -> [SKIP][96] ([fdo#109271] / [i915#2733]) [96]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-apl8/igt@kms_plane_scaling@scaler-with-clipping-clamping@pipe-c-scaler-with-clipping-clamping.html * igt@kms_psr2_sf@cursor-plane-update-sf: - shard-tglb: NOTRUN -> [SKIP][97] ([i915#2920]) +1 similar issue [97]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-tglb7/igt@kms_psr2_sf@cursor-plane-update-sf.html * igt@kms_psr2_sf@overlay-primary-update-sf-dmg-area-4: - shard-apl: NOTRUN -> [SKIP][98] ([fdo#109271] / [i915#658]) +7 similar issues [98]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-apl8/igt@kms_psr2_sf@overlay-primary-update-sf-dmg-area-4.html * igt@kms_psr2_sf@primary-plane-update-sf-dmg-area-1: - shard-iclb: NOTRUN -> [SKIP][99] ([i915#658]) +1 similar issue [99]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-iclb8/igt@kms_psr2_sf@primary-plane-update-sf-dmg-area-1.html - shard-glk: NOTRUN -> [SKIP][100] ([fdo#109271] / [i915#658]) +3 similar issues [100]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-glk5/igt@kms_psr2_sf@primary-plane-update-sf-dmg-area-1.html - shard-kbl: NOTRUN -> [SKIP][101] ([fdo#109271] / [i915#658]) +5 similar issues [101]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-kbl6/igt@kms_psr2_sf@primary-plane-update-sf-dmg-area-1.html * igt@kms_psr2_su@page_flip: - shard-tglb: NOTRUN -> [SKIP][102] ([i915#1911]) [102]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-tglb5/igt@kms_psr2_su@page_flip.html - shard-iclb: NOTRUN -> [SKIP][103] ([fdo#109642] / [fdo#111068] / [i915#658]) [103]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-iclb8/igt@kms_psr2_su@page_flip.html * igt@kms_psr@psr2_cursor_mmap_cpu: - shard-iclb: [PASS][104] -> [SKIP][105] ([fdo#109441]) +1 similar issue [104]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10543/shard-iclb2/igt@kms_psr@psr2_cursor_mmap_cpu.html [105]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-iclb7/igt@kms_psr@psr2_cursor_mmap_cpu.html * igt@kms_psr@psr2_cursor_mmap_gtt: - shard-tglb: NOTRUN -> [FAIL][106] ([i915#132] / [i915#3467]) [106]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-tglb2/igt@kms_psr@psr2_cursor_mmap_gtt.html - shard-iclb: NOTRUN -> [SKIP][107] ([fdo#109441]) [107]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-iclb8/igt@kms_psr@psr2_cursor_mmap_gtt.html * igt@kms_rotation_crc@primary-y-tiled-reflect-x-180: - shard-glk: NOTRUN -> [SKIP][108] ([fdo#109271]) +84 similar issues [108]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-glk3/igt@kms_rotation_crc@primary-y-tiled-reflect-x-180.html * igt@kms_vblank@pipe-c-ts-continuation-suspend: - shard-kbl: NOTRUN -> [DMESG-WARN][109] ([i915#180]) [109]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-kbl6/igt@kms_vblank@pipe-c-ts-continuation-suspend.html * igt@kms_vrr@flip-dpms: - shard-iclb: NOTRUN -> [SKIP][110] ([fdo#109502]) [110]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-iclb4/igt@kms_vrr@flip-dpms.html - shard-tglb: NOTRUN -> [SKIP][111] ([fdo#109502]) [111]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-tglb1/igt@kms_vrr@flip-dpms.html * igt@kms_writeback@writeback-check-output: - shard-apl: NOTRUN -> [SKIP][112] ([fdo#109271] / [i915#2437]) +1 similar issue [112]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-apl7/igt@kms_writeback@writeback-check-output.html * igt@kms_writeback@writeback-pixel-formats: - shard-glk: NOTRUN -> [SKIP][113] ([fdo#109271] / [i915#2437]) [113]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-glk1/igt@kms_writeback@writeback-pixel-formats.html - shard-kbl: NOTRUN -> [SKIP][114] ([fdo#109271] / [i915#2437]) [114]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-kbl6/igt@kms_writeback@writeback-pixel-formats.html - shard-iclb: NOTRUN -> [SKIP][115] ([i915#2437]) [115]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-iclb1/igt@kms_writeback@writeback-pixel-formats.html - shard-tglb: NOTRUN -> [SKIP][116] ([i915#2437]) [116]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-tglb8/igt@kms_writeback@writeback-pixel-formats.html * igt@nouveau_crc@pipe-b-source-rg: - shard-iclb: NOTRUN -> [SKIP][117] ([i915#2530]) [117]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-iclb1/igt@nouveau_crc@pipe-b-source-rg.html - shard-tglb: NOTRUN -> [SKIP][118] ([i915#2530]) [118]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-tglb6/igt@nouveau_crc@pipe-b-source-rg.html * igt@prime_nv_pcopy@test3_5: - shard-iclb: NOTRUN -> [SKIP][119] ([fdo#109291]) [119]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-iclb2/igt@prime_nv_pcopy@test3_5.html - shard-tglb: NOTRUN -> [SKIP][120] ([fdo#109291]) [120]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-tglb1/igt@prime_nv_pcopy@test3_5.html * igt@sysfs_clients@busy: - shard-glk: NOTRUN -> [SKIP][121] ([fdo#109271] / [i915#2994]) [121]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-glk3/igt@sysfs_clients@busy.html * igt@sysfs_clients@fair-3: - shard-kbl: NOTRUN -> [SKIP][122] ([fdo#109271] / [i915#2994]) +2 similar issues [122]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-kbl4/igt@sysfs_clients@fair-3.html * igt@sysfs_clients@sema-50: - shard-apl: NOTRUN -> [SKIP][123] ([fdo#109271] / [i915#2994]) +5 similar issues [123]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-apl7/igt@sysfs_clients@sema-50.html * igt@sysfs_clients@split-25: - shard-tglb: NOTRUN -> [SKIP][124] ([i915#2994]) [124]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-tglb6/igt@sysfs_clients@split-25.html - shard-iclb: NOTRUN -> [SKIP][125] ([i915#2994]) [125]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-iclb1/igt@sysfs_clients@split-25.html #### Possible fixes #### * igt@gem_exec_fair@basic-none-share@rcs0: - shard-kbl: [SKIP][126] ([fdo#109271]) -> [PASS][127] [126]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10543/shard-kbl1/igt@gem_exec_fair@basic-none-share@rcs0.html [127]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-kbl6/igt@gem_exec_fair@basic-none-share@rcs0.html - shard-tglb: [FAIL][128] ([i915#2842]) -> [PASS][129] +1 similar issue [128]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10543/shard-tglb8/igt@gem_exec_fair@basic-none-share@rcs0.html [129]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-tglb8/igt@gem_exec_fair@basic-none-share@rcs0.html * igt@gem_exec_fair@basic-pace@vecs0: - shard-kbl: [FAIL][130] ([i915#2842]) -> [PASS][131] +2 similar issues [130]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10543/shard-kbl2/igt@gem_exec_fair@basic-pace@vecs0.html [131]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-kbl4/igt@gem_exec_fair@basic-pace@vecs0.html * igt@gem_exec_fair@basic-throttle@rcs0: - shard-glk: [FAIL][132] ([i915#2842]) -> [PASS][133] +3 similar issues [132]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10543/shard-glk4/igt@gem_exec_fair@basic-throttle@rcs0.html [133]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-glk5/igt@gem_exec_fair@basic-throttle@rcs0.html * igt@i915_pm_dc@dc6-psr: - shard-iclb: [FAIL][134] ([i915#454]) -> [PASS][135] [134]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10543/shard-iclb6/igt@i915_pm_dc@dc6-psr.html [135]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/shard-iclb4/igt@i915_pm == Logs == For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6183/index.html [-- Attachment #2: Type: text/html, Size: 33939 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [igt-dev] [PATCH i-g-t] tests/amdgpu: Add tests that check for memory leaks 2021-09-01 12:27 [igt-dev] [PATCH i-g-t] tests/amdgpu: Add tests that check for memory leaks Stylon Wang 2021-09-01 13:12 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork 2021-09-01 14:59 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork @ 2021-09-10 15:38 ` Rodrigo Siqueira 2 siblings, 0 replies; 4+ messages in thread From: Rodrigo Siqueira @ 2021-09-10 15:38 UTC (permalink / raw) To: Stylon Wang; +Cc: igt-dev, nicholas.kazlauskas, sunpeng.li Hi, Thanks a lot for this new test. Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com> On 09/01, Stylon Wang wrote: > Check for memory leaks in these two cases: > - Connector EDID parsing after suspend-resume > - Triggerring of connector hotplugs > > Depends on CONFIG_HAVE_DEBUG_KMEMLEAK=y in kernel config. > > Signed-off-by: Stylon Wang <stylon.wang@amd.com> > --- > tests/amdgpu/amd_mem_leak.c | 236 ++++++++++++++++++++++++++++++++++++ > tests/amdgpu/meson.build | 1 + > 2 files changed, 237 insertions(+) > create mode 100644 tests/amdgpu/amd_mem_leak.c > > diff --git a/tests/amdgpu/amd_mem_leak.c b/tests/amdgpu/amd_mem_leak.c > new file mode 100644 > index 00000000..dee563cb > --- /dev/null > +++ b/tests/amdgpu/amd_mem_leak.c > @@ -0,0 +1,236 @@ > +/* > + * Copyright 2020 Advanced Micro Devices, Inc. > + * > + * Permission is hereby granted, free of charge, to any person obtaining a > + * copy of this software and associated documentation files (the "Software"), > + * to deal in the Software without restriction, including without limitation > + * the rights to use, copy, modify, merge, publish, distribute, sublicense, > + * and/or sell copies of the Software, and to permit persons to whom the > + * Software is furnished to do so, subject to the following conditions: > + * > + * The above copyright notice and this permission notice shall be included in > + * all copies or substantial portions of the Software. > + * > + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR > + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, > + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL > + * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR > + * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, > + * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR > + * OTHER DEALINGS IN THE SOFTWARE. > + */ > + > +#include "igt.h" > +#include "igt_amd.h" > +#include <fcntl.h> > + > +IGT_TEST_DESCRIPTION("Test checking memory leaks with suspend-resume and connector hotplug"); > + > +/* Common test data. */ > +typedef struct data { > + igt_display_t display; > + igt_plane_t *primary; > + igt_output_t *output; > + igt_pipe_t *pipe; > + drmModeModeInfo *mode; > + enum pipe pipe_id; > + int fd; > + int w; > + int h; > +} data_t; > + > +/* Common test setup. */ > +static void test_init(data_t *data) > +{ > + igt_display_t *display = &data->display; > + > + /* It doesn't matter which pipe we choose on amdpgu. */ > + data->pipe_id = PIPE_A; > + data->pipe = &data->display.pipes[data->pipe_id]; > + > + igt_display_reset(display); > + > + /* find a connected output */ > + data->output = NULL; > + for (int i=0; i < data->display.n_outputs; ++i) { > + drmModeConnector *connector = data->display.outputs[i].config.connector; > + if (connector->connection == DRM_MODE_CONNECTED) { > + data->output = &data->display.outputs[i]; > + } > + } > + igt_assert_f(data->output, "Requires connected output\n"); > + > + data->mode = igt_output_get_mode(data->output); > + igt_assert(data->mode); > + > + data->primary = > + igt_pipe_get_plane_type(data->pipe, DRM_PLANE_TYPE_PRIMARY); > + > + igt_output_set_pipe(data->output, data->pipe_id); > + > + data->w = data->mode->hdisplay; > + data->h = data->mode->vdisplay; > +} > + > +/* Common test cleanup. */ > +static void test_fini(data_t *data) > +{ > + igt_display_reset(&data->display); > +} > + > +/* return True if scan successfully written to kmemleak */ > +static bool send_scan_memleak(void) > +{ > + FILE *fp; > + const char *cmd = "scan"; > + > + fp = fopen("/sys/kernel/debug/kmemleak", "r+"); > + if (!fp) return false; > + > + if(fwrite(cmd, 1, strlen(cmd), fp) != strlen(cmd)) { > + fclose(fp); > + return false; > + } > + fclose(fp); > + return true; > +} > + > +/* return True if clear successfully sent to kmemleak */ > +static bool send_clear_memleak(void) > +{ > + FILE *fp; > + const char *cmd = "clear"; > + > + fp = fopen("/sys/kernel/debug/kmemleak", "r+"); > + if (!fp) return false; > + > + if(fwrite(cmd, 1, strlen(cmd), fp) != strlen(cmd)) { > + fclose(fp); > + return false; > + } > + fclose(fp); > + return true; > +} > + > +/* return true if kmemleak is enabled and then clear earlier leak records */ > +static bool clear_memleak(data_t *data) > +{ > + /* Need to scan + clear twice to properly clear buffer or else leaks > + * from modprobe or other tests may appear > + */ > + if (!send_scan_memleak() | !send_clear_memleak()) > + return false; > + if (!send_scan_memleak() | !send_clear_memleak()) > + return false; > + > + return true; > +} > + > +/* return true if kmemleak did not pick up any memory leaks */ > +static bool check_memleak(data_t *data) > +{ > + FILE *fp; > + const char *buf[1]; > + const char *cmd = "scan"; > + char read_buf[1024]; > + > + fp = fopen("/sys/kernel/debug/kmemleak", "r+"); > + igt_assert_f(fp, "cannot open /sys/kernel/debug/kmemleak for reading\n"); > + > + /* trigger an immediate scan on memory leak */ > + igt_assert_f(fwrite(cmd, 1, strlen(cmd), fp) == strlen(cmd), > + "fail to trigger a scan for memory leak\n"); > + > + /* read back to see if any leak */ > + if (fread(buf, 1, 1, fp) == 0) { > + fclose(fp); > + return true; > + } > + > + /* Dump contents of kmemleak */ > + fseek(fp, 0L, SEEK_SET); > + while (fgets(read_buf, sizeof(read_buf), fp) != NULL) { > + igt_info("%s", read_buf); > + } > + > + fclose(fp); > + return false; > +} > + > +static void test_suspend_resume(data_t *data) > +{ > + igt_display_t *display = &data->display; > + igt_fb_t rfb; > + > + test_init(data); > + > + if(!clear_memleak(data)) { > + igt_skip("kmemleak is not enabled for this kernel\n"); > + } > + > + igt_create_pattern_fb(data->fd, data->w, data->h, DRM_FORMAT_XRGB8888, 0, &rfb); > + igt_plane_set_fb(data->primary, &rfb); > + igt_display_commit_atomic(display, DRM_MODE_ATOMIC_ALLOW_MODESET, NULL); > + > + igt_system_suspend_autoresume(SUSPEND_STATE_MEM, SUSPEND_TEST_NONE); > + > + igt_assert_f(check_memleak(data), "memory leak detected\n"); > + > + igt_remove_fb(data->fd, &rfb); > + test_fini(data); > +} > + > +static void test_hotplug(data_t *data) > +{ > + igt_display_t *display = &data->display; > + igt_fb_t rfb; > + > + test_init(data); > + > + igt_amd_require_hpd(&data->display, data->fd); > + > + if(!clear_memleak(data)) { > + igt_skip("kmemleak is not enabled for this kernel\n"); > + } > + > + igt_create_pattern_fb(data->fd, data->w, data->h, DRM_FORMAT_XRGB8888, 0, &rfb); > + igt_plane_set_fb(data->primary, &rfb); > + igt_display_commit_atomic(display, DRM_MODE_ATOMIC_ALLOW_MODESET, NULL); > + > + igt_amd_trigger_hotplug(data->fd, data->output->name); > + > + igt_assert_f(check_memleak(data), "memory leak detected\n"); > + > + igt_remove_fb(data->fd, &rfb); > + test_fini(data); > +} > + > +igt_main > +{ > + data_t data; > + > + igt_skip_on_simulation(); > + > + memset(&data, 0, sizeof(data)); > + > + igt_fixture > + { > + data.fd = drm_open_driver_master(DRIVER_AMDGPU); > + > + kmstest_set_vt_graphics_mode(); > + > + igt_display_require(&data.display, data.fd); > + igt_require(data.display.is_atomic); > + igt_display_require_output(&data.display); > + } > + > + igt_describe("Test memory leaks after resume from suspend"); > + igt_subtest("connector-suspend-resume") test_suspend_resume(&data); > + igt_describe("Test memroy leaks after connector hotplug"); > + igt_subtest("connector-hotplug") test_hotplug(&data); > + > + igt_fixture > + { > + igt_display_fini(&data.display); > + } > +} > diff --git a/tests/amdgpu/meson.build b/tests/amdgpu/meson.build > index 90489d82..d05a9c30 100644 > --- a/tests/amdgpu/meson.build > +++ b/tests/amdgpu/meson.build > @@ -12,6 +12,7 @@ if libdrm_amdgpu.found() > 'amd_info', > 'amd_prime', > 'amd_module_load', > + 'amd_mem_leak', > ] > amdgpu_deps += libdrm_amdgpu > endif > -- > 2.32.0 > -- Rodrigo Siqueira https://siqueira.tech ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-09-10 15:38 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2021-09-01 12:27 [igt-dev] [PATCH i-g-t] tests/amdgpu: Add tests that check for memory leaks Stylon Wang 2021-09-01 13:12 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork 2021-09-01 14:59 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork 2021-09-10 15:38 ` [igt-dev] [PATCH i-g-t] " Rodrigo Siqueira
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.