Bug 106375

Summary: [CI] igt@perf@* - fail - Failed assertion: n_periodic_reports * report_size > report_size * n_full_oa_reports * 0.45
Product: DRI Reporter: Martin Peres <martin.peres>
Component: DRM/IntelAssignee: Intel GFX Bugs mailing list <intel-gfx-bugs>
Status: RESOLVED MOVED QA Contact: Intel GFX Bugs mailing list <intel-gfx-bugs>
Severity: normal    
Priority: medium CC: intel-gfx-bugs
Version: XOrg git   
Hardware: Other   
OS: All   
Whiteboard: ReadyForDev
i915 platform: BDW, SKL i915 features: Perf/OA

Description Martin Peres 2018-05-03 13:07:43 UTC
https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_28/fi-bdw-gvtdvm/igt@perf@buffer-fill.html

(perf:2910) CRITICAL: Test assertion failure function test_buffer_fill, file ../tests/perf.c:2471:
(perf:2910) CRITICAL: Failed assertion: n_periodic_reports * report_size > report_size * n_full_oa_reports * 0.45
Subtest buffer-fill failed.
Comment 1 Martin Peres 2018-05-29 10:35:53 UTC
https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_49/fi-bdw-gvtdvm/igt@perf@enable-disable.html

(perf:1642) CRITICAL: Test assertion failure function test_enable_disable, file ../tests/perf.c:2609:
(perf:1642) CRITICAL: Failed assertion: (n_periodic_reports * report_size) > (report_size * n_full_oa_reports * 0.45)
Subtest enable-disable failed.
Comment 2 Martin Peres 2018-07-24 14:00:35 UTC
Also seen on SKL: https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_80/fi-skl-gvtdvm/igt@perf@enable-disable.html

(perf:1194) CRITICAL: Test assertion failure function test_enable_disable, file ../tests/perf.c:2613:
(perf:1194) CRITICAL: Failed assertion: (n_periodic_reports * report_size) > (report_size * n_full_oa_reports * 0.45)
Subtest enable-disable failed.(pe
Comment 3 Martin Peres 2018-08-30 16:07:37 UTC
Also seen is a slight different variant:

https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_90/fi-bdw-gvtdvm/igt@perf@buffer-fill.html

(perf:1431) CRITICAL: Test assertion failure function test_buffer_fill, file ../tests/perf.c:2475:
(perf:1431) CRITICAL: Failed assertion: n_periodic_reports * report_size > report_size * n_full_oa_reports * 0.45
Subtest buffer-fill failed.
Comment 4 umesh 2019-11-08 20:28:11 UTC
The test verifies enable/disable function of report generation into the OA buffer.

- Open a perf stream with report generation disabled
- Ensure that there are no reports generated for time duration that it takes to fill the entire buffer
- Enable report generation
- Wait for the half the OA buffer to be filled (based on report periodicity, report size and OA buffer size)
- Read all reports generated until the delta between first and the last read report matches half the time taken to fill the entire OA buffer.
- Make sure that the number of reports generated is within 45% to 55% of the expected number of reports.

The failure is that the number of reports do not fall in this range.

Machines affected: skl and bdw
Repro rate: 0.6%

The test seems to ignore spurious reports and hence falls short of 45% by 10 - 15 reports. Test logic must be updated to reflect spurious reports by checking if the timestamp delta between the previous and current reports is greater than the periodic interval.

Severity: Low
Priority: Medium
Comment 5 Martin Peres 2019-11-29 17:46:59 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/drm/intel/issues/114.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.