Bug 102417 - [IGT][HSW/APL/GLK] gem_exec_fence subtests fail
Summary: [IGT][HSW/APL/GLK] gem_exec_fence subtests fail
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: IGT (show other bugs)
Version: XOrg git
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-25 19:45 UTC by Hector Velazquez
Modified: 2017-10-11 09:40 UTC (History)
2 users (show)

See Also:
i915 platform: BXT, GLK, HSW
i915 features: GEM/execlists


Attachments
Test/Dmesg logs by test(HSW)... (18.42 KB, application/x-zip-compressed)
2017-08-25 19:45 UTC, Hector Velazquez
no flags Details
Full dmesg (345.82 KB, text/plain)
2017-08-28 20:34 UTC, Hector Velazquez
no flags Details
Kernel log (2.16 MB, text/plain)
2017-08-28 20:34 UTC, Hector Velazquez
no flags Details
Error State log (/sys/class/drm/card0/error) (11.74 KB, text/plain)
2017-08-28 20:35 UTC, Hector Velazquez
no flags Details
Test log (3.96 KB, text/plain)
2017-08-28 20:36 UTC, Hector Velazquez
no flags Details
Test log (3.97 KB, text/plain)
2017-08-28 20:36 UTC, Hector Velazquez
no flags Details
Test log (3.96 KB, text/plain)
2017-08-28 20:36 UTC, Hector Velazquez
no flags Details

Description Hector Velazquez 2017-08-25 19:45:43 UTC
Created attachment 133794 [details]
Test/Dmesg logs by test(HSW)...

The following tests Fail on HSW with this configuration

Tests List:

igt@gem_exec_fence@parallel-blt
igt@gem_exec_fence@parallel-render
igt@gem_exec_fence@parallel-vebox



This is my configuration:

**************************************************************
* * * * * * * * HARDWARE SPECIFICATIONS * * * * * * * * * * * 
**************************************************************
======================================
        Graphic stack
======================================

Component: drm
    tag: libdrm-2.4.81-51-gf19dbb7
    commit: f19dbb79fe54994ecd505ac67ad15d19f591933a

Component: cairo
    tag: 1.15.6-23-g74c6e3a
    commit: 74c6e3ae1d356e8bb4c7043cb9d3897c45cc0f79

Component: intel-gpu-tools
    tag: intel-gpu-tools-1.19-202-g37641a5
    commit: 37641a5032b2cb2dcdb04a28d3ac3cebd01b8363

Component: piglit
    tag: piglit-v1
    commit: 465dbc57b01cc60eb74880f161663644720a57f6


======================================
	     Software
======================================
kernel version              : 4.13.0-rc6-drm-tip-ww34-commit-428dc37+
hostname                    : gfx-desktop
architecture                : x86_64
os version                  : Ubuntu 17.04
os codename                 : zesty
kernel driver               : i915
bios revision               : 4.6
bios release date           : 03/02/2017
hardware acceleration       : [93monly available on X[0m
swap partition              : [92menabled[0m on (/dev/sda2)

======================================
	Graphic drivers
======================================
libdrm                      : 2.4.83
cairo                       : 1.15.7
intel-gpu-tools (tag)       : intel-gpu-tools-1.19-202-g37641a50
intel-gpu-tools (commit)    : 37641a50

======================================
	     Hardware
======================================
platform                   : Haswell-Nuc
motherboard id             : D54250WYK
form factor                : Desktop
cpu family                 : Core i5
cpu family id              : 6
cpu information            : Intel(R) Core(TM) i5-4250U CPU @ 1.30GHz
gpu card                   : Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 09) (prog-if 00 [VGA controller])
memory ram                 : 1.83 GB
max memory ram             : 16 GB
cpu thread                 : 4
cpu core                   : 2
cpu model                  : 69
cpu stepping               : 1
socket                     : Socket LGA1150
signature                  : Type 0, Family 6, Model 69, Stepping 1
hard drive                 : 223GiB (240GB)
current cd clock frequency : 450000 kHz
maximum cd clock frequency : 450000 kHz
displays connected         : DP-1

======================================
	     Firmware
======================================

======================================
	     kernel parameters
======================================
quiet splash drm.debug=0x1e
Comment 1 Chris Wilson 2017-08-26 12:24:49 UTC
All the logs are missing the actual output from the assertion, making it possible to determine what is actually wrong.
Comment 2 Hector Velazquez 2017-08-28 20:34:18 UTC
Created attachment 133848 [details]
Full dmesg
Comment 3 Hector Velazquez 2017-08-28 20:34:40 UTC
Created attachment 133849 [details]
Kernel log
Comment 4 Hector Velazquez 2017-08-28 20:35:49 UTC
Created attachment 133850 [details]
Error State log (/sys/class/drm/card0/error)
Comment 5 Hector Velazquez 2017-08-28 20:36:13 UTC
Created attachment 133851 [details]
Test log
Comment 6 Hector Velazquez 2017-08-28 20:36:28 UTC
Created attachment 133852 [details]
Test log
Comment 7 Hector Velazquez 2017-08-28 20:36:46 UTC
Created attachment 133853 [details]
Test log
Comment 8 Hector Velazquez 2017-08-28 20:38:47 UTC
sample of the failure in HSW...

from test log:

(gem_exec_fence:1802) DEBUG: Test requirement passed: has_submit_fence(i915)
(gem_exec_fence:1802) drmtest-DEBUG: Test requirement passed: !(fd<0)
(gem_exec_fence:1802) drmtest-DEBUG: Test requirement passed: is_i915_device(fd) && has_known_intel_chipset(fd)
(gem_exec_fence:1802) ioctl-wrappers-DEBUG: Test requirement passed: err == 0
(gem_exec_fence:1802) ioctl-wrappers-DEBUG: Test requirement passed: gem_has_ring(fd, ring)
(gem_exec_fence:1802) igt-dummyload-DEBUG: Test requirement passed: nengine
Stack trace:
  #0 [__igt_fail_assert+0x101]
  #1 [__real_main1180+0x230a]
  #2 [<unknown>+0x230a]
  #3 [<unknown>+0x230a]
  #4 [<unknown>+0x230a]

From dmesg log:

[  581.319692] Setting dangerous option reset - tainting kernel
[  581.323453] [IGT] gem_exec_fence: exiting, ret=99
[  593.760706] [drm:missed_breadcrumb [i915]] bcs0 missed breadcrumb at intel_breadcrumbs_hangcheck+0x5c/0x80 [i915], irq posted? no, current seqno=19, last=22
[  604.708968] [drm] GPU HANG: ecode 7:1:0xe77ffef3, in gem_exec_fence [1318], reason: Hang on bcs0, action: reset
[  604.709109] [drm] GPU hangs can indicate a bug anywhere in the entire gfx stack, including userspace.
[  604.709115] [drm] Please file a _new_ bug report on bugs.freedesktop.org against DRI -> DRM/Intel
[  604.709119] [drm] drm/i915 developers can then reassign to the right component if it's not a kernel issue.
[  604.709127] [drm] The gpu crash dump is required to analyze gpu hangs, so please always attach it.
[  604.709136] [drm] GPU crash dump saved to /sys/class/drm/card0/error
[  604.710242] [drm:i915_reset_device [i915]] resetting chip
[  604.710498] i915 0000:00:02.0: Resetting chip after gpu hang
[  604.711844] [drm:i915_gem_reset_engine [i915]] context gem_exec_fence[1318]/0 marked guilty (score 10) banned? no
[  604.711888] [drm:i915_gem_reset_engine [i915]] resetting bcs0 to restart from tail of request 0x1a
[  604.712238] [drm:intel_print_rc6_info [i915]] Enabling RC6 states: RC6 on
[  604.712408] [drm:sandybridge_pcode_read [i915]] warning: pcode (read from mbox 5) mailbox access failed for intel_enable_gt_powersave [i915]: -6
[  604.712654] [drm:init_workarounds_ring [i915]] rcs0: Number of context specific w/a: 0
[  604.727228] [drm:drm_atomic_state_init] Allocated atomic state ffff88005c6174e8

Full logs are attached....
Comment 9 Chris Wilson 2017-08-29 09:16:54 UTC
Still no output from the assert themselves.

You don't even have submit-fences, somebody applied the wrong patch to gem_exec_fence and didn't bother to fix their mistake. Grrr.
Comment 10 Hector Velazquez 2017-08-29 16:35:59 UTC
The following tests Fail on GLK with same software configuration...

Tests List:

igt@gem_exec_fence@parallel-blt
igt@gem_exec_fence@parallel-render
igt@gem_exec_fence@parallel-vebox


This is my HW configuration:

**************************************************************
* * * * * * * * HARDWARE SPECIFICATIONS * * * * * * * * * * * 
**************************************************************

platform                   : Geminilake
motherboard model          : Geminilake
motherboard id             : GLKRVP1DDR4(05)
form factor                : Hand Held
manufacturer               : IntelCorp.
cpu family                 : Other
cpu family id              : 6
cpu information            : Genuine Intel(R) CPU @ 1.10GHz
gpu card                   : Intel Corporation Device 3185 (rev 03) (prog-if 00 [VGA controller])
memory ram                 : 3.7 GB
max memory ram             : 16 GB
cpu thread                 : 2
cpu core                   : 2
cpu model                  : 122
cpu stepping               : 1
socket                     : Other
hard drive                 : 74GiB (80GB)
current cd clock frequency : 79200 kHz
maximum cd clock frequency : 316800 kHz
displays connected         : eDP-1 DP-1 HDMI-A-2
Comment 11 Armando Antonio 2017-08-29 19:33:38 UTC
The following test fail on APL with latest configuration

====================================================
Test list
====================================================
igt@gem_exec_fence@parallel-blt
igt@gem_exec_fence@parallel-render
igt@gem_exec_fence@parallel-vebox

======================================
             Software
======================================
kernel version              : 4.13.0-rc6-drm-tip-ww35-commit-00b77f6+
hostname                    : gfx-desktop
architecture                : x86_64
os version                  : Ubuntu 17.04
os codename                 : zesty
[sudo] password for gfx: kernel driver               : i915
bios revision               : 5.6
bios release date           : 06/19/2017
ksc                         : 18.0
hardware acceleration       : disabled
swap partition              : enabled on (/dev/sda2)

======================================
        Graphic drivers
======================================
grep: /opt/X11R7/var/log/Xorg.0.log: No such file or directory
libdrm                      : 2.4.83
cairo                       : 1.15.7
intel-gpu-tools (tag)       : intel-gpu-tools-1.19-206-g60f6a121
intel-gpu-tools (commit)    : 60f6a121

======================================
             Hardware
======================================
motherboard model          : NUC6CAYS
motherboard id             : NUC6CAYB
form factor                : Desktop
manufacturer               : Intelcorporation
cpu family                 : Celeron
cpu family id              : 6
cpu information            : Intel(R) Celeron(R) CPU J3455 @ 1.50GHz
gpu card                   : Intel Corporation Device 5a85 (rev 0b) (prog-if 00 [VGA controller])
memory ram                 : 15.52 GB
max memory ram             : 32 GB
cpu thread                 : 4
cpu core                   : 4
cpu model                  : 92
cpu stepping               : 9
socket                     : Other
signature                  : Type 0, Family 6, Model 92, Stepping 9
hard drive                 : 74GiB (80GB)
current cd clock frequency : 288000 kHz
maximum cd clock frequency : 624000 kHz
displays connected         : DP-1 DP-2

======================================
             Firmware
======================================
dmc fw loaded             : yes
dmc version               : 1.7
guc fw loaded             : NONE
guc version wanted        : 0.0
guc version found         : 0.0

======================================
             kernel parameters
======================================
quiet splash drm.debug=0x1e log_buf_len=4M
Comment 12 Hector Velazquez 2017-09-05 16:23:57 UTC
The following tests Fail on HSW with this configuration

Tests List:

igt@gem_exec_fence@parallel-blt
igt@gem_exec_fence@parallel-render
igt@gem_exec_fence@parallel-vebox


This is my configuration:

======================================
        Graphic stack
======================================

Component: drm
    tag: libdrm-2.4.81-52-g05a830d
    commit: 05a830d382382905d87b55af90aa109fb76e4c16

Component: cairo
    tag: 1.15.6-30-gc29db4f
    commit: c29db4f0de52727406a8b62f4da9a382084b5a79

Component: intel-gpu-tools
    tag: intel-gpu-tools-1.19-234-g490b386
    commit: 490b386ae36d393cdea514882a2437c6e964c13f

Component: piglit
    tag: piglit-v1
    commit: dab15137044c34023b1a843e72e781b03b17548b


======================================
	     Software
======================================
kernel version              : 4.13.0-drm-tip-ww36-commit-9dd459e+
hostname                    : gfx-desktop
architecture                : x86_64
os version                  : Ubuntu 16.10
os codename                 : yakkety
kernel driver               : i915
bios revision               : 4.6
bios release date           : 03/02/2017
hardware acceleration       : disabled
swap partition              : enabled on (/dev/sda3)

======================================
	Graphic drivers
======================================
libdrm                      : 2.4.83
cairo                       : 1.15.9
intel-gpu-tools (tag)       : intel-gpu-tools-1.19-234-g490b386
intel-gpu-tools (commit)    : 490b386
Comment 13 Chris Wilson 2017-09-07 18:12:43 UTC
commit acec57a34a586e4fa2a5cc0522868bcc803919c7 (HEAD, upstream/master)
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Thu Aug 3 13:23:34 2017 +0100

    igt/gem_exec_fence: Exercise syncobj API (The forgotten tests)
    
    Due to premature patch pushing, lots of tests remain outstanding.
    
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102417
    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Comment 14 Elizabeth 2017-09-15 16:55:15 UTC
On HSW the 3 tests are going to skip, is that expected or I'm losing some configuration?

IGT-Version: 1.19-gc718ba8 (x86_64) (Linux: 4.13.0-drm-tip-ww37-commit-9adc9e9+ x86_64)
Using Legacy submission, with semaphores
Test requirement not met in function __real_main1458, file gem_exec_fence.c:1478:
Test requirement: gem_has_ring(i915, e->exec_id | e->flags)
Test requirement not met in function __real_main1458, file gem_exec_fence.c:1478:
Test requirement: gem_has_ring(i915, e->exec_id | e->flags)
Test requirement not met in function __real_main1458, file gem_exec_fence.c:1505:
Test requirement: has_submit_fence(i915)
Subtest parallel-vebox: SKIP (0.000s)

"Due to premature patch pushing, lots of tests remain outstanding"
Comment 15 Chris Wilson 2017-09-15 17:00:48 UTC
They are expected to skip, they are tests for a future feature.
Comment 16 Elizabeth 2017-09-15 19:03:20 UTC
Thank you. Closing, and saved as reference.


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.