Bug 94542 - [KBL/BSW/BDW] igt / gem_evict_everything / mlocked cases fail
Summary: [KBL/BSW/BDW] igt / gem_evict_everything / mlocked cases fail
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: high normal
Assignee: Marius Vlad
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-14 19:00 UTC by cprigent
Modified: 2016-05-18 13:43 UTC (History)
1 user (show)

See Also:
i915 platform: BDW, BSW/CHT, KBL
i915 features: GEM/Other, GPU hang


Attachments
dmesg (163.98 KB, text/plain)
2016-03-14 19:00 UTC, cprigent
no flags Details
/sys/class/drm/card0/error (374.73 KB, text/plain)
2016-03-14 19:02 UTC, cprigent
no flags Details
dmesg-gem_evict_everything-mlocked-interruptible (127.99 KB, text/plain)
2016-03-14 19:13 UTC, cprigent
no flags Details
dmesg-gem_evict_everything-mlocked-normal (128.27 KB, text/plain)
2016-03-14 19:13 UTC, cprigent
no flags Details
bsw-nightly-gem_evict_everything-outputs (3.71 KB, text/plain)
2016-03-25 12:08 UTC, cprigent
no flags Details
bsw-nightly_gem_evict_everything_mlocked-hang_kern.log (182.96 KB, text/plain)
2016-03-25 12:08 UTC, cprigent
no flags Details
bsw-nightly_gem_evict_everything_mlocked-interruptible_kern.log (172.32 KB, text/plain)
2016-03-25 12:09 UTC, cprigent
no flags Details
bsw-nightly_gem_evict_everything_mlocked-normal_kern.log (173.47 KB, text/plain)
2016-03-25 12:09 UTC, cprigent
no flags Details

Description cprigent 2016-03-14 19:00:39 UTC
Created attachment 122286 [details]
dmesg

Hardware: 
Motherboard: Aspire XC-704 
cpu model name : Intel(R) Pentium(R) CPU N3700 @ 1.60GHz 
cpu model : 76 
cpu family : 6 
Graphic card: Device 22b1 (rev 21)

Software:
Bios: R01-A2
Kernel mainline 4.4.0 from https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
  commit afd2ff9b7e1b367172f18ba7f693dfb62bdcb2dc
  Author: Linus Torvalds <torvalds@linux-foundation.org>
  Date:   Sun Jan 10 15:01:32 2016 -0800
  Linux 4.4
drm: libdrm-2.4.67-5 ea07de9 from git://anongit.freedesktop.org/mesa/drm
mesa: tag mesa-11.1.2 7bcd827 from git://anongit.freedesktop.org/mesa/mesa
cairo: tag 1.15.2 db8a7f1 from git://anongit.freedesktop.org/cairo
waffle: master bb29b2a from git://github.com/waffle-gl/waffle
xorg-server-macros: tag: util-macros-1.19.0-2 d7acec2 from git://git.freedesktop.org/git/xorg/util/macros
xserver: tag: xorg-server-1.18.1 23e60f9 from git://git.freedesktop.org/git/xorg/xserver
xf86-video-intel: tag 2.99.917-560 d167280 from git://anongit.freedesktop.org/xorg/driver/xf86-video-intel
libva: tag libva-1.7.0.pre1 35f1447 from git://git.freedesktop.org/git/vaapi/libva
vaapi-intel-driver: tag 1.7.0.pre1 ab8e4e3 from git://anongit.freedesktop.org/vaapi/intel-driver

IGT 1.14 364d378 from http://anongit.freedesktop.org/git/xorg/app/intel-gpu-tools.git

One external screen connected to HDMI

Steps:
-------
1. Execute IGT test:
# ./gem_evict_everything --run-subtest mlocked-hang

Actual result:
---------------
1. Test is Fail, output:
IGT-Version: 1.14-NOT-GIT (x86_64) (Linux: 4.4.0-nightly x86_64)
child 0 died with signal 9, Killed
Subtest mlocked-hang failed.
**** DEBUG ****
(gem_evict_everything:1818) intel-os-DEBUG: Checking 1,536 surfaces of size 1,048,576 bytes (total 1,611,399,168) against RAM
(gem_evict_everything:1818) intel-os-DEBUG: Test requirement passed: !(!__intel_check_memory(count, size, mode, &required, &total))
(gem_evict_everything:1818) igt-core-DEBUG: Test requirement passed: !igt_run_in_simulation()
(gem_evict_everything:1818) DEBUG: Test requirement passed: pin > sz
(gem_evict_everything:1818) DEBUG: Pinning [2,211, 3,747] MiB
(gem_evict_everything:1818) DEBUG: Test requirement passed: locked
****  END  ****
Subtest mlocked-hang: FAIL (18.839s)

Expected result:
-----------------
1. Test is Pass
Comment 1 cprigent 2016-03-14 19:02:08 UTC
Created attachment 122287 [details]
/sys/class/drm/card0/error
Comment 2 cprigent 2016-03-14 19:13:18 UTC
Created attachment 122288 [details]
dmesg-gem_evict_everything-mlocked-interruptible

# ./gem_evict_everything --run-subtest mlocked-interruptible
IGT-Version: 1.14-NOT-GIT (x86_64) (Linux: 4.4.0-nightly x86_64)
child 0 died with signal 9, Killed
Subtest mlocked-interruptible failed.
**** DEBUG ****
(gem_evict_everything:1706) intel-os-DEBUG: Checking 1,536 surfaces of size 1,048,576 bytes (total 1,611,399,168) against RAM
(gem_evict_everything:1706) intel-os-DEBUG: Test requirement passed: !(!__intel_check_memory(count, size, mode, &required, &total))
(gem_evict_everything:1706) igt-core-DEBUG: Test requirement passed: !igt_run_in_simulation()
(gem_evict_everything:1706) DEBUG: Test requirement passed: pin > sz
(gem_evict_everything:1706) DEBUG: Pinning [2,209, 3,745] MiB
(gem_evict_everything:1706) DEBUG: Test requirement passed: locked
****  END  ****
Subtest mlocked-interruptible: FAIL (19.071s)

# ./gem_evict_everything --run-subtest mlocked-normal
IGT-Version: 1.14-NOT-GIT (x86_64) (Linux: 4.4.0-nightly x86_64)
child 0 died with signal 9, Killed
Subtest mlocked-normal failed.
**** DEBUG ****
(gem_evict_everything:1598) intel-os-DEBUG: Checking 1,536 surfaces of size 1,048,576 bytes (total 1,611,399,168) against RAM
(gem_evict_everything:1598) intel-os-DEBUG: Test requirement passed: !(!__intel_check_memory(count, size, mode, &required, &total))
(gem_evict_everything:1598) igt-core-DEBUG: Test requirement passed: !igt_run_in_simulation()
(gem_evict_everything:1598) DEBUG: Test requirement passed: pin > sz
(gem_evict_everything:1598) DEBUG: Pinning [2,213, 3,749] MiB
(gem_evict_everything:1598) DEBUG: Test requirement passed: locked
****  END  ****
Subtest mlocked-normal: FAIL (12.124s)
Comment 3 cprigent 2016-03-14 19:13:39 UTC
Created attachment 122289 [details]
dmesg-gem_evict_everything-mlocked-normal
Comment 4 Elio 2016-03-16 16:53:49 UTC
This test is affecting the following sub test on BDW:
		
igt@gem_evict_everything@mlocked-hang		 igt@gem_evict_everything@mlocked-interruptible		
igt@gem_evict_everything@mlocked-normal		

Configuration:

--- 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 5 Luis Botello 2016-03-23 21:14:06 UTC
This issue also happens on KBL with the following configuration


Test cases
===============
gem_evict_everything@major-normal
gem_evict_everything@major-interruptible
gem_evict_everything@major-hang


Hardware configuration
=======================
Platform	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

Software configuration
=======================
 --> Component : drm 
	 url : http://cgit.freedesktop.org/mesa/drm 
	 tag : libdrm-2.4.67-5-gea07de9 
	 commit : ea07de9 
	 author : Rodrigo Vivi <rodrigo.vivi@intel.com> 
	 age : 13 days 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 : 5 weeks ago 
 --> Component : xf86-video-intel 
	 url : http://cgit.freedesktop.org/xorg/driver/xf86-video-intel 
	 tag : 2.99.917-560-gd167280 
	 commit : d167280 
	 author : Chris Wilson <chris@chris-wilson.co.uk> 
	 age : 3 weeks ago 
 --> Component : libva 
	 url : http://cgit.freedesktop.org/libva/ 
	 tag : libva-1.7.0.pre1 
	 commit : 35f1447 
	 author : Xiang Haihao <haihao.xiang@intel.com> 
	 age : 11 days ago 
 --> Component : vaapi (intel-driver) 
	 url : http://cgit.freedesktop.org/vaapi/intel-driver 
	 tag : 1.7.0.pre1 
	 commit : ab8e4e3 
	 author : Xiang Haihao <haihao.xiang@intel.com> 
	 age : 11 days ago 
 --> Component : cairo 
	 url : http://cgit.freedesktop.org/cairo 
	 tag : 1.15.2 
	 commit : db8a7f1 
	 author : Bryce Harrington <bryce@osg.samsung.com> 
	 age : 3 months ago 
 --> Component : xserver 
	 url :  http://cgit.freedesktop.org/xorg/xserver 
	 tag : xorg-server-1.18.1 
	 commit : 23e60f9 
	 author : Adam Jackson <ajax@redhat.com> 
	 age : 5 weeks ago 
 --> Component : intel-gpu-tools 
	 url : http://cgit.freedesktop.org/xorg/app/intel-gpu-tools 
	 tag : intel-gpu-tools-1.14-23-g364d378 
	 commit : 364d378 
	 author : Paulo Zanoni <paulo.r.zanoni@intel.com> 
	 age : 10 days ago 


kernel configuration
=====================
Branch : drm-intel-testing
commit a27657a39741599ce9feef1ef39ae6654e9e6768
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Mon Feb 29 09:42:22 2016 +0100

    drm-intel-nightly: 2016y-02m-29d-08h-41m-12s UTC integration manifest
Kernel version : 4.5.0-rc5
Architecture : source amd64 all
Comment 6 cprigent 2016-03-25 12:08:35 UTC
Created attachment 122532 [details]
bsw-nightly-gem_evict_everything-outputs

Tested on the same BSW with kernel from nightly
kenrel nightly 4.5 10e913a  from https://cgit.freedesktop.org/cgit/?url=drm-intel/
  commit 10e913a48ca36790da9b58bed8729598ea79ebdb
  Author: Imre Deak <imre.deak@intel.com>
  Date:   Thu Mar 17 15:23:17 2016 +0200
  drm-intel-nightly: 2016y-03m-17d-13h-22m-41s UTC integration manifest
cairo 1.15.2 db8a7f1 from git://anongit.freedesktop.org/cairo
libdrm-2.4.67-7 49041c3 from git://anongit.freedesktop.org/mesa/drm
IGT 1.14 8f6ed9e from http://anongit.freedesktop.org/git/xorg/app/intel-gpu-tools.git

mlocked-hang is fail and is causing mlocked-interruptible + mlocked-normal to be killed.
When rebooting between execution of each sub-tests, they are all fail. Logs attached.
Comment 7 cprigent 2016-03-25 12:08:59 UTC
Created attachment 122533 [details]
bsw-nightly_gem_evict_everything_mlocked-hang_kern.log
Comment 8 cprigent 2016-03-25 12:09:15 UTC
Created attachment 122534 [details]
bsw-nightly_gem_evict_everything_mlocked-interruptible_kern.log
Comment 9 cprigent 2016-03-25 12:09:34 UTC
Created attachment 122535 [details]
bsw-nightly_gem_evict_everything_mlocked-normal_kern.log
Comment 10 Chris Wilson 2016-03-25 12:19:24 UTC
This type of out-of-memory failure should be fixed by https://patchwork.freedesktop.org/patch/78218/
Comment 11 yann 2016-04-25 15:02:21 UTC
QA, please re-test using patch pointed out by Chris
Comment 12 yann 2016-04-29 12:14:24 UTC
Increasing priority due to current platform experience impact
Comment 13 Humberto Israel Perez Rodriguez 2016-05-18 02:22:33 UTC
The following tests cases fail under the following configuration on BXT-P

tests cases
================================================================
igt@gem_evict_everything@major-hang
igt@gem_evict_everything@major-normal
igt@gem_evict_everything@major-interruptible


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


gfx user space
================================================================
 --> Component : drm 
	 url : http://cgit.freedesktop.org/mesa/drm 
	 tag : libdrm-2.4.68 
	 commit : fc09c5a 
	 author : Kenneth Graunke <kenneth@whitecape.org> 
	 age : 2 weeks 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 : 3 months ago 
 --> Component : xf86-video-intel 
	 url : http://cgit.freedesktop.org/xorg/driver/xf86-video-intel 
	 tag : 2.99.917-645-g88733a7 
	 commit : 88733a7 
	 author : Chris Wilson <chris@chris-wilson.co.uk> 
	 age : 7 days ago 
 --> Component : libva 
	 url : http://cgit.freedesktop.org/libva/ 
	 tag : libva-1.7.0-2-g4cb6d78 
	 commit : 4cb6d78 
	 author : Alan Coopersmith <alan.coopersmith@oracle.com> 
	 age : 5 weeks ago 
 --> Component : vaapi (intel-driver) 
	 url : http://cgit.freedesktop.org/vaapi/intel-driver 
	 tag : 1.7.0-12-g4643f94 
	 commit : 4643f94 
	 author : peng.chen <peng.c.chen@intel.com> 
	 age : 3 weeks ago 
 --> Component : cairo 
	 url : http://cgit.freedesktop.org/cairo 
	 tag : 1.15.2 
	 commit : db8a7f1 
	 author : Bryce Harrington <bryce@osg.samsung.com> 
	 age : 5 months ago 
 --> Component : xserver 
	 url :  http://cgit.freedesktop.org/xorg/xserver 
	 tag : xorg-server-1.18.0-317-g7f04946 
	 commit : 7f04946 
	 author : Dave Airlie <airlied@redhat.com> 
	 age : 9 days ago 
 --> Component : intel-gpu-tools 
	 url : http://cgit.freedesktop.org/xorg/app/intel-gpu-tools 
	 tag : intel-gpu-tools-1.14-212-g1e9a3ac 
	 commit : 1e9a3ac 
	 author : Chris Wilson <chris@chris-wilson.co.uk> 
	 age : 3 weeks ago 


kernel
====================================================================
commit 447f2438e5ee3e9bb7d5cbe88fc44cdff74cc165
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Sun May 8 18:21:27 2016 +0200

    drm-intel-nightly: 2016y-05m-08d-16h-21m-00s UTC integration manifest


Kernel version : 4.6.0-rc6
Architecture : source amd64 all
Homepage : http://www.kernel.org/
Comment 14 cprigent 2016-05-18 10:50:39 UTC
This bug is about mlocked- subcases and a memory pre-condition not met (not major- subcases).

I confirm the tests are now skipped.

Platform: Broxton P A0 Platform 
CPU Name : Intel(R) @ 1.2 GHz (family: 6, model: 92, stepping: 8) – 4 cores
SoC : BROXTON-P A0
QDF : QYE2
CRB : Apollo Lake RVPC1 Fab1
Software 
Bios: APLKRVPA.X64.0116.R20.1512211905
KSC: 1.05
Linux distribution: Ubuntu 15.10 64 bits
Kernel: drm-intel-nightly 4.6.0 d381724 from http://cgit.freedesktop.org/drm-intel/
	commit d3817246ca053dd3e7ea8017db4a74707f8195a2
	Author: Jani Nikula <jani.nikula@intel.com>
	Date:   Mon May 16 15:14:24 2016 +0300
	drm-intel-nightly: 2016y-05m-16d-12h-14m-04s UTC integration manifest
drm: libdrm-2.4.68 7aab852 from git://anongit.freedesktop.org/mesa/drm
mesa: mesa-11.1.2 7bcd827 from git://anongit.freedesktop.org/mesa/mesa
cairo: 1.15.2 db8a7f1 from git://anongit.freedesktop.org/cairo
DMC 1.07
intel-gpu-tools 1.14 b88bce4 from http://anongit.freedesktop.org/git/xorg/app/intel-gpu-tools.git

Let's check on the other platforms before closing it.


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.