Bug 99893 - [BXT/KBL] gem_exec_schedule subtests failing
Summary: [BXT/KBL] gem_exec_schedule subtests failing
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: DRI git
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Luis Botello
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-21 17:55 UTC by Jairo Miramontes
Modified: 2017-02-23 23:59 UTC (History)
1 user (show)

See Also:
i915 platform: BXT, KBL
i915 features: GEM/Other


Attachments
dmesg.log (112.85 KB, text/plain)
2017-02-21 17:55 UTC, Jairo Miramontes
no flags Details
IGToutputDebug (13.63 KB, text/plain)
2017-02-23 22:46 UTC, Luis Botello
no flags Details
demsg_gemExecSchFull (1.09 KB, text/plain)
2017-02-23 22:46 UTC, Luis Botello
no flags Details

Description Jairo Miramontes 2017-02-21 17:55:58 UTC
Created attachment 129803 [details]
dmesg.log

The following tests are failing on BXT, attached dmesg log for two tests, all failures have similar output and dmesg.

igt@gem_exec_schedule@out-order-blt
igt@gem_exec_schedule@out-order-bsd
igt@gem_exec_schedule@out-order-render
igt@gem_exec_schedule@out-order-vebox
igt@gem_exec_schedule@promotion-blt
igt@gem_exec_schedule@promotion-bsd
igt@gem_exec_schedule@promotion-render
igt@gem_exec_schedule@promotion-vebox


Steps to reproduce
========================================
1. Download and Install IGT suite.
2. go to intel-gpu-tools/tests/ folder
3. execute test ./gem_exec_schedule --run-subtest out-order-blt
4. execute test ./gem_exec_schedule --run-subtest out-order-bsd
5. execute test ./gem_exec_schedule --run-subtest out-order-render
6. execute test ./gem_exec_schedule --run-subtest out-order-vebox
7. execute test ./gem_exec_schedule --run-subtest out-promotion-blt
8. execute test ./gem_exec_schedule --run-subtest out-promotion-bsd
9. execute test ./gem_exec_schedule --run-subtest out-promotion-render
9. execute test ./gem_exec_schedule --run-subtest out-promotion-vebox

Expected output
====================================
Tests should be marked as pass


Actual output
=====================================

Below is the example only for out-rder-blt but other tests have a pretty similar output.

./gem_exec_schedule --run-subtest out-order-blt
IGT-Version: 1.17-gca2ba47 (x86_64) (Linux: 4.10.0-rc8-drm-tip-qa-ww7-commit-e80b772+ x86_64)
Test requirement not met in function gem_require_ring, file ioctl_wrappers.c:1513:
Test requirement: gem_has_ring(fd, ring)
Test requirement not met in function gem_require_ring, file ioctl_wrappers.c:1513:
Test requirement: gem_has_ring(fd, ring)
(gem_exec_schedule:1560) CRITICAL: Test assertion failure function reorder, file gem_exec_schedule.c:298:
(gem_exec_schedule:1560) CRITICAL: Failed assertion: ptr[0] == ctx[0]
(gem_exec_schedule:1560) CRITICAL: error: 0x2 != 0x1
Stack trace:
  #0 [__igt_fail_assert+0x101]
  #1 [reorder+0x19e]
  #2 [<unknown>+0x19e]
  #3 [<unknown>+0x19e]
Subtest out-order-blt failed.
**** DEBUG ****
(gem_exec_schedule:1560) drmtest-DEBUG: Test requirement passed: !(fd<0)
(gem_exec_schedule:1560) igt-debugfs-DEBUG: Opening debugfs dir /sys/kernel/debug/dri/0
(gem_exec_schedule:1560) igt-debugfs-DEBUG: i915_engine_info:
render ring
        current seqno 26, last 26, hangcheck 0 [-242992 ms]
        Requests:
        RING_START: 0x00011000 [0x00000000]
        RING_HEAD:  0x00000bf0 [0x00000000]
        RING_TAIL:  0x00000bf0 [0x00000000]
        RING_CTL:   0x00003000 []
        ACTHD:  0x00000000_00000bf0
        BBADDR: 0x00000000_ffffe004
        Execlist status: 0x00000301 00000000
        Execlist CSB read 3, write 3
                ELSP[0] idle
                ELSP[1] idle

blitter ring
        current seqno 29, last 31, hangcheck 0 [-242992 ms]
        Requests:
                first  2a [1:29] prio=2147483647 @ 12ms: gem_exec_schedu[1560]/0
                last   31 [1:30] prio=2147483647 @ 12ms: gem_exec_schedu[1560]/0
                active 2a [1:29] prio=2147483647 @ 12ms: gem_exec_schedu[1560]/0
                [head 0280, postfix 02b0, tail 02d0, batch 0x00000000_ffffd000]
        RING_START: 0x00019000 [0x00019000]
        RING_HEAD:  0x0000029c [0x00000000]
        RING_TAIL:  0x000004f8 [0x00000500]
        RING_CTL:   0x00003001 []
        ACTHD:  0x00000000_ffffd004
        BBADDR: 0x00000000_ffffd001
        Execlist status: 0x00024049 00000001
        Execlist CSB read 3, write 3
                ELSP[0] count=1, rq: 31 [1:30] prio=2147483647 @ 12ms: gem_exec_schedu[1560]/0
                ELSP[1] idle
        i915/signal:1 [169] waiting for 31

bsd ring
        current seqno 25, last 25, hangcheck 0 [-242992 ms]
        Requests:
        RING_START: 0x00015000 [0x00000000]
        RING_HEAD:  0x00000278 [0x00000000]
        RING_TAIL:  0x00000278 [0x00000000]
        RING_CTL:   0x00003000 []
        ACTHD:  0x00000000_00000278
        BBADDR: 0x00000000_ffffe004
        Execlist status: 0x00000301 00000000
        Execlist CSB read 1, write 1
                ELSP[0] idle
                ELSP[1] idle

video enhancement ring
        current seqno 1e, last 1e, hangcheck 0 [-242992 ms]
        Requests:
        RING_START: 0x0001d000 [0x00000000]
        RING_HEAD:  0x00000278 [0x00000000]
        RING_TAIL:  0x00000278 [0x00000000]
        RING_CTL:   0x00003000 []
        ACTHD:  0x00000000_00000278
        BBADDR: 0x00000000_ffffe004
        Execlist status: 0x00000301 00000000
        Execlist CSB read 5, write 5
                ELSP[0] idle
                ELSP[1] idle
(gem_exec_schedule:1560) CRITICAL: Test assertion failure function reorder, file gem_exec_schedule.c:298:
(gem_exec_schedule:1560) CRITICAL: Failed assertion: ptr[0] == ctx[0]
(gem_exec_schedule:1560) CRITICAL: error: 0x2 != 0x1
****  END  ****




========== Kernel Information==========
commit e80b772bf85da72c46b582e7c4f7b0d861cb4669
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Tue Feb 14 23:45:02 2017 +0100

    drm-tip: 2017y-02m-14d-22h-44m-17s UTC integration manifest


Kernel version : 4.10.0-rc8-e80b772
Architecture : source amd64 all

========== Software Information ==========
Component: drm
Url      : http://cgit.freedesktop.org/mesa/drm
Tag      : libdrm-2.4.75-6-gec80fd3
Commit   : ec80fd3
Author   : Chris Wilson <chris@chris-wilson.co.uk>
Age      : 2 days ago

Component: cairo
Url      : http://cgit.freedesktop.org/cairo
Tag      : 1.15.4-6-g5854dd9
Commit   : 5854dd9
Author   : Adrian Johnson <ajohnson@redneon.com>
Age      : 12 days ago

Component: intel-gpu-tools
Url      : https://cgit.freedesktop.org/xorg/app/intel-gpu-tools
Tag      : intel-gpu-tools-1.17-240-gca2ba47
Commit   : ca2ba47
Author   : Chris Wilson <chris@chris-wilson.co.uk>
Age      : 15 hours ago

====================

Ubuntu 16.10 yakkety
Comment 1 Luis Botello 2017-02-21 18:05:16 UTC
Issue also seen on KBL with the same SW configuration.
Comment 2 Chris Wilson 2017-02-21 18:36:30 UTC
commit af0e1c583e4235028a750551b4637c79ff482b30
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Tue Feb 21 18:25:58 2017 +0000

    igt/gem_exec_scheduler: Fix test for context priorities
Comment 3 yann 2017-02-22 07:32:22 UTC
(In reply to Luis Botello from comment #1)
> Issue also seen on KBL with the same SW configuration.

Luis, please confirm status based comment #2. If this is working CLOSE it, if not REOPEN with more information / details.
Comment 4 Ricardo 2017-02-22 15:40:46 UTC
Luis review with ww08 results of IGT
Comment 5 Luis Botello 2017-02-23 22:45:31 UTC
This is the comparison between executions:

Test	PreviousResult	ActualResult
deep-blt	pass	skip
deep-bsd	pass	skip
deep-bsd1	not run	skip
deep-bsd2	not run	skip
deep-render	pass	skip
deep-vebox	pass	skip
fifo-blt	pass	pass
fifo-bsd	pass	pass
fifo-bsd1	not run	skip
fifo-bsd2	not run	skip
fifo-render	pass	pass
fifo-vebox	pass	pass
in-order-blt	pass	skip
in-order-bsd	pass	skip
in-order-bsd1	not run	skip
in-order-bsd2	not run	skip
in-order-render	pass	skip
in-order-vebox	pass	skip
out-order-blt	fail	skip
out-order-bsd	fail	skip
out-order-bsd1	not run	skip
out-order-bsd2	not run	skip
out-order-render	fail	skip
out-order-vebox	fail	skip
promotion-blt	fail	skip
promotion-bsd	fail	skip
promotion-bsd1	not run	skip
promotion-bsd2	not run	skip
promotion-render	fail	skip
promotion-vebox	fail	skip


Config used for "ActualResult":
======================================
             Software
======================================
kernel version            : 4.10.0-drm-tip-qa-ww8-commit-e922d89+
architecture              : x86_64
os version                : Ubuntu 16.10
kernel driver             : i915
bios revision             : 5.12
bios release date         : 09/12/2016

======================================
        Graphic drivers
======================================
modesetting               : modesetting_drv.so
xorg-xserver              : 1.18.4
libdrm                    : 2.4.75
cairo                     : 1.15.5
xserver                   : X.Org X Server 1.18.4
intel-gpu-tools (tag)     : intel-gpu-tools-1.17-260-g8ec8040
intel-gpu-tools (commit)  : 8ec8040

======================================
             Hardware
======================================
platform                  : KBL-Nuc
motherboard model         : MS-B142


Adding demsg_gemExecSchFull and IGToutputDebug
Comment 6 Luis Botello 2017-02-23 22:46:11 UTC
Created attachment 129888 [details]
IGToutputDebug
Comment 7 Luis Botello 2017-02-23 22:46:27 UTC
Created attachment 129889 [details]
demsg_gemExecSchFull
Comment 8 Chris Wilson 2017-02-23 22:51:11 UTC
They are meant to be skip since they are tests for a feature that is not yet upstream.
Comment 9 Luis Botello 2017-02-23 23:59:24 UTC
Thanks for the clarification Chris, closing bug.


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.