Bug 90400 - [BDW] igt/gem_ppgtt/flink-and-close-vma-leak fails
Summary: [BDW] igt/gem_ppgtt/flink-and-close-vma-leak fails
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: All Linux (All)
: medium normal
Assignee: Intel GFX Bugs mailing list
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
: 92226 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-05-11 07:31 UTC by lu hua
Modified: 2017-07-24 22:47 UTC (History)
4 users (show)

See Also:
i915 platform: BDW
i915 features: GEM/PPGTT


Attachments
dmesg (123.84 KB, text/plain)
2015-05-11 07:31 UTC, lu hua
no flags Details
APL-4.8-rc2-gem_ppgtt__vma-leak-kern.log (324.55 KB, text/plain)
2016-08-19 09:51 UTC, cprigent
no flags Details
APL-4.8-rc2-gem_ppgtt__vma-leak-output (2.11 KB, text/plain)
2016-08-19 09:51 UTC, cprigent
no flags Details

Description lu hua 2015-05-11 07:31:29 UTC
Created attachment 115687 [details]
dmesg

==System Environment==
--------------------------
Regression: not sure

Non-working platforms: BDW

==kernel==
--------------------------
drm-intel-nightly/a1e469d124cad96cd0d0e149c84f7ebd43ca1893
commit a1e469d124cad96cd0d0e149c84f7ebd43ca1893
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Fri May 8 17:48:23 2015 +0200

    drm-intel-nightly: 2015y-05m-08d-15h-47m-50s UTC integration manifest

==Bug detailed description==
-----------------------------
New case gem_ppgtt@flink-and-close-vma-leak  fails on BDW.
output:
IGT-Version: 1.10-g9b0a32d (x86_64) (Linux: 4.1.0-rc2_drm-intel-nightly_a1e469_20150509+ x86_64)
Test assertion failure function flink_and_close, file gem_ppgtt.c:266:
Failed assertion: offset == offset_new
error: 262144 != 266240
Stack trace:
  #0 [__igt_fail_assert+0xf1]
  #1 [main+0x292]
  #2 [__libc_start_main+0xf5]
  #3 [_start+0x29]
  #4 [<unknown>+0x29]
Subtest flink-and-close-vma-leak failed.
**** DEBUG ****
Test requirement passed: fd >= 0
Test requirement passed: uses_full_ppgtt(fd)
Test requirement passed: fd >= 0
Test assertion failure function flink_and_close, file gem_ppgtt.c:266:
Failed assertion: offset == offset_new
error: 262144 != 266240
****  END  ****
Subtest flink-and-close-vma-leak: FAIL (0.001s)

==Reproduce steps==
---------------------------- 
1. ./gem_ppgtt --run-subtest flink-and-close-vma-leak
Comment 1 Humberto Israel Perez Rodriguez 2015-09-23 18:09:41 UTC
still happen on SKL-Y with the latest kernel :

Kernel commit log:
commit b4c4542ba1abfb0d3d6913504502573bf2c62b12
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Fri Aug 28 15:51:30 2015 +0200
drm-intel-nightly: 2015y-08m-28d-13h-50m-34s UTC integration manifest
Comment 2 cprigent 2015-10-20 06:48:27 UTC
Reproduced on BSW:

Platform: Braswell M
CPU : Intel(R) Celeron N3060 1.60GHz @ 1.6 GHz (family: 6, model: 76 stepping: 4)
SoC : BSW D0
QDF : K6XC
CRB : BRASWELL RVP Fab2
Mandatory Reworks : All 
Feature Reworks: F28, F32, F33, F35, F37
Optional reworks : O-01a; O-02, O-03

BIOS : BRAS.X64.B084.R00.1508310642
TXE FW : 2.0.0.2073
Ksc : 1.08
Linux distribution: Ubuntu 14.04 LTS 64 bits
kernel 4.3.0-rc5-drm-intel-nightly+ 819f710081d7ea116b9b44a9264061d2c030f009 from git://anongit.freedesktop.org/drm-intel
Mesa - 11.0.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 - 2.4.65 from http://cgit.freedesktop.org/mesa/drm/
Libva - 1.6.1 from http://cgit.freedesktop.org/libva/
vaapi intel-driver - 1.6.1 from http://cgit.freedesktop.org/vaapi/intel-driver
Cairo - 1.14.2 from http://cgit.freedesktop.org/cairo
Xorg Xserver - 1.17.2 from http://cgit.freedesktop.org/xorg/xserver

Kernel commit 819f710081d7ea116b9b44a9264061d2c030f009
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Wed Oct 14 19:05:17 2015 +0200
drm-intel-nightly: 2015y-10m-14d-17h-04m-36s UTC integration manifest
Comment 3 cprigent 2015-10-20 09:57:32 UTC
Reproduced on SKL-Y:
Platform: SKY LAKE Y A0 
CPU : Intel(R) Core(TM) m5-6Y57 CPU @ 1.10GHz (family: 6, model: 78  stepping: 3)
MCP : SKL-Y  D1 2+2 (ou ULX-D1)
QDF : QJK9 
CPU : SKL D0
Chipset PCH: Sunrise Point LP C1       
CRB : SKY LAKE Y LPDDR3 RVP3 CRB FAB2
Reworks : All Mandatories + FBS02,FBS03, F23, O-02 & O-06
BIOS : SKLSE2R1.R00.X097.B02.1509020030
ME FW : 11.0.0.1173
Ksc (EC FW): 1.19

Linux distribution: Ubuntu 14.04 LTS 64 bits
kernel 4.3.0-rc5-drm-intel-nightly+ 819f710081d7ea116b9b44a9264061d2c030f009 from git://anongit.freedesktop.org/drm-intel
Mesa - 11.0.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 - 2.4.65 from http://cgit.freedesktop.org/mesa/drm/
Libva - 1.6.1 from http://cgit.freedesktop.org/libva/
vaapi intel-driver - 1.6.1 from http://cgit.freedesktop.org/vaapi/intel-driver
Cairo - 1.14.2 from http://cgit.freedesktop.org/cairo
Xorg Xserver - 1.17.2 from http://cgit.freedesktop.org/xorg/xserver

Kernel commit 819f710081d7ea116b9b44a9264061d2c030f009
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Wed Oct 14 19:05:17 2015 +0200
drm-intel-nightly: 2015y-10m-14d-17h-04m-36s UTC integration manifest
Comment 4 cprigent 2015-11-07 11:45:54 UTC
Reproduced on SKL-Y with last setup:

Platform: SKY LAKE Y A0 
CPU : Intel(R) Core(TM) m5-6Y57 CPU @ 1.10GHz (family: 6, model: 78  stepping: 3)
MCP : SKL-Y  D1 2+2 (ou ULX-D1)
QDF : QJK9 
CPU : SKL D0
Chipset PCH: Sunrise Point LP C1       
CRB : SKY LAKE Y LPDDR3 RVP3 CRB FAB2
Reworks : All Mandatories + FBS02,FBS03, F23, O-02 & O-06
Software
BIOS : SKLSE2R1.R00.X097.B02.1509020030
ME FW : 11.0.0.1173
Ksc (EC FW): 1.19
Linux distribution: Ubuntu 14.04 LTS 64 bits
kernel 4.3.0-rc7-drm-intel-nightly (86ba603) from git://anongit.freedesktop.org/drm-intel
  commit 86ba603f327626055fe1436112b3786eaaaf7fb1
  Author: Daniel Vetter <daniel.vetter@ffwll.ch>
  Date:   Sat Oct 31 09:27:21 2015 +0100
  drm-intel-nightly: 2015y-10m-31d-08h-26m-39s UTC integration manifest
Mesa 11.0.4 from http://cgit.freedesktop.org/mesa/mesa/
xf86-video-intel - 2.99.917 from http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/
Libdrm - 2.4.65 from http://cgit.freedesktop.org/mesa/drm/
Libva - 1.6.1 from http://cgit.freedesktop.org/libva/
vaapi intel-driver - 1.6.1 from http://cgit.freedesktop.org/vaapi/intel-driver
Cairo - 1.14.2 from http://cgit.freedesktop.org/cairo
Xorg Xserver - 1.17.2 from http://cgit.freedesktop.org/xorg/xserver
Comment 5 cprigent 2015-11-08 13:04:21 UTC
Reproduced on BSW-M with last setup:

Platform: Braswell M
CPU : Intel(R) Celeron N3060 1.60GHz @ 1.6 GHz (family: 6, model: 76 stepping: 4)
SoC : BSW D0
QDF : K6XC
CRB : BRASWELL RVP Fab2
Mandatory Reworks : All 
Feature Reworks: F28, F32, F33, F35, F37
Optional reworks : O-01a; O-02, O-03
Software
BIOS : SKLSE2R1.R00.X097.B02.1509020030
ME FW : 11.0.0.1173
Ksc (EC FW): 1.19
Linux distribution: Ubuntu 14.04 LTS 64 bits
kernel 4.3.0-rc7-drm-intel-nightly (86ba603) from git://anongit.freedesktop.org/drm-intel
  commit 86ba603f327626055fe1436112b3786eaaaf7fb1
  Author: Daniel Vetter <daniel.vetter@ffwll.ch>
  Date:   Sat Oct 31 09:27:21 2015 +0100
  drm-intel-nightly: 2015y-10m-31d-08h-26m-39s UTC integration manifest
Mesa 11.0.4 from http://cgit.freedesktop.org/mesa/mesa/
xf86-video-intel - 2.99.917 from http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/
Libdrm - 2.4.65 from http://cgit.freedesktop.org/mesa/drm/
Libva - 1.6.1 from http://cgit.freedesktop.org/libva/
vaapi intel-driver - 1.6.1 from http://cgit.freedesktop.org/vaapi/intel-driver
Cairo - 1.14.2 from http://cgit.freedesktop.org/cairo
Xorg Xserver - 1.17.2 from http://cgit.freedesktop.org/xorg/xserver
Comment 6 cprigent 2015-11-15 15:26:34 UTC
Reproduced on SKL-Y with last setup:

Platform: SKY LAKE Y A0 
CPU : Intel(R) Core(TM) m5-6Y57 CPU @ 1.10GHz (family: 6, model: 78  stepping: 3)
MCP : SKL-Y  D1 2+2
QDF : QJK9 
CPU : SKL D0
Chipset PCH: Sunrise Point LP C1       
CRB : SKY LAKE Y LPDDR3 RVP3 CRB FAB2
Reworks : All Mandatories + FBS02,FBS03, F23, O-02 & O-06
BIOS : SKLSE2R1.R00.X097.B02.1509020030
ME FW : 11.0.0.1173
Ksc (EC FW): 1.19
Linux distribution: Ubuntu 15.04 LTS 64 bits
kernel 4.3.0-drm-intel-nightly (a3b0dec) from git://anongit.freedesktop.org/drm-intel
  commit a3b0dec82fdb59c629c4fb9847245b80b0cf69dd
  Author: Jani Nikula jani.nikula@intel.com
  Date: Fri Nov 6 14:48:23 2015 +0200
  drm-intel-nightly: 2015y-11m-06d-12h-48m-02s UTC integration manifest
Mesa 11.0.4 from http://cgit.freedesktop.org/mesa/mesa/
xf86-video-intel - 2.99.917 from http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/
Libdrm - 2.4.65 from http://cgit.freedesktop.org/mesa/drm/
Libva - 1.6.1 from http://cgit.freedesktop.org/libva/
vaapi intel-driver - 1.6.1 from http://cgit.freedesktop.org/vaapi/intel-driver
Cairo - 1.14.2 from http://cgit.freedesktop.org/cairo
Xorg Xserver - 1.17.2 from http://cgit.freedesktop.org/xorg/xserver
Comment 7 Olivier Berthier 2015-11-19 14:46:00 UTC
Reproduced on Sky Lake Y with the kernel 4.3.0-rc5 drm-intel-next-fixes-2015-11-06.

Setup:
------

Hardware
Platform: SKY LAKE Y A0 
CPU : Intel(R) Core(TM) m5-6Y57 CPU @ 1.10GHz (family: 6, model: 78  stepping: 3)
MCP : SKL-Y  D0 2+2 (ou ULX-D1)
QDF : QJA4 
CPU : SKL D0
Chipset PCH: Sunrise Point LP C1       
CRB : SKY LAKE Y LPDDR3 RVP3 CRB FAB2
Reworks : All Mandatories

Software
BIOS : SKLSE2R1.R00.B104.B01.1511110114
ME FW : 11.0.0.1179
Ksc (EC FW): 1.19
Linux : Ubuntu 15.04 64 bits
Kernel : 4.3.0-rc5 drm-intel-next-fixes-2015-11-06
commit 816d2206f0f9953ca854e4ff1a2749a5cbd62715
Merge: d0baf92 1b0e3a0
Author: Dave Airlie <airlied@gmail.com>
Date:   Sat Nov 7 17:16:59 2015 +1000

    Merge tag 'drm-intel-next-fixes-2015-11-06' of git://anongit.freedesktop.org/drm-in
 

cairo: 1.14.2
drm: 2.4.65
vaapi/intel-driver: 1.6.1
vaapi/libva: 1.6.1
mesa: mesa-11.0.5
xf86-video-intel: 2.99.917
xserver:  xorg-server-1.17.2

Intel GPU Tools: master bfea74a9f64a900bcb90f946b38746781017449f
Comment 8 cprigent 2015-11-27 17:24:36 UTC
Test is also fail on SKL-Y with kernel tag drm-intel-testing-2015-11-20 

Motherboard: Skylake Y
cpu model name	: Intel(R) Core(TM) m5-6Y57 CPU @ 1.10GHz
cpu model : 78
cpu family : 6
Graphic card: Device 191e (rev 07) 
Software:
Kernel: tag drm-intel-testing-2015-11-20 5074e51ef3a2b0ad4c2354e95aec5380a93966b3 (4.4-rc1) from git://anongit.freedesktop.org/drm-intel
Ubuntu 14.04.2 LTS
Bios: SKLSE2R1.R00.B104.B01.1511110114
Libdrm: 2.4.65 from http://cgit.freedesktop.org/mesa/drm
Comment 9 cprigent 2015-12-11 15:05:25 UTC
Also fail on BXT-P/APL with Q4 stack release:

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
Mandatory Reworks : R14 
Software
BIOS (IFWI Version): APLK_IFWI_X64_R_2015_44_3_00
Kernel: tag testing 2015-11-20 from http://cgit.freedesktop.org/drm-intel/tag/?h=drm-intel-testing&id=drm-intel-testing-2015-11-20
xorg-server-1.18.0 from http://cgit.freedesktop.org/xorg/xserver
libdrm-2.4.65 from http://cgit.freedesktop.org/mesa/drm/
xf86-video-intel 2.99.917 from http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/
mesa-11.0.4 from http://cgit.freedesktop.org/mesa/mesa/
libva-1.6.1 from http://cgit.freedesktop.org/libva/
vaapi-intel-driver 1.6.1 from http://cgit.freedesktop.org/vaapi/intel-driver
cairo 1.14.4 from http://cgit.freedesktop.org/cairo
DMC 1.06 firmware from https://01.org/linuxgraphics/intel-linux-graphics-firmwares
IGT 1.13 http://cgit.freedesktop.org/xorg/app/intel-gpu-tools/tag/?id=intel-gpu-tools-1.13
Comment 10 cprigent 2016-01-17 17:00:04 UTC
igt@gem_ppgtt@flink-and-close-vma-leak is fail on a SKL production device

Dell Inspiron 15 7000 2-1
Intel Core (TM) i7 CPU @ 6500 2.5
Intel HD Graphics
Linux distribution: Ubuntu 15.10 64 bits
Kernel: drm-intel-nightly 4.4.0-rc8 8834392 from http://cgit.freedesktop.org/drm-intel/
libdrm-2.4.66 from http://cgit.freedesktop.org/mesa/drm/
xf86-video-intel 2.99.917 from http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/
mesa-11.0.8 from http://cgit.freedesktop.org/mesa/mesa/
libva-1.6.2 from http://cgit.freedesktop.org/libva/
intel-driver 1.6.2 from http://cgit.freedesktop.org/vaapi/intel-driver
cairo 1.15.2 from http://cgit.freedesktop.org/cairo
IGT 1.13 cd658a7c6bca74eb897a8ae87751029793f0c4f4 from http://cgit.freedesktop.org/xorg/app/intel-gpu-tools/
DMC and GUC firmware from https://01.org/linuxgraphics/intel-linux-graphics-firmwares
Comment 11 cprigent 2016-01-17 17:00:51 UTC
*** Bug 92226 has been marked as a duplicate of this bug. ***
Comment 12 Rami 2016-02-03 14:16:37 UTC
Reproduced on BXT with 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.05
Linux distribution: Ubuntu 15.10 64 bits
Kernel: drm-intel-nightly 4.5 rc1 6b1049b
http://cgit.freedesktop.org/drm-intel/
drm: tag libdrm-2.4.66 e342c0f from http://cgit.freedesktop.org/mesa/drm/
mesa: tag mesa-11.0.9  from http://cgit.freedesktop.org/mesa/mesa/
cairo: tag 1.15.2 db8a7f1 from http://cgit.freedesktop.org/cairo
waffle: master bb29b2a from https://github.com/waffle-gl/waffle
xorg-server-macros: master d7acec2 from git://git.freedesktop.org/git/xorg/util/macros
libva: tag libva-1.6.1 cb418f6 from http://cgit.freedesktop.org/libva/
vaapi-intel-driver: tag 1.6.1 2110b3a from http://cgit.freedesktop.org/vaapi/intel-driver
Tools
deqp: tag android-cts-6.0_r2 cf44075 from https://android.googlesource.com/platform/external/deqp
ogles1conform master from https://git-amr-2.devtools.intel.com/gerrit/gitweb?p=otc_gen_graphics-khronos-glconform.git
ogles2-3conform branch gles3-new-skylake f64cf0f from https://git-amr-2.devtools.intel.com/gerrit/gitweb?p=otc_gen_graphics-khronos-glconform.git
intel-gpu-tool: (HEAD, origin/master, origin/HEAD) d63e72f0ad281f295b058a572741b995a5a0f64a from git://git.freedesktop.org/git/xorg/app/intel-gpu-tools
Comment 13 Rami 2016-02-19 14:03:48 UTC
Reproduced on BXT with last 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.05
Linux distribution: Ubuntu 15.10 64 bits
Kernel: drm-intel-nightly: 2016y-02m-16d-17h-53m-05s UTC integration manifest
commit bd0b1a9aa8b7fdb2e06a5cbf1756ef93de2fa3fd
Author: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Date:   Tue Feb 16 18:53:28 2016 +0100
http://cgit.freedesktop.org/drm-intel/
drm: tag libdrm-2.4.66 9b77443 from http://cgit.freedesktop.org/mesa/drm/
mesa: tag mesa-11.1.1 330aa44from http://cgit.freedesktop.org/mesa/mesa/
cairo: tag 1.15.2 db8a7f1 from http://cgit.freedesktop.org/cairo
waffle: master bb29b2a from https://github.com/waffle-gl/waffle
xorg-server-macros: master d7acec2 from git://git.freedesktop.org/git/xorg/util/macros
libva: tag libva-1.6.1 1f026de from http://cgit.freedesktop.org/libva/
vaapi-intel-driver: tag 1.6.1 f6fe842 from http://cgit.freedesktop.org/vaapi/intel-driver


Tools
intel-gpu-tool: tag intel-gpu-tools-1.13 0a45d6b from http://cgit.freedesktop.org/xorg/app/intel-gpu-tools/
Comment 14 cprigent 2016-03-03 18:43:01 UTC
Reproduced on SKL:
root@SKL-Y4:/usr/local/src/intel-gpu-tools/tests# ./gem_ppgtt
IGT-Version: 1.13-NOT-GIT (x86_64) (Linux: 4.5.0-rc6-nightly-guc-patch+ x86_64)
Subtest blt-vs-render-ctx0: SUCCESS (43.397s)
Subtest blt-vs-render-ctxN: SUCCESS (55.937s)
(gem_ppgtt:1180) CRITICAL: Test assertion failure function flink_and_close, file gem_ppgtt.c:246:
(gem_ppgtt:1180) CRITICAL: Failed assertion: offset == offset_new
(gem_ppgtt:1180) CRITICAL: error: -8192 != -12288
Stack trace:
  #0 [__igt_fail_assert+0xf1]
  #1 [_start+0x0]
  #2 [__libc_start_main+0xf0]
  #3 [_start+0x29]
  #4 [<unknown>+0x29]
Subtest flink-and-close-vma-leak failed.
**** DEBUG ****
(gem_ppgtt:1180) drmtest-DEBUG: Test requirement passed: fd >= 0
(gem_ppgtt:1180) DEBUG: Test requirement passed: gem_uses_full_ppgtt(fd)
(gem_ppgtt:1180) drmtest-DEBUG: Test requirement passed: fd >= 0
(gem_ppgtt:1180) CRITICAL: Test assertion failure function flink_and_close, file gem_ppgtt.c:246:
(gem_ppgtt:1180) CRITICAL: Failed assertion: offset == offset_new
(gem_ppgtt:1180) CRITICAL: error: -8192 != -12288
****  END  ****
Subtest flink-and-close-vma-leak: FAIL (0.162s)
(gem_ppgtt:1180) CRITICAL: Test assertion failure function flink_and_exit, file gem_ppgtt.c:298:
(gem_ppgtt:1180) CRITICAL: Failed assertion: matched == 0
(gem_ppgtt:1180) CRITICAL: error: 1 != 0
Stack trace:
  #0 [__igt_fail_assert+0xf1]
  #1 [main+0x3b3]
  #2 [__libc_start_main+0xf0]
  #3 [_start+0x29]
  #4 [<unknown>+0x29]
Subtest flink-and-exit-vma-leak failed.
**** DEBUG ****
(gem_ppgtt:1180) drmtest-DEBUG: Test requirement passed: fd >= 0
(gem_ppgtt:1180) DEBUG: Test requirement passed: gem_uses_full_ppgtt(fd)
(gem_ppgtt:1180) drmtest-DEBUG: Test requirement passed: fd >= 0
(gem_ppgtt:1180) CRITICAL: Test assertion failure function flink_and_exit, file gem_ppgtt.c:298:
(gem_ppgtt:1180) CRITICAL: Failed assertion: matched == 0
(gem_ppgtt:1180) CRITICAL: error: 1 != 0
****  END  ****
Subtest flink-and-exit-vma-leak: FAIL (5.169s)

Hardware
Platform: SKY LAKE Y A0 QUAL
CPU : Intel(R) Core(TM) m5-6Y57 CPU @ 1.10GHz (family: 6, model: 78  stepping: 3)
MCP : SKL-Y  D1 2+2 (ou ULX-D1)
QDF : QJK9 
CPU : SKL D0
Chipset PCH: Sunrise Point LP C0       
CRB : SKY LAKE Y LPDDR3 RVP3 CRB FAB2
Reworks : All Mandatories + FBS02 & FBS03, O-06
Software 
Linux OS : Ubuntu 15.04 64 bits
BIOS : SKLSE2R1.R00.B104.B01.1511110114
ME FW : 11.0.0.1191
Ksc (EC FW): 1.20
Kernel: drm-intel-nightly 4.5.0-rc6 from http://cgit.freedesktop.org/drm-intel
With patch applied from:
https://patchwork.freedesktop.org/patch/74962/
https://lists.freedesktop.org/archives/intel-gfx/2016-February/088390.html
Guc 6.1
Comment 15 Tvrtko Ursulin 2016-03-04 15:12:21 UTC
flink-and-close will keep failing until some serious i915 rework happens.

flink-and-exit was temporarily broken and should be fine after https://patchwork.freedesktop.org/patch/75869/ gets merged to IGT.
Comment 16 Chris Wilson 2016-06-15 15:48:53 UTC
It's still a kernel bug.
Comment 17 Chris Wilson 2016-08-04 07:32:41 UTC
commit b1f788c6acb2f34622dd5f4c3d5210c6e3945e78
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Thu Aug 4 07:52:45 2016 +0100

    drm/i915: Release vma when the handle is closed
    
    In order to prevent a leak of the vma on shared objects, we need to
    hook into the object_close callback to destroy the vma on the object for
    this file. However, if we destroyed that vma immediately we may cause
    unexpected application stalls as we try to unbind a busy vma - hence we
    defer the unbind to when we retire the vma.
    
    v2: Keep vma allocated until closed. This is useful for a later
    optimisation, but it is required now in order to handle potential
    recursion of i915_vma_unbind() by retiring itself.
    v3: Comments are important.
Comment 18 yann 2016-08-04 08:37:49 UTC
(In reply to Chris Wilson from comment #17)
> commit b1f788c6acb2f34622dd5f4c3d5210c6e3945e78
> Author: Chris Wilson <chris@chris-wilson.co.uk>
> Date:   Thu Aug 4 07:52:45 2016 +0100
> 
>     drm/i915: Release vma when the handle is closed
>     
>     In order to prevent a leak of the vma on shared objects, we need to
>     hook into the object_close callback to destroy the vma on the object for
>     this file. However, if we destroyed that vma immediately we may cause
>     unexpected application stalls as we try to unbind a busy vma - hence we
>     defer the unbind to when we retire the vma.
>     
>     v2: Keep vma allocated until closed. This is useful for a later
>     optimisation, but it is required now in order to handle potential
>     recursion of i915_vma_unbind() by retiring itself.
>     v3: Comments are important.

Christophe, please re-test and close the bug if this issue is not occurring anymore
Comment 20 cprigent 2016-08-19 09:51:25 UTC
Created attachment 125905 [details]
APL-4.8-rc2-gem_ppgtt__vma-leak-kern.log

Tests still fail on APL (same error as in comment 14)

Platform: APL system
CPU Name : Intel(R) Genuine Processor @ 1.1 GHz (family: 6, model: 12, stepping: 9) 4 cores
QDF : Q6HE
SoC : B1
CRB : Apollo Lake DDR3L RVP1A FAB2
Reworks: R19, R20
Software 
Bios: 144_B10 APLK_B0_IFWI_X64_R_2016_06_27_0956_SPI_RVP1.bin from \\gar\ec\proj\ba\CCG\APL BIOS\External\BIOS_Release\Daily\v144_10_2016_WW27.1\IFWI\IFWI_RVP1_Release\IFWI
KSC: 1.15
Linux distribution: Ubuntu 16.04 64 bits
Kernel: 4.8.0-rc2 e4ec788 from http://cgit.freedesktop.org/drm-intel/
  commit e4ec788166b13fc8b5b7e188c522d4cf07ba53eb
  Author: Sumit Semwal <sumit.semwal@linaro.org>
  Date:   Tue Aug 16 12:36:30 2016 +0530
  drm-intel-nightly: 2016y-08m-16d-07h-06m-09s UTC integration manifest
libdrm-2.4.70-2 b214b05 from git://anongit.freedesktop.org/mesa/drm
mesa: mesa-11.2.2 3a9f628from git://anongit.freedesktop.org/mesa/mesa
cairo 1.15.2 db8a7f1 from git://anongit.freedesktop.org/cairo
xorg-server-1.18.0-525 de5291c from git://git.freedesktop.org/git/xorg/xserver
xf86-video-intel 2.99.917-695 c8fc7f5 from git://git.freedesktop.org/git/xorg/driver/xf86-video-intel
libva-1.7.0-45 b27feb9 from git://git.freedesktop.org/git/vaapi/libva 
vaapi-intel-driver: 1.7.0-82 98555d2 from git://git.freedesktop.org/git/vaapi/intel-driver
Intel-Gpu-Tools 1.15 a147ef2 from http://anongit.freedesktop.org/git/xorg/app/intel-gpu-tools.git
Comment 21 cprigent 2016-08-19 09:51:41 UTC
Created attachment 125906 [details]
APL-4.8-rc2-gem_ppgtt__vma-leak-output
Comment 22 Chris Wilson 2016-08-19 09:56:38 UTC
i915.enable_guc_loading=2 i915.enable_guc_submission=2 ???
Comment 23 Chris Wilson 2016-08-19 11:57:44 UTC
commit b0658ce76557d4ce00be7252aa60d1b59d8980f6
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Fri Aug 19 12:36:51 2016 +0100

    igt/gem_ppgtt: Remember to flush operations before assertion
    
    We have to flush any queued operations before making an assertion such
    as the VMA being removed from the ppgtt.
Comment 24 cprigent 2016-09-01 11:34:06 UTC
I confirm test is Pass on APL

kernel 4.3.0-rc3 e14363e drm-intel-nightly from git://anongit.freedesktop.org/drm-intel
  commit e14363ed1c12c86726914e3a790662e84e631c37
  Author: Chris Wilson <chris@chris-wilson.co.uk>
  Date:   Wed Aug 24 19:40:18 2016 +0100
  drm-intel-nightly: 2016y-08m-24d-18h-39m-56s UTC integration manifest
intel-gpu-tools-1.15 b0658ce from http://anongit.freedesktop.org/git/xorg/app/intel-gpu-tools.git

Let's check on the other platforms before closing it.
Comment 25 cprigent 2016-09-01 11:42:04 UTC
(In reply to Chris Wilson from comment #22)
> i915.enable_guc_loading=2 i915.enable_guc_submission=2 ???

We use it to load the GuC. At the moment it is not loaded by default:

https://cgit.freedesktop.org/drm-intel/tree/drivers/gpu/drm/i915/i915_params.c 

struct i915_params i915 __read_mostly = {
        …
	.enable_guc_loading = 0,
	.enable_guc_submission = 0,
        …
};

module_param_named_unsafe(enable_guc_loading, i915.enable_guc_loading, int, 0400);
MODULE_PARM_DESC(enable_guc_loading,
		"Enable GuC firmware loading "
		"(-1=auto, 0=never [default], 1=if available, 2=required)");

module_param_named_unsafe(enable_guc_submission, i915.enable_guc_submission, int, 0400);
MODULE_PARM_DESC(enable_guc_submission,
		"Enable GuC submission "
		"(-1=auto, 0=never [default], 1=if available, 2=required)");
Comment 26 cprigent 2016-09-01 13:43:18 UTC
I confirm test is also Pass on KBL

kernel 4.3.0-rc3 e14363e drm-intel-nightly from git://anongit.freedesktop.org/drm-intel
  commit e14363ed1c12c86726914e3a790662e84e631c37
  Author: Chris Wilson <chris@chris-wilson.co.uk>
  Date:   Wed Aug 24 19:40:18 2016 +0100
  drm-intel-nightly: 2016y-08m-24d-18h-39m-56s UTC integration manifest
intel-gpu-tools-1.15 b0658ce from http://anongit.freedesktop.org/git/xorg/app/intel-gpu-tools.git

Let's check on the other platforms before closing it.
Comment 27 cprigent 2016-09-07 11:32:21 UTC
Pass on SKL

Platform: NUC6i3SYB
CPU: Intel(R) Core(TM) i3-6100U CPU @ 2.30GHZ (family 6, model 78, stepping 3)
Motherboard version: H81132-502
GPU: Intel® HD Graphics 520 - Intel Corporation Sky Lake Integrated Graphics (rev 07)
Memory: one 8GB card Kingston KVR21S15D8/8
SSD: Samsung 850 EVO M.2 120 Go

Software
Bios: SYSKLi35.86A.0045.2016.0527.1055 from https://downloadcenter.intel.com/downloads/eula/26097/BIOS-Update-SYSKLi35-86A-?httpDown=https%3A%2F%2Fdownloadmirror.intel.com%2F26097%2Feng%2FSY0045.bio
Linux distribution: Ubuntu 16.04 64 bits
DMC 1.26 from https://01.org/sites/default/files/downloads/intelr-graphics-linux/skldmcver126.tar_1.bz2
GUC 6.1 from https://01.org/sites/default/files/downloads/intelr-graphics-linux/sklgucver61.tar.bz2
Kernel: 4.8.0-rc4 9baa666 from http://cgit.freedesktop.org/drm-intel/
  commit 9baa666b3e48f71b46c5f63541f57d2a95a1b1c0
  Author: Chris Wilson <chris@chris-wilson.co.uk>
  Date:   Sat Sep 3 13:12:38 2016 +0100
  drm-intel-nightly: 2016y-09m-03d-12h-12m-15s UTC integration manifest
libdrm-2.4.70-6 4462303 from git://anongit.freedesktop.org/mesa/drm
mesa: mesa-11.2.2 3a9f628from git://anongit.freedesktop.org/mesa/mesa
cairo 1.15.2 db8a7f1 from git://anongit.freedesktop.org/cairo
xorg-server-1.18.0-546 deae9c7 from git://git.freedesktop.org/git/xorg/xserver
2.99.917-701 205146b from git://git.freedesktop.org/git/xorg/driver/xf86-video-intel
libva-1.7.0-47 2ebf897 from git://git.freedesktop.org/git/vaapi/libva 
vaapi-intel-driver: 1.7.0-95 1817bee from git://git.freedesktop.org/git/vaapi/intel-driver
Intel-Gpu-Tools 1.16 6bd4208 from http://anongit.freedesktop.org/git/xorg/app/intel-gpu-tools.git
Comment 28 cprigent 2016-09-07 11:34:45 UTC
Pass on BSW

Hardware: Acer Desktop
Motherboard: Aspire XC-704
CPU: Intel(R) Pentium(R) CPU N3700 @ 1.60GHz (Family 6, Model 76, Stepping 3)
GPU:  Intel® HD Graphics - Intel Corporation Device 22b1 (rev 21)
Memory card: 1 card 4GB Hynix HMT451S6BFR8APB
HDD: Western Digital WDC WD10EZEX-21M (1TB)

Software:
Bios: R01-A2
Linux distribution: Ubuntu 16.04 64 bits
Kernel: 4.8.0-rc4 9baa666 from http://cgit.freedesktop.org/drm-intel/
  commit 9baa666b3e48f71b46c5f63541f57d2a95a1b1c0
  Author: Chris Wilson <chris@chris-wilson.co.uk>
  Date:   Sat Sep 3 13:12:38 2016 +0100
  drm-intel-nightly: 2016y-09m-03d-12h-12m-15s UTC integration manifest
libdrm-2.4.70-6 4462303 from git://anongit.freedesktop.org/mesa/drm
mesa: mesa-11.2.2 3a9f628from git://anongit.freedesktop.org/mesa/mesa
cairo 1.15.2 db8a7f1 from git://anongit.freedesktop.org/cairo
xorg-server-1.18.0-546 deae9c7 from git://git.freedesktop.org/git/xorg/xserver
2.99.917-701 205146b from git://git.freedesktop.org/git/xorg/driver/xf86-video-intel
libva-1.7.0-47 2ebf897 from git://git.freedesktop.org/git/vaapi/libva 
vaapi-intel-driver: 1.7.0-95 1817bee from git://git.freedesktop.org/git/vaapi/intel-driver
Intel-Gpu-Tools 1.16 6bd4208 from http://anongit.freedesktop.org/git/xorg/app/intel-gpu-tools.git


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.