Bug 110762 - [CI][DRMTIP] igt@gem_busy@* - fail/warn - Failed assertion: __gem_execbuf_wr(fd, execbuf) == 0, error: -22 != 0
Summary: [CI][DRMTIP] igt@gem_busy@* - fail/warn - Failed assertion: __gem_execbuf_wr...
Status: RESOLVED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: DRI 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: 2019-05-26 19:09 UTC by Lakshmi
Modified: 2019-05-27 09:36 UTC (History)
1 user (show)

See Also:
i915 platform: G33, PNV
i915 features: GEM/Other


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lakshmi 2019-05-26 19:09:29 UTC
https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_293/fi-blb-e6850/igt@gem_busy@extended-parallel-rcs0.html

	
(gem_busy:1065) ioctl_wrappers-CRITICAL: Failed assertion: __gem_execbuf_wr(fd, execbuf) == 0
(gem_busy:1065) ioctl_wrappers-CRITICAL: error: -22 != 0
Test gem_busy failed.
**** DEBUG ****
(gem_busy:1065) igt_core-INFO: IGT-Version: 1.23-gadf9f435 (x86_64) (Linux: 5.2.0-rc1-g1f3265649e76-drmtip_293+ x86_64)
(gem_busy:1065) drmtest-DEBUG: Test requirement passed: !(fd<0)
(gem_busy:1065) igt_debugfs-DEBUG: Opening debugfs directory '/sys/kernel/debug/dri/0'
(gem_busy:1065) drmtest-DEBUG: Test requirement passed: is_i915_device(fd) && has_known_intel_chipset(fd)
(gem_busy:1065) igt_debugfs-DEBUG: Opening debugfs directory '/sys/kernel/debug/dri/0'
(gem_busy:1065) ioctl_wrappers-DEBUG: Test requirement passed: dir >= 0
(gem_busy:1065) ioctl_wrappers-DEBUG: Test requirement passed: err == 0
(gem_busy:1065) DEBUG: Test requirement passed: gem_class_can_store_dword(fd, I915_ENGINE_CLASS_RENDER)
(gem_busy:1065) drmtest-DEBUG: Test requirement passed: is_i915_device(fd) && has_known_intel_chipset(fd)
(gem_busy:1065) igt_debugfs-DEBUG: Opening debugfs directory '/sys/kernel/debug/dri/0'
(gem_busy:1065) ioctl_wrappers-DEBUG: Test requirement passed: dir >= 0
(gem_busy:1065) ioctl_wrappers-DEBUG: Test requirement passed: err == 0
(gem_busy:1065) igt_dummyload-DEBUG: Test requirement passed: nengine
(gem_busy:1065) ioctl_wrappers-CRITICAL: Test assertion failure function gem_execbuf_wr, file ../lib/ioctl_wrappers.c:641:
(gem_busy:1065) ioctl_wrappers-CRITICAL: Failed assertion: __gem_execbuf_wr(fd, execbuf) == 0
(gem_busy:1065) ioctl_wrappers-CRITICAL: error: -22 != 0
(gem_busy:1065) igt_core-INFO: Stack trace:
(gem_busy:1065) igt_core-INFO:   #0 ../lib/igt_core.c:1474 __igt_fail_assert()
(gem_busy:1065) igt_core-INFO:   #1 [gem_execbuf_wr+0x44]
(gem_busy:1065) igt_core-INFO:   #2 ../lib/igt_dummyload.c:245 emit_recursive_batch()
(gem_busy:1065) igt_core-INFO:   #3 ../lib/igt_dummyload.c:287 spin_create()
(gem_busy:1065) igt_core-INFO:   #4 ../lib/igt_dummyload.c:337 igt_spin_factory()
(gem_busy:1065) igt_core-INFO:   #5 ../tests/i915/gem_busy.c:423 has_extended_busy_ioctl()
(gem_busy:1065) igt_core-INFO:   #6 ../tests/i915/gem_busy.c:493 __real_main463()
(gem_busy:1065) igt_core-INFO:   #7 ../tests/i915/gem_busy.c:463 main()
(gem_busy:1065) igt_core-INFO:   #8 ../csu/libc-start.c:344 __libc_start_main()
(gem_busy:1065) igt_core-INFO:   #9 [_start+0x2a]
****  END  ****

https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_293/fi-blb-e6850/igt@gem_busy@basic-hang-rcs0.html

(gem_busy:1102) ioctl_wrappers-CRITICAL: Failed assertion: __gem_execbuf_wr(fd, execbuf) == 0
(gem_busy:1102) ioctl_wrappers-CRITICAL: error: -22 != 0
Test gem_busy failed.
**** DEBUG ****
(gem_busy:1102) igt_core-INFO: IGT-Version: 1.23-gadf9f435 (x86_64) (Linux: 5.2.0-rc1-g1f3265649e76-drmtip_293+ x86_64)
(gem_busy:1102) drmtest-DEBUG: Test requirement passed: !(fd<0)
(gem_busy:1102) igt_debugfs-DEBUG: Opening debugfs directory '/sys/kernel/debug/dri/0'
(gem_busy:1102) drmtest-DEBUG: Test requirement passed: is_i915_device(fd) && has_known_intel_chipset(fd)
(gem_busy:1102) igt_debugfs-DEBUG: Opening debugfs directory '/sys/kernel/debug/dri/0'
(gem_busy:1102) ioctl_wrappers-DEBUG: Test requirement passed: dir >= 0
(gem_busy:1102) ioctl_wrappers-DEBUG: Test requirement passed: err == 0
(gem_busy:1102) DEBUG: Test requirement passed: gem_class_can_store_dword(fd, I915_ENGINE_CLASS_RENDER)
(gem_busy:1102) drmtest-DEBUG: Test requirement passed: is_i915_device(fd) && has_known_intel_chipset(fd)
(gem_busy:1102) igt_debugfs-DEBUG: Opening debugfs directory '/sys/kernel/debug/dri/0'
(gem_busy:1102) ioctl_wrappers-DEBUG: Test requirement passed: dir >= 0
(gem_busy:1102) ioctl_wrappers-DEBUG: Test requirement passed: err == 0
(gem_busy:1102) igt_dummyload-DEBUG: Test requirement passed: nengine
(gem_busy:1102) ioctl_wrappers-CRITICAL: Test assertion failure function gem_execbuf_wr, file ../lib/ioctl_wrappers.c:641:
(gem_busy:1102) ioctl_wrappers-CRITICAL: Failed assertion: __gem_execbuf_wr(fd, execbuf) == 0
(gem_busy:1102) ioctl_wrappers-CRITICAL: error: -22 != 0
(gem_busy:1102) igt_core-INFO: Stack trace:
(gem_busy:1102) igt_core-INFO:   #0 ../lib/igt_core.c:1474 __igt_fail_assert()
(gem_busy:1102) igt_core-INFO:   #1 [gem_execbuf_wr+0x44]
(gem_busy:1102) igt_core-INFO:   #2 ../lib/igt_dummyload.c:245 emit_recursive_batch()
(gem_busy:1102) igt_core-INFO:   #3 ../lib/igt_dummyload.c:287 spin_create()
(gem_busy:1102) igt_core-INFO:   #4 ../lib/igt_dummyload.c:337 igt_spin_factory()
(gem_busy:1102) igt_core-INFO:   #5 ../tests/i915/gem_busy.c:423 has_extended_busy_ioctl()
(gem_busy:1102) igt_core-INFO:   #6 ../tests/i915/gem_busy.c:493 __real_main463()
(gem_busy:1102) igt_core-INFO:   #7 ../tests/i915/gem_busy.c:463 main()
(gem_busy:1102) igt_core-INFO:   #8 ../csu/libc-start.c:344 __libc_start_main()
(gem_busy:1102) igt_core-INFO:   #9 [_start+0x2a]
****  END  ****
(gem_busy:1102) ioctl_wrappers-CRITICAL: Test assertion failure function gem_execbuf_wr, file ../lib/ioctl_wrappers.c:641:
(gem_busy:1102) ioctl_wrappers-CRITICAL: Failed assertion: __gem_execbuf_wr(fd, execbuf) == 0
(gem_busy:1102) ioctl_wrappers-CRITICAL: error: -22 != 0
Test gem_busy failed.
**** DEBUG ****
(gem_busy:1102) drmtest-DEBUG: Test requirement passed: is_i915_device(fd) && has_known_intel_chipset(fd)
(gem_busy:1102) igt_debugfs-DEBUG: Opening debugfs directory '/sys/kernel/debug/dri/0'
(gem_busy:1102) ioctl_wrappers-DEBUG: Test requirement passed: dir >= 0
(gem_busy:1102) ioctl_wrappers-DEBUG: Test requirement passed: err == 0
(gem_busy:1102) igt_dummyload-DEBUG: Test requirement passed: nengine
(gem_busy:1102) ioctl_wrappers-CRITICAL: Test assertion failure function gem_execbuf_wr, file ../lib/ioctl_wrappers.c:641:
(gem_busy:1102) ioctl_wrappers-CRITICAL: Failed assertion: __gem_execbuf_wr(fd, execbuf) == 0
(gem_busy:1102) ioctl_wrappers-CRITICAL: error: -22 != 0
(gem_busy:1102) igt_core-INFO: Stack trace:
(gem_busy:1102) igt_core-INFO:   #0 ../lib/igt_core.c:1474 __igt_fail_assert()
(gem_busy:1102) igt_core-INFO:   #1 [gem_execbuf_wr+0x44]
(gem_busy:1102) igt_core-INFO:   #2 ../lib/igt_dummyload.c:245 emit_recursive_batch()
(gem_busy:1102) igt_core-INFO:   #3 ../lib/igt_dummyload.c:287 spin_create()
(gem_busy:1102) igt_core-INFO:   #4 ../lib/igt_dummyload.c:337 igt_spin_factory()
(gem_busy:1102) igt_core-INFO:   #5 ../tests/i915/gem_busy.c:423 has_extended_busy_ioctl()
(gem_busy:1102) igt_core-INFO:   #6 ../tests/i915/gem_busy.c:520 __real_main463()
(gem_busy:1102) igt_core-INFO:   #7 ../tests/i915/gem_busy.c:463 main()
(gem_busy:1102) igt_core-INFO:   #8 ../csu/libc-start.c:344 __libc_start_main()
(gem_busy:1102) igt_core-INFO:   #9 [_start+0x2a]
****  END  ****
Starting subtest: basic-hang-rcs0
Subtest basic-hang-rcs0: SUCCESS (0.001s)
(gem_busy:1102) ioctl_wrappers-CRITICAL: Test assertion failure function gem_execbuf_wr, file ../lib/ioctl_wrappers.c:641:
(gem_busy:1102) ioctl_wrappers-CRITICAL: Failed assertion: __gem_execbuf_wr(fd, execbuf) == 0
(gem_busy:1102) ioctl_wrappers-CRITICAL: error: -22 != 0
Test gem_busy failed.
**** DEBUG ****
(gem_busy:1102) igt_core-DEBUG: Test requirement passed: !igt_run_in_simulation()
(gem_busy:1102) igt_debugfs-DEBUG: Opening debugfs directory '/sys/kernel/debug/dri/0'
(gem_busy:1102) drmtest-DEBUG: Test requirement passed: is_i915_device(fd) && has_known_intel_chipset(fd)
(gem_busy:1102) igt_debugfs-DEBUG: Opening debugfs directory '/sys/kernel/debug/dri/0'
(gem_busy:1102) ioctl_wrappers-DEBUG: Test requirement passed: dir >= 0
(gem_busy:1102) ioctl_wrappers-DEBUG: Test requirement passed: err == 0
(gem_busy:1102) igt_dummyload-DEBUG: Test requirement passed: nengine
(gem_busy:1102) igt_core-INFO: Subtest basic-hang-rcs0: SUCCESS (0.001s)
(gem_busy:1102) drmtest-DEBUG: Test requirement passed: is_i915_device(fd) && has_known_intel_chipset(fd)
(gem_busy:1102) igt_debugfs-DEBUG: Opening debugfs directory '/sys/kernel/debug/dri/0'
(gem_busy:1102) ioctl_wrappers-DEBUG: Test requirement passed: dir >= 0
(gem_busy:1102) ioctl_wrappers-DEBUG: Test requirement passed: err == 0
(gem_busy:1102) igt_dummyload-DEBUG: Test requirement passed: nengine
(gem_busy:1102) ioctl_wrappers-CRITICAL: Test assertion failure function gem_execbuf_wr, file ../lib/ioctl_wrappers.c:641:
(gem_busy:1102) ioctl_wrappers-CRITICAL: Failed assertion: __gem_execbuf_wr(fd, execbuf) == 0
(gem_busy:1102) ioctl_wrappers-CRITICAL: error: -22 != 0
(gem_busy:1102) igt_core-INFO: Stack trace:
(gem_busy:1102) igt_core-INFO:   #0 ../lib/igt_core.c:1474 __igt_fail_assert()
(gem_busy:1102) igt_core-INFO:   #1 [gem_execbuf_wr+0x44]
(gem_busy:1102) igt_core-INFO:   #2 ../lib/igt_dummyload.c:245 emit_recursive_batch()
(gem_busy:1102) igt_core-INFO:   #3 ../lib/igt_dummyload.c:287 spin_create()
(gem_busy:1102) igt_core-INFO:   #4 ../lib/igt_dummyload.c:337 igt_spin_factory()
(gem_busy:1102) igt_core-INFO:   #5 ../tests/i915/gem_busy.c:423 has_extended_busy_ioctl()
(gem_busy:1102) igt_core-INFO:   #6 ../tests/i915/gem_busy.c:557 __real_main463()
(gem_busy:1102) igt_core-INFO:   #7 ../tests/i915/gem_busy.c:463 main()
(gem_busy:1102) igt_core-INFO:   #8 ../csu/libc-start.c:344 __libc_start_main()
(gem_busy:1102) igt_core-INFO:   #9 [_start+0x2a]
****  END  ****
Comment 2 Chris Wilson 2019-05-27 09:01:46 UTC
So it doesn't like

static bool has_extended_busy_ioctl(int fd)
{
        igt_spin_t *spin = igt_spin_new(fd, .engine = I915_EXEC_DEFAULT);
        uint32_t read, write;

        __gem_busy(fd, spin->handle, &read, &write);
        igt_spin_free(fd, spin);

        return read != 0;
}

after an earlier __for_each_physical_engine()

I wonder if we've set the engine map to 0.
Comment 3 Chris Wilson 2019-05-27 09:36:48 UTC
No, the drmtip has .engine = RENDER which does not match the engine map!


commit 631f3ac2e78c8d6332afc693bf290ae23d8d5685
Author: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Date:   Thu May 23 07:37:01 2019 +0100

    tests/i915: Restore some BAT coverage


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.