Bug 87575 - [IGT] gem_ctx_thrash/threads sporadically takes more than 10 minutes
Summary: [IGT] gem_ctx_thrash/threads sporadically takes more than 10 minutes
Status: CLOSED INVALID
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: All Linux (All)
: medium normal
Assignee: Hector Velazquez
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard: ReadyForDev
Keywords:
: 94939 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-12-22 06:03 UTC by lu hua
Modified: 2018-03-29 07:05 UTC (History)
4 users (show)

See Also:
i915 platform: BSW/CHT, CFL, SKL
i915 features: GEM/Other


Attachments
dmesg (55.91 KB, text/plain)
2014-12-22 06:03 UTC, lu hua
no flags Details
HSW-ULT_dmesg.log (123.11 KB, text/plain)
2015-08-12 04:37 UTC, Humberto Israel Perez Rodriguez
no flags Details
dmesg log (118.82 KB, text/plain)
2015-08-12 21:57 UTC, Jairo Miramontes
no flags Details

Description lu hua 2014-12-22 06:03:10 UTC
Created attachment 111143 [details]
dmesg

==System Environment==
--------------------------
Regression: no, new case

Non-working platforms: IVB/BYT

==kernel==
--------------------------
drm-intel-nightly/4fa23142a15526f4a4b5df61f26eacdd558a849a
commit 4fa23142a15526f4a4b5df61f26eacdd558a849a
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Fri Dec 19 15:33:33 2014 +0100

    drm-intel-nightly: 2014y-12m-19d-14h-33m-07s UTC integration manifest

==Bug detailed description==
-----------------------------
It sporadically takes more than 10 minutes, It happens 1 in 3 runs.

output:
[root@x-ivb9 tests]# time ./gem_ctx_thrash --run-subtest threads
IGT-Version: 1.9-gc537cdb (x86_64) (Linux: 3.18.0_drm-intel-nightly_4fa231_20141
Creating 49152 contexts (assuming of size 65536)
Creating 3072 surfaces (of size 1048576)
Subtest threads: SUCCESS (512.432s)

real    8m32.463s
user    1m54.617s
sys     12m51.291s
[root@x-ivb9 tests]# time ./gem_ctx_thrash --run-subtest threads
IGT-Version: 1.9-gc537cdb (x86_64) (Linux: 3.18.0_drm-intel-nightly_4fa231_20141
Creating 49152 contexts (assuming of size 65536)
Creating 3072 surfaces (of size 1048576)
Subtest threads: SUCCESS (550.889s)

real    9m10.935s
user    1m55.664s
sys     13m47.713s
[root@x-ivb9 tests]# time ./gem_ctx_thrash --run-subtest threads
IGT-Version: 1.9-gc537cdb (x86_64) (Linux: 3.18.0_drm-intel-nightly_4fa231_20141222+ x86_64)
Creating 49152 contexts (assuming of size 65536)
Creating 3072 surfaces (of size 1048576)
Subtest threads: SUCCESS (616.115s)

real    10m16.133s
user    2m29.785s
sys     15m1.551s


==Reproduce steps==
---------------------------- 
1. time ./gem_ctx_thrash --run-subtest threads
Comment 1 lu hua 2014-12-23 03:26:19 UTC
It also impacts SNB platform.
Comment 2 Chris Wilson 2015-02-06 11:33:28 UTC
Looks like variability of the optimisitic mutex spinner. Let's wish for lockless fence access....
Comment 3 lu hua 2015-03-24 02:52:58 UTC
gem_ctx_thrash@processes also has this issue. Test on 3.19.2 kernel, it also has this issue.
Comment 4 Humberto Israel Perez Rodriguez 2015-08-12 04:36:44 UTC
Hi, with HSW-ULT and the latest configuration pass one of two test cases that involving "gem_ctx_thrash" program, please find below the configuration :

Program : gem_ctx_thrash

sub-tests :      Result :
1-processes      PASS 
2-threads        Keeps failing

------------------------------------
command output for subtest "threads"

$ time ./run-tests.sh -s -r ./result -t gem_ctx_thrash@threads
[1/1] timeout: 1 /
Thank you for running Piglit!
Results have been written to /home/gfx/dev/graphic/intel-gpu-tools/scripts/result
HTML summary has been written to ./result/html/index.html

real    10m9.542s
user    1m20.102s
sys     14m18.646s

------------------------------------

-- Hardware --
Platform: Intel NUC D54250WYK
Processo: Intel(R) Core(TM) i5-4250U CPU @ 1.30GHz
-- Software --
Linux distribution: Ubuntu 14.04.02 LTS 64Bits
BIOS: WYLPT10H.86A.0021.2013.1017.1606



Test Environment:
````````````````````````````````````
Kernel: tag drm-intel-testing-2015-07-31 (4.2-rc4) from git://anongit.freedesktop.org/drm-intel
Mesa: mesa-10.6.3 from http://cgit.freedesktop.org/mesa/mesa/
Xf86_video_intel: 2.99.917 from http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/
Libdrm: libdrm-2.4.62 from http://cgit.freedesktop.org/mesa/drm/
Cairo: 1.14.2 from http://cgit.freedesktop.org/cairo
libva: libva-1.6.0 from http://cgit.freedesktop.org/libva/
intel-driver: 1.6.0. from http://cgit.freedesktop.org/vaapi/intel-driver
xorg: 1.17.99 installed with script git_xorg.sh
Xserver: xorg-server-1.17.2 from http://cgit.freedesktop.org/xorg/xserver
Intel-gpu-tools: 1.11 from http://cgit.freedesktop.org/xorg/app/intel-gpu-tools/

--Attached HSW-ULT_dmesg.log

If needed more information or you have any doubt do not hesitate to contact me
Comment 5 Humberto Israel Perez Rodriguez 2015-08-12 04:37:38 UTC
Created attachment 117637 [details]
HSW-ULT_dmesg.log
Comment 6 Jairo Miramontes 2015-08-12 21:57:08 UTC
Created attachment 117660 [details]
dmesg log

This is also reproduced on BYT-M using drm-intel-testing-2015-07-31 (kernel 4.2-rc4) and latest stack.
Desription: gem_ctx_thrash/threads timeouts everytime.


--Hardware
Platform: Baytrail-M
CPU: Intel(R) Celeron(R) CPU  N2820  @ 2.13GHz
--Software
Linux distribution: Ubuntu 14.04.02 LTS 64 bits
BIOS: 1.10
Ksc: 1.0
Kernel: drm-intel-testing-2015-07-31 (kernel 4.2-rc4). git://anongit.freedesktop.org/drm-intel 
Mesa: mesa-10.6.3 from http://cgit.freedesktop.org/mesa/mesa/
Xf86_video_intel: 2.99.917 from http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/
Libdrm: libdrm-2.4.62 from http://cgit.freedesktop.org/mesa/drm/
Cairo: 1.14.2 from http://cgit.freedesktop.org/cairo
libva: libva-1.6.0 from http://cgit.freedesktop.org/libva/
intel-driver: 1.6.0. from http://cgit.freedesktop.org/vaapi/intel-driver
xorg: 1.17.99 installed with script git_xorg.sh
Xserver: xorg-server-1.17.2 from http://cgit.freedesktop.org/xorg/xserver
Intel-gpu-tools: 1.11 from http://cgit.freedesktop.org/xorg/app/intel-gpu-tools/
Comment 7 Humberto Israel Perez Rodriguez 2015-08-13 16:10:32 UTC
In SNB platform it does not happen with the following configuration

Pass rate : 5/5

==Hardware configuration==
--------------------------------------------------

Platform: SNB Desktop
Processor: Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz
Memory installed : 8192 MB
Memory Speed: 1333 MHz
Memory Technology : DDR3 SDRAM
Core count = 4
-- Software --
Linux distribution: Ubuntu 14.04.02 LTS 64Bits
BIOS Version : A11


==Test Environment==
--------------------------------------------------

Kernel: tag drm-intel-testing-2015-07-31 (4.2-rc4) from git://anongit.freedesktop.org/drm-intel
Mesa: mesa-10.6.3 from http://cgit.freedesktop.org/mesa/mesa/
Xf86_video_intel: 2.99.917 from http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/
Libdrm: libdrm-2.4.62 from http://cgit.freedesktop.org/mesa/drm/
Cairo: 1.14.2 from http://cgit.freedesktop.org/cairo
libva: libva-1.6.0 from http://cgit.freedesktop.org/libva/
intel-driver: 1.6.0. from http://cgit.freedesktop.org/vaapi/intel-driver
xorg: 1.17.99 installed with script git_xorg.sh
Xserver: xorg-server-1.17.2 from http://cgit.freedesktop.org/xorg/xserver
Intel-gpu-tools: 1.11 from http://cgit.freedesktop.org/xorg/app/intel-gpu-tools/


Kernel commit log:
commit 647e1f8a699c08a421aad7a1a56fedb49d1592b4 
Author: Thomas Wood <thomas.wood@intel.com>
Date:   Thu Jun 11 16:08:23 2015 +0100
Comment 8 Elio 2016-03-16 16:49:34 UTC
This problem is present with following sub tests:

@single
@processes
@threads

--- Software information ---

 ++ Kernel version                      : 4.4.4-040404-generic
 ++ Linux distribution                  : Ubuntu 15.10
 ++ Architecture                        : 64-bit
 
 ++ xf86-video-intel version            : 2.99.917
 ++ Xorg-Xserver version                : 1.17.2
 ++ DRM version                         : 2.4.64
 ++ VAAPI version                       : Intel i965 driver for Intel(R) Broadwell - 1.6.0
 ++ Cairo version                       : 1.14.2
 ++ Intel GPU Tools version             : Tag [intel-gpu-tools-1.14-74-g431f6c4] / Commit [431f6c4]
 ++ Kernel driver in use                : i915
 ++ Bios revision                       : 5.6


 --- Hardware information ---

 ++ Platform                            :
 ++ Motherboard model                   :
 ++ Motherboard type                    : NUC5i7RYB Desktop
 ++ Motherboard manufacturer            :
 ++ CPU family                          : Core i7
 ++ CPU information                     : Intel(R) Core(TM) i7-5557U CPU @ 3.10GHz
 ++ GPU Card                            : Intel Corporation Broadwell-U Integrated Graphics (rev 09) (prog-if 00 [VGA controller])
 ++ Memory ram                          : 8 GB
 ++ Maximum memory ram allowed          : 16 GB
 ++ Display resolution                  :
 ++ CPU's number                        : 4
 ++ Hard drive capacity                 : 120 GB
Comment 9 maria guadalupe 2016-04-01 19:27:10 UTC
This bug was also reproduced on BXT under the following configuration


Hardware configuration
=======================
Platform     BXT - P (APL)
Motherboard model  Apollo Lake
Motherboard type    NOTEBOOK Hand Held
Motherboard manufacturer Intel Corp.
CPU family   Other
CPU information    06/5c
GPU Card     Intel Corporation Device 5a84 (rev 03) (prog-if 00 [VGA controller])
Memory ram   8 GB


Software configuration
=======================
 --> Component : drm 
       url : http://cgit.freedesktop.org/mesa/drm 
       tag : libdrm-2.4.67-11-gea78c17 
       commit : ea78c17 
       author : Emil Velikov <emil.l.velikov@gmail.com> 
       age : 20 hours ago 
 --> Component : mesa 
       url : http://cgit.freedesktop.org/mesa/mesa 
       tag : mesa-11.1.2 
       commit : 7bcd827 
       author : Emil Velikov <emil.velikov@collabora.com> 
       age : 7 weeks ago 
 --> Component : xf86-video-intel 
       url : http://cgit.freedesktop.org/xorg/driver/xf86-video-intel 
       tag : 2.99.917-590-g094924f 
       commit : 094924f 
       author : Chris Wilson <chris@chris-wilson.co.uk> 
       age : 4 days ago 
 --> Component : libva 
       url : http://cgit.freedesktop.org/libva/ 
       tag : libva-1.7.0-1-g2339d10 
       commit : 2339d10 
       author : Xiang Haihao <haihao.xiang@intel.com> 
       age : 13 days ago 
 --> Component : vaapi (intel-driver) 
       url : http://cgit.freedesktop.org/vaapi/intel-driver 
       tag : 1.7.0-5-g759e44d 
       commit : 759e44d 
       author : peng.chen <peng.c.chen@intel.com> 
       age : 13 days ago 
 --> Component : cairo 
       url : http://cgit.freedesktop.org/cairo 
       tag : 1.15.2 
       commit : db8a7f1 
       author : Bryce Harrington <bryce@osg.samsung.com> 
       age : 4 months ago 
 --> Component : xserver 
       url :  http://cgit.freedesktop.org/xorg/xserver 
       tag : xorg-server-1.18.0-254-g44e1c97 
       commit : 44e1c97 
       author : Olivier Fourdan <ofourdan@redhat.com> 
       age : 8 days ago 
 --> Component : intel-gpu-tools 
       url : http://cgit.freedesktop.org/xorg/app/intel-gpu-tools 
       tag : intel-gpu-tools-1.14-129-g41a26b5 
       commit : 41a26b5 
       author : Chris Wilson <chris@chris-wilson.co.uk> 
       age : 26 hours ago  


kernel configuration
=====================
Branch : drm-intel-nightly
commit f5d413cccefa1f93d64c34f357151d42add63a84
Author: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Date:   Thu Mar 24 14:35:16 2016 +0000

    drm-intel-nightly: 2016y-03m-24d-14h-34m-29s UTC integration manifest
Kernel version : 4.5.0
Architecture : source amd64 all
Comment 10 Jari Tahvanainen 2017-03-02 07:48:22 UTC
Based on the latest results lets close this bug (no problem on IVB based on WW08 results) and will create new bug on BDW/BSW for dmesg-fails (@single and @threads). SNB was already reported to be working (see comment 7).
BXT/APL is followed by bug 94939.

Latest results on WW08 are having:
IVB:
igt@gem_ctx_thrash@engines	Pass
igt@gem_ctx_thrash@processes	Pass
igt@gem_ctx_thrash@single	Pass
igt@gem_ctx_thrash@threads	Pass
HSW
igt@gem_ctx_thrash@engines	Pass
igt@gem_ctx_thrash@processes	Pass
igt@gem_ctx_thrash@single	Pass
igt@gem_ctx_thrash@threads	Pass
BDW
igt@gem_ctx_thrash@engines	Pass
igt@gem_ctx_thrash@processes	Pass
igt@gem_ctx_thrash@single	dmesg-fail
igt@gem_ctx_thrash@threads	dmesg-fail
BYT
igt@gem_ctx_thrash@engines	Pass
igt@gem_ctx_thrash@processes	Pass
igt@gem_ctx_thrash@single	Pass
igt@gem_ctx_thrash@threads	Pass
Comment 11 Jari Tahvanainen 2017-05-10 15:51:12 UTC
Timeout (more than 10 minutes execution time) still valid for 4.11.0-rc8-drm-tip-ww18-commit-7f02755+ (HSW-1-D54250WYK)
igt@gem_ctx_thrash@single - this test was incomplete
For BYT these tests were not executed on the latest round for drm-intel-qa 4.11.0-rc4 379767e BYT (BYT3).
Removing IVB from the platforms since for 4.11.0-rc8-drm-tip-ww18-commit-7f02755+ (IVB-1-0XR1GT) tests are Pass
igt@gem_ctx_thrash@engines	Pass
igt@gem_ctx_thrash@processes	Pass
igt@gem_ctx_thrash@single	Pass
igt@gem_ctx_thrash@threads	Pass
Comment 12 Humberto Israel Perez Rodriguez 2017-06-28 21:30:06 UTC
timeout on GLK with latest configuration

igt@gem_ctx_thrash@threads


======================================
        Graphic drivers
======================================
Component: drm
    tag: libdrm-2.4.80-29-g7e6bf88
    commit: 7e6bf88cac315a9fa41818cf72a7b5d18a2cb1fc
Component: cairo
    tag: 1.15.4-28-g57b4050
    commit: 57b40507dda3f58dfc8635548d606b86dc7bcf51
Component: intel-gpu-tools
    tag: intel-gpu-tools-1.18-284-g9918014
    commit: 9918014df55d0393f99a31e3c398a4b38c90bb80
Component: piglit
    tag: piglit-v1
    commit: 1b8356e6dfa07480c154fccb47f6ef9c908ef652


======================================
             Kernel
======================================
commit 85a692e2c6a7cf93082044d776e838cb9e9b2146
Author:     Chris Wilson <chris@chris-wilson.co.uk>
AuthorDate: Wed Jun 28 15:25:29 2017 +0100
Commit:     Chris Wilson <chris@chris-wilson.co.uk>
CommitDate: Wed Jun 28 15:25:29 2017 +0100
Comment 13 Hector Velazquez 2017-07-31 19:19:28 UTC
The following tests PASS on BSW with this configuration

Tests List:

igt@gem_ctx_thrash@processes



This is my configuration:

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

==============================================================
Essentials
==============================================================
Processor Number			N3700
Status					Launched
Launch Date				Q1'15
Lithography				14 nm


==============================================================
Performance
==============================================================
# of Cores				4
# of Threads				4
Processor Base Frequency		1.60 GHz
Burst Frequency				2.40 GHz
Cache					2 MB L2
TDP					6 W
Scenario Design Power (SDP)		4 W

==============================================================
Memory Specifications
==============================================================
Max Memory Size 			8 GB
Memory Types				DDR3L-1600
Max # of Memory Channels		2
ECC Memory Supported  			No

==============================================================
Graphics Specifications
==============================================================
Processor Graphics 			Intel® HD Graphics
Graphics Base Frequency			400.00 MHz
Graphics Burst Frequency		700.00 MHz
Graphics Video Max Memory		8 GB
Graphics Output				eDP/DP/HDMI
Execution Units				16
DirectX* Support			Yes
OpenGL* Support				Yes
Intel® Quick Sync Video 		Yes
Intel® InTru™ 3D Technology		No
Intel® Clear Video HD Technology	Yes
Intel® Clear Video Technology		Yes
Intel® Wireless Display 		Yes
# of Displays Supported 		3


====================================================
Graphic Stack
====================================================

Component: drm
    tag: libdrm-2.4.81-33-g3876bc2
    commit: 3876bc246a07070a6043159cd7623d4def9bbd4c

Component: cairo
    tag: 1.15.6-2-g57b4050
    commit: 57b40507dda3f58dfc8635548d606b86dc7bcf51

Component: intel-gpu-tools
    tag: intel-gpu-tools-1.19-112-g493151b
    commit: 493151b0768aa4ca535cef49cb7efa174a9c3a77

Component: piglit
    tag: piglit-v1
    commit: 973892687cf5c2f8e2dbe1d22998b82736643787
Comment 14 Elizabeth 2017-08-02 22:18:21 UTC
*** Bug 94939 has been marked as a duplicate of this bug. ***
Comment 15 Elizabeth 2017-08-23 16:09:58 UTC
Still timeout on GLK.

Gfx stack
=====================================================
Component: drm
    tag: libdrm-2.4.81-46-g9d133dd
    commit: 9d133dd08720d80dfc8ce098bf0972ebd05c454d

Component: cairo
    tag: 1.15.6-14-gf351595
    commit: f3515954e0bc9c9ca413a84a8dd842145cec83a7

Component: intel-gpu-tools
    tag: intel-gpu-tools-1.19-193-g5a17ee2
    commit: 5a17ee2c8f9013f5db852d27564b837f9f2c5a9f

Component: piglit
    tag: piglit-v1
    commit: 2a7047a32bb3a9a4fad5bea0a8185d63af6bddf3

Kernel info
=====================================================
commit ad6ab9f96437f0cb1f4d8a7840fd9eeb894eb12e
Author:     Gustavo Padovan <gustavo.padovan@collabora.com>
AuthorDate: Fri Aug 18 15:26:42 2017 -0300
Commit:     Gustavo Padovan <gustavo.padovan@collabora.com>
CommitDate: Fri Aug 18 15:26:42 2017 -0300

    drm-tip: 2017y-08m-18d-18h-21m-46s UTC integration manifest
Comment 16 Elizabeth 2017-08-23 21:06:42 UTC
Still timeout on BXT.

Gfx stack
=====================================================
Component: drm
    tag: libdrm-2.4.81-46-g9d133dd
    commit: 9d133dd08720d80dfc8ce098bf0972ebd05c454d

Component: cairo
    tag: 1.15.6-14-gf351595
    commit: f3515954e0bc9c9ca413a84a8dd842145cec83a7

Component: intel-gpu-tools
    tag: intel-gpu-tools-1.19-193-g5a17ee2
    commit: 5a17ee2c8f9013f5db852d27564b837f9f2c5a9f

Component: piglit
    tag: piglit-v1
    commit: 2a7047a32bb3a9a4fad5bea0a8185d63af6bddf3

Kernel info
=====================================================
commit ad6ab9f96437f0cb1f4d8a7840fd9eeb894eb12e
Author:     Gustavo Padovan <gustavo.padovan@collabora.com>
AuthorDate: Fri Aug 18 15:26:42 2017 -0300
Commit:     Gustavo Padovan <gustavo.padovan@collabora.com>
CommitDate: Fri Aug 18 15:26:42 2017 -0300

    drm-tip: 2017y-08m-18d-18h-21m-46s UTC integration manifest
Comment 17 Chris Wilson 2017-08-23 21:11:03 UTC
Yes, it exceeds your arbitrary externally imposed limit. That's missing the point of the original report which was that the timing changed.
Comment 18 Elizabeth 2017-08-24 23:04:51 UTC
I ran it manually on GLK, and it still took too much time to finish:

$ time sudo -E ./gem_ctx_thrash --run-subtest threads

IGT-Version: 1.19-g4524a89 (x86_64) (Linux: 4.13.0-rc6-drm-tip-ww34-commit-93365f5+ x86_64)
Creating 71493 contexts (assuming of size 90112)
Subtest threads: SUCCESS (1545.920s)

real    25m51.017s
user    0m1.484s
sys     18m43.421s
Comment 19 Elizabeth 2017-09-11 18:52:39 UTC
Less than 10 min results on GLK with the listed configuration: 

$ : time sudo -E ./gem_ctx_thrash --r threads
IGT-Version: 1.19-gf9e0154 (x86_64) (Linux: 4.13.0-drm-tip-ww37-commit-14ea1a9+ x86_64)
Creating 71179 contexts (assuming of size 90112)
Subtest threads: SUCCESS (284.891s)
real    4m46.766s
user    0m0.242s
sys     3m51.036s

$ : time sudo -E ./gem_ctx_thrash --r threads
IGT-Version: 1.19-gf9e0154 (x86_64) (Linux: 4.13.0-drm-tip-ww37-commit-14ea1a9+ x86_64)
Creating 71179 contexts (assuming of size 90112)
Subtest threads: SUCCESS (360.412s)
real    6m1.776s
user    0m0.306s
sys     5m10.745s

$ : time sudo -E ./gem_ctx_thrash --r threads
IGT-Version: 1.19-gf9e0154 (x86_64) (Linux: 4.13.0-drm-tip-ww37-commit-14ea1a9+ x86_64)
Creating 71179 contexts (assuming of size 90112)
Subtest threads: SUCCESS (328.022s)
real    5m29.033s
user    0m0.375s
sys     4m36.763s

$ : time sudo -E ./gem_ctx_thrash --r threads
IGT-Version: 1.19-gf9e0154 (x86_64) (Linux: 4.13.0-drm-tip-ww37-commit-14ea1a9+ x86_64)
Creating 71179 contexts (assuming of size 90112)
Subtest threads: SUCCESS (233.732s)
real    3m54.790s
user    0m0.210s
sys     2m58.297s

$ : time sudo -E ./gem_ctx_thrash --r threads
IGT-Version: 1.19-gf9e0154 (x86_64) (Linux: 4.13.0-drm-tip-ww37-commit-14ea1a9+ x86_64)
Creating 71179 contexts (assuming of size 90112)
Subtest threads: SUCCESS (247.898s)
real    4m9.539s
user    0m0.240s
sys     3m17.989s


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

======================================
             Software
======================================
kernel version              : 4.13.0-drm-tip-ww37-commit-14ea1a9+
hostname                    : GLK-1-GLKRVP1DDR405
architecture                : x86_64
os version                  : Ubuntu 16.10
os codename                 : yakkety
kernel driver               : i915
bios revision               : 60.34
bios release date           : 08/09/2017
ksc                         : 1.41
hardware acceleration       : disabled
swap partition              : enabled on (/dev/sda3)

======================================
        Graphic drivers
======================================
grep: /opt/X11R7/var/log/Xorg.0.log: No such file or directory
libdrm                      : 2.4.70
cairo                       : 1.14.6

======================================
             Hardware
======================================
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                 : 7.64 GB
max memory ram             : 16 GB
cpu thread                 : 2
cpu core                   : 2
cpu model                  : 122
cpu stepping               : 1
socket                     : Other
hard drive                 : 223GiB (240GB)
current cd clock frequency : 316800 kHz
maximum cd clock frequency : 316800 kHz
displays connected         : eDP-1 DP-1 HDMI-A-2

======================================
             Firmware
======================================
dmc fw loaded             : yes
dmc version               : 1.4
guc fw loaded             : SUCCESS
guc version wanted        : 10.56
guc version found         : 10.56

======================================
             kernel parameters
======================================
quiet drm.debug=0x1e i915.enable_guc_loading=2 i915.enable_guc_submission=2 i915.alpha_support=1 auto panic=1 nmi_watchdog=panic intel_iommu=igfx_off resume=/dev/sda3 fastboot
Comment 20 Elizabeth 2017-10-16 22:44:00 UTC
$ time sudo -E ./gem_ctx_thrash --run-subtest threads

On KBL: IGT-Version: 1.20-g7bf3bd7 Linux: 4.14.0-rc4-drm-tip-commit-6972ebb+

Subtest threads: SUCCESS (953.643s) 15m54.559s

On SNB: IGT-Version: 1.20-g7bf3bd7 Linux: 4.14.0-rc4-drm-tip-commit-6972ebb+

Subtest threads: SUCCESS (162.330s) 2m42.886s
Subtest threads: SUCCESS (162.534s) 2m42.908s
Subtest threads: SUCCESS (162.436s) 2m42.830s
Subtest threads: SUCCESS (162.582s) 2m43.062s
Subtest threads: SUCCESS (162.684s) 2m43.705s

On BYT: IGT-Version: 1.20-g136100c Linux: 4.14.0-rc4-drm-tip-commit-36e0e80+

Subtest threads: SUCCESS (162.807s) 2m43.746s
Subtest threads: SUCCESS (162.291s) 2m43.447s
Subtest threads: SUCCESS (162.119s) 2m43.022s
Subtest threads: SUCCESS (162.431s) 2m43.561s
Subtest threads: SUCCESS (162.508s) 2m43.675s

On HSW: IGT-Version: 1.20-g7bf3bd7 Linux: 4.14.0-rc4-drm-tip-commit-6972ebb+

Subtest threads: SUCCESS (224.017s) 3m44.774s
Subtest threads: SUCCESS (215.543s) 3m36.333s
Subtest threads: SUCCESS (214.622s) 3m35.581s
Subtest threads: SUCCESS (243.597s) 4m4.548s
Subtest threads: SUCCESS (227.062s) 3m48.027s

On BXT: IGT-Version: 1.20-g7bf3bd Linux: 4.14.0-rc4-drm-tip-commit-6972ebb+ 

Killed 10m10.156s
Killed 10m9.292s

On BSW: IGT-Version: 1.20-g5861627 Linux: 4.14.0-rc4-drm-tip-commit-b2c76c5+

Subtest threads: SUCCESS (1034.357s) 17m17.041s

Please note that on BXT process was killed after 10 min, not finished.
Removing SNB/BYT/HSW
Comment 21 Hector Velazquez 2017-11-17 21:04:08 UTC
This tests has the same failure on GLK QA

igt@gem_ctx_thrash@single <- take more than 10 mins (incomplete, no dmesg)
igt@gem_ctx_thrash@threads <- dmeag-fail

====================================================
dmesg-fail <-igt@gem_ctx_thrash@threads 
====================================================
[ 1596.679018] gem_ctx_thrash: page allocation failure: order:0, mode:0x14204d2(GFP_HIGHUSER|__GFP_RETRY_MAYFAIL|__GFP_RECLAIMABLE), nodemask=(null)
[ 1596.679033] CPU: 0 PID: 1926 Comm: gem_ctx_thrash Tainted: G     U          4.14.0-drm-tip-ww46-commit-1fc4fe8+ #1
[ 1596.679034] Hardware name: Intel Corp. Geminilake/GLK RVP1 DDR4 (05), BIOS GELKRVPA.X64.0062.B30.1708222146 08/22/2017
[ 1596.679035] Call Trace:
[ 1596.679044]  dump_stack+0x63/0x8b
[ 1596.679048]  warn_alloc+0x114/0x1b0
[ 1596.679050]  __alloc_pages_slowpath+0xf24/0xf30
[ 1596.679052]  __alloc_pages_nodemask+0x262/0x280
[ 1596.679055]  alloc_pages_vma+0x88/0x1e0
[ 1596.679058]  __read_swap_cache_async+0x140/0x1c0
[ 1596.679059]  read_swap_cache_async+0x2b/0x60
[ 1596.679061]  swapin_readahead+0x222/0x280
[ 1596.679063]  ? __slab_free+0x9e/0x2e0
[ 1596.679065]  shmem_swapin+0x6d/0xc0
[ 1596.679066]  ? free_one_page+0x73/0x360
[ 1596.679068]  ? shmem_swapin+0x6d/0xc0
[ 1596.679071]  ? sg_free_table+0x5c/0x70
[ 1596.679073]  ? radix_tree_lookup_slot+0x22/0x50
[ 1596.679075]  ? find_get_entry+0x1e/0xe0
[ 1596.679076]  ? pagecache_get_page+0x2d/0x220
[ 1596.679078]  shmem_getpage_gfp+0x7fd/0xc00
[ 1596.679080]  shmem_read_mapping_page_gfp+0x44/0x80
[ 1596.679122]  i915_gem_object_get_pages_gtt+0x1b8/0x530 [i915]
[ 1596.679149]  ____i915_gem_object_get_pages+0x1c/0x40 [i915]
[ 1596.679175]  __i915_gem_object_get_pages+0x5b/0x70 [i915]
[ 1596.679202]  i915_gem_object_set_to_gtt_domain+0xdb/0x140 [i915]
[ 1596.679230]  execlists_context_pin+0x199/0x410 [i915]
[ 1596.679257]  i915_gem_request_alloc+0x38/0x350 [i915]
[ 1596.679283]  i915_gem_do_execbuffer+0x7c2/0x1060 [i915]
[ 1596.679287]  ? __switch_to+0x1f3/0x450
[ 1596.679288]  ? __slab_free+0x9e/0x2e0
[ 1596.679289]  ? __slab_free+0x9e/0x2e0
[ 1596.679290]  ? __kmalloc_node+0x1e6/0x2b0
[ 1596.679316]  i915_gem_execbuffer2+0x1b0/0x390 [i915]
[ 1596.679341]  ? i915_gem_execbuffer+0x2c0/0x2c0 [i915]
[ 1596.679358]  drm_ioctl_kernel+0x69/0xb0 [drm]
[ 1596.679368]  drm_ioctl+0x340/0x450 [drm]
[ 1596.679393]  ? i915_gem_execbuffer+0x2c0/0x2c0 [i915]
[ 1596.679397]  do_vfs_ioctl+0xa1/0x5e0
[ 1596.679399]  ? __do_page_fault+0x27f/0x4f0
[ 1596.679401]  SyS_ioctl+0x79/0x90
[ 1596.679403]  entry_SYSCALL_64_fastpath+0x1e/0xa9
[ 1596.679405] RIP: 0033:0x7fd6b12144b7
[ 1596.679406] RSP: 002b:00007fd6ad111cb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[ 1596.679408] RAX: ffffffffffffffda RBX: 00000000000012c3 RCX: 00007fd6b12144b7
[ 1596.679408] RDX: 00007fd6ad111d60 RSI: 0000000040406469 RDI: 0000000000000003
[ 1596.679409] RBP: 00007ffe33d76750 R08: 00007fd68c0008c0 R09: 0000000000000004
[ 1596.679410] R10: 00007fd6ad111ca0 R11: 0000000000000246 R12: 00007fd68c0008c0
[ 1596.679410] R13: 00007fd6ad111d60 R14: 00007fd6ad1129c0 R15: 00007fd6ad112700
[ 1596.679412] Mem-Info:
[ 1596.679416] active_anon:7316 inactive_anon:8382 isolated_anon:0
                active_file:94 inactive_file:0 isolated_file:0
                unevictable:0 dirty:0 writeback:6 unstable:0
                slab_reclaimable:15677 slab_unreclaimable:411234
                mapped:548 shmem:8860 pagetables:2383 bounce:0
                free:26755 free_pcp:0 free_cma:0
[ 1596.679419] Node 0 active_anon:29264kB inactive_anon:33528kB active_file:376kB inactive_file:0kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:2192kB dirty:0kB writeback:24kB shmem:35440kB shmem_thp: 32768kB shmem_pmdmapped: 0kB anon_thp: 8192kB writeback_tmp:0kB unstable:0kB all_unreclaimable? no
[ 1596.679420] Node 0 DMA free:15888kB min:132kB low:164kB high:196kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:15980kB managed:15888kB mlocked:0kB kernel_stack:0kB pagetables:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB
[ 1596.679423] lowmem_reserve[]: 0 1767 7764 7764 7764
[ 1596.679426] Node 0 DMA32 free:39224kB min:15356kB low:19192kB high:23028kB active_anon:2640kB inactive_anon:204kB active_file:456kB inactive_file:572kB unevictable:0kB writepending:180kB present:1913052kB managed:1847484kB mlocked:0kB kernel_stack:192kB pagetables:60kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB
[ 1596.679429] lowmem_reserve[]: 0 0 5996 5996 5996
[ 1596.679431] Node 0 Normal free:51908kB min:52092kB low:65112kB high:78132kB active_anon:26624kB inactive_anon:33628kB active_file:120kB inactive_file:448kB unevictable:0kB writepending:188kB present:6291456kB managed:6143580kB mlocked:0kB kernel_stack:2992kB pagetables:9472kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB
[ 1596.679434] lowmem_reserve[]: 0 0 0 0 0
[ 1596.679436] Node 0 DMA: 0*4kB 2*8kB (U) 2*16kB (U) 3*32kB (U) 2*64kB (U) 2*128kB (U) 0*256kB 0*512kB 1*1024kB (U) 1*2048kB (M) 3*4096kB (M) = 15888kB
[ 1596.679445] Node 0 DMA32: 1953*4kB (UME) 902*8kB (UE) 254*16kB (UE) 670*32kB (UE) 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 40532kB
[ 1596.679452] Node 0 Normal: 527*4kB (ME) 326*8kB (UME) 197*16kB (UME) 183*32kB (UME) 136*64kB (ME) 84*128kB (ME) 28*256kB (ME) 10*512kB (UME) 5*1024kB (UME) 1*2048kB (E) 0*4096kB = 52636kB
[ 1596.679464] 9333 total pagecache pages
[ 1596.679470] 339 pages in swap cache
[ 1596.679471] Swap cache stats: add 33990747, delete 33985542, find 9376376/14192060
[ 1596.679471] Free swap  = 13565660kB
[ 1596.679472] Total swap = 16642044kB
[ 1596.679472] 2055122 pages RAM
[ 1596.679473] 0 pages HighMem/MovableOnly
[ 1596.679473] 53384 pages reserved
[ 1596.679474] 0 pages cma reserved
[ 1596.679474] 0 pages hwpoisoned
[ 1599.988037] 32 and 0 pages still available in the bound and unbound GPU page lists.
[ 1599.988154] python3 invoked oom-killer: gfp_mask=0x14200ca(GFP_HIGHUSER_MOVABLE), nodemask=(null),  order=0, oom_score_adj=0
[ 1599.988162] CPU: 3 PID: 1871 Comm: python3 Tainted: G     U          4.14.0-drm-tip-ww46-commit-1fc4fe8+ #1
[ 1599.988163] Hardware name: Intel Corp. Geminilake/GLK RVP1 DDR4 (05), BIOS GELKRVPA.X64.0062.B30.1708222146 08/22/2017
[ 1599.988164] Call Trace:
[ 1599.988174]  dump_stack+0x63/0x8b
[ 1599.988177]  dump_header+0x97/0x225
[ 1599.988181]  ? security_capable_noaudit+0x45/0x60
[ 1599.988183]  oom_kill_process+0x219/0x420
[ 1599.988185]  out_of_memory+0x11d/0x480
[ 1599.988187]  __alloc_pages_slowpath+0xe4b/0xf30
[ 1599.988189]  __alloc_pages_nodemask+0x262/0x280
[ 1599.988192]  alloc_pages_vma+0x88/0x1e0
[ 1599.988195]  __read_swap_cache_async+0x140/0x1c0
[ 1599.988196]  do_swap_page_readahead+0x102/0x200
[ 1599.988199]  do_swap_page+0x2da/0x780
[ 1599.988200]  ? do_swap_page+0x2da/0x780
[ 1599.988201]  __handle_mm_fault+0x828/0x1170
[ 1599.988204]  ? do_futex+0x130/0xb40
[ 1599.988206]  handle_mm_fault+0xcc/0x1c0
[ 1599.988209]  __do_page_fault+0x262/0x4f0
[ 1599.988210]  do_page_fault+0x2e/0xe0
[ 1599.988213]  page_fault+0x22/0x30
[ 1599.988215] RIP: 0033:0x562f13664380
[ 1599.988216] RSP: 002b:00007f4b925bb798 EFLAGS: 00010246
[ 1599.988217] RAX: 000000000000006e RBX: 0000562f16cbd7d0 RCX: 00007f4b9da1d879
[ 1599.988218] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00007f4b925bb7d0
[ 1599.988218] RBP: 00007f4b925bd698 R08: 0000000000004938 R09: 0000000000003fb3
[ 1599.988219] R10: 0000000000000001 R11: 0000000000004938 R12: 0000000000000000
[ 1599.988220] R13: 00000000000f4240 R14: 0000000000001388 R15: 0000000000000001
[ 1599.988221] Mem-Info:
[ 1599.988226] active_anon:7267 inactive_anon:8422 isolated_anon:0
                active_file:61 inactive_file:0 isolated_file:0
                unevictable:0 dirty:0 writeback:0 unstable:0
                slab_reclaimable:15703 slab_unreclaimable:411268
                mapped:471 shmem:8885 pagetables:2383 bounce:0
                free:26815 free_pcp:0 free_cma:0
[ 1599.988229] Node 0 active_anon:29068kB inactive_anon:33688kB active_file:244kB inactive_file:0kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:1884kB dirty:0kB writeback:0kB shmem:35540kB shmem_thp: 32768kB shmem_pmdmapped: 0kB anon_thp: 8192kB writeback_tmp:0kB unstable:0kB all_unreclaimable? no
[ 1599.988230] Node 0 DMA free:15888kB min:132kB low:164kB high:196kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:15980kB managed:15888kB mlocked:0kB kernel_stack:0kB pagetables:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB
[ 1599.988232] lowmem_reserve[]: 0 1767 7764 7764 7764
[ 1599.988235] Node 0 DMA32 free:39292kB min:15356kB low:19192kB high:23028kB active_anon:2576kB inactive_anon:176kB active_file:180kB inactive_file:672kB unevictable:0kB writepending:0kB present:1913052kB managed:1847484kB mlocked:0kB kernel_stack:192kB pagetables:60kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB
[ 1599.988238] lowmem_reserve[]: 0 0 5996 5996 5996
[ 1599.988240] Node 0 Normal free:52080kB min:52092kB low:65112kB high:78132kB active_anon:26492kB inactive_anon:33516kB active_file:68kB inactive_file:280kB unevictable:0kB writepending:0kB present:6291456kB managed:6143580kB mlocked:0kB kernel_stack:2992kB pagetables:9472kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB
[ 1599.988243] lowmem_reserve[]: 0 0 0 0 0
[ 1599.988245] Node 0 DMA: 0*4kB 2*8kB (U) 2*16kB (U) 3*32kB (U) 2*64kB (U) 2*128kB (U) 0*256kB 0*512kB 1*1024kB (U) 1*2048kB (M) 3*4096kB (M) = 15888kB
[ 1599.988255] Node 0 DMA32: 1920*4kB (UME) 896*8kB (UE) 254*16kB (UE) 662*32kB (UE) 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 40096kB
[ 1599.988262] Node 0 Normal: 533*4kB (UME) 322*8kB (ME) 193*16kB (UME) 186*32kB (UME) 138*64kB (UME) 84*128kB (UME) 29*256kB (UME) 9*512kB (ME) 5*1024kB (UME) 1*2048kB (E) 0*4096kB = 52532kB
[ 1599.988274] 9300 total pagecache pages
[ 1599.988280] 330 pages in swap cache
[ 1599.988281] Swap cache stats: add 33994559, delete 33989363, find 9377696/14194750
[ 1599.988281] Free swap  = 13562332kB
[ 1599.988282] Total swap = 16642044kB
[ 1599.988282] 2055122 pages RAM
[ 1599.988283] 0 pages HighMem/MovableOnly
[ 1599.988283] 53384 pages reserved
[ 1599.988283] 0 pages cma reserved
[ 1599.988284] 0 pages hwpoisoned
[ 1599.988379] Out of memory: Kill process 1918 (gem_ctx_thrash) score 1000 or sacrifice child
[ 1599.988408] Killed process 1918 (gem_ctx_thrash) total-vm:635136kB, anon-rss:0kB, file-rss:0kB, shmem-rss:0kB

This is my configuration:
IGT-Version: 1.20-g88d6550 (x86_64) (Linux: 4.14.0-drm-tip-ww46-commit-1fc4fe8+ x86_64)
fastfeedback-nov-ww46-thursday-07-03-33-code-179785857
Comment 22 Elizabeth 2018-02-13 19:22:21 UTC
(In reply to Hector Velazquez from comment #21)
> This tests has the same failure on GLK QA
> 
> igt@gem_ctx_thrash@single <- take more than 10 mins (incomplete, no dmesg)
> igt@gem_ctx_thrash@threads <- dmeag-fail
> ...
This bug doesn't apply for the GLK error, please file a new bug for that issue. Thanks.

On KBL with commit-8970187+:

KBL, igt@gem_ctx_thrash@threads, success, 9m31.733s
KBL, igt@gem_ctx_thrash@threads, success, 10m21.238s
KBL, igt@gem_ctx_thrash@threads, success, 11m13.436s
KBL, igt@gem_ctx_thrash@threads, success, 9m51.070s
Comment 23 Elizabeth 2018-03-13 23:33:03 UTC
Since these tests are not failing, just taking long to finish, I'll close this bug as invalid. For failures like comment 21 please make sure to file a new bug with the required information. Thanks.


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.