Bug 73533

Summary: [IVB/HSW/BYT]igt//gem_reset_stats/context-reset-status fails
Product: DRI Reporter: lu hua <huax.lu>
Component: DRM/IntelAssignee: Mika Kuoppala <mika.kuoppala>
Status: CLOSED FIXED QA Contact: Intel GFX Bugs mailing list <intel-gfx-bugs>
Severity: normal    
Priority: medium CC: intel-gfx-bugs, rodrigo.vivi
Version: unspecified   
Hardware: All   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
dmesg
none
dmesg on HSW none

Description lu hua 2014-01-13 06:57:45 UTC
Created attachment 91922 [details]
dmesg

System Environment:
--------------------------
Platform: IVB/HSW/BYT
kernel:   (drm-intel-nightly)24ed7daacf91b61ea39a71daa9e37e0e80a3392d

Bug detailed description:
-------------------------
It fails on Ivybridge, Haswell and Baytrail with -queued, -fixes and -nightly kernel. It's a new case.

output:
IGT-Version: 1.5-g2a7dbe5 (x86_64) (Linux: 3.13.0-rc7_drm-intel-nightly_24ed7d_20140113+ x86_64)
9:4 reset status 1 differs from assumed 2
Test assertion failure function test_rs_ctx, file gem_reset_stats.c:443:
Last errno: 11, Resource temporarily unavailable
Failed assertion: _assert_reset_status(fd[i], ctx[i][j], (1 << 1)) == 0
Subtest context-reset-status: FAIL

Reproduce steps:
----------------------------
1. ./gem_reset_stats --run-subtest context-reset-status
Comment 1 Daniel Vetter 2014-01-14 10:53:42 UTC
What happens if you disable full ppgtt with i915_enable_ppgtt=1?
Comment 2 lu hua 2014-01-15 06:11:10 UTC
(In reply to comment #1)
> What happens if you disable full ppgtt with i915_enable_ppgtt=1?

It still fails.

output:
9:4 reset status 1 differs from assumed 2
Test assertion failure function test_rs_ctx, file gem_reset_stats.c:443:
Last errno: 11, Resource temporarily unavailable
Failed assertion: _assert_reset_status(fd[i], ctx[i][j], (1 << 1)) == 0
Subtest context-reset-status: FAIL
Comment 3 Rodrigo Vivi 2014-01-29 14:27:35 UTC
This is fixed by Mika's series drm/i915: Tune down output when context is banned.

However this wasn't merged up yet. Anyway I'm reassigning it to Mika. Please let me know if I can help here or feel free to reassign back.
Comment 4 Mika Kuoppala 2014-02-05 14:39:08 UTC
please retest with latest igt and drm-intel-nightly
Comment 5 lu hua 2014-02-07 08:08:31 UTC
It skips on Ivybridge and Baytrail.
output:
IGT-Version: 1.5-g0269d1d (x86_64) (Linux: 3.13.0_drm-intel-nightly_8f5284_20140206_debug+ x86_64)
Test requirement not met in function gem_require_ring, file ./../lib/drmtest.h:312:
Last errno: 2, No such file or directory
Test requirement: (!(gem_has_vebox(fd)))
Subtest reset-stats-vebox: SKIP
Subtest reset-stats-ctx-vebox: SKIP
Subtest ban-vebox: SKIP
Subtest ban-ctx-vebox: SKIP
Subtest reset-count-vebox: SKIP
Subtest reset-count-ctx-vebox: SKIP
Subtest unrelated-ctx-vebox: SKIP
Subtest close-pending-vebox: SKIP
Subtest close-pending-ctx-vebox: SKIP
Subtest close-pending-fork-vebox: SKIP

It aborted on Haswell and Broadwell.
IGT-Version: 1.5-g0269d1d (x86_64) (Linux: 3.13.0_drm-intel-nightly_8f5284_20140207+ x86_64)
gem_reset_stats: drmtest.c:1146: igt_exit: Assertion `skipped_one || succeeded_one || failed_one' failed.
Aborted (core dumped)
Comment 6 lu hua 2014-02-07 08:09:00 UTC
Created attachment 93588 [details]
dmesg on HSW
Comment 7 Mika Kuoppala 2014-02-10 09:47:51 UTC
(In reply to comment #5)
> It skips on Ivybridge and Baytrail.

The test names were renamed as we gained the ability to test on specific ring.

Please try with:

./gem_reset_stats --run-subtest reset-stats-ctx-render
Comment 8 lu hua 2014-02-11 02:49:40 UTC
> 
> ./gem_reset_stats --run-subtest reset-stats-ctx-render

It works well.
Comment 9 lu hua 2014-02-13 08:36:49 UTC
Verified.Fixed.
Comment 10 Elizabeth 2017-10-06 14:40:42 UTC
Closing old verified.

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.