Bug 106375 - [CI] igt@perf@* - fail - Failed assertion: n_periodic_reports * report_size > report_size * n_full_oa_reports * 0.45
Summary: [CI] igt@perf@* - fail - Failed assertion: n_periodic_reports * report_size >...
Status: NEW
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: XOrg git
Hardware: Other All
: medium normal
Assignee: Intel GFX Bugs mailing list
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard: ReadyForDev
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-03 13:07 UTC by Martin Peres
Modified: 2019-11-08 20:28 UTC (History)
1 user (show)

See Also:
i915 platform: BDW, SKL
i915 features: Perf/OA


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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


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.