test/perf: Add test to verify OA TLB invalidation
PATCH 1/1 test/perf: Add test to verify OA TLB invalidation
Run 2 polling tests back to back and compare the number of OA reports captured. Make sure the number of reports are almost same.
v2: Add timeout to poll (Lionel)
--- tests/perf.c | 99 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 99 insertions(+)
tests/perf.c +99 -0
@@ -2265,6 +2265,99 @@ test_polling(void)__perf_close (stream_fd); } +static int +num_valid_reports_captured (struct drm_i915_perf_open_param *param) +{ +uint8_t buf[1024 *1024 ]; +int64_t tick_ns =1000000000 /sysconf (_SC_CLK_TCK); +#define DURATION_SEC 5/* 5 seconds */ +int64_t test_duration_ns = tick_ns *DURATION_SEC *100 ; +int64_t start, end; +int num_reports =0 ; + + stream_fd =__perf_open (drm_fd, param, true); + +igt_debug ("tick length = %dns, test duration = %" PRIu64"ns\n" , + (int )tick_ns, test_duration_ns); + + start =get_time (); +do_ioctl (stream_fd,I915_PERF_IOCTL_ENABLE ,0 ); +for (/* nop */ ; ((end =get_time ()) - start) < test_duration_ns;/* nop */ ) { +struct pollfd pollfd = { .fd = stream_fd, .events =POLLIN }; +struct drm_i915_perf_record_header *header; +int ret; + +/* we do not want to wait longer than the test duration here */ +while ((ret =poll (&pollfd,1 ,DURATION_SEC *1000 )) <0 && + errno ==EINTR ) + ; +igt_assert_eq (ret,1 ); +igt_assert (pollfd.revents &POLLIN ); + +while ((ret =read (stream_fd, buf,sizeof (buf))) <0 && + errno ==EINTR ) + ; + +/* poll checks if the tail has advanced on the OA buffer, but +* does not check if the reports are valid. On read, the driver +* checks if the reports are valid or not. if none of the +* reports are valid, it returns EAGAIN. EAGAIN should also +* suffice to show that the TLB invalidation failed, but we will +* try for a more concrete check. Ignore read errors here. +*/ +if (ret <0 ) +continue ; + +for (int offset =0 ; offset < ret; offset += header->size) { + header = (void *)(buf + offset); + +if (header->type ==DRM_I915_PERF_RECORD_SAMPLE ) { +uint32_t *report = (void *)(header +1 ); + +if ((report[0 ] >>OAREPORT_REASON_SHIFT ) & +OAREPORT_REASON_TIMER ) + num_reports++; + } + } + } +__perf_close (stream_fd); + +return num_reports; +} + +static void +gen12_test_oa_tlb_invalidate (void ) +{ +int oa_exponent =max_oa_exponent_for_period_lte (30000000 ); +uint64_t properties[] = { +DRM_I915_PERF_PROP_SAMPLE_OA , true, + +DRM_I915_PERF_PROP_OA_METRICS_SET , test_set->perf_oa_metrics_set, +DRM_I915_PERF_PROP_OA_FORMAT , test_set->perf_oa_format, +DRM_I915_PERF_PROP_OA_EXPONENT , oa_exponent, + }; +struct drm_i915_perf_open_param param = { + .flags =I915_PERF_FLAG_FD_CLOEXEC | +I915_PERF_FLAG_DISABLED | +I915_PERF_FLAG_FD_NONBLOCK , + .num_properties =sizeof (properties) /16 , + .properties_ptr =to_user_pointer (properties), + }; +int num_reports1, num_reports2; + +/* Capture reports for 5 seconds twice and then make sure you get around +* the same number of reports. In the case of failure, the number of +* reports will vary largely since the beginning of the OA buffer +* will have invalid entries. +*/ + num_reports1 =num_valid_reports_captured (¶m); + num_reports2 =num_valid_reports_captured (¶m); + +igt_debug ("num_reports1 = %d, num_reports2 = %d\n" , num_reports1, num_reports2); +igt_assert (num_reports2 >0.95 * num_reports1); +} + +static void test_buffer_fill (void ) {
@@ -4622,6 +4715,12 @@ igt_maingen8_test_single_ctx_render_target_writes_a_counter (); } +igt_describe ("Test OA TLB invalidate" ); + igt_subtest("gen12-oa-tlb-invalidate") { +igt_require (intel_gen (devid) >=12 ); +gen12_test_oa_tlb_invalidate (); + } +igt_describe ("Measure performance for a specific context using OAR in Gen 12" ); igt_subtest("gen12-unprivileged-single-ctx-counters") {igt_require (intel_gen (devid) >=12 );
Signature · 6 lines
2.17.1 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
Patchwork
CI[igt-dev] ✓ Fi.CI.BAT: success for test/perf: Add test to verify OA TLB invalidation (rev2)
== Series Details ==
== Series Details ==
Series: test/perf: Add test to verify OA TLB invalidation (rev2)
URL : https://patchwork.freedesktop.org/series/74477/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_8112 -> IGTPW_4288
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/index.html
Known issues
------------
Here are the changes found in IGTPW_4288 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@i915_pm_rpm@basic-rte:
- fi-hsw-4770: [PASS][1] -> [SKIP][2] ([fdo#109271]) +1 similar issue
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/fi-hsw-4770/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/fi-hsw-4770/igt@[email protected]
* igt@i915_selftest@live@execlists:
- fi-cml-u2: [PASS][3] -> [INCOMPLETE][4] ([i915#283])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/fi-cml-u2/igt@i915_selftest@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/fi-cml-u2/igt@i915_selftest@[email protected]
* igt@kms_addfb_basic@small-bo:
- fi-tgl-y: [PASS][5] -> [DMESG-WARN][6] ([CI#94] / [i915#402])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/fi-tgl-y/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/fi-tgl-y/igt@[email protected]
#### Possible fixes ####
* igt@gem_exec_suspend@basic-s4-devices:
- fi-tgl-y: [FAIL][7] ([CI#94]) -> [PASS][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/fi-tgl-y/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/fi-tgl-y/igt@[email protected]
* igt@kms_addfb_basic@unused-modifier:
- fi-tgl-y: [DMESG-WARN][9] ([CI#94] / [i915#402]) -> [PASS][10]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/fi-tgl-y/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/fi-tgl-y/igt@[email protected]
#### Warnings ####
* igt@kms_chamelium@hdmi-hpd-fast:
- fi-kbl-7500u: [FAIL][11] ([fdo#111407]) -> [FAIL][12] ([fdo#111096] / [i915#323])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/fi-kbl-7500u/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/fi-kbl-7500u/igt@[email protected]
[CI#94]: https://gitlab.freedesktop.org/gfx-ci/i915-infra/issues/94
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#111096]: https://bugs.freedesktop.org/show_bug.cgi?id=111096
[fdo#111407]: https://bugs.freedesktop.org/show_bug.cgi?id=111407
[i915#283]: https://gitlab.freedesktop.org/drm/intel/issues/283
[i915#323]: https://gitlab.freedesktop.org/drm/intel/issues/323
[i915#402]: https://gitlab.freedesktop.org/drm/intel/issues/402
Participating hosts (44 -> 38)
------------------------------
Additional (3): fi-skl-6770hq fi-bsw-nick fi-bsw-n3050
Missing (9): fi-bdw-5557u fi-hsw-4200u fi-glk-dsi fi-byt-squawks fi-snb-2520m fi-skl-lmem fi-byt-clapper fi-bdw-samus fi-snb-2600
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_5504 -> IGTPW_4288
CI-20190529: 20190529
CI_DRM_8112: 032f2fe5c92eb1db6d417738431153c001a41bcc @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_4288: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/index.html
IGT_5504: d6788bf0404f76b66170e18eb26c85004b5ccb25 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
== Testlist changes ==
+igt@perf@gen12-oa-tlb-invalidate
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/index.html
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Patchwork
CI[igt-dev] ✓ Fi.CI.IGT: success for test/perf: Add test to verify OA TLB invalidation (rev2)
In reply to Umesh Nerlige Ramappa== Series Details ==
== Series Details ==
Series: test/perf: Add test to verify OA TLB invalidation (rev2)
URL : https://patchwork.freedesktop.org/series/74477/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_8112_full -> IGTPW_4288_full
====================================================
Summary
-------
**WARNING**
Minor unknown changes coming with IGTPW_4288_full need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in IGTPW_4288_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_4288/index.html
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in IGTPW_4288_full:
### IGT changes ###
#### Possible regressions ####
* {igt@perf@gen12-oa-tlb-invalidate} (NEW):
- shard-tglb: NOTRUN -> [FAIL][1]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/shard-tglb1/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][2]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/shard-iclb4/igt@[email protected]
#### Warnings ####
* igt@runner@aborted:
- shard-hsw: ([FAIL][3], [FAIL][4], [FAIL][5], [FAIL][6], [FAIL][7], [FAIL][8], [FAIL][9], [FAIL][10], [FAIL][11]) ([fdo#111870] / [i915#478]) -> ([FAIL][12], [FAIL][13], [FAIL][14], [FAIL][15], [FAIL][16], [FAIL][17], [FAIL][18]) ([fdo#111870])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/shard-hsw1/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/shard-hsw2/igt@[email protected]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/shard-hsw1/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/shard-hsw2/igt@[email protected]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/shard-hsw5/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/shard-hsw4/igt@[email protected]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/shard-hsw2/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/shard-hsw5/igt@[email protected]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/shard-hsw7/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/shard-hsw6/igt@[email protected]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/shard-hsw5/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/shard-hsw1/igt@[email protected]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/shard-hsw4/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/shard-hsw6/igt@[email protected]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/shard-hsw2/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/shard-hsw2/igt@[email protected]
New tests
---------
New tests have been introduced between CI_DRM_8112_full and IGTPW_4288_full:
### New IGT tests (1) ###
* igt@perf@gen12-oa-tlb-invalidate:
- Statuses : 1 fail(s) 6 skip(s)
- Exec time: [0.0, 10.12] s
Known issues
------------
Here are the changes found in IGTPW_4288_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_ctx_persistence@close-replace-race:
- shard-tglb: [PASS][19] -> [INCOMPLETE][20] ([i915#1402])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/shard-tglb1/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/shard-tglb2/igt@[email protected]
* igt@gem_ctx_persistence@legacy-engines-mixed-process@bsd:
- shard-tglb: [PASS][21] -> [INCOMPLETE][22] ([i915#1239])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/shard-tglb3/igt@gem_ctx_persistence@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/shard-tglb6/igt@gem_ctx_persistence@[email protected]
* igt@gem_ctx_persistence@legacy-engines-mixed-process@render:
- shard-tglb: [PASS][23] -> [FAIL][24] ([i915#679])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/shard-tglb3/igt@gem_ctx_persistence@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/shard-tglb6/igt@gem_ctx_persistence@[email protected]
* igt@gem_exec_schedule@implicit-write-read-bsd:
- shard-iclb: [PASS][25] -> [SKIP][26] ([i915#677])
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/shard-iclb8/igt@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/shard-iclb1/igt@[email protected]
* igt@gem_exec_schedule@independent-bsd2:
- shard-iclb: [PASS][27] -> [SKIP][28] ([fdo#109276]) +21 similar issues
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/shard-iclb4/igt@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/shard-iclb7/igt@[email protected]
* igt@gem_exec_schedule@preempt-other-chain-bsd:
- shard-iclb: [PASS][29] -> [SKIP][30] ([fdo#112146]) +2 similar issues
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/shard-iclb6/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/shard-iclb4/igt@[email protected]
* igt@gem_exec_whisper@basic-contexts-forked:
- shard-glk: [PASS][31] -> [DMESG-WARN][32] ([i915#118] / [i915#95])
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/shard-glk2/igt@[email protected]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/shard-glk4/igt@[email protected]
* igt@gem_ppgtt@flink-and-close-vma-leak:
- shard-glk: [PASS][33] -> [FAIL][34] ([i915#644])
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/shard-glk8/igt@[email protected]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/shard-glk5/igt@[email protected]
- shard-apl: [PASS][35] -> [FAIL][36] ([i915#644])
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/shard-apl2/igt@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/shard-apl1/igt@[email protected]
* igt@gem_userptr_blits@dmabuf-unsync:
- shard-snb: [PASS][37] -> [DMESG-WARN][38] ([fdo#111870] / [i915#478])
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/shard-snb5/igt@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/shard-snb5/igt@[email protected]
* igt@gen9_exec_parse@allowed-all:
- shard-glk: [PASS][39] -> [DMESG-WARN][40] ([i915#716])
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/shard-glk2/igt@[email protected]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/shard-glk8/igt@[email protected]
* igt@i915_pm_rpm@dpms-lpsp:
- shard-iclb: [PASS][41] -> [SKIP][42] ([i915#1316])
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/shard-iclb3/igt@[email protected]
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/shard-iclb8/igt@[email protected]
- shard-tglb: [PASS][43] -> [SKIP][44] ([i915#1316])
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/shard-tglb8/igt@[email protected]
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/shard-tglb1/igt@[email protected]
* igt@i915_pm_rps@min-max-config-loaded:
- shard-iclb: [PASS][45] -> [FAIL][46] ([i915#370])
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/shard-iclb4/igt@[email protected]
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/shard-iclb2/igt@[email protected]
* igt@i915_pm_rps@reset:
- shard-iclb: [PASS][47] -> [FAIL][48] ([i915#413])
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/shard-iclb1/igt@[email protected]
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/shard-iclb7/igt@[email protected]
* igt@kms_cursor_crc@pipe-c-cursor-suspend:
- shard-apl: [PASS][49] -> [DMESG-WARN][50] ([i915#180]) +2 similar issues
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/shard-apl6/igt@[email protected]
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/shard-apl4/igt@[email protected]
* igt@kms_fence_pin_leak:
- shard-hsw: [PASS][51] -> [DMESG-WARN][52] ([i915#478])
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/shard-hsw4/igt@kms_fence_pin_leak.html
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/shard-hsw6/igt@kms_fence_pin_leak.html
* igt@kms_flip@flip-vs-suspend:
- shard-kbl: [PASS][53] -> [INCOMPLETE][54] ([i915#155] / [i915#600])
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/shard-kbl3/igt@[email protected]
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/shard-kbl3/igt@[email protected]
* igt@kms_plane_lowres@pipe-a-tiling-x:
- shard-glk: [PASS][55] -> [FAIL][56] ([i915#899])
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/shard-glk8/igt@[email protected]
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/shard-glk2/igt@[email protected]
* igt@kms_psr@no_drrs:
- shard-iclb: [PASS][57] -> [FAIL][58] ([i915#173])
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/shard-iclb5/igt@kms_psr@no_drrs.html
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/shard-iclb1/igt@kms_psr@no_drrs.html
* igt@kms_psr@psr2_primary_page_flip:
- shard-iclb: [PASS][59] -> [SKIP][60] ([fdo#109441]) +3 similar issues
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/shard-iclb2/igt@kms_psr@psr2_primary_page_flip.html
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/shard-iclb7/igt@kms_psr@psr2_primary_page_flip.html
* igt@kms_vblank@pipe-a-ts-continuation-suspend:
- shard-kbl: [PASS][61] -> [DMESG-WARN][62] ([i915#180]) +2 similar issues
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/shard-kbl7/igt@[email protected]
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/shard-kbl3/igt@[email protected]
* igt@perf_pmu@busy-start-vcs1:
- shard-iclb: [PASS][63] -> [SKIP][64] ([fdo#112080]) +10 similar issues
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/shard-iclb1/igt@[email protected]
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/shard-iclb5/igt@[email protected]
#### Possible fixes ####
* igt@gem_busy@busy-vcs1:
- shard-iclb: [SKIP][65] ([fdo#112080]) -> [PASS][66] +11 similar issues
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/shard-iclb5/igt@[email protected]
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/shard-iclb4/igt@[email protected]
* igt@gem_ctx_persistence@close-replace-race:
- shard-kbl: [INCOMPLETE][67] ([i915#1402]) -> [PASS][68]
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/shard-kbl1/igt@[email protected]
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/shard-kbl1/igt@[email protected]
- shard-iclb: [INCOMPLETE][69] ([i915#1402]) -> [PASS][70]
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/shard-iclb7/igt@[email protected]
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/shard-iclb7/igt@[email protected]
* igt@gem_ctx_persistence@engines-mixed-process@vecs0:
- shard-kbl: [FAIL][71] ([i915#679]) -> [PASS][72]
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/shard-kbl7/igt@gem_ctx_persistence@[email protected]
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/shard-kbl4/igt@gem_ctx_persistence@[email protected]
* igt@gem_exec_schedule@pi-distinct-iova-bsd:
- shard-iclb: [SKIP][73] ([i915#677]) -> [PASS][74] +1 similar issue
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/shard-iclb4/igt@[email protected]
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/shard-iclb5/igt@[email protected]
* igt@gem_exec_schedule@preemptive-hang-bsd:
- shard-iclb: [SKIP][75] ([fdo#112146]) -> [PASS][76] +4 similar issues
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/shard-iclb4/igt@[email protected]
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/shard-iclb3/igt@[email protected]
* igt@gem_exec_whisper@basic-fds-priority:
- shard-glk: [DMESG-WARN][77] ([i915#118] / [i915#95]) -> [PASS][78] +2 similar issues
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/shard-glk3/igt@[email protected]
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/shard-glk9/igt@[email protected]
* igt@i915_pm_rps@waitboost:
- shard-iclb: [FAIL][79] ([i915#413]) -> [PASS][80]
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/shard-iclb6/igt@[email protected]
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/shard-iclb1/igt@[email protected]
* igt@kms_cursor_crc@pipe-b-cursor-64x64-offscreen:
- shard-apl: [FAIL][81] ([i915#54]) -> [PASS][82]
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/shard-apl4/igt@[email protected]
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/shard-apl3/igt@[email protected]
* igt@kms_draw_crc@draw-method-rgb565-pwrite-xtiled:
- shard-glk: [FAIL][83] ([i915#52] / [i915#54]) -> [PASS][84]
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/shard-glk8/igt@[email protected]
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/shard-glk3/igt@[email protected]
* igt@kms_pipe_crc_basic@suspend-read-crc-pipe-a:
- shard-kbl: [DMESG-WARN][85] ([i915#180]) -> [PASS][86] +3 similar issues
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/shard-kbl7/igt@[email protected]
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/shard-kbl3/igt@[email protected]
* igt@kms_plane@plane-panning-bottom-right-suspend-pipe-b-planes:
- shard-apl: [DMESG-WARN][87] ([i915#180]) -> [PASS][88] +4 similar issues
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/shard-apl2/igt@[email protected]
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/shard-apl6/igt@[email protected]
* igt@kms_plane_lowres@pipe-a-tiling-y:
- shard-glk: [FAIL][89] ([i915#899]) -> [PASS][90]
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/shard-glk8/igt@[email protected]
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/shard-glk4/igt@[email protected]
* igt@kms_plane_multiple@atomic-pipe-c-tiling-x:
- shard-hsw: [DMESG-WARN][91] ([i915#478]) -> [PASS][92]
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/shard-hsw5/igt@[email protected]
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/shard-hsw1/igt@[email protected]
* igt@kms_psr@psr2_cursor_mmap_cpu:
- shard-iclb: [SKIP][93] ([fdo#109441]) -> [PASS][94]
[93]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/shard-iclb4/igt@kms_psr@psr2_cursor_mmap_cpu.html
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/shard-iclb2/igt@kms_psr@psr2_cursor_mmap_cpu.html
* igt@prime_vgem@basic-gtt:
- shard-snb: [DMESG-WARN][95] ([i915#478]) -> [PASS][96]
[95]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/shard-snb5/igt@[email protected]
[96]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/shard-snb5/igt@[email protected]
* igt@prime_vgem@fence-wait-bsd2:
- shard-iclb: [SKIP][97] ([fdo#109276]) -> [PASS][98] +17 similar issues
[97]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/shard-iclb8/igt@[email protected]
[98]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/shard-iclb1/igt@[email protected]
#### Warnings ####
* igt@gem_linear_blits@normal:
- shard-apl: [TIMEOUT][99] ([i915#1322]) -> [TIMEOUT][100] ([fdo#111732] / [i915#1322])
[99]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/shard-apl1/igt@[email protected]
[100]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/shard-apl3/igt@[email protected]
* igt@gem_userptr_blits@dmabuf-sync:
- shard-snb: [DMESG-WARN][101] ([fdo#110789] / [fdo#111870] / [i915#478]) -> [DMESG-WARN][102] ([fdo#111870] / [i915#478])
[101]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/shard-snb6/igt@[email protected]
[102]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/shard-snb6/igt@[email protected]
- shard-hsw: [DMESG-WARN][103] ([fdo#110789] / [fdo#111870]) -> [DMESG-WARN][104] ([fdo#111870])
[103]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/shard-hsw4/igt@[email protected]
[104]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/shard-hsw1/igt@[email protected]
* igt@gem_userptr_blits@sync-unmap-cycles:
- shard-snb: [DMESG-WARN][105] ([fdo#111870] / [i915#478]) -> [DMESG-WARN][106] ([fdo#110789] / [fdo#111870] / [i915#478])
[105]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/shard-snb5/igt@[email protected]
[106]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/shard-snb4/igt@[email protected]
- shard-hsw: [DMESG-WARN][107] ([fdo#111870]) -> [DMESG-WARN][108] ([fdo#110789] / [fdo#111870])
[107]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/shard-hsw7/igt@[email protected]
[108]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/shard-hsw5/igt@[email protected]
* igt@i915_pm_dc@dc6-dpms:
- shard-tglb: [SKIP][109] ([i915#468]) -> [FAIL][110] ([i915#454])
[109]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/shard-tglb2/igt@[email protected]
[110]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/shard-tglb6/igt@[email protected]
* igt@runner@aborted:
- shard-kbl: ([FAIL][111], [FAIL][112]) ([i915#1389] / [i915#1402] / [i915#92]) -> [FAIL][113] ([i915#92])
[111]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/shard-kbl1/igt@[email protected]
[112]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8112/shard-kbl1/igt@[email protected]
[113]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/shard-kbl2/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#109276]: https://bugs.freedesktop.org/show_bug.cgi?id=109276
[fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[fdo#110789]: https://bugs.freedesktop.org/show_bug.cgi?id=110789
[fdo#111732]: https://bugs.freedesktop.org/show_bug.cgi?id=111732
[fdo#111870]: https://bugs.freedesktop.org/show_bug.cgi?id=111870
[fdo#112080]: https://bugs.freedesktop.org/show_bug.cgi?id=112080
[fdo#112146]: https://bugs.freedesktop.org/show_bug.cgi?id=112146
[i915#118]: https://gitlab.freedesktop.org/drm/intel/issues/118
[i915#1239]: https://gitlab.freedesktop.org/drm/intel/issues/1239
[i915#1316]: https://gitlab.freedesktop.org/drm/intel/issues/1316
[i915#1322]: https://gitlab.freedesktop.org/drm/intel/issues/1322
[i915#1389]: https://gitlab.freedesktop.org/drm/intel/issues/1389
[i915#1402]: https://gitlab.freedesktop.org/drm/intel/issues/1402
[i915#155]: https://gitlab.freedesktop.org/drm/intel/issues/155
[i915#173]: https://gitlab.freedesktop.org/drm/intel/issues/173
[i915#180]: https://gitlab.freedesktop.org/drm/intel/issues/180
[i915#370]: https://gitlab.freedesktop.org/drm/intel/issues/370
[i915#413]: https://gitlab.freedesktop.org/drm/intel/issues/413
[i915#454]: https://gitlab.freedesktop.org/drm/intel/issues/454
[i915#468]: https://gitlab.freedesktop.org/drm/intel/issues/468
[i915#478]: https://gitlab.freedesktop.org/drm/intel/issues/478
[i915#52]: https://gitlab.freedesktop.org/drm/intel/issues/52
[i915#54]: https://gitlab.freedesktop.org/drm/intel/issues/54
[i915#600]: https://gitlab.freedesktop.org/drm/intel/issues/600
[i915#644]: https://gitlab.freedesktop.org/drm/intel/issues/644
[i915#677]: https://gitlab.freedesktop.org/drm/intel/issues/677
[i915#679]: https://gitlab.freedesktop.org/drm/intel/issues/679
[i915#716]: https://gitlab.freedesktop.org/drm/intel/issues/716
[i915#899]: https://gitlab.freedesktop.org/drm/intel/issues/899
[i915#92]: https://gitlab.freedesktop.org/drm/intel/issues/92
[i915#95]: https://gitlab.freedesktop.org/drm/intel/issues/95
Participating hosts (10 -> 8)
------------------------------
Missing (2): pig-skl-6260u pig-glk-j5005
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_5504 -> IGTPW_4288
* Piglit: piglit_4509 -> None
CI-20190529: 20190529
CI_DRM_8112: 032f2fe5c92eb1db6d417738431153c001a41bcc @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_4288: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/index.html
IGT_5504: d6788bf0404f76b66170e18eb26c85004b5ccb25 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4288/index.html
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Quoted 15 lines · Umesh Nerlige Ramappa
Run 2 polling tests back to back and compare the number of OA reports captured. Make sure the number of reports are almost same.
v2: Add timeout to poll (Lionel)
Signed-off-by Umesh Nerlige Ramappa <[email protected]>--- tests/perf.c | 99 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 99 insertions(+)tests/perf.c +0
-0
tests/perf.c test_polling(void) · line 2274
Quoted 10 lines
tests/perf.c +7
-0@@ -2265,6 +2265,99 @@ test_polling(void)__perf_close (stream_fd); } +static int +num_valid_reports_captured (struct drm_i915_perf_open_param *param) +{ +uint8_t buf[1024 *1024 ]; +int64_t tick_ns =1000000000 /sysconf (_SC_CLK_TCK); +#define DURATION_SEC 5/* 5 seconds */ +int64_t test_duration_ns = tick_ns *DURATION_SEC *100 ;
Why do you need ticks? poll work in milliseconds.
Can't we stick on milliseconds or nanoseconds?
Quoted 8 lines
tests/perf.c +8
-0+int64_t start, end; +int num_reports =0 ; + + stream_fd =__perf_open (drm_fd, param, true); + +igt_debug ("tick length = %dns, test duration = %" PRIu64"ns\n" , + (int )tick_ns, test_duration_ns); +
tests/perf.c test_polling(void) · line 2292
Quoted 10 lines
tests/perf.c +10
-0+ start =get_time (); +do_ioctl (stream_fd,I915_PERF_IOCTL_ENABLE ,0 ); +for (/* nop */ ; ((end =get_time ()) - start) < test_duration_ns;/* nop */ ) { +struct pollfd pollfd = { .fd = stream_fd, .events =POLLIN }; +struct drm_i915_perf_record_header *header; +int ret; + +/* we do not want to wait longer than the test duration here */ +while ((ret =poll (&pollfd,1 ,DURATION_SEC *1000 )) <0 && + errno ==EINTR )
You need to deduct the remaining time for the poll.
Otherwise you depending on how you're synced with the kernel timeout you might capture one more timeout period than what you need for 5s.
You could use ppoll if you want more precise timings.
Quoted 50 lines
tests/perf.c +50
-0+ ; +igt_assert_eq (ret,1 ); +igt_assert (pollfd.revents &POLLIN ); + +while ((ret =read (stream_fd, buf,sizeof (buf))) <0 && + errno ==EINTR ) + ; + +/* poll checks if the tail has advanced on the OA buffer, but +* does not check if the reports are valid. On read, the driver +* checks if the reports are valid or not. if none of the +* reports are valid, it returns EAGAIN. EAGAIN should also +* suffice to show that the TLB invalidation failed, but we will +* try for a more concrete check. Ignore read errors here. +*/ +if (ret <0 ) +continue ; + +for (int offset =0 ; offset < ret; offset += header->size) { + header = (void *)(buf + offset); + +if (header->type ==DRM_I915_PERF_RECORD_SAMPLE ) { +uint32_t *report = (void *)(header +1 ); + +if ((report[0 ] >>OAREPORT_REASON_SHIFT ) & +OAREPORT_REASON_TIMER ) + num_reports++; + } + } + } +__perf_close (stream_fd); + +return num_reports; +} + +static void +gen12_test_oa_tlb_invalidate (void ) +{ +int oa_exponent =max_oa_exponent_for_period_lte (30000000 ); +uint64_t properties[] = { +DRM_I915_PERF_PROP_SAMPLE_OA , true, + +DRM_I915_PERF_PROP_OA_METRICS_SET , test_set->perf_oa_metrics_set, +DRM_I915_PERF_PROP_OA_FORMAT , test_set->perf_oa_format, +DRM_I915_PERF_PROP_OA_EXPONENT , oa_exponent, + }; +struct drm_i915_perf_open_param param = { + .flags =I915_PERF_FLAG_FD_CLOEXEC | +I915_PERF_FLAG_DISABLED | +I915_PERF_FLAG_FD_NONBLOCK ,
tests/perf.c test_polling(void) · line 2352
Quoted 10 lines
tests/perf.c +10
-0+ .num_properties = sizeof(properties) / 16, + .properties_ptr = to_user_pointer(properties), + }; +int num_reports1, num_reports2; + +/* Capture reports for 5 seconds twice and then make sure you get around +* the same number of reports. In the case of failure, the number of +* reports will vary largely since the beginning of the OA buffer +* will have invalid entries. +*/
I think a better approach would be to estimate how many reports you should get for 5s and then verify that both captures are within a delta of that expectation.
That way if we fail twice the number of reports we should be getting, we'll be notified.
-Lionel
Quoted 14 lines
tests/perf.c +8
-0+ num_reports1 =num_valid_reports_captured (¶m); + num_reports2 =num_valid_reports_captured (¶m); + +igt_debug ("num_reports1 = %d, num_reports2 = %d\n" , num_reports1, num_reports2); +igt_assert (num_reports2 >0.95 * num_reports1); +} + +static void test_buffer_fill (void ) {@@ -4622,6 +4715,12 @@ igt_maingen8_test_single_ctx_render_target_writes_a_counter (); }
tests/perf.c igt_main · line 4726
Quoted 10 lines
tests/perf.c +6
-0+igt_describe ("Test OA TLB invalidate" ); + igt_subtest("gen12-oa-tlb-invalidate") { +igt_require (intel_gen (devid) >=12 ); +gen12_test_oa_tlb_invalidate (); + } +igt_describe ("Measure performance for a specific context using OAR in Gen 12" ); igt_subtest("gen12-unprivileged-single-ctx-counters") {igt_require (intel_gen (devid) >=12 );
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev