tests/kms_vrr: Extend to cover full VRR range
PATCH 1/1 tests/kms_vrr: Extend to cover full VRR range
As we are restricting the vrr max to current mode vrefresh, we are not covering the full vrr range with default mode.
So, instead of running tests on default mode, loop through the all connector modes and find the mode with max refresh rate to exercise full vrr range.
--- tests/kms_vrr.c | 48 ++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 42 insertions(+), 6 deletions(-)
tests/kms_vrr.c +42 -6
@@ -33,6 +33,13 @@*/ #define TEST_DURATION_NS (5000000000ull) +#define DRM_MODE_FMT "\"%s\": %d %d %d %d %d %d %d %d %d %d 0x%x 0x%x" +#define DRM_MODE_ARG (m) \ + (m)->name, (m)->vrefresh, (m)->clock, \ + (m)->hdisplay, (m)->hsync_start, (m)->hsync_end, (m)->htotal, \ + (m)->vdisplay, (m)->vsync_start, (m)->vsync_end, (m)->vtotal, \ + (m)->type, (m)->flags +enum {TEST_NONE =0 ,TEST_DPMS =1 <<0 ,
@@ -111,6 +118,26 @@ static uint64_t rate_from_refresh(uint64_t refresh)return NSECS_PER_SEC / refresh; } +/* Instead of running on default mode, loop through the connector modes +* and find the mode with max refresh rate to exercise full vrr range. +*/ +static drmModeModeInfo output_mode_with_maxrate (igt_output_t *output) +{ +int i; +drmModeConnectorPtr connector = output->config.connector; +drmModeModeInfo mode = *igt_output_get_mode (output); + +igt_debug ("Default Mode " DRM_MODE_FMT "\n" ,DRM_MODE_ARG (&mode)); + +for (i =0 ; i < connector->count_modes; i++) +if (connector->modes[i].vrefresh > mode.vrefresh) + mode = connector->modes[i]; + +igt_debug ("Override Mode " DRM_MODE_FMT "\n" ,DRM_MODE_ARG (&mode)); + +return mode; +} +/* Read min and max vrr range from the connector debugfs. * - min range should be less than the current mode vfreq * - if max range is grater than the current mode vfreq, consider
@@ -176,7 +203,7 @@ static void set_vrr_on_pipe(data_t *data, enum pipe pipe, bool enabled)/* Prepare the display for testing on the given pipe. */ static void prepare_test (data_t *data,igt_output_t *output,enum pipe pipe) { -drmModeModeInfo mode = *igt_output_get_mode (output); +drmModeModeInfo mode =output_mode_with_maxrate (output);cairo_t *cr;/* Reset output */
@@ -202,6 +229,7 @@ static void prepare_test(data_t *data, igt_output_t *output, enum pipe pipe)/* Take care of any required modesetting before the test begins. */ data->primary =igt_output_get_plane_type (output,DRM_PLANE_TYPE_PRIMARY );igt_plane_set_fb (data->primary, &data->fb0); +igt_output_override_mode (output, &mode);/* Clear vrr_enabled state before enabling it, because * it might be left enabled if the previous test fails.
@@ -269,6 +297,9 @@ flip_and_measure(data_t *data, igt_output_t *output, enum pipe pipe,*/ event_ns =get_kernel_event_ns (data,DRM_EVENT_FLIP_COMPLETE ); +igt_debug ("event_ns - last_event_ns: %" PRIu64"\n" , + (event_ns - last_event_ns)); +/* * Check if the difference between the two flip timestamps * was within the required threshold from the expected rate.
@@ -316,15 +347,19 @@ static void test_basic(data_t *data, enum pipe pipe, igt_output_t *output, uint32_t flags) {uint32_t result; -vtest_ns_t vtest_ns =get_test_rate_ns (data, output); -range_t range =get_vrr_range (data, output); -uint64_t rate = vtest_ns.mid; +vtest_ns_t vtest_ns; +range_t range; +uint64_t rate; + +prepare_test (data, output, pipe); + + vtest_ns =get_test_rate_ns (data, output); + range =get_vrr_range (data, output); + rate = vtest_ns.mid;igt_info ("VRR Test execution on %s, PIPE_%s with VRR range: (%u-%u) Hz\n" , output->name,kmstest_pipe_name (pipe), range.min, range.max); -prepare_test (data, output, pipe); -set_vrr_on_pipe (data, pipe,1 );/*
@@ -394,6 +429,7 @@ test_basic(data_t *data, enum pipe pipe, igt_output_t *output, uint32_t flags)/* Clean-up */ igt_plane_set_fb (data->primary,NULL );igt_output_set_pipe (output,PIPE_NONE ); +igt_output_override_mode (output,NULL );igt_display_commit2 (&data->display,COMMIT_ATOMIC );igt_remove_fb (data->drm_fd, &data->fb1);
Signature · 6 lines
2.20.1 _______________________________________________ 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_vrr: Extend to cover full VRR range
== Series Details ==
== Series Details ==
Series: tests/kms_vrr: Extend to cover full VRR range
URL : https://patchwork.freedesktop.org/series/87273/
State : success
== Summary ==
CI Bug Log - changes from IGT_6010 -> IGTPW_5541
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/index.html
Known issues
------------
Here are the changes found in IGTPW_5541 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@amdgpu/amd_cs_nop@sync-fork-gfx0:
- fi-skl-6600u: NOTRUN -> [SKIP][1] ([fdo#109271]) +20 similar issues
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/fi-skl-6600u/igt@amdgpu/[email protected]
* igt@gem_flink_basic@bad-open:
- fi-tgl-y: [PASS][2] -> [DMESG-WARN][3] ([i915#402])
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6010/fi-tgl-y/igt@[email protected]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/fi-tgl-y/igt@[email protected]
* igt@gem_huc_copy@huc-copy:
- fi-skl-6600u: NOTRUN -> [SKIP][4] ([fdo#109271] / [i915#2190])
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/fi-skl-6600u/igt@[email protected]
* igt@kms_chamelium@vga-edid-read:
- fi-skl-6600u: NOTRUN -> [SKIP][5] ([fdo#109271] / [fdo#111827]) +8 similar issues
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/fi-skl-6600u/igt@[email protected]
* igt@kms_pipe_crc_basic@compare-crc-sanitycheck-pipe-d:
- fi-skl-6600u: NOTRUN -> [SKIP][6] ([fdo#109271] / [i915#533])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/fi-skl-6600u/igt@[email protected]
#### Possible fixes ####
* igt@debugfs_test@read_all_entries:
- fi-tgl-y: [DMESG-WARN][7] ([i915#402]) -> [PASS][8] +1 similar issue
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6010/fi-tgl-y/igt@debugfs_test@read_all_entries.html
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/fi-tgl-y/igt@debugfs_test@read_all_entries.html
* igt@i915_pm_rpm@module-reload:
- fi-kbl-7500u: [DMESG-WARN][9] ([i915#2605]) -> [PASS][10]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6010/fi-kbl-7500u/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/fi-kbl-7500u/igt@[email protected]
#### Warnings ####
* igt@runner@aborted:
- fi-icl-u2: [FAIL][11] ([i915#1814] / [i915#2724]) -> [FAIL][12] ([i915#1814])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6010/fi-icl-u2/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/fi-icl-u2/igt@[email protected]
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[i915#1814]: https://gitlab.freedesktop.org/drm/intel/issues/1814
[i915#2190]: https://gitlab.freedesktop.org/drm/intel/issues/2190
[i915#2605]: https://gitlab.freedesktop.org/drm/intel/issues/2605
[i915#2724]: https://gitlab.freedesktop.org/drm/intel/issues/2724
[i915#402]: https://gitlab.freedesktop.org/drm/intel/issues/402
[i915#533]: https://gitlab.freedesktop.org/drm/intel/issues/533
Participating hosts (43 -> 38)
------------------------------
Missing (5): fi-hsw-4200u fi-ctg-p8600 fi-dg1-1 fi-bdw-samus fi-snb-2600
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_6010 -> IGTPW_5541
CI-20190529: 20190529
CI_DRM_9791: c1991e1c98008d13d9773744a9f9da0884644917 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_5541: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/index.html
IGT_6010: e8fb87056cc4053dde25fe151df9ed3264adbf5a @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/index.html
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Patchwork
CI[igt-dev] ✗ Fi.CI.IGT: failure for tests/kms_vrr: Extend to cover full VRR range
In reply to Bhanuprakash Modem== Series Details ==
== Series Details ==
Series: tests/kms_vrr: Extend to cover full VRR range
URL : https://patchwork.freedesktop.org/series/87273/
State : failure
== Summary ==
CI Bug Log - changes from IGT_6010_full -> IGTPW_5541_full
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with IGTPW_5541_full absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in IGTPW_5541_full, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/index.html
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in IGTPW_5541_full:
### IGT changes ###
#### Possible regressions ####
* igt@gem_exec_reloc@basic-concurrent0:
- shard-glk: NOTRUN -> [INCOMPLETE][1]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-glk1/igt@[email protected]
* igt@kms_flip@flip-vs-suspend-interruptible@b-hdmi-a1:
- shard-hsw: [PASS][2] -> [INCOMPLETE][3]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6010/shard-hsw4/igt@kms_flip@[email protected]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-hsw2/igt@kms_flip@[email protected]
#### Warnings ####
* igt@runner@aborted:
- shard-apl: ([FAIL][4], [FAIL][5], [FAIL][6], [FAIL][7]) ([i915#1610] / [i915#2426] / [i915#2724]) -> ([FAIL][8], [FAIL][9], [FAIL][10]) ([i915#3002])
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6010/shard-apl2/igt@[email protected]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6010/shard-apl8/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6010/shard-apl8/igt@[email protected]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6010/shard-apl8/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-apl8/igt@[email protected]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-apl2/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-apl8/igt@[email protected]
Known issues
------------
Here are the changes found in IGTPW_5541_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_create@create-massive:
- shard-apl: NOTRUN -> [DMESG-WARN][11] ([i915#3002])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-apl2/igt@[email protected]
* igt@gem_ctx_isolation@preservation-s3@vcs0:
- shard-apl: [PASS][12] -> [DMESG-WARN][13] ([i915#180])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6010/shard-apl6/igt@gem_ctx_isolation@[email protected]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-apl8/igt@gem_ctx_isolation@[email protected]
* igt@gem_ctx_persistence@legacy-engines-mixed:
- shard-snb: NOTRUN -> [SKIP][14] ([fdo#109271] / [i915#1099]) +6 similar issues
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-snb6/igt@[email protected]
* igt@gem_exec_fair@basic-none-solo@rcs0:
- shard-kbl: NOTRUN -> [FAIL][15] ([i915#2842])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-kbl1/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-none@vecs0:
- shard-apl: NOTRUN -> [FAIL][16] ([i915#2842])
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-apl2/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace@vecs0:
- shard-glk: [PASS][17] -> [FAIL][18] ([i915#2842]) +2 similar issues
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6010/shard-glk8/igt@gem_exec_fair@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-glk3/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-throttle@rcs0:
- shard-iclb: [PASS][19] -> [FAIL][20] ([i915#2849])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6010/shard-iclb4/igt@gem_exec_fair@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-iclb2/igt@gem_exec_fair@[email protected]
* igt@gem_exec_params@no-bsd:
- shard-tglb: NOTRUN -> [SKIP][21] ([fdo#109283])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-tglb2/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][22] ([fdo#109283])
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-iclb1/igt@[email protected]
* igt@gem_exec_whisper@basic-contexts-forked:
- shard-iclb: [PASS][23] -> [INCOMPLETE][24] ([i915#1895])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6010/shard-iclb2/igt@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-iclb7/igt@[email protected]
* igt@gem_huc_copy@huc-copy:
- shard-apl: NOTRUN -> [SKIP][25] ([fdo#109271] / [i915#2190])
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-apl7/igt@[email protected]
* igt@gem_userptr_blits@process-exit-mmap-busy@uc:
- shard-tglb: NOTRUN -> [SKIP][26] ([i915#1699]) +3 similar issues
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-tglb7/igt@gem_userptr_blits@[email protected]
* igt@gem_userptr_blits@readonly-unsync:
- shard-tglb: NOTRUN -> [SKIP][27] ([fdo#110426] / [i915#1704])
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-tglb1/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][28] ([fdo#110426] / [i915#1704])
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-iclb5/igt@[email protected]
* igt@gen9_exec_parse@allowed-all:
- shard-kbl: [PASS][29] -> [DMESG-WARN][30] ([i915#1436] / [i915#716])
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6010/shard-kbl7/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-kbl4/igt@[email protected]
* igt@gen9_exec_parse@batch-invalid-length:
- shard-snb: NOTRUN -> [SKIP][31] ([fdo#109271]) +390 similar issues
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-snb6/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][32] ([fdo#112306])
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-iclb3/igt@[email protected]
* igt@gen9_exec_parse@bb-start-cmd:
- shard-tglb: NOTRUN -> [SKIP][33] ([fdo#112306]) +1 similar issue
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-tglb6/igt@[email protected]
* igt@i915_pm_backlight@bad-brightness:
- shard-glk: NOTRUN -> [SKIP][34] ([fdo#109271]) +47 similar issues
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-glk3/igt@[email protected]
* igt@i915_pm_lpsp@screens-disabled:
- shard-tglb: NOTRUN -> [SKIP][35] ([i915#1902])
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-tglb3/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][36] ([i915#1902])
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-iclb5/igt@[email protected]
* igt@i915_pm_rpm@dpms-non-lpsp:
- shard-tglb: NOTRUN -> [SKIP][37] ([fdo#111644] / [i915#1397] / [i915#2411])
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-tglb5/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][38] ([fdo#110892])
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-iclb4/igt@[email protected]
* igt@i915_suspend@fence-restore-untiled:
- shard-apl: NOTRUN -> [DMESG-WARN][39] ([i915#180])
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-apl8/igt@[email protected]
* igt@kms_big_fb@linear-8bpp-rotate-270:
- shard-tglb: NOTRUN -> [SKIP][40] ([fdo#111614]) +1 similar issue
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-tglb1/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][41] ([fdo#110725] / [fdo#111614]) +1 similar issue
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-iclb5/igt@[email protected]
* igt@kms_big_joiner@basic:
- shard-kbl: NOTRUN -> [SKIP][42] ([fdo#109271] / [i915#2705]) +1 similar issue
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-kbl4/igt@[email protected]
- shard-apl: NOTRUN -> [SKIP][43] ([fdo#109271] / [i915#2705])
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-apl1/igt@[email protected]
* igt@kms_chamelium@dp-mode-timings:
- shard-glk: NOTRUN -> [SKIP][44] ([fdo#109271] / [fdo#111827]) +6 similar issues
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-glk7/igt@[email protected]
* igt@kms_chamelium@vga-hpd:
- shard-apl: NOTRUN -> [SKIP][45] ([fdo#109271] / [fdo#111827]) +24 similar issues
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-apl3/igt@[email protected]
* igt@kms_color@pipe-c-ctm-0-25:
- shard-tglb: NOTRUN -> [FAIL][46] ([i915#1149] / [i915#315])
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-tglb7/igt@[email protected]
* igt@kms_color@pipe-c-ctm-blue-to-red:
- shard-kbl: [PASS][47] -> [FAIL][48] ([i915#129])
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6010/shard-kbl1/igt@[email protected]
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-kbl4/igt@[email protected]
- shard-apl: NOTRUN -> [FAIL][49] ([i915#129])
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-apl6/igt@[email protected]
* igt@kms_color@pipe-d-gamma:
- shard-iclb: NOTRUN -> [SKIP][50] ([fdo#109278] / [i915#1149])
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-iclb8/igt@[email protected]
* igt@kms_color@pipe-d-legacy-gamma:
- shard-hsw: NOTRUN -> [SKIP][51] ([fdo#109271] / [i915#533]) +3 similar issues
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-hsw2/igt@[email protected]
* igt@kms_color_chamelium@pipe-a-ctm-0-25:
- shard-snb: NOTRUN -> [SKIP][52] ([fdo#109271] / [fdo#111827]) +18 similar issues
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-snb5/igt@[email protected]
* igt@kms_color_chamelium@pipe-a-ctm-red-to-blue:
- shard-iclb: NOTRUN -> [SKIP][53] ([fdo#109284] / [fdo#111827]) +1 similar issue
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-iclb5/igt@[email protected]
* igt@kms_color_chamelium@pipe-b-ctm-negative:
- shard-tglb: NOTRUN -> [SKIP][54] ([fdo#109284] / [fdo#111827]) +5 similar issues
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-tglb5/igt@[email protected]
* igt@kms_color_chamelium@pipe-b-gamma:
- shard-hsw: NOTRUN -> [SKIP][55] ([fdo#109271] / [fdo#111827]) +2 similar issues
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-hsw4/igt@[email protected]
* igt@kms_color_chamelium@pipe-invalid-gamma-lut-sizes:
- shard-kbl: NOTRUN -> [SKIP][56] ([fdo#109271] / [fdo#111827]) +21 similar issues
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-kbl1/igt@[email protected]
* igt@kms_content_protection@legacy:
- shard-kbl: NOTRUN -> [TIMEOUT][57] ([i915#1319]) +1 similar issue
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-kbl4/igt@[email protected]
* igt@kms_content_protection@lic:
- shard-apl: NOTRUN -> [TIMEOUT][58] ([i915#1319])
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-apl2/igt@[email protected]
* igt@kms_cursor_crc@pipe-c-cursor-256x85-onscreen:
- shard-apl: [PASS][59] -> [FAIL][60] ([i915#54])
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6010/shard-apl8/igt@[email protected]
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-apl8/igt@[email protected]
- shard-kbl: [PASS][61] -> [FAIL][62] ([i915#54])
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6010/shard-kbl2/igt@[email protected]
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-kbl2/igt@[email protected]
* igt@kms_cursor_crc@pipe-c-cursor-512x512-rapid-movement:
- shard-tglb: NOTRUN -> [SKIP][63] ([fdo#109279]) +1 similar issue
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-tglb7/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][64] ([fdo#109278] / [fdo#109279])
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-iclb6/igt@[email protected]
* igt@kms_cursor_crc@pipe-d-cursor-suspend:
- shard-kbl: NOTRUN -> [SKIP][65] ([fdo#109271]) +205 similar issues
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-kbl4/igt@[email protected]
* igt@kms_cursor_edge_walk@pipe-d-256x256-right-edge:
- shard-iclb: NOTRUN -> [SKIP][66] ([fdo#109278]) +2 similar issues
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-iclb3/igt@[email protected]
* igt@kms_cursor_legacy@2x-long-nonblocking-modeset-vs-cursor-atomic:
- shard-iclb: NOTRUN -> [SKIP][67] ([fdo#109274] / [fdo#109278])
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-iclb4/igt@kms_cursor_legacy@2x-long-nonblocking-modeset-vs-cursor-atomic.html
* igt@kms_dp_tiled_display@basic-test-pattern:
- shard-tglb: NOTRUN -> [SKIP][68] ([i915#426])
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-tglb8/igt@[email protected]
* igt@kms_flip@2x-flip-vs-rmfb:
- shard-iclb: NOTRUN -> [SKIP][69] ([fdo#109274]) +2 similar issues
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-iclb1/igt@[email protected]
* igt@kms_flip@flip-vs-expired-vblank@a-edp1:
- shard-tglb: [PASS][70] -> [FAIL][71] ([i915#2598]) +1 similar issue
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6010/shard-tglb7/igt@kms_flip@[email protected]
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-tglb3/igt@kms_flip@[email protected]
* igt@kms_flip@plain-flip-fb-recreate@c-hdmi-a2:
- shard-glk: [PASS][72] -> [FAIL][73] ([i915#2122])
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6010/shard-glk6/igt@kms_flip@[email protected]
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-glk6/igt@kms_flip@[email protected]
* igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytileccs:
- shard-apl: NOTRUN -> [FAIL][74] ([i915#2641])
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-apl8/igt@[email protected]
* igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytilegen12rcccs:
- shard-apl: NOTRUN -> [SKIP][75] ([fdo#109271] / [i915#2672])
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-apl2/igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytilegen12rcccs.html
* igt@kms_flip_scaled_crc@flip-32bpp-ytileccs-to-64bpp-ytile:
- shard-kbl: NOTRUN -> [SKIP][76] ([fdo#109271] / [i915#2642])
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-kbl7/igt@[email protected]
* igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-16bpp-ytile:
- shard-kbl: NOTRUN -> [FAIL][77] ([i915#2641])
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-kbl6/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-cur-indfb-onoff:
- shard-tglb: NOTRUN -> [SKIP][78] ([fdo#111825]) +14 similar issues
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-tglb5/igt@[email protected]
* igt@kms_frontbuffer_tracking@psr-2p-primscrn-shrfb-pgflip-blt:
- shard-iclb: NOTRUN -> [SKIP][79] ([fdo#109280]) +6 similar issues
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-iclb6/igt@[email protected]
* igt@kms_hdmi_inject@inject-audio:
- shard-tglb: [PASS][80] -> [SKIP][81] ([i915#433])
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6010/shard-tglb3/igt@[email protected]
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-tglb8/igt@[email protected]
* igt@kms_pipe_crc_basic@disable-crc-after-crtc-pipe-d:
- shard-apl: NOTRUN -> [SKIP][82] ([fdo#109271] / [i915#533])
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-apl3/igt@[email protected]
* igt@kms_pipe_crc_basic@suspend-read-crc-pipe-d:
- shard-kbl: NOTRUN -> [SKIP][83] ([fdo#109271] / [i915#533]) +1 similar issue
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-kbl4/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-a-alpha-basic:
- shard-apl: NOTRUN -> [FAIL][84] ([fdo#108145] / [i915#265]) +1 similar issue
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-apl1/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-b-alpha-transparent-fb:
- shard-kbl: NOTRUN -> [FAIL][85] ([i915#265]) +1 similar issue
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-kbl6/igt@[email protected]
* igt@kms_plane_multiple@atomic-pipe-b-tiling-yf:
- shard-tglb: NOTRUN -> [SKIP][86] ([fdo#111615])
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-tglb7/igt@[email protected]
* igt@kms_psr2_sf@cursor-plane-update-sf:
- shard-tglb: NOTRUN -> [SKIP][87] ([i915#2920])
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-tglb8/igt@[email protected]
* igt@kms_psr2_sf@plane-move-sf-dmg-area-2:
- shard-glk: NOTRUN -> [SKIP][88] ([fdo#109271] / [i915#658])
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-glk7/igt@[email protected]
* igt@kms_psr2_sf@primary-plane-update-sf-dmg-area-5:
- shard-kbl: NOTRUN -> [SKIP][89] ([fdo#109271] / [i915#658]) +5 similar issues
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-kbl7/igt@[email protected]
* igt@kms_psr2_su@frontbuffer:
- shard-iclb: [PASS][90] -> [SKIP][91] ([fdo#109642] / [fdo#111068] / [i915#658])
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6010/shard-iclb2/igt@[email protected]
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-iclb1/igt@[email protected]
* igt@kms_psr2_su@page_flip:
- shard-apl: NOTRUN -> [SKIP][92] ([fdo#109271] / [i915#658]) +2 similar issues
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-apl3/igt@kms_psr2_su@page_flip.html
* igt@kms_psr@psr2_primary_mmap_cpu:
- shard-iclb: [PASS][93] -> [SKIP][94] ([fdo#109441]) +1 similar issue
[93]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6010/shard-iclb2/igt@kms_psr@psr2_primary_mmap_cpu.html
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-iclb6/igt@kms_psr@psr2_primary_mmap_cpu.html
* igt@kms_psr@psr2_sprite_render:
- shard-hsw: NOTRUN -> [SKIP][95] ([fdo#109271] / [i915#1072]) +3 similar issues
[95]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-hsw4/igt@kms_psr@psr2_sprite_render.html
- shard-iclb: NOTRUN -> [SKIP][96] ([fdo#109441])
[96]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-iclb3/igt@kms_psr@psr2_sprite_render.html
* igt@kms_vblank@pipe-d-ts-continuation-idle:
- shard-apl: NOTRUN -> [SKIP][97] ([fdo#109271]) +220 similar issues
[97]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-apl7/igt@[email protected]
* igt@kms_vblank@pipe-d-wait-idle:
- shard-glk: NOTRUN -> [SKIP][98] ([fdo#109271] / [i915#533])
[98]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-glk6/igt@[email protected]
* igt@kms_writeback@writeback-invalid-parameters:
- shard-kbl: NOTRUN -> [SKIP][99] ([fdo#109271] / [i915#2437])
[99]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-kbl2/igt@[email protected]
* igt@kms_writeback@writeback-pixel-formats:
- shard-apl: NOTRUN -> [SKIP][100] ([fdo#109271] / [i915#2437])
[100]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-apl3/igt@[email protected]
* igt@perf@unprivileged-single-ctx-counters:
- shard-iclb: NOTRUN -> [SKIP][101] ([fdo#109289]) +1 similar issue
[101]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-iclb8/igt@[email protected]
- shard-tglb: NOTRUN -> [SKIP][102] ([fdo#109289]) +1 similar issue
[102]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-tglb8/igt@[email protected]
* igt@prime_nv_pcopy@test1_micro:
- shard-tglb: NOTRUN -> [SKIP][103] ([fdo#109291]) +1 similar issue
[103]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-tglb1/igt@prime_nv_pcopy@test1_micro.html
* igt@sysfs_clients@recycle:
- shard-kbl: [PASS][104] -> [FAIL][105] ([i915#3028])
[104]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6010/shard-kbl1/igt@[email protected]
[105]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-kbl1/igt@[email protected]
* igt@sysfs_clients@recycle-many:
- shard-iclb: [PASS][106] -> [FAIL][107] ([i915#3028]) +1 similar issue
[106]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6010/shard-iclb4/igt@[email protected]
[107]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-iclb5/igt@[email protected]
- shard-glk: [PASS][108] -> [FAIL][109] ([i915#3028])
[108]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6010/shard-glk8/igt@[email protected]
[109]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-glk2/igt@[email protected]
* igt@sysfs_clients@sema-10@rcs0:
- shard-apl: [PASS][110] -> [SKIP][111] ([fdo#109271] / [i915#3026]) +1 similar issue
[110]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6010/shard-apl1/igt@sysfs_clients@[email protected]
[111]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-apl8/igt@sysfs_clients@[email protected]
* igt@sysfs_clients@sema-10@vcs0:
- shard-kbl: NOTRUN -> [SKIP][112] ([fdo#109271] / [i915#3026]) +3 similar issues
[112]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-kbl2/igt@sysfs_clients@[email protected]
* igt@sysfs_clients@split-10@bcs0:
- shard-glk: [PASS][113] -> [SKIP][114] ([fdo#109271] / [i915#3026])
[113]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6010/shard-glk5/igt@sysfs_clients@[email protected]
[114]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-glk5/igt@sysfs_clients@[email protected]
* igt@sysfs_preempt_timeout@invalid@vcs0:
- shard-hsw: NOTRUN -> [SKIP][115] ([fdo#109271]) +44 similar issues
[115]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-hsw1/igt@sysfs_preempt_timeout@[email protected]
#### Possible fixes ####
* igt@feature_discovery@psr2:
- shard-iclb: [SKIP][116] ([i915#658]) -> [PASS][117]
[116]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6010/shard-iclb8/igt@[email protected]
[117]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-iclb2/igt@[email protected]
* igt@gem_exec_fair@basic-pace@vecs0:
- shard-iclb: [FAIL][118] ([i915#2842]) -> [PASS][119] +1 similar issue
[118]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6010/shard-iclb6/igt@gem_exec_fair@[email protected]
[119]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-iclb5/igt@gem_exec_fair@[email protected]
* igt@gem_exec_reloc@basic-many-active@rcs0:
- shard-glk: [FAIL][120] ([i915#2389]) -> [PASS][121]
[120]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6010/shard-glk8/igt@gem_exec_reloc@[email protected]
[121]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-glk8/igt@gem_exec_reloc@[email protected]
* igt@gen9_exec_parse@allowed-single:
- shard-glk: [DMESG-WARN][122] ([i915#1436] / [i915#716]) -> [PASS][123]
[122]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6010/shard-glk6/igt@[email protected]
[123]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-glk1/igt@[email protected]
* igt@kms_async_flips@test-time-stamp:
- shard-tglb: [FAIL][124] ([i915#2574]) -> [PASS][125]
[124]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6010/shard-tglb5/igt@[email protected]
[125]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-tglb6/igt@[email protected]
* igt@kms_fbcon_fbt@fbc-suspend:
- shard-apl: [INCOMPLETE][126] ([i915#180]) -> [PASS][127]
[126]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6010/shard-apl8/igt@[email protected]
[127]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-apl2/igt@[email protected]
* igt@kms_flip@flip-vs-suspend@b-dp1:
- shard-apl: [DMESG-WARN][128] ([i915#180]) -> [PASS][129]
[128]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6010/shard-apl8/igt@kms_flip@[email protected]
[129]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-apl7/igt@kms_flip@[email protected]
* igt@kms_flip@flip-vs-suspend@c-hdmi-a1:
- shard-hsw: [INCOMPLETE][130] ([i915#2055]) -> [PASS][131]
[130]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6010/shard-hsw1/igt@kms_flip@[email protected]
[131]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-hsw2/igt@kms_flip@[email protected]
* igt@kms_frontbuffer_tracking@fbc-1p-primscrn-cur-indfb-draw-mmap-cpu:
- shard-glk: [FAIL][132] ([i915#49]) -> [PASS][133]
[132]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6010/shard-glk6/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-cur-indfb-draw-mmap-cpu.html
[133]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-glk3/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-cur-indfb-draw-mmap-cpu.html
- shard-kbl: [FAIL][134] ([i915#49]) -> [PASS][135]
[134]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6010/shard-kbl6/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-cur-indfb-draw-mmap-cpu.html
[135]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-kbl1/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-cur-indfb-draw-mmap-cpu.html
* igt@kms_psr@psr2_sprite_plane_move:
- shard-iclb: [SKIP][136] ([fdo#109441]) -> [PASS][137] +2 similar issues
[136]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6010/shard-iclb4/igt@kms_psr@psr2_sprite_plane_move.html
[137]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-iclb2/igt@kms_psr@psr2_sprite_plane_move.html
#### Warnings ####
* igt@i915_pm_rc6_residency@rc6-idle:
- shard-iclb: [WARN][138] ([i915#1804] / [i915#2684]) -> [WARN][139] ([i915#2681] / [i915#2684])
[138]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6010/shard-iclb3/igt@[email protected]
[139]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-iclb8/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-blt:
- shard-hsw: [SKIP][140] ([fdo#109271]) -> [INCOMPLETE][141] ([i915#2055])
[140]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6010/shard-hsw2/igt@[email protected]
[141]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-hsw1/igt@[email protected]
* igt@kms_psr2_sf@primary-plane-update-sf-dmg-area-3:
- shard-iclb: [SKIP][142] ([i915#658]) -> [SKIP][143] ([i915#2920]) +1 similar issue
[142]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6010/shard-iclb6/igt@[email protected]
[143]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/shard-iclb2/igt@[email protected]
* igt@runner@aborted:
- shard-kbl: ([FAIL][144], [FAIL][145]) ([i915#1814] / [i915#3002]) -> ([FAIL][146], [FAIL][147]) ([fdo#109271] / [i915#14
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5541/index.html
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Quoted 40 lines · Bhanuprakash Modem
As we are restricting the vrr max to current mode vrefresh, we are not covering the full vrr range with default mode.
So, instead of running tests on default mode, loop through the all connector modes and find the mode with max refresh rate to exercise full vrr range.
Cc Ville Syrjälä <[email protected]>Cc Nicholas Kazlauskas <[email protected]>Suggested-by Manasi Navare <[email protected]>Signed-off-by Bhanuprakash Modem <[email protected]>--- tests/kms_vrr.c | 48 ++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 42 insertions(+), 6 deletions(-)tests/kms_vrr.c +10
-0@@ -33,6 +33,13 @@*/ #define TEST_DURATION_NS (5000000000ull) +#define DRM_MODE_FMT "\"%s\": %d %d %d %d %d %d %d %d %d %d 0x%x 0x%x" +#define DRM_MODE_ARG (m) \ + (m)->name, (m)->vrefresh, (m)->clock, \ + (m)->hdisplay, (m)->hsync_start, (m)->hsync_end, (m)->htotal, \ + (m)->vdisplay, (m)->vsync_start, (m)->vsync_end, (m)->vtotal, \ + (m)->type, (m)->flags +enum {TEST_NONE =0 ,TEST_DPMS =1 <<0 ,@@ -111,6 +118,26 @@ static uint64_t rate_from_refresh(uint64_t refresh)return NSECS_PER_SEC / refresh; } +/* Instead of running on default mode, loop through the connector modes +* and find the mode with max refresh rate to exercise full vrr range. +*/
tests/kms_vrr.c static uint64_t rate_from_refresh(uint64_t refresh) · line 133
Quoted 10 lines
tests/kms_vrr.c +10
-0+static drmModeModeInfo output_mode_with_maxrate (igt_output_t *output) +{ +int i; +drmModeConnectorPtr connector = output->config.connector; +drmModeModeInfo mode = *igt_output_get_mode (output); + +igt_debug ("Default Mode " DRM_MODE_FMT "\n" ,DRM_MODE_ARG (&mode)); + +for (i =0 ; i < connector->count_modes; i++) +if (connector->modes[i].vrefresh > mode.vrefresh)
We should also make sure we only use the mode whose refresh rate lies between vrr min and max so check if vrr vmax >= connector->modes[i].vrefresh and only then use it to override
I have seen some panels have modes with 75Hz but max vrr refresh is only 60Hz.
Makes sense?
Manasi
Quoted 73 lines
tests/kms_vrr.c +22
-6+ mode = connector->modes[i]; + +igt_debug ("Override Mode " DRM_MODE_FMT "\n" ,DRM_MODE_ARG (&mode)); + +return mode; +} +/* Read min and max vrr range from the connector debugfs. * - min range should be less than the current mode vfreq * - if max range is grater than the current mode vfreq, consider @@ -176,7 +203,7 @@ static void set_vrr_on_pipe(data_t *data, enum pipe pipe, bool enabled)/* Prepare the display for testing on the given pipe. */ static void prepare_test (data_t *data,igt_output_t *output,enum pipe pipe) { -drmModeModeInfo mode = *igt_output_get_mode (output); +drmModeModeInfo mode =output_mode_with_maxrate (output);cairo_t *cr;/* Reset output */ @@ -202,6 +229,7 @@ static void prepare_test(data_t *data, igt_output_t *output, enum pipe pipe)/* Take care of any required modesetting before the test begins. */ data->primary =igt_output_get_plane_type (output,DRM_PLANE_TYPE_PRIMARY );igt_plane_set_fb (data->primary, &data->fb0); +igt_output_override_mode (output, &mode);/* Clear vrr_enabled state before enabling it, because * it might be left enabled if the previous test fails. @@ -269,6 +297,9 @@ flip_and_measure(data_t *data, igt_output_t *output, enum pipe pipe,*/ event_ns =get_kernel_event_ns (data,DRM_EVENT_FLIP_COMPLETE ); +igt_debug ("event_ns - last_event_ns: %" PRIu64"\n" , + (event_ns - last_event_ns)); +/* * Check if the difference between the two flip timestamps * was within the required threshold from the expected rate. @@ -316,15 +347,19 @@ static void test_basic(data_t *data, enum pipe pipe, igt_output_t *output, uint32_t flags) {uint32_t result; -vtest_ns_t vtest_ns =get_test_rate_ns (data, output); -range_t range =get_vrr_range (data, output); -uint64_t rate = vtest_ns.mid; +vtest_ns_t vtest_ns; +range_t range; +uint64_t rate; + +prepare_test (data, output, pipe); + + vtest_ns =get_test_rate_ns (data, output); + range =get_vrr_range (data, output); + rate = vtest_ns.mid;igt_info ("VRR Test execution on %s, PIPE_%s with VRR range: (%u-%u) Hz\n" , output->name,kmstest_pipe_name (pipe), range.min, range.max); -prepare_test (data, output, pipe); -set_vrr_on_pipe (data, pipe,1 );/* @@ -394,6 +429,7 @@ test_basic(data_t *data, enum pipe pipe, igt_output_t *output, uint32_t flags)/* Clean-up */ igt_plane_set_fb (data->primary,NULL );igt_output_set_pipe (output,PIPE_NONE ); +igt_output_override_mode (output,NULL );igt_display_commit2 (&data->display,COMMIT_ATOMIC );igt_remove_fb (data->drm_fd, &data->fb1);Signature · 1 line
2.20.1
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev