tests/perf_pmu: Log perf timestamp in semaphore wait tests
PATCH 1/1 tests/perf_pmu: Log perf timestamp in semaphore wait tests
From: Tvrtko Ursulin <[email protected]>
We need more data to debug sporadic test failures.
--- tests/perf_pmu.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-)
tests/perf_pmu.c +7 -5
@@ -561,7 +561,7 @@ sema_wait(int gem_fd, const struct intel_execution_engine2 *e,unsigned long slept;uint32_t *obj_ptr;uint32_t batch[16 ]; -uint64_t val[2 ]; +uint64_t val[2 ], ts[2 ];int fd;igt_require (intel_gen (intel_get_drm_devid (gem_fd)) >=8 );
@@ -629,13 +629,15 @@ sema_wait(int gem_fd, const struct intel_execution_engine2 *e,igt_assert_f (igt_wait (pmu_read_single (fd) != val[0 ],10 ,1 ),"sampling failed to start withing 10ms" ); - val[0 ] =pmu_read_single (fd); + val[0 ] =__pmu_read_single (fd, &ts[0 ]); slept =measured_usleep (batch_duration_ns /1000 );if (flags &TEST_TRAILING_IDLE ) obj_ptr[0 ] =1 ; - val[1 ] =pmu_read_single (fd); -igt_debug ("slept %.3fms, sampled %.3fms\n" , - slept*1e-6 , (val[1 ] - val[0 ])*1e-6 ); + val[1 ] =__pmu_read_single (fd, &ts[1 ]); +igt_debug ("slept %.3fms (perf %.3fms), sampled %.3fms\n" , + slept *1e-6 , + (ts[1 ] - ts[0 ]) *1e-6 , + (val[1 ] - val[0 ]) *1e-6 ); obj_ptr[0 ] =1 ;gem_sync (gem_fd, bb_handle);
Signature · 6 lines
2.14.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/perf_pmu: Log perf timestamp in semaphore wait tests
== Series Details ==
== Series Details ==
Series: tests/perf_pmu: Log perf timestamp in semaphore wait tests
URL : https://patchwork.freedesktop.org/series/38349/
State : success
== Summary ==
IGT patchset tested on top of latest successful build 0a700e095b2a47e99081b7bffce1e737863e0136 igt/gem_exec_fence: Test that the in-fence is not overwritten
with latest DRM-Tip kernel build CI_DRM_3777bd16af128e78 drm-tip: 2018y-02m-15d-00h-22m-40s UTC integration manifest
No testlist changes.
Test debugfs_test:
Subgroup read_all_entries:
pass -> INCOMPLETE (fi-snb-2520m) fdo#103713fdo#103713 https://bugs.freedesktop.org/show_bug.cgi?id=103713
fi-bdw-5557u total:288 pass:267 dwarn:0 dfail:0 fail:0 skip:21 time:422s fi-bdw-gvtdvm total:288 pass:264 dwarn:0 dfail:0 fail:0 skip:24 time:430s fi-blb-e6850 total:288 pass:223 dwarn:1 dfail:0 fail:0 skip:64 time:378s fi-bsw-n3050 total:288 pass:242 dwarn:0 dfail:0 fail:0 skip:46 time:490s fi-bwr-2160 total:288 pass:183 dwarn:0 dfail:0 fail:0 skip:105 time:289s fi-bxt-dsi total:288 pass:258 dwarn:0 dfail:0 fail:0 skip:30 time:481s fi-bxt-j4205 total:288 pass:259 dwarn:0 dfail:0 fail:0 skip:29 time:489s fi-byt-j1900 total:288 pass:253 dwarn:0 dfail:0 fail:0 skip:35 time:476s fi-byt-n2820 total:288 pass:249 dwarn:0 dfail:0 fail:0 skip:39 time:461s fi-cfl-s2 total:288 pass:262 dwarn:0 dfail:0 fail:0 skip:26 time:571s fi-elk-e7500 total:288 pass:229 dwarn:0 dfail:0 fail:0 skip:59 time:417s fi-gdg-551 total:288 pass:179 dwarn:0 dfail:0 fail:1 skip:108 time:285s fi-glk-1 total:288 pass:260 dwarn:0 dfail:0 fail:0 skip:28 time:511s fi-hsw-4770 total:288 pass:261 dwarn:0 dfail:0 fail:0 skip:27 time:393s fi-ilk-650 total:288 pass:228 dwarn:0 dfail:0 fail:0 skip:60 time:412s fi-ivb-3520m total:288 pass:259 dwarn:0 dfail:0 fail:0 skip:29 time:460s fi-kbl-7500u total:288 pass:263 dwarn:1 dfail:0 fail:0 skip:24 time:463s fi-kbl-7560u total:288 pass:269 dwarn:0 dfail:0 fail:0 skip:19 time:497s fi-kbl-r total:288 pass:261 dwarn:0 dfail:0 fail:0 skip:27 time:501s fi-pnv-d510 total:288 pass:222 dwarn:1 dfail:0 fail:0 skip:65 time:587s fi-skl-6260u total:288 pass:268 dwarn:0 dfail:0 fail:0 skip:20 time:432s fi-skl-6600u total:288 pass:261 dwarn:0 dfail:0 fail:0 skip:27 time:509s fi-skl-6700hq total:288 pass:262 dwarn:0 dfail:0 fail:0 skip:26 time:525s fi-skl-6700k2 total:288 pass:264 dwarn:0 dfail:0 fail:0 skip:24 time:492s fi-skl-6770hq total:288 pass:268 dwarn:0 dfail:0 fail:0 skip:20 time:487s fi-skl-guc total:288 pass:260 dwarn:0 dfail:0 fail:0 skip:28 time:413s fi-skl-gvtdvm total:288 pass:265 dwarn:0 dfail:0 fail:0 skip:23 time:430s fi-snb-2520m total:3 pass:2 dwarn:0 dfail:0 fail:0 skip:0 fi-snb-2600 total:288 pass:248 dwarn:0 dfail:0 fail:0 skip:40 time:401s Blacklisted hosts: fi-glk-dsi total:288 pass:258 dwarn:0 dfail:0 fail:0 skip:30 time:473s fi-kbl-7567u total:288 pass:268 dwarn:0 dfail:0 fail:0 skip:20 time:453s
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_923/issues.html
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Quoting Tvrtko Ursulin (2018-02-15 11:25:15)
Quoted 5 lines
From: Tvrtko Ursulin <[email protected]>
We need more data to debug sporadic test failures.
Signed-off-by Tvrtko Ursulin <[email protected]>
-Chris
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Patchwork
CI[igt-dev] ✗ Fi.CI.IGT: warning for tests/perf_pmu: Log perf timestamp in semaphore wait tests
In reply to Tvrtko Ursulin== Series Details ==
== Series Details ==
Series: tests/perf_pmu: Log perf timestamp in semaphore wait tests
URL : https://patchwork.freedesktop.org/series/38349/
State : warning
== Summary ==
Test kms_flip:
Subgroup dpms-vs-vblank-race-interruptible:
pass -> FAIL (shard-apl) fdo#103060
Test kms_vblank:
Subgroup pipe-a-query-forked-hang:
pass -> SKIP (shard-snb)
Subgroup pipe-b-accuracy-idle:
pass -> FAIL (shard-hsw) fdo#102583
Test kms_cursor_crc:
Subgroup cursor-128x128-random:
pass -> SKIP (shard-snb)
Test gem_exec_suspend:
Subgroup basic-s3:
skip -> PASS (shard-snb) fdo#103880
Test kms_rotation_crc:
Subgroup primary-rotation-180:
pass -> FAIL (shard-snb) fdo#103925
Test kms_setmode:
Subgroup basic:
fail -> PASS (shard-hsw) fdo#99912fdo#103060 https://bugs.freedesktop.org/show_bug.cgi?id=103060
fdo#102583 https://bugs.freedesktop.org/show_bug.cgi?id=102583
fdo#103880 https://bugs.freedesktop.org/show_bug.cgi?id=103880
fdo#103925 https://bugs.freedesktop.org/show_bug.cgi?id=103925
fdo#99912 https://bugs.freedesktop.org/show_bug.cgi?id=99912
shard-apl total:3394 pass:1758 dwarn:1 dfail:0 fail:22 skip:1612 time:13735s shard-hsw total:3427 pass:1759 dwarn:1 dfail:0 fail:10 skip:1656 time:14654s shard-snb total:3427 pass:1346 dwarn:1 dfail:0 fail:11 skip:2069 time:7614s
Blacklisted hosts:
shard-kbl total:3408 pass:1883 dwarn:9 dfail:0 fail:20 skip:1495 time:10741s
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_923/shards.html
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev