Bug 94939 - [KBL/BXT/GLK] igt gem_ctx_thrash/single is taking more than 10 minutes
Summary: [KBL/BXT/GLK] igt gem_ctx_thrash/single is taking more than 10 minutes
Status: CLOSED DUPLICATE of bug 87575
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: DRI git
Hardware: x86-64 (AMD64) Linux (All)
: medium minor
Assignee: Intel GFX Bugs mailing list
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard: ReadyForDev
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-14 20:22 UTC by Elio
Modified: 2017-08-08 15:43 UTC (History)
1 user (show)

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


Attachments
Dmesg log (247.15 KB, text/plain)
2016-04-14 20:22 UTC, Elio
no flags Details

Description Elio 2016-04-14 20:22:03 UTC
Created attachment 122951 [details]
Dmesg log

The following test is taking more than 10 minutes to execute.

This time is a condition in IGT in order to send the result as "timeout"
gem_ctx_thrash/single

Executed from test take more than 1 hour.

Execution:

./run-tests.sh -t gem_ctx_thrash@single
[1/1] timeout: 1 /
Thank you for running Piglit!


Configuration.


++ Platform                            : BXT-P
 ++ Motherboard model                   : Broxton P
 ++ 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
 ++ Maximum memory ram allowed          : 16 GB
 ++ Display resolution                  :
 ++ CPU's number                        : 4
 ++ Hard drive capacity                 : 120 GB

 ++ Kernel version                      : 4.6.0-rc3-nightly+
 ++ 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
 
 ++ Cairo version                       : 1.14.2
 ++ Intel GPU Tools version             : Tag [intel-gpu-tools-1.14-133-gc89e8db] / Commit [c89e8db]
 ++ Kernel driver in use                : i915
 ++ Hardware acceleration               :
 ++ Bios revision                       : 131.10
 ++ KSC revision                        : 1.12

Attaching log
Comment 1 Humberto Israel Perez Rodriguez 2016-05-26 21:04:29 UTC
this test piglit shows a timeout but running individually it fail


test : igt@gem_ctx_thrash@single

test output
=============================
(gem_ctx_thrash:2270) igt-core-DEBUG: Test requirement passed: !igt_run_in_simulation()
(gem_ctx_thrash:2270) igt-core-DEBUG: Starting subtest: single
(gem_ctx_thrash:2270) drmtest-DEBUG: Test requirement passed: fd >= 0
(gem_ctx_thrash:2270) drmtest-DEBUG: Test requirement passed: fd >= 0
(gem_ctx_thrash:2270) drmtest-DEBUG: Test requirement passed: drmSetMaster(fd) == 0
Creating 98304 contexts (assuming of size 65536)
(gem_ctx_thrash:2270) intel-os-DEBUG: Checking 98,304 surfaces of size 65,536 bytes (total 6,492,782,592) against RAM + swap
(gem_ctx_thrash:2270) intel-os-DEBUG: Test requirement passed: __intel_check_memory(count, size, mode, &required, &total)
(gem_ctx_thrash:2270) igt-core-DEBUG: Test requirement passed: !igt_run_in_simulation()
(gem_ctx_thrash:2270) ioctl-wrappers-DEBUG: Test requirement passed: __gem_set_caching(fd, handle, caching) == 0
(gem_ctx_thrash:2270) ioctl-wrappers-CRITICAL: Test assertion failure function gem_execbuf, file ioctl_wrappers.c:589:
(gem_ctx_thrash:2270) ioctl-wrappers-CRITICAL: Failed assertion: __gem_execbuf(fd, execbuf) == 0
(gem_ctx_thrash:2270) ioctl-wrappers-CRITICAL: error: -5 != 0
Stack trace:
  #0 [__igt_fail_assert+0x101]
  #1 [gem_execbuf+0x44]
  #2 [single+0x41e]
  #3 [__real_main357+0x22b]
  #4 [main+0x23]
  #5 [__libc_start_main+0xf0]
  #6 [_start+0x29]
  #7 [<unknown>+0x29]
Subtest single failed.
**** DEBUG ****
(gem_ctx_thrash:2270) drmtest-DEBUG: Test requirement passed: fd >= 0
(gem_ctx_thrash:2270) drmtest-DEBUG: Test requirement passed: fd >= 0
(gem_ctx_thrash:2270) drmtest-DEBUG: Test requirement passed: drmSetMaster(fd) == 0
(gem_ctx_thrash:2270) INFO: Creating 98304 contexts (assuming of size 65536)
(gem_ctx_thrash:2270) intel-os-DEBUG: Checking 98,304 surfaces of size 65,536 bytes (total 6,492,782,592) against RAM + swap
(gem_ctx_thrash:2270) intel-os-DEBUG: Test requirement passed: __intel_check_memory(count, size, mode, &required, &total)
(gem_ctx_thrash:2270) igt-core-DEBUG: Test requirement passed: !igt_run_in_simulation()
(gem_ctx_thrash:2270) ioctl-wrappers-DEBUG: Test requirement passed: __gem_set_caching(fd, handle, caching) == 0
(gem_ctx_thrash:2270) ioctl-wrappers-CRITICAL: Test assertion failure function gem_execbuf, file ioctl_wrappers.c:589:
(gem_ctx_thrash:2270) ioctl-wrappers-CRITICAL: Failed assertion: __gem_execbuf(fd, execbuf) == 0
(gem_ctx_thrash:2270) ioctl-wrappers-CRITICAL: error: -5 != 0
****  END  ****
Subtest single: FAIL (7.037s)
(gem_ctx_thrash:2270) igt-core-DEBUG: Exiting with status code 99


relevant dmesg messages
==============================================================
systemd-journald[274]: /dev/kmsg buffer overrun, some messages lost


this fail could be related to the bug : https://bugs.freedesktop.org/show_bug.cgi?id=94145


Gfx stack information
===============================================
 --> Component : drm 
	 tag : libdrm-2.4.68-4-g7aab852 
	 commit : 7aab852 
 --> Component : mesa 
	 tag : mesa-11.1.2 
	 commit : 7bcd827 
 --> Component : cairo 
	 tag : 1.15.2 
	 commit : db8a7f1 
 --> Component : intel-gpu-tools
	 tag : intel-gpu-tools-1.14-346-gcce2ff0
	 commit : cce2ff0


Software information
===============================================
Kernel version                      : 4.6.0-rc7-drm-intel-nightly-ww20-commit-5528ede+
Linux distribution                  : Ubuntu 15.10
Architecture                        : 64-bit
Bios revision                       : 138.22
KSC revision                        : 1.12
DMC revision                        : 1.07
GUC revision                        : 8.7


Hardware information
===============================================
Platform                            : BXT-P
Motherboard model                   : Broxton P
Motherboard type                    : NOTEBOOK Hand Held
Motherboard manufacturer            : Intel Corp.
CPU family                          : B1
CPU information                     : 06/5c
GPU Card                            : Intel Corporation Device 5a84 (rev 0a) (prog-if 00 [VGA controller])


kernel
===============================================
commit 2ec823981d62c56d1511bda42b8295e31ece800f
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Sun May 22 18:23:13 2016 +0200

    drm-intel-nightly: 2016y-05m-22d-16h-22m-45s UTC integration manifest
Comment 2 Chris Wilson 2016-05-27 08:21:40 UTC
(In reply to Humberto Israel Perez Rodriguez from comment #1)
> this test piglit shows a timeout but running individually it fail
> 
> 
> test : igt@gem_ctx_thrash@single
> 
> test output
> =============================
> (gem_ctx_thrash:2270) igt-core-DEBUG: Test requirement passed:
> !igt_run_in_simulation()
> (gem_ctx_thrash:2270) igt-core-DEBUG: Starting subtest: single
> (gem_ctx_thrash:2270) drmtest-DEBUG: Test requirement passed: fd >= 0
> (gem_ctx_thrash:2270) drmtest-DEBUG: Test requirement passed: fd >= 0
> (gem_ctx_thrash:2270) drmtest-DEBUG: Test requirement passed:
> drmSetMaster(fd) == 0
> Creating 98304 contexts (assuming of size 65536)
> (gem_ctx_thrash:2270) intel-os-DEBUG: Checking 98,304 surfaces of size
> 65,536 bytes (total 6,492,782,592) against RAM + swap
> (gem_ctx_thrash:2270) intel-os-DEBUG: Test requirement passed:
> __intel_check_memory(count, size, mode, &required, &total)
> (gem_ctx_thrash:2270) igt-core-DEBUG: Test requirement passed:
> !igt_run_in_simulation()
> (gem_ctx_thrash:2270) ioctl-wrappers-DEBUG: Test requirement passed:
> __gem_set_caching(fd, handle, caching) == 0
> (gem_ctx_thrash:2270) ioctl-wrappers-CRITICAL: Test assertion failure
> function gem_execbuf, file ioctl_wrappers.c:589:
> (gem_ctx_thrash:2270) ioctl-wrappers-CRITICAL: Failed assertion:
> __gem_execbuf(fd, execbuf) == 0
> (gem_ctx_thrash:2270) ioctl-wrappers-CRITICAL: error: -5 != 0
> Stack trace:
>   #0 [__igt_fail_assert+0x101]
>   #1 [gem_execbuf+0x44]
>   #2 [single+0x41e]
>   #3 [__real_main357+0x22b]
>   #4 [main+0x23]
>   #5 [__libc_start_main+0xf0]
>   #6 [_start+0x29]
>   #7 [<unknown>+0x29]
> Subtest single failed.
> **** DEBUG ****
> (gem_ctx_thrash:2270) drmtest-DEBUG: Test requirement passed: fd >= 0
> (gem_ctx_thrash:2270) drmtest-DEBUG: Test requirement passed: fd >= 0
> (gem_ctx_thrash:2270) drmtest-DEBUG: Test requirement passed:
> drmSetMaster(fd) == 0
> (gem_ctx_thrash:2270) INFO: Creating 98304 contexts (assuming of size 65536)
> (gem_ctx_thrash:2270) intel-os-DEBUG: Checking 98,304 surfaces of size
> 65,536 bytes (total 6,492,782,592) against RAM + swap
> (gem_ctx_thrash:2270) intel-os-DEBUG: Test requirement passed:
> __intel_check_memory(count, size, mode, &required, &total)
> (gem_ctx_thrash:2270) igt-core-DEBUG: Test requirement passed:
> !igt_run_in_simulation()
> (gem_ctx_thrash:2270) ioctl-wrappers-DEBUG: Test requirement passed:
> __gem_set_caching(fd, handle, caching) == 0
> (gem_ctx_thrash:2270) ioctl-wrappers-CRITICAL: Test assertion failure
> function gem_execbuf, file ioctl_wrappers.c:589:
> (gem_ctx_thrash:2270) ioctl-wrappers-CRITICAL: Failed assertion:
> __gem_execbuf(fd, execbuf) == 0
> (gem_ctx_thrash:2270) ioctl-wrappers-CRITICAL: error: -5 != 0
> ****  END  ****
> Subtest single: FAIL (7.037s)
> (gem_ctx_thrash:2270) igt-core-DEBUG: Exiting with status code 99
> 
> 
> relevant dmesg messages
> ==============================================================
> systemd-journald[274]: /dev/kmsg buffer overrun, some messages lost
> 
> 
> this fail could be related to the bug :
> https://bugs.freedesktop.org/show_bug.cgi?id=94145

No. this is a severe failure. The GPU was wedged.
Comment 3 Humberto Israel Perez Rodriguez 2016-06-03 21:28:50 UTC
The issue is present with the following configuration :


Tests cases
===============================================
igt@gem_ctx_thrash@single


Gfx stack information
===============================================
--> Component : drm 
	 tag : libdrm-2.4.68 
	 commit : fc09c5a 
--> Component : cairo 
	 tag : 1.15.2 
	 commit : db8a7f1 
--> Component : intel-gpu-tools 
	 tag : intel-gpu-tools-1.14-348-g303b380 
	 commit : 303b380 
 
Software information
===============================================
Kernel version                      : 4.6.0-drm-intel-nightly-ww23-commit-fb023a2+
Linux distribution                  : Ubuntu 16.04
Architecture                        : 64-bit
Bios revision                       : 138.25
KSC revision                        : 1.12
DMC revision                        : 1.07

Hardware information
===============================================
Platform                            : BXT-P
Motherboard model                   : Broxton P
Motherboard type                    : NOTEBOOK Hand Held
Motherboard manufacturer            : Intel Corp.
CPU family                          : B1
CPU information                     : 06/5c
GPU Card                            : Intel Corporation Device 5a84 (rev 0a) (prog-if 00 [VGA controller])

kernel
===============================================
commit fb023a2062df06c9e097e1f8f2bcf252194b9413
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Mon May 30 10:46:14 2016 +0200

    drm-intel-nightly: 2016y-05m-30d-08h-45m-53s UTC integration manifest
Comment 4 maria guadalupe 2016-06-06 16:42:56 UTC
This bug was also reproduced on KBL under the following configuration

Software information
============================================
Kernel version                  : 4.6.0-drm-intel-nightly-ww23-commit-fb023a2+
Linux distribution              : Ubuntu 16.04 LTS
Architecture                    : 64-bit
Mesa version                    : Not found << Please see the message at the bottom >>
xf86-video-intel version        : 2.99.917
Xorg-Xserver version            : 1.18.3
DRM version                     : 2.4.68
VAAPI version                   : Intel i965 driver for Intel(R) Kabylake - 1.7.0
Cairo version                   : 1.15.2
Intel GPU Tools version         : Tag [intel-gpu-tools-1.14-348-g303b380] / Commit [303b380]
Kernel driver in use            : i915
Hardware acceleration           :
Bios revision                   : 28.1
KSC revision                    : 1.15


 Hardware information
============================================
Platform                        : SKL-Y to KBL (RVP3)
Motherboard model               : Kabylake Client platform
Motherboard type                : Skylake Y LPDDR3 RVP3 Laptop
Motherboard manufacturer        : Intel Corporation
CPU family                      : Other
CPU information                 : Genuine Intel(R) CPU 0000 @ 0.90GHz
GPU Card                        : Intel Corporation Device 591e (prog-if 00 [VGA controller])
Memory ram                      : 4 GB
Maximum memory ram allowed      : 16 GB
Display resolution              :
CPU's number                    : 4
Hard drive Capacity             : 120 GB

 Firmwares information
============================================
DMC fw loaded                   : yes
DMC version                     : 1.1

kernel configuration
=====================
commit fb023a2062df06c9e097e1f8f2bcf252194b9413
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Mon May 30 10:46:14 2016 +0200

drm-intel-nightly: 2016y-05m-30d-08h-45m-53s UTC integration manifest


Kernel version : 4.6.0

========== test cases failed ===============

igt@gem_ctx_thrash@single
Comment 5 cprigent 2016-07-05 13:05:44 UTC
Test is skip on APL.
I remove it from summary and 1915 platform field
Comment 6 Jairo Miramontes 2017-02-20 22:23:46 UTC
This bug appeared again on BXT on the below configuration, still timing out, adding BXT back as a platform.

========== 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 7 maria guadalupe 2017-04-17 18:28:54 UTC
The issue is present over GLK with the following configuration :

test : igt@gem_ctx_thrash@single

 Software
======================================
kernel version              : 4.11.0-rc6-drm-tip-ww16-commit-6184edc+
architecture                : x86_64
os version                  : Ubuntu 16.10
os codename                 : yakkety
kernel driver               : i915
bios revision               : 41.51
bios release date           : 03/31/2017
ksc                         : 1.25

======================================
        Graphic drivers
======================================
xorg-xserver                : 1.18.4
libdrm                      : 2.4.79
cairo                       : 1.15.5
xserver                     : X.Org X Server 1.18.4
intel-gpu-tools (tag)       : intel-gpu-tools-1.18-73-gd8b83aa
intel-gpu-tools (commit)    : d8b83aa

======================================
             Hardware
======================================
platform                  : Geminilake
motherboard id             : GLKRVP1DDR4(05)
cpu family id              : 6
cpu information            : Genuine Intel(R) CPU @ 1.10GHz
gpu card                   : Intel Corporation Device 3184 (rev 01) (prog-if 00 [VGA controller])
memory ram                 : 7.64 GB
max memory ram             : 16 GB
cpu thread                 : 4
cpu core                   : 4
cpu model                  : 122
hard drive                 : 223GiB (240GB)
current cd clock frequency : 316800 kHz
maximum cd clock frequency : 316800 kHz

======================================
             Firmware
======================================
dmc fw loaded             : yes
dmc version               : 1.4
Comment 8 Humberto Israel Perez Rodriguez 2017-06-28 21:30:57 UTC
The following test is killed itself after some seconds of execution

testcase
=======================
igt@gem_ctx_thrash@single


test output
=======================

IGT-Version: 1.19-g9918014 (x86_64) (Linux: 4.12.0-rc7-drm-tip-ww26-commit-85a692e+ x86_64)
(gem_ctx_thrash:1486) igt-core-DEBUG: Test requirement passed: !igt_run_in_simulation()
(gem_ctx_thrash:1486) igt-core-DEBUG: Starting subtest: single
(gem_ctx_thrash:1486) drmtest-DEBUG: Test requirement passed: !(fd<0)
(gem_ctx_thrash:1486) igt-debugfs-DEBUG: Opening debugfs directory '/sys/kernel/debug/dri/0'
(gem_ctx_thrash:1486) drmtest-DEBUG: Test requirement passed: drmSetMaster(fd) == 0
(gem_ctx_thrash:1486) drmtest-DEBUG: Test requirement passed: is_i915_device(fd) && has_known_intel_chipset(fd)
(gem_ctx_thrash:1486) ioctl-wrappers-DEBUG: Test requirement passed: err == 0
(gem_ctx_thrash:1486) DEBUG: Test requirement passed: gem_can_store_dword(fd, 0)
Creating 60228 contexts (assuming of size 106496 with execlists)
(gem_ctx_thrash:1486) intel-os-DEBUG: Checking 60,228 surfaces of size 106,496 bytes (total 6,444,879,872) against RAM + swap
(gem_ctx_thrash:1486) drmtest-DEBUG: Test requirement passed: !(fd<0)
(gem_ctx_thrash:1486) igt-debugfs-DEBUG: Opening debugfs directory '/sys/kernel/debug/dri/0'
(gem_ctx_thrash:1486) intel-os-DEBUG: Test requirement passed: __intel_check_memory(count, size, mode, &required, &total)
(gem_ctx_thrash:1486) igt-core-DEBUG: Test requirement passed: !igt_run_in_simulation()
(gem_ctx_thrash:1486) ioctl-wrappers-DEBUG: Test requirement passed: __gem_set_caching(fd, handle, caching) == 0
Killed

real    0m34.652s
user    0m0.080s
sys     0m29.880s


configuration used
==============================

======================================
        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 9 Elizabeth 2017-07-27 17:01:25 UTC
Adding tag into "Whiteboard" field - ReadyForDev
*Status is correct
*Platform is included
*Feature is included
*Priority and Severity correctly set
*Logs included
Comment 10 Elizabeth 2017-08-02 22:18:21 UTC

*** This bug has been marked as a duplicate of bug 87575 ***


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.