Bug 84446 - [IVB Regression full-ppgtt] igt/gem_reset_stats/ban-blt costs long time to execute
Summary: [IVB Regression full-ppgtt] igt/gem_reset_stats/ban-blt costs long time to ex...
Status: CLOSED MOVED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: Other All
: highest normal
Assignee: Intel GFX Bugs mailing list
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-29 03:46 UTC by Guo Jinxian
Modified: 2014-11-19 01:44 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
dmesg (112.07 KB, text/plain)
2014-09-29 03:46 UTC, Guo Jinxian
no flags Details

Description Guo Jinxian 2014-09-29 03:46:47 UTC
Created attachment 107037 [details]
dmesg

==System Environment==
--------------------------
Regression: Yes.
Good commit on -next-queued: 9c787942907face82da505c2c5493998b56cfc5a(2014_09_08)

Non-working platforms: IVB

==kernel==
--------------------------
origin/drm-intel-nightly:7101d84020f63f1da7e0c5d021cdd6be4d515de5(fails)
    drm-intel-nightly: 2014y-09m-25d-15h-14m-02s UTC integration manifest
origin/drm-intel-next-queued:7ca5a41f4da201371e131fc0641033652f76bf30(fails)
    drm/i915: Avoid re-configure panel on every PSR re-enable.
origin/drm-intel-fixes: c84db77010877da6c5da119868ed54c43d59e726(works)
    drm/i915/hdmi: fix hdmi audio state readout


==Bug detailed description==
-----------------------------
igt/gem_reset_stats/ban-blt costs long time to execute

Output:
[root@x-ivb9 tests]# time ./gem_reset_stats --run-subtest ban-blt
IGT-Version: 1.8-g32a0308 (x86_64) (Linux: 3.17.0-rc6_drm-intel-nightly_7101d8_20140928_debug+ x86_64)
retrying for ban (9)
retrying for ban (8)
retrying for ban (7)
retrying for ban (6)
retrying for ban (5)
retrying for ban (4)
retrying for ban (3)
retrying for ban (2)
retrying for ban (1)
retrying for ban (0)
Test assertion failure function test_ban, file gem_reset_stats.c:572:
Failed assertion: h4 == -EIO
Subtest ban-blt: FAIL (1414.204s)
Test requirement not met in function gem_require_ring, file ioctl_wrappers.c:880:
Test requirement: gem_has_vebox(fd)

real    24m48.268s
user    0m0.002s
sys     0m0.027s

==Reproduce steps==
---------------------------- 
1. ./gem_reset_stats --run-subtest ban-blt
Comment 1 Chris Wilson 2014-09-29 06:33:55 UTC
Looks like full-ppgtt. Try testing with i915.enable_ppgtt=1
Comment 2 Guo Jinxian 2014-09-29 06:54:10 UTC
(In reply to comment #1)
> Looks like full-ppgtt. Try testing with i915.enable_ppgtt=1

Test passes with i915.enable_ppgtt=1

[root@x-ivb9 tests]# time ./gem_reset_stats --run-subtest ban-blt
IGT-Version: 1.8-g32a0308 (x86_64) (Linux: 3.17.0-rc6_drm-intel-nightly_7101d8_20140929+ x86_64)
Subtest ban-blt: SUCCESS (13.517s)
Test requirement not met in function gem_require_ring, file ioctl_wrappers.c:880:
Test requirement: gem_has_vebox(fd)

real    0m13.542s
user    0m0.001s
sys     0m0.006s
[root@x-ivb9 tests]# echo $?
0
Comment 3 Mika Kuoppala 2014-10-23 15:29:40 UTC
The ban takes long time because the ring head is pointing to outside of the batch that is being tested.

So the hang recovery works, in time as the 'not progress' limit gets reached.

The underlying problem is that with full-ppgtt mode we somehow setup something with hw (page tables?) incorrectly.
Comment 4 Daniel Vetter 2014-11-18 09:30:10 UTC
This needs to be tracked in a JIRA.


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.