Bug 94146 - [KBL APL] gem_evict_everything major-interruptible/ major-normal / major-hang fail
Summary: [KBL APL] gem_evict_everything major-interruptible/ major-normal / major-hang...
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Intel GFX Bugs mailing list
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-14 12:17 UTC by cprigent
Modified: 2017-07-24 22:43 UTC (History)
1 user (show)

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


Attachments
kern.log (324.50 KB, text/plain)
2016-02-14 12:17 UTC, cprigent
no flags Details
dmesg (179.61 KB, text/plain)
2016-04-07 12:13 UTC, Rami
no flags Details

Description cprigent 2016-02-14 12:17:30 UTC
Created attachment 121744 [details]
kern.log

Hardware
Platform: KABY LAKE-U
CPU : Intel(R) Core(TM) @ 2.60GHz
MCP : KBL-U G0 2+2 (ou ULT-G0)
QDF : QYQ8
Chipset PCH: SPT-LP C1
CRB : KABY LAKE U DDR3L RVP7 CRB FAB1
Software
BIOS : KBLSE2R1.R00.X015.B01.1511271314
ME FW : 11.5.0.1008
Ksc (EC FW): 1.20
Linux distribution: Ubuntu 15.10 64 bits
Kernel: drm-intel-nightly 4.5.0-rc3_d9bd337 from
http://cgit.freedesktop.org/drm-intel/
commit d9bd337b4b2d46f73005fcdf0e7049e7f8ed5c04
Author: Jani Nikula <jani.nikula@intel.com>
Date: Tue Feb 9 17:43:10 2016 +0200
drm-intel-nightly: 2016y-02m-09d-15h-42m-46s UTC integration manifest
drm: tag libdrm-2.4.66-33-gf884af9
intel-gpu-tool: intel-gpu-tools-1.13-195-g8d441ee

Steps:
-----
1. Execute commands:
cd <...>/intel-gpu-tools/tests
./gem_evict_everything --run-subtest major-interruptible
./gem_evict_everything --run-subtest major-normal

Actual result:
--------------
1. Tests are fail
Commands return:
root@KBLU1:/usr/local/src/intel-gpu-tools/tests# ./gem_evict_everything --run-subtest major-interruptible
IGT-Version: 1.13-NOT-GIT (x86_64) (Linux: 4.5.0-rc3-nightly+ x86_64)
(gem_evict_everything:1299) ioctl-wrappers-CRITICAL: Test assertion failure function gem_create, file ioctl_wrappers.c:501:
(gem_evict_everything:1299) ioctl-wrappers-CRITICAL: Failed assertion: drmIoctl((fd), ((((2U|1U) << (((0+8)+8)+14)) | ((('d')) << (0+8)) | (((0x40 + 0x1b)) << 0) | ((((sizeof(struct drm_i915_gem_create)))) << ((0+8)+8)))), (&create)) == 0
(gem_evict_everything:1299) ioctl-wrappers-CRITICAL: Last errno: 22, Invalid argument
(gem_evict_everything:1299) ioctl-wrappers-CRITICAL: error: -1 != 0
Stack trace:
  #0 [__igt_fail_assert+0xf1]
  #1 [gem_create+0x77]
  #2 [major_evictions.constprop.3+0x4c]
  #3 [__real_main183+0x41f]
  #4 [main+0x29]
  #5 [__libc_start_main+0xf0]
  #6 [_start+0x29]
  #7 [<unknown>+0x29]
Subtest major-interruptible failed.
**** DEBUG ****
(gem_evict_everything:1299) intel-os-DEBUG: Checking 4 surfaces of size 0 bytes (total 4,096) against RAM
(gem_evict_everything:1299) intel-os-DEBUG: Test requirement passed: !(!__intel_check_memory(count, size, mode, &required, &total))
(gem_evict_everything:1299) igt-core-DEBUG: Test requirement passed: !igt_run_in_simulation()
(gem_evict_everything:1299) ioctl-wrappers-CRITICAL: Test assertion failure function gem_create, file ioctl_wrappers.c:501:
(gem_evict_everything:1299) ioctl-wrappers-CRITICAL: Failed assertion: drmIoctl((fd), ((((2U|1U) << (((0+8)+8)+14)) | ((('d')) << (0+8)) | (((0x40 + 0x1b)) << 0) | ((((sizeof(struct drm_i915_gem_create)))) << ((0+8)+8)))), (&create)) == 0
(gem_evict_everything:1299) ioctl-wrappers-CRITICAL: Last errno: 22, Invalid argument
(gem_evict_everything:1299) ioctl-wrappers-CRITICAL: error: -1 != 0
****  END  ****
Subtest major-interruptible: FAIL (0.049s)
root@KBLU1:/usr/local/src/intel-gpu-tools/tests#
root@KBLU1:/usr/local/src/intel-gpu-tools/tests#
root@KBLU1:/usr/local/src/intel-gpu-tools/tests#
root@KBLU1:/usr/local/src/intel-gpu-tools/tests#
root@KBLU1:/usr/local/src/intel-gpu-tools/tests# ./gem_evict_everything --run-subtest major-normal
IGT-Version: 1.13-NOT-GIT (x86_64) (Linux: 4.5.0-rc3-nightly+ x86_64)
(gem_evict_everything:1391) ioctl-wrappers-CRITICAL: Test assertion failure function gem_create, file ioctl_wrappers.c:501:
(gem_evict_everything:1391) ioctl-wrappers-CRITICAL: Failed assertion: drmIoctl((fd), ((((2U|1U) << (((0+8)+8)+14)) | ((('d')) << (0+8)) | (((0x40 + 0x1b)) << 0) | ((((sizeof(struct drm_i915_gem_create)))) << ((0+8)+8)))), (&create)) == 0
(gem_evict_everything:1391) ioctl-wrappers-CRITICAL: Last errno: 22, Invalid argument
(gem_evict_everything:1391) ioctl-wrappers-CRITICAL: error: -1 != 0
Stack trace:
  #0 [__igt_fail_assert+0xf1]
  #1 [gem_create+0x77]
  #2 [major_evictions.constprop.3+0x4c]
  #3 [__real_main183+0x27f]
  #4 [main+0x29]
  #5 [__libc_start_main+0xf0]
  #6 [_start+0x29]
  #7 [<unknown>+0x29]
Subtest major-normal failed.
**** DEBUG ****
(gem_evict_everything:1391) intel-os-DEBUG: Checking 4 surfaces of size 0 bytes (total 4,096) against RAM
(gem_evict_everything:1391) intel-os-DEBUG: Test requirement passed: !(!__intel_check_memory(count, size, mode, &required, &total))
(gem_evict_everything:1391) igt-core-DEBUG: Test requirement passed: !igt_run_in_simulation()
(gem_evict_everything:1391) ioctl-wrappers-CRITICAL: Test assertion failure function gem_create, file ioctl_wrappers.c:501:
(gem_evict_everything:1391) ioctl-wrappers-CRITICAL: Failed assertion: drmIoctl((fd), ((((2U|1U) << (((0+8)+8)+14)) | ((('d')) << (0+8)) | (((0x40 + 0x1b)) << 0) | ((((sizeof(struct drm_i915_gem_create)))) << ((0+8)+8)))), (&create)) == 0
(gem_evict_everything:1391) ioctl-wrappers-CRITICAL: Last errno: 22, Invalid argument
(gem_evict_everything:1391) ioctl-wrappers-CRITICAL: error: -1 != 0
****  END  ****
Subtest major-normal: FAIL (0.033s)

Expected result:
----------------
1. Test are Pass or Skip
Comment 1 Rami 2016-04-07 12:13:51 UTC
Created attachment 122787 [details]
dmesg

This bug is reproduced on BXT whith last setup:
Setup:
======
Platform: Broxton P A0 Platform
CPU Name : Intel(R) @ 1.2 GHz (family: 6, model: 92, stepping: 8) – 4 cores
SoC : BROXTON-P A0
CRB : Apollo Lake LPDDR3 RVP2B
Reworks : R17, R18, PNP3

Software:
=========
BIOS (IFWI Version): APLK_IFWI_X64_R_2015_44_3_00
KSC : 1.08
Linux distribution: Ubuntu 15.10 64 bits
Kernel drm-intel-nightly 4.6.0-rc2 aedfaae from http://cgit.freedesktop.org/drm-intel/
commit aedfaaef290af9c8df7d9f4adf22cbe21704d091
Author: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Date:   Mon Apr 4 14:10:49 2016 +0100
libdrm-2.4.67-11 ea78c17 from git://anongit.freedesktop.org/mesa/drm
mesa-11.1.2 7bcd827 from git://anongit.freedesktop.org/mesa/mesa
cairo 1.15.2 db8a7f1 from git://anongit.freedesktop.org/cairo
xserver: xorg-server-1.18.0-254 44e1c97 from git://git.freedesktop.org/git/xorg/xserver
xf86-video-intel: 2.99.917-590-g094924f from git://anongit.freedesktop.org/xorg/driver/xf86-video-intel
libva-1.7.0-1 2339d10 from git://git.freedesktop.org/git/vaapi/libva
vaapi-intel-driver 1.7.0-5 759e44d from git://anongit.freedesktop.org/vaapi/intel-driver
DMC 1.06 from https://01.org/linuxgraphics/downloads/broxton-dmc-1.06
intel-gpu-tools-1.14 … from http://anongit.freedesktop.org/git/xorg/app/intel-gpu-tools.git
Actual result:
==============
./gem_evict_everything --run-subtest major-interruptible
IGT-Version: 1.14-NOT-GIT (x86_64) (Linux: 4.6.0-rc2-nightly+ x86_64)
(gem_evict_everything:1328) ioctl-wrappers-CRITICAL: Test assertion failure function gem_create, file ioctl_wrappers.c:535:
(gem_evict_everything:1328) ioctl-wrappers-CRITICAL: Failed assertion: igt_ioctl((fd), ((((2U|1U) << (((0+8)+8)+14)) | ((('d')) << (0+8)) | (((0x40 + 0x1b)) << 0) | ((((sizeof(struct drm_i915_gem_create)))) << ((0+8)+8)))), (&create)) == 0
(gem_evict_everything:1328) ioctl-wrappers-CRITICAL: Last errno: 22, Invalid argument
(gem_evict_everything:1328) ioctl-wrappers-CRITICAL: error: -1 != 0
Stack trace:
  #0 [__igt_fail_assert+0xf1]
  #1 [gem_create+0x7b]
  #2 [major_evictions.constprop.3+0x4c]
  #3 [__real_main183+0x41f]
  #4 [main+0x29]
  #5 [__libc_start_main+0xf0]
  #6 [_start+0x29]
  #7 [<unknown>+0x29]
Subtest major-interruptible failed.
**** DEBUG ****
(gem_evict_everything:1328) intel-os-DEBUG: Checking 4 surfaces of size 0 bytes (total 4,096) against RAM
(gem_evict_everything:1328) intel-os-DEBUG: Test requirement passed: __intel_check_memory(count, size, mode, &required, &total)
(gem_evict_everything:1328) igt-core-DEBUG: Test requirement passed: !igt_run_in_simulation()
(gem_evict_everything:1328) ioctl-wrappers-CRITICAL: Test assertion failure function gem_create, file ioctl_wrappers.c:535:
(gem_evict_everything:1328) ioctl-wrappers-CRITICAL: Failed assertion: igt_ioctl((fd), ((((2U|1U) << (((0+8)+8)+14)) | ((('d')) << (0+8)) | (((0x40 + 0x1b)) << 0) | ((((sizeof(struct drm_i915_gem_create)))) << ((0+8)+8)))), (&create)) == 0
(gem_evict_everything:1328) ioctl-wrappers-CRITICAL: Last errno: 22, Invalid argument
(gem_evict_everything:1328) ioctl-wrappers-CRITICAL: error: -1 != 0
****  END  ****
Subtest major-interruptible: FAIL (0.002s)


./gem_evict_everything --run-subtest major-normal
IGT-Version: 1.14-NOT-GIT (x86_64) (Linux: 4.6.0-rc2-nightly+ x86_64)
(gem_evict_everything:1332) ioctl-wrappers-CRITICAL: Test assertion failure function gem_create, file ioctl_wrappers.c:535:
(gem_evict_everything:1332) ioctl-wrappers-CRITICAL: Failed assertion: igt_ioctl((fd), ((((2U|1U) << (((0+8)+8)+14)) | ((('d')) << (0+8)) | (((0x40 + 0x1b)) << 0) | ((((sizeof(struct drm_i915_gem_create)))) << ((0+8)+8)))), (&create)) == 0
(gem_evict_everything:1332) ioctl-wrappers-CRITICAL: Last errno: 22, Invalid argument
(gem_evict_everything:1332) ioctl-wrappers-CRITICAL: error: -1 != 0
Stack trace:
  #0 [__igt_fail_assert+0xf1]
  #1 [gem_create+0x7b]
  #2 [major_evictions.constprop.3+0x4c]
  #3 [__real_main183+0x27f]
  #4 [main+0x29]
  #5 [__libc_start_main+0xf0]
  #6 [_start+0x29]
  #7 [<unknown>+0x29]
Subtest major-normal failed.
**** DEBUG ****
(gem_evict_everything:1332) intel-os-DEBUG: Checking 4 surfaces of size 0 bytes (total 4,096) against RAM
(gem_evict_everything:1332) intel-os-DEBUG: Test requirement passed: __intel_check_memory(count, size, mode, &required, &total)
(gem_evict_everything:1332) igt-core-DEBUG: Test requirement passed: !igt_run_in_simulation()
(gem_evict_everything:1332) ioctl-wrappers-CRITICAL: Test assertion failure function gem_create, file ioctl_wrappers.c:535:
(gem_evict_everything:1332) ioctl-wrappers-CRITICAL: Failed assertion: igt_ioctl((fd), ((((2U|1U) << (((0+8)+8)+14)) | ((('d')) << (0+8)) | (((0x40 + 0x1b)) << 0) | ((((sizeof(struct drm_i915_gem_create)))) << ((0+8)+8)))), (&create)) == 0
(gem_evict_everything:1332) ioctl-wrappers-CRITICAL: Last errno: 22, Invalid argument
(gem_evict_everything:1332) ioctl-wrappers-CRITICAL: error: -1 != 0
****  END  ****
Subtest major-normal: FAIL (0.002s)
Comment 2 Luis Botello 2016-04-28 16:39:06 UTC
The following test cases also fails with the next configuration :

Case list
================================
gem_evict_everything@major-hang
gem_evict_everything@major-interruptible
gem_evict_everything@major-normal


Software information
================================
Kernel version                      : 4.6.0-rc4-drm-intel-nightly-ww17-commit-1e81bac+
Linux distribution                  : Ubuntu 15.10
Architecture                        : 64-bit
Bios revision                       : 129.10
KSC revision                        : 1.6


Hardware information
================================
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


Graphic stack information
================================
 --> Component : drm 
	 url : http://cgit.freedesktop.org/mesa/drm 
	 tag : libdrm-2.4.67-26-g739b888 
	 commit : 739b888 
	 author : Nicolas Dechesne <nicolas.dechesne@linaro.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-640-gbca4e0e 
	 commit : bca4e0e 
	 author : Chris Wilson <chris@chris-wilson.co.uk> 
	 age : 2 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 : 6 weeks ago 
 --> Component : vaapi (intel-driver) 
	 url : http://cgit.freedesktop.org/vaapi/intel-driver 
	 tag : 1.7.0-8-g2c1bec0 
	 commit : 2c1bec0 
	 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-291-g16e4bce 
	 commit : 16e4bce 
	 author : Simon Thum <simon.thum@gmx.de> 
	 age : 2 weeks 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 days ago 


kernel information
================================
commit 1e81bacf1f7fdbdf83f46b55389713fa13cb1256
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Sun Apr 24 11:36:51 2016 +0100

    drm-intel-nightly: 2016y-04m-24d-10h-36m-11s UTC integration manifest


Kernel version : 4.6.0-rc4
Architecture : source amd64 all
Homepage : http://www.kernel.org/
Comment 3 yann 2016-04-29 11:02:56 UTC
Increasing priority due to current platform experience impact
Comment 4 Mika Kuoppala 2016-05-13 14:10:57 UTC
commit b88bce40a25d2393a51298f0d699e66491975cc9
Author: Mika Kuoppala <mika.kuoppala@intel.com>
Date:   Fri May 13 16:53:57 2016 +0300

    tests/gem_evict_everything: use uint64_t in subtest params

For eviction testing, the best bet currently is running them on olders gens without 48bit address space capability.

There are plans to enhance the driver to allow tests to prereserve large portions of the virtual address space to make testing feasible and reasonable when 48bit address space is in use.
Comment 5 cprigent 2016-05-20 09:57:45 UTC
Tests are now skipped on KBL-U.

Hardware
Platform: KABY LAKE-U
CPU : Intel(R) Core(TM) @ 2.60GHz
MCP : KBL-U G0 2+2 (ou ULT-G0)
QDF : QYQ8
Chipset PCH: SPT-LP C1
CRB : KABY LAKE U DDR3L RVP7 CRB FAB1

Software
BIOS : KBLSE2R1.R00.X015.B01.1511271314
ME FW : 11.5.0.1008
Ksc (EC FW): 1.20
Linux distribution: Ubuntu 16.04 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
intel-gpu-tools-1.14 b88bce4 from http://anongit.freedesktop.org/git/xorg/app/intel-gpu-tools.git

Priority set to medium.
It will be tested on the other platforms. Let's double confirm on APL 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.