Bug 109589

Summary: [CI][DRMTIP] igt@kms_fence_pin_leak - fail . Failed assertion: ret == 0\n.*Last errno: 5, Input/output error
Product: DRI Reporter: Lakshmi <lakshminarayana.vudum>
Component: DRM/IntelAssignee: Intel GFX Bugs mailing list <intel-gfx-bugs>
Status: RESOLVED FIXED 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:
i915 platform: BXT, CFL, SKL i915 features:

Description Lakshmi 2019-02-08 14:21:18 UTC
https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_211/fi-apl-guc/igt@kms_fence_pin_leak.html

(kms_fence_pin_leak:2422) intel_batchbuffer-CRITICAL: Test assertion failure function intel_batchbuffer_flush_with_context, file ../lib/intel_batchbuffer.c:276:
(kms_fence_pin_leak:2422) intel_batchbuffer-CRITICAL: Failed assertion: ret == 0
(kms_fence_pin_leak:2422) intel_batchbuffer-CRITICAL: Last errno: 5, Input/output error
Test kms_fence_pin_leak failed.
**** DEBUG ****
(kms_fence_pin_leak:2422) igt_core-INFO: IGT-Version: 1.23-g592b854f (x86_64) (Linux: 5.0.0-rc5-g417d0e0cd027-drmtip_211+ x86_64)
(kms_fence_pin_leak:2422) igt_core-DEBUG: Test requirement passed: !igt_run_in_simulation()
(kms_fence_pin_leak:2422) drmtest-DEBUG: Test requirement passed: !(fd<0)
(kms_fence_pin_leak:2422) igt_debugfs-DEBUG: Opening debugfs directory '/sys/kernel/debug/dri/0'
(kms_fence_pin_leak:2422) igt_kms-DEBUG: VT: graphics mode set (mode was 0x0)
(kms_fence_pin_leak:2422) igt_kms-DEBUG: display: init {
(kms_fence_pin_leak:2422) igt_kms-DEBUG: display:     DP-1: Selecting pipe None
(kms_fence_pin_leak:2422) igt_kms-DEBUG: display:     DP-2: Selecting pipe None
(kms_fence_pin_leak:2422) igt_kms-DEBUG: display:     DP-2: Selecting pipe None
(kms_fence_pin_leak:2422) igt_kms-DEBUG: display: }
(kms_fence_pin_leak:2422) DEBUG: Test requirement passed: ctx
(kms_fence_pin_leak:2422) igt_kms-DEBUG: display: DP-1: set_pipe(A)
(kms_fence_pin_leak:2422) igt_kms-DEBUG: display: DP-1: Selecting pipe A
(kms_fence_pin_leak:2422) igt_kms-DEBUG: Test requirement passed: plane_idx >= 0 && plane_idx < pipe->n_planes
(kms_fence_pin_leak:2422) igt_fb-DEBUG: igt_create_fb_with_bo_size(width=1920, height=1080, format=0x34325258, tiling=0x100000000000001, size=0)
(kms_fence_pin_leak:2422) drmtest-DEBUG: Test requirement passed: is_i915_device(fd) && has_known_intel_chipset(fd)
(kms_fence_pin_leak:2422) drmtest-DEBUG: Test requirement passed: is_i915_device(fd) && has_known_intel_chipset(fd)
(kms_fence_pin_leak:2422) igt_fb-DEBUG: igt_create_fb_with_bo_size(handle=65, pitch=7680)
(kms_fence_pin_leak:2422) ioctl_wrappers-DEBUG: Test requirement passed: igt_has_fb_modifiers(fd)
(kms_fence_pin_leak:2422) igt_fb-DEBUG: Test requirement passed: cairo_surface_status(fb->cairo_surface) == CAIRO_STATUS_SUCCESS
(kms_fence_pin_leak:2422) igt_fb-DEBUG: igt_create_fb_with_bo_size(width=1920, height=1080, format=0x34325258, tiling=0x100000000000001, size=0)
(kms_fence_pin_leak:2422) drmtest-DEBUG: Test requirement passed: is_i915_device(fd) && has_known_intel_chipset(fd)
(kms_fence_pin_leak:2422) drmtest-DEBUG: Test requirement passed: is_i915_device(fd) && has_known_intel_chipset(fd)
(kms_fence_pin_leak:2422) igt_fb-DEBUG: igt_create_fb_with_bo_size(handle=66, pitch=7680)
(kms_fence_pin_leak:2422) ioctl_wrappers-DEBUG: Test requirement passed: igt_has_fb_modifiers(fd)
(kms_fence_pin_leak:2422) igt_fb-DEBUG: Test requirement passed: cairo_surface_status(fb->cairo_surface) == CAIRO_STATUS_SUCCESS
(kms_fence_pin_leak:2422) igt_kms-DEBUG: display: A.0: plane_set_fb(118)
(kms_fence_pin_leak:2422) igt_kms-DEBUG: display: A.0: plane_set_size (1920x1080)
(kms_fence_pin_leak:2422) igt_kms-DEBUG: display: A.0: fb_set_position(0,0)
(kms_fence_pin_leak:2422) igt_kms-DEBUG: display: A.0: fb_set_size(1920x1080)
(kms_fence_pin_leak:2422) igt_kms-DEBUG: display: commit {
(kms_fence_pin_leak:2422) igt_kms-DEBUG: display:     Fixing up initial rotation pipe A, plane 0
(kms_fence_pin_leak:2422) igt_kms-DEBUG: display:     DP-1: SetCrtc pipe A, fb 118, src (0, 0), mode 1920x1080
(kms_fence_pin_leak:2422) igt_kms-DEBUG: display:     Fixing up initial rotation pipe A, plane 1
(kms_fence_pin_leak:2422) igt_kms-DEBUG: display:     SetPlane pipe A, plane 1, disabling
(kms_fence_pin_leak:2422) igt_kms-DEBUG: display:     SetProp plane A.1 "rotation" to 0x1/1
(kms_fence_pin_leak:2422) igt_kms-DEBUG: display:     SetProp plane A.1 "COLOR_ENCODING" to 0x0/0
(kms_fence_pin_leak:2422) igt_kms-DEBUG: display:     SetProp plane A.1 "COLOR_RANGE" to 0x0/0
(kms_fence_pin_leak:2422) igt_kms-DEBUG: display:     Fixing up initial rotation pipe A, plane 2
(kms_fence_pin_leak:2422) igt_kms-DEBUG: display:     SetPlane pipe A, plane 2, disabling
(kms_fence_pin_leak:2422) igt_kms-DEBUG: display:     SetProp plane A.2 "rotation" to 0x1/1
(kms_fence_pin_leak:2422) igt_kms-DEBUG: display:     SetProp plane A.2 "COLOR_ENCODING" to 0x0/0
(kms_fence_pin_leak:2422) igt_kms-DEBUG: display:     SetProp plane A.2 "COLOR_RANGE" to 0x0/0
(kms_fence_pin_leak:2422) igt_kms-DEBUG: display:     Fixing up initial rotation pipe A, plane 3
(kms_fence_pin_leak:2422) igt_kms-DEBUG: display:     SetCursor pipe A, disabling
(kms_fence_pin_leak:2422) igt_kms-DEBUG: display:     MoveCursor pipe A, (0, 0)
(kms_fence_pin_leak:2422) igt_kms-DEBUG: display:     Fixing up initial rotation pipe B, plane 0
(kms_fence_pin_leak:2422) igt_kms-DEBUG: display:     SetCrtc pipe B, disabling
(kms_fence_pin_leak:2422) igt_kms-DEBUG: display:     Fixing up initial rotation pipe B, plane 1
(kms_fence_pin_leak:2422) igt_kms-DEBUG: display:     SetPlane pipe B, plane 1, disabling
(kms_fence_pin_leak:2422) igt_kms-DEBUG: display:     SetProp plane B.1 "rotation" to 0x1/1
(kms_fence_pin_leak:2422) igt_kms-DEBUG: display:     SetProp plane B.1 "COLOR_ENCODING" to 0x0/0
(kms_fence_pin_leak:2422) igt_kms-DEBUG: display:     SetProp plane B.1 "COLOR_RANGE" to 0x0/0
(kms_fence_pin_leak:2422) igt_kms-DEBUG: display:     Fixing up initial rotation pipe B, plane 2
(kms_fence_pin_leak:2422) igt_kms-DEBUG: display:     SetPlane pipe B, plane 2, disabling
(kms_fence_pin_leak:2422) igt_kms-DEBUG: display:     SetProp plane B.2 "rotation" to 0x1/1
(kms_fence_pin_leak:2422) igt_kms-DEBUG: display:     SetProp plane B.2 "COLOR_ENCODING" to 0x0/0
(kms_fence_pin_leak:2422) igt_kms-DEBUG: display:     SetProp plane B.2 "COLOR_RANGE" to 0x0/0
(kms_fence_pin_leak:2422) igt_kms-DEBUG: display:     Fixing up initial rotation pipe B, plane 3
(kms_fence_pin_leak:2422) igt_kms-DEBUG: display:     SetCursor pipe B, disabling
(kms_fence_pin_leak:2422) igt_kms-DEBUG: display:     MoveCursor pipe B, (0, 0)
(kms_fence_pin_leak:2422) igt_kms-DEBUG: display:     Fixing up initial rotation pipe C, plane 0
(kms_fence_pin_leak:2422) igt_kms-DEBUG: display:     SetCrtc pipe C, disabling
(kms_fence_pin_leak:2422) igt_kms-DEBUG: display:     Fixing up initial rotation pipe C, plane 1
(kms_fence_pin_leak:2422) igt_kms-DEBUG: display:     SetPlane pipe C, plane 1, disabling
(kms_fence_pin_leak:2422) igt_kms-DEBUG: display:     SetProp plane C.1 "rotation" to 0x1/1
(kms_fence_pin_leak:2422) igt_kms-DEBUG: display:     SetProp plane C.1 "COLOR_ENCODING" to 0x0/0
(kms_fence_pin_leak:2422) igt_kms-DEBUG: display:     SetProp plane C.1 "COLOR_RANGE" to 0x0/0
(kms_fence_pin_leak:2422) igt_kms-DEBUG: display:     Fixing up initial rotation pipe C, plane 2
(kms_fence_pin_leak:2422) igt_kms-DEBUG: display:     SetCursor pipe C, disabling
(kms_fence_pin_leak:2422) igt_kms-DEBUG: display:     MoveCursor pipe C, (0, 0)
(kms_fence_pin_leak:2422) igt_kms-DEBUG: display: }
(kms_fence_pin_leak:2422) igt_debugfs-DEBUG: Opening debugfs directory '/sys/kernel/debug/dri/0'
(kms_fence_pin_leak:2422) intel_batchbuffer-CRITICAL: Test assertion failure function intel_batchbuffer_flush_with_context, file ../lib/intel_batchbuffer.c:276:
(kms_fence_pin_leak:2422) intel_batchbuffer-CRITICAL: Failed assertion: ret == 0
(kms_fence_pin_leak:2422) intel_batchbuffer-CRITICAL: Last errno: 5, Input/output error
(kms_fence_pin_leak:2422) igt_core-INFO: Stack trace:
(kms_fence_pin_leak:2422) igt_core-INFO:   #0 ../lib/igt_core.c:1474 __igt_fail_assert()
(kms_fence_pin_leak:2422) igt_core-INFO:   #1 ../lib/intel_batchbuffer.c:278 intel_batchbuffer_flush_with_context()
(kms_fence_pin_leak:2422) igt_core-INFO:   #2 ../tests/kms_fence_pin_leak.c:64 exec_nop()
(kms_fence_pin_leak:2422) igt_core-INFO:   #3 ../tests/kms_fence_pin_leak.c:144 run_single_test()
(kms_fence_pin_leak:2422) igt_core-INFO:   #4 ../tests/kms_fence_pin_leak.c:190 run_test()
(kms_fence_pin_leak:2422) igt_core-INFO:   #5 ../tests/kms_fence_pin_leak.c:223 __real_main196()
(kms_fence_pin_leak:2422) igt_core-INFO:   #6 ../tests/kms_fence_pin_leak.c:196 main()
(kms_fence_pin_leak:2422) igt_core-INFO:   #7 ../csu/libc-start.c:344 __libc_start_main()
(kms_fence_pin_leak:2422) igt_core-INFO:   #8 [_start+0x2a]
****  END  ****
Comment 2 Chris Wilson 2019-02-08 14:33:53 UTC
Guc hung in

<7>[  119.428055] [IGT] gem_unfence_active_buffers: executing
<7>[  119.714974] [IGT] gem_unfence_active_buffers: exiting, ret=0
<7>[  119.917207] i915_gem_set_wedged rcs0

and kms_fence_pin_leak tried to use the gpu without asking.
Comment 3 Chris Wilson 2019-03-26 10:17:53 UTC
commit 9ee4da8d60bb3d1c6a94ae8d69a86bf819c3831f (HEAD, upstream/master)
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Fri Feb 8 14:38:00 2019 +0000

    kms_fence_pin_leak: Ask for the GPU before use
    
    Check that the GPU even exists before submitting a batch.
    
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=109589
    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
    Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Comment 4 Martin Peres 2019-04-17 14:39:56 UTC
(In reply to Chris Wilson from comment #3)
> commit 9ee4da8d60bb3d1c6a94ae8d69a86bf819c3831f (HEAD, upstream/master)
> Author: Chris Wilson <chris@chris-wilson.co.uk>
> Date:   Fri Feb 8 14:38:00 2019 +0000
> 
>     kms_fence_pin_leak: Ask for the GPU before use
>     
>     Check that the GPU even exists before submitting a batch.
>     
>     Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=109589
>     Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
>     Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>

Thanks, this definitely did the trick!
Comment 5 CI Bug Log 2019-04-17 14:40:01 UTC
The CI Bug Log issue associated to this bug has been archived.

New failures matching the above filters will not be associated to this bug anymore.

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.