| Summary: | [BYT/IVB/HSW bisected] igt/gem_flink_race@flink_close and prime_self_import@reimport-vs-gem_close-race fails | ||||||
|---|---|---|---|---|---|---|---|
| Product: | DRI | Reporter: | ye.tian <yex.tian> | ||||
| Component: | DRM/Intel | Assignee: | Intel GFX Bugs mailing list <intel-gfx-bugs> | ||||
| Status: | CLOSED FIXED | QA Contact: | Intel GFX Bugs mailing list <intel-gfx-bugs> | ||||
| Severity: | normal | ||||||
| Priority: | medium | CC: | intel-gfx-bugs | ||||
| Version: | unspecified | ||||||
| Hardware: | All | ||||||
| OS: | Linux (All) | ||||||
| Whiteboard: | |||||||
| i915 platform: | i915 features: | ||||||
| Attachments: | 
            
  | 
      ||||||
| 
 
        
          Description
        
        
          ye.tian
        
        
        
        
          2015-04-13 05:56:16 UTC
        
       
    commit 2e526ae9cd05f4f2c2e166071b78c68564e191aa Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Sun Apr 12 13:32:17 2015 +0100 igt/gem_flink_race: Explicitly quiesce the GPU before counting objects By explicitly quiescing the GPU we force it to a known and ideally identical state when counting objects. In particular, this should make the batch-pool status the same and not cause us to detect a negative leak. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Test on the latest kernel and latest igt, ./gem_flink_race --run-subtest flink_close is good, but prime_self_import case still fails. output: --------------- root@x-hsw24:/GFX/Test/Intel_gpu_tools/intel-gpu-tools/tests# ./gem_flink_race --run-subtest flink_close IGT-Version: 1.10-g2e526ae (x86_64) (Linux: 4.0.0-rc7_drm-intel-nightly_631c2f_20150411+ x86_64) leaked 0 objects Subtest flink_close: SUCCESS (5.001s) root@x-hsw24:/GFX/Test/Intel_gpu_tools/intel-gpu-tools/tests# ./prime_self_import --run-subtest reimport-vs-gem_close-race IGT-Version: 1.10-g2e526ae (x86_64) (Linux: 4.0.0-rc7_drm-intel-nightly_631c2f_20150411+ x86_64) leaked -4 objects Test assertion failure function test_reimport_close_race, file prime_self_import.c:302: Failed assertion: obj_count == 0 error: -4 != 0 Stack trace: #0 [__igt_fail_assert+0xfc] #1 [test_reimport_close_race+0x1aa] #2 [__real_main442+0xcd] #3 [main+0x21] #4 [__libc_start_main+0xf5] #5 [_start+0x29] #6 [<unknown>+0x29] Subtest reimport-vs-gem_close-race failed. **** DEBUG **** Test requirement passed: fd >= 0 Test requirement passed: fd >= 0 leaked -4 objects Test assertion failure function test_reimport_close_race, file prime_self_import.c:302: Failed assertion: obj_count == 0 error: -4 != 0 **** END **** Subtest reimport-vs-gem_close-race: FAIL (5.001s) You have new mail in /var/spool/mail/root commit 9fd6e07369837ee268097e7aae4c8dea05431fa1 Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Mon Apr 13 10:48:08 2015 +0100 igt/prime_self_import: Ensure driver state is consistent between counts Similar to gem_flink_race, we need to make sure that when we count objects, the driver is in an identical state. We do this by flushing all work before counting. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=90003 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Verified it on the latest igt. output ------- root@x-hsw24:/GFX/Test/Intel_gpu_tools/intel-gpu-tools/tests# ./prime_self_import --run-subtest reimport-vs-gem_close-race IGT-Version: 1.10-g9fd6e07 (x86_64) (Linux: 4.0.0-rc7_drm-intel-nightly_631c2f_20150411+ x86_64) leaked 0 objects Subtest reimport-vs-gem_close-race: SUCCESS (5.000s) 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.