Bug 97130

Summary: [APL] gem_tiled_swapping threaded oom killed, high number of writeback pages/not freed/OOM killer should be excluded?
Product: DRI Reporter: cprigent <christophe.prigent>
Component: DRM/IntelAssignee: Humberto Israel Perez Rodriguez <humberto.i.perez.rodriguez>
Status: CLOSED FIXED QA Contact: Intel GFX Bugs mailing list <intel-gfx-bugs>
Severity: critical    
Priority: high CC: intel-gfx-bugs
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard: ReadyForDev
i915 platform: BXT i915 features: GEM/Other
Attachments:
Description Flags
IVB-gem_tiled_swapping__threaded-output
none
IVB-gem_tiled_swapping__threaded-kern.log
none
dmesg_GLK.log
none
kern_GLK.log
none
Tests Log (IVB)
none
Dmesg.log (IVB)
none
results.log
none
dmesg.log
none
result.log
none
dmesg.log none

Description cprigent 2016-07-29 13:22:08 UTC
Created attachment 125413 [details]
IVB-gem_tiled_swapping__threaded-output

Platform: IVB
CPU: Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz (family 6, model 58, stepping 9)
Motherboard version: DH77EB
GPU: IntelĀ® HD Graphics 4000 - Xeon E3-1200 v2/3rd Gen Core processor Graphics Controller
Software
Bios: EBH7710H.86A.0096.2012.1012.1645
Linux distribution: Ubuntu 16.04 64 bits
Kernel: 4.7.0-rc7 7eeb04a from http://cgit.freedesktop.org/drm-intel/
  commit 7eeb04a101316645916d4d9df058a9341797f1af
  Author: Chris Wilson <chris@chris-wilson.co.uk>
  Date:   Sun Jul 24 11:00:31 2016 +0100
  drm-intel-nightly: 2016y-07m-24d-09h-59m-54s UTC integration manifest
drm: libdrm-2.4.70 0caa84c 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
xserver: xorg-server-1.18.0-497 0b2f308 from git://git.freedesktop.org/git/xorg/xserver
xf86-video-intel: 2.99.917-687 6988b87 from git://git.freedesktop.org/git/xorg/driver/xf86-video-intel
libva: libva-1.7.0-26 c36971c from git://git.freedesktop.org/git/vaapi/libva
vaapi-intel-driver: 1.7.0-58 e554446 from git://git.freedesktop.org/git/vaapi/intel-driver
Intel-Gpu-Tools 1.15-140 e3abb20 from http://anongit.freedesktop.org/git/xorg/app/intel-gpu-tools.git

Steps:
------
1. Execute IGT tests:
# ./gem_tiled_swapping --r non-threaded
# ./gem_tiled_swapping --r threaded

Actual results
--------------
1. Process is most of the time killed by OOM killer when executed several times:
root@IVB102:/opt/X11R7/src/intel-gpu-tools/tests# ./gem_tiled_swapping --r non-threaded
IGT-Version: 1.15-ge3abb20 (x86_64) (Linux: 4.7.0-nightly+ x86_64)
Using 640 1MiB objects (available RAM: 244/31945, swap: 1888)
Subtest non-threaded: SUCCESS (74.847s)
root@IVB102:/opt/X11R7/src/intel-gpu-tools/tests# ./gem_tiled_swapping --r threaded
IGT-Version: 1.15-ge3abb20 (x86_64) (Linux: 4.7.0-nightly+ x86_64)
Using 640 1MiB objects (available RAM: 278/31945, swap: 1845)
Killed

Expected result
-----------------
1. Tests are Pass
Comment 1 cprigent 2016-07-29 13:22:35 UTC
Created attachment 125414 [details]
IVB-gem_tiled_swapping__threaded-kern.log
Comment 2 cprigent 2016-07-29 13:24:58 UTC
See several history in: bug 72742
Comment 3 Elio 2016-10-10 19:35:16 UTC
Issue present with following configuration:

Software Configuration:
======================================
Bios: BH7710H.86A.0096.2012.1012.1645
Linux distribution: Ubuntu 16.04 64 bits
Kernel: 4.8.0 f35ed31 from http://cgit.freedesktop.org/drm-intel/
  commit f35ed31aea66b3230c366fcba5f3456ae2cb956e
  Author: Jani Nikula <jani.nikula@intel.com>
  Date:   Mon Oct 10 14:29:09 2016 +0300
  drm-intel-nightly: 2016y-10m-10d-11h-28m-51s UTC integration manifest
libdrm-2.4.71 a44c9c3 from git://anongit.freedesktop.org/mesa/drm
mesa: mesa-12.0.0 8b06176 from git://anongit.freedesktop.org/mesa/mesa
cairo 1.15.2 db8a7f1 from git://anongit.freedesktop.org/cairo
xorg-server-1.18.99.901-76 97a8353 from git://git.freedesktop.org/git/xorg/xserver
xf86-video-intel 2.99.917-712 696f58f from git://git.freedesktop.org/git/xorg/driver/xf86-video-intel
libva-1.7.2-38 3b7e499 from git://git.freedesktop.org/git/vaapi/libva 
vaapi-intel-driver: 1.7.2-133 dd73514 from git://git.freedesktop.org/git/vaapi/intel-driver
IGT: intel-gpu-tools-1.16-59 48a9e1e from http://anongit.freedesktop.org/git/xorg/app/intel-gpu-tools.git
Comment 4 Jari Tahvanainen 2017-03-29 07:05:03 UTC
Valid bug still on 4.11.0-rc4-drm-tip-qa-ww13-commit-5c7479a+ (IVB-1-0XR1GT)

e.g. ./gem_tiled_swapping --run-subtest non-threaded

IGT-Version: 1.18-ga27c743 (x86_64) (Linux: 4.11.0-rc4-drm-tip-qa-ww13-commit-5c7479a+ x86_64)
Using 640 1MiB objects (available RAM: 147/7857, swap: 16173)
Stack trace:
  #0 [__igt_fail_assert+0x101]
  #1 [gem_set_domain+0x44]
  #2 [fill_bo+0x2f]
  #3 [__real_main166+0x64]
  #4 [main+0x33]
  #5 [__libc_start_main+0xf1]
  #6 [_start+0x29]
  #7 [<unknown>+0x29]
Subtest non-threaded: FAIL (0.088s)

(gem_tiled_swapping:30615) ioctl-wrappers-CRITICAL: Test assertion failure function gem_set_domain, file ioctl_wrappers.c:435:
(gem_tiled_swapping:30615) ioctl-wrappers-CRITICAL: Failed assertion: __gem_set_domain(fd, handle, read, write) == 0
(gem_tiled_swapping:30615) ioctl-wrappers-CRITICAL: Last errno: 12, Cannot allocate memory
(gem_tiled_swapping:30615) ioctl-wrappers-CRITICAL: error: -12 != 0
Subtest non-threaded failed.
**** DEBUG ****
(gem_tiled_swapping:30615) ioctl-wrappers-CRITICAL: Test assertion failure function gem_set_domain, file ioctl_wrappers.c:435:
(gem_tiled_swapping:30615) ioctl-wrappers-CRITICAL: Failed assertion: __gem_set_domain(fd, handle, read, write) == 0
(gem_tiled_swapping:30615) ioctl-wrappers-CRITICAL: Last errno: 12, Cannot allocate memory
(gem_tiled_swapping:30615) ioctl-wrappers-CRITICAL: error: -12 != 0
****  END  ****
Environment	
PIGLIT_SOURCE_DIR="/home/gfx/intel-graphics/intel-gpu-tools/piglit" PIGLIT_PLATFORM="mixed_glx_egl"
Command	/home/gfx/intel-graphics/intel-gpu-tools/tests/gem_tiled_swapping --run-subtest non-threaded

[ 7645.461921] warn_alloc: 25 callbacks suppressed
[ 7645.461922] gem_tiled_swapp: page allocation failure: order:0, mode:0x1000(__GFP_NORETRY), nodemask=(null)
[ 7645.461931] CPU: 1 PID: 30615 Comm: gem_tiled_swapp Tainted: G     U          4.11.0-rc4-drm-tip-qa-ww13-commit-5c7479a+ #1
[ 7645.461931] Hardware name: Dell Inc. Inspiron 660/0XR1GT      , BIOS A11 10/14/2013
[ 7645.461932] Call Trace:
[ 7645.461940]  dump_stack+0x63/0x90
[ 7645.461943]  warn_alloc+0x10c/0x1a0
[ 7645.461945]  __alloc_pages_slowpath+0xd48/0xe20
[ 7645.461948]  ? check_preempt_wakeup+0x194/0x220
[ 7645.461950]  __alloc_pages_nodemask+0x23a/0x250
[ 7645.461953]  alloc_pages_vma+0xa2/0x270
[ 7645.461956]  shmem_alloc_page+0x70/0xc0
[ 7645.461958]  ? __schedule+0x3c1/0x8f0
[ 7645.461960]  ? finish_wait+0x56/0x70
[ 7645.461962]  ? __vm_enough_memory+0x29/0x130
[ 7645.461964]  shmem_alloc_and_acct_page+0x72/0x1b0
[ 7645.461966]  shmem_getpage_gfp+0x19f/0xcb0
[ 7645.461968]  shmem_read_mapping_page_gfp+0x51/0x80
[ 7645.461996]  i915_gem_object_get_pages_gtt+0x228/0x640 [i915]
[ 7645.462016]  ____i915_gem_object_get_pages+0x20/0x60 [i915]
[ 7645.462033]  __i915_gem_object_get_pages+0x5c/0x70 [i915]
[ 7645.462050]  i915_gem_set_domain_ioctl+0x1ca/0x220 [i915]
[ 7645.462062]  drm_ioctl+0x1ff/0x460 [drm]
[ 7645.462078]  ? i915_gem_obj_prepare_shmem_write+0x160/0x160 [i915]
[ 7645.462081]  ? apparmor_mmap_file+0x18/0x20
[ 7645.462084]  ? security_mmap_file+0xda/0xf0
[ 7645.462087]  do_vfs_ioctl+0xa1/0x5d0
[ 7645.462089]  SyS_ioctl+0x79/0x90
[ 7645.462092]  entry_SYSCALL_64_fastpath+0x1e/0xad
[ 7645.462093] RIP: 0033:0x7f56703188b7
[ 7645.462094] RSP: 002b:00007ffea7d42ed8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[ 7645.462096] RAX: ffffffffffffffda RBX: 00007f56719f7000 RCX: 00007f56703188b7
[ 7645.462096] RDX: 00007ffea7d42f10 RSI: 00000000400c645f RDI: 0000000000000003
[ 7645.462097] RBP: 0000000000000003 R08: 0000000000000003 R09: 0000000105000000
[ 7645.462098] R10: 0000000000000001 R11: 0000000000000246 R12: 0000000000000050
[ 7645.462099] R13: 0000000001dffdac R14: 0000000000000003 R15: 0000000000000000
[ 7645.462101] warn_alloc_show_mem: 9 callbacks suppressed
[ 7645.462101] Mem-Info:
[ 7645.462104] active_anon:15964 inactive_anon:52909 isolated_anon:0
                active_file:2593 inactive_file:2098 isolated_file:64
                unevictable:1880318 dirty:0 writeback:5438 unstable:0
                slab_reclaimable:5540 slab_unreclaimable:8135
                mapped:4963 shmem:21889 pagetables:5499 bounce:0
                free:25281 free_pcp:1267 free_cma:0
[ 7645.462108] Node 0 active_anon:63856kB inactive_anon:211636kB active_file:10372kB inactive_file:8392kB unevictable:7521272kB isolated(anon):0kB isolated(file):256kB mapped:19852kB dirty:0kB writeback:21752kB shmem:0kB shmem_thp: 0kB shmem_pmdmapped: 6301696kB anon_thp: 87556kB writeback_tmp:0kB unstable:0kB pages_scanned:0 all_unreclaimable? no
[ 7645.462109] 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:15992kB managed:15896kB mlocked:0kB slab_reclaimable:0kB slab_unreclaimable:8kB kernel_stack:0kB pagetables:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB
[ 7645.462112] lowmem_reserve[]: 0 3370 7804 7804 7804
[ 7645.462114] Node 0 DMA32 free:46780kB min:29124kB low:36404kB high:43684kB active_anon:29684kB inactive_anon:7860kB active_file:784kB inactive_file:0kB unevictable:3395124kB writepending:0kB present:3551632kB managed:3486064kB mlocked:3395124kB slab_reclaimable:1200kB slab_unreclaimable:1340kB kernel_stack:32kB pagetables:636kB bounce:0kB free_pcp:2664kB local_pcp:396kB free_cma:0kB
[ 7645.462118] lowmem_reserve[]: 0 0 4434 4434 4434
[ 7645.462120] Node 0 Normal free:38456kB min:38324kB low:47904kB high:57484kB active_anon:33960kB inactive_anon:203576kB active_file:9616kB inactive_file:8644kB unevictable:4125984kB writepending:21744kB present:4691968kB managed:4544600kB mlocked:4125984kB slab_reclaimable:20960kB slab_unreclaimable:31192kB kernel_stack:3472kB pagetables:21360kB bounce:0kB free_pcp:2404kB local_pcp:672kB free_cma:0kB
[ 7645.462123] lowmem_reserve[]: 0 0 0 0 0
[ 7645.462125] Node 0 DMA: 2*4kB (U) 1*8kB (U) 2*16kB (U) 1*32kB (U) 3*64kB (U) 2*128kB (U) 0*256kB 0*512kB 1*1024kB (U) 1*2048kB (M) 3*4096kB (M) = 15888kB
[ 7645.462135] Node 0 DMA32: 160*4kB (UM) 124*8kB (UME) 153*16kB (UM) 77*32kB (UME) 56*64kB (UME) 37*128kB (UE) 27*256kB (UE) 17*512kB (E) 10*1024kB (E) 3*2048kB (E) 0*4096kB = 46864kB
[ 7645.462144] Node 0 Normal: 969*4kB (UM) 410*8kB (ME) 270*16kB (MEH) 79*32kB (MEH) 49*64kB (MEH) 9*128kB (H) 9*256kB (H) 7*512kB (H) 4*1024kB (H) 3*2048kB (H) 1*4096kB (H) = 38516kB
[ 7645.462155] 33632 total pagecache pages
[ 7645.462158] 6875 pages in swap cache
[ 7645.462159] Swap cache stats: add 6023568, delete 6013919, find 1637339/1872370
[ 7645.462160] Free swap  = 16534268kB
[ 7645.462160] Total swap = 16642044kB
[ 7645.462161] 2064898 pages RAM
[ 7645.462161] 0 pages HighMem/MovableOnly
[ 7645.462161] 53258 pages reserved
[ 7645.462162] 0 pages cma reserved
[ 7645.462162] 0 pages hwpoisoned
Comment 5 maria guadalupe 2017-04-18 21:52:15 UTC
Issue present with following configuration:

  Software
======================================
kernel version              : 4.11.0-rc6-drm-tip-94416e8-guc-huc-glk+
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
======================================
modesetting                 : modesetting_drv.so
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 model          : 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
xdpyinfo:  unable to open display ":0".
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
displays connected         : HDMI-A-2

======================================
             Firmware
======================================
dmc fw loaded             : yes
dmc version               : 1.4
Comment 6 Humberto Israel Perez Rodriguez 2017-05-17 23:12:51 UTC
The issue is present on the following test cases on APL with latest configuration :

igt@gem_tiled_swapping@threaded
igt@gem_workarounds@reset
igt@gem_workarounds@suspend-resume
igt@gem_exec_nop@headless
igt@gem_workarounds@basic-read
igt@gem_fence_upload@wc-contention
igt@gem_render_linear_blits@swap-thrash


======================================
             Software
======================================
kernel version              : 4.12.0-rc1-drm-tip-ww20-commit-713f8ec+
architecture                : x86_64
os version                  : Ubuntu 16.10
os codename                 : yakkety
kernel driver               : i915
bios revision               : 5.6
bios release date           : 03/10/2017
ksc                         : 16.0

======================================
        Graphic drivers
======================================
Component: drm
    tag: libdrm-2.4.80-11-ga2fa2e0
    commit: a2fa2e08692483cf9f4d06caa6e0f0add59e3343

Component: cairo
    tag: 1.15.4-21-g9d44136
    commit: 9d44136ef8e2a1ad2c6631beb4bbdaeed7a2dad8

Component: intel-gpu-tools
    tag: intel-gpu-tools-1.18-173-g93215b0
    commit: 93215b00db06ba568c34a6cad194f4749bbfbc9d

Component: piglit
    tag: piglit-v1
    commit: 7352f4a98a23eae1201bfc4a0121d9c3a969d23f

======================================
             Hardware
======================================
motherboard model          : NUC6CAYS
motherboard id             : NUC6CAYB
form factor                : Desktop
manufacturer               : Intelcorporation
cpu family                 : Celeron
cpu family id              : 6
cpu information            : Intel(R) Celeron(R) CPU J3455 @ 1.50GHz
gpu card                   : Intel Corporation Device 5a85 (rev 0b) (prog-if 00 [VGA controller])
memory ram                 : 15.54 GB
cpu thread                 : 4
cpu core                   : 4
cpu model                  : 92
cpu stepping               : 9
signature                  : Type 0, Family 6, Model 92, Stepping 9
current cd clock frequency : 384000 kHz
maximum cd clock frequency : 624000 kHz
displays connected         : DP-1 DP-2

======================================
             Firmware
======================================
dmc fw loaded             : yes
dmc version               : 1.7
guc fw loaded             : NONE
guc version wanted        : 0.0
guc version found         : 0.0
Add Comment
Comment 7 Humberto Israel Perez Rodriguez 2017-05-19 20:29:12 UTC
same issue on SKL with latest configuration

igt@gem_fence_upload@performance
igt@gem_fence_upload@wc-contention

======================================
        Graphic drivers
======================================
Component: drm
    tag: libdrm-2.4.80-11-ga2fa2e0
    commit: a2fa2e08692483cf9f4d06caa6e0f0add59e3343

Component: cairo
    tag: 1.15.4-21-g9d44136
    commit: 9d44136ef8e2a1ad2c6631beb4bbdaeed7a2dad8

Component: intel-gpu-tools
    tag: intel-gpu-tools-1.18-173-g93215b0
    commit: 93215b00db06ba568c34a6cad194f4749bbfbc9d

Component: piglit
    tag: piglit-v1
    commit: 7352f4a98a23eae1201bfc4a0121d9c3a969d23f
Comment 8 Jari Tahvanainen 2017-06-15 14:36:27 UTC
For original failure (see from comment 1 to comment 5), we have bug 100353. Let's use this to follow APL
igt@gem_workarounds@reset
igt@gem_workarounds@suspend-resume
igt@gem_exec_nop@headless
igt@gem_workarounds@basic-read
igt@gem_fence_upload@wc-contention
igt@gem_render_linear_blits@swap-thrash
and 
igt@gem_fence_upload@performance
igt@gem_fence_upload@wc-contention
Humberto: what was the platform for gem_fence_upload failures? Please provide also dmesg logs.
Comment 9 Humberto Israel Perez Rodriguez 2017-06-29 14:38:58 UTC
same issue with igt@gem_fence_upload@wc-contention on GLK with latest configuration

======================================
        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 10 Humberto Israel Perez Rodriguez 2017-06-29 14:46:40 UTC
(In reply to Jari Tahvanainen from comment #8)
> For original failure (see from comment 1 to comment 5), we have bug 100353.
> Let's use this to follow APL
> igt@gem_workarounds@reset
> igt@gem_workarounds@suspend-resume
> igt@gem_exec_nop@headless
> igt@gem_workarounds@basic-read
> igt@gem_fence_upload@wc-contention
> igt@gem_render_linear_blits@swap-thrash
> and 
> igt@gem_fence_upload@performance
> igt@gem_fence_upload@wc-contention
> Humberto: what was the platform for gem_fence_upload failures? Please
> provide also dmesg logs.

Please see the logs attached 
dmesg_GLK.log
kern_GLK.log
Comment 11 Humberto Israel Perez Rodriguez 2017-06-29 14:46:52 UTC
Created attachment 132343 [details]
dmesg_GLK.log
Comment 12 Humberto Israel Perez Rodriguez 2017-06-29 14:47:02 UTC
Created attachment 132344 [details]
kern_GLK.log
Comment 13 Imre Deak 2017-07-17 13:56:40 UTC
(In reply to Humberto Israel Perez Rodriguez from comment #12)
> Created attachment 132344 [details]
> kern_GLK.log

Hi Humberto,

the dmesg logs you attach don't contain any error, so I'm not sure what's failing for you on APL and GLK. Could you provide the output of the failing IGT tests and the dmesg log right after you captured the IGT failures on both platforms?

Also please provide the output of 'free -h' on the failing platforms.

Thanks.
Comment 14 Humberto Israel Perez Rodriguez 2017-07-18 13:29:38 UTC
(In reply to Imre Deak from comment #13)
> (In reply to Humberto Israel Perez Rodriguez from comment #12)
> > Created attachment 132344 [details]
> > kern_GLK.log
> 
> Hi Humberto,
> 
> the dmesg logs you attach don't contain any error, so I'm not sure what's
> failing for you on APL and GLK. Could you provide the output of the failing
> IGT tests and the dmesg log right after you captured the IGT failures on
> both platforms?
> 
> Also please provide the output of 'free -h' on the failing platforms.
> 
> Thanks.

Hi Imre, right now a IGT execution in on going for BXT and GLK, i expected that this execution will be finished on this week in order to double check this failures.

Cheers
Comment 15 Humberto Israel Perez Rodriguez 2017-07-24 22:37:12 UTC
(In reply to Humberto Israel Perez Rodriguez from comment #14)
> (In reply to Imre Deak from comment #13)
> > (In reply to Humberto Israel Perez Rodriguez from comment #12)
> > > Created attachment 132344 [details]
> > > kern_GLK.log
> > 
> > Hi Humberto,
> > 
> > the dmesg logs you attach don't contain any error, so I'm not sure what's
> > failing for you on APL and GLK. Could you provide the output of the failing
> > IGT tests and the dmesg log right after you captured the IGT failures on
> > both platforms?
> > 
> > Also please provide the output of 'free -h' on the failing platforms.
> > 
> > Thanks.
> 
> Hi Imre, right now a IGT execution in on going for BXT and GLK, i expected
> that this execution will be finished on this week in order to double check
> this failures.
> 
> Cheers




the following test : igt@gem_fence_upload@wc-contention on GLK still fail, please see the following information

stdoutput
=================================================
IGT-Version: 1.19-ga844ccb (x86_64) (Linux: 4.12.0-drm-tip-ww28-commit-bd5641a+ x86_64)
Contended upload rate for 1 linear threads/wc:	167.715MiB/s
Contended upload rate for 1 tiled threads/wc:	173.788MiB/s
Contended upload rate for 2 linear threads/wc:	 68.887MiB/s
Contended upload rate for 2 tiled threads/wc:	 70.537MiB/s
Contended upload rate for 4 linear threads/wc:	 42.922MiB/s
Contended upload rate for 4 tiled threads/wc:	 48.634MiB/s
Contended upload rate for 8 linear threads/wc:	 52.614MiB/s
Contended upload rate for 8 tiled threads/wc:	 55.096MiB/s
Contended upload rate for 16 linear threads/wc:	 56.516MiB/s
Contended upload rate for 16 tiled threads/wc:	 49.295MiB/s
Contended upload rate for 32 linear threads/wc:	 52.445MiB/s
Contended upload rate for 32 tiled threads/wc:	 54.054MiB/s
Contended upload rate for 64 linear threads/wc:	 50.370MiB/s
Contended upload rate for 64 tiled threads/wc:	 51.426MiB/s
Stack trace:
  #0 [__igt_fail_assert+0x101]
  #1 [__real_main391+0xca7]
  #2 [main+0x33]
  #3 [__libc_start_main+0xf1]
  #4 [_start+0x29]
  #5 [<unknown>+0x29]
Subtest wc-contention: FAIL (77.899s)

stderror
================================================
gem_fence_upload:32455) CRITICAL: Test assertion failure function wc_contention, file gem_fence_upload.c:387:
(gem_fence_upload:32455) CRITICAL: Failed assertion: linear[1] > 0.75 * linear[0]
Subtest wc-contention failed.
**** DEBUG ****
(gem_fence_upload:32455) drmtest-DEBUG: Test requirement passed: !(fd<0)
(gem_fence_upload:32455) igt-debugfs-DEBUG: Opening debugfs directory '/sys/kernel/debug/dri/0'
(gem_fence_upload:32455) DEBUG: Test requirement passed: gem_mmap__has_wc(fd)
(gem_fence_upload:32455) DEBUG: Test requirement passed: num_fences > 0
(gem_fence_upload:32455) INFO: Contended upload rate for 1 linear threads/wc:	167.715MiB/s
(gem_fence_upload:32455) INFO: Contended upload rate for 1 tiled threads/wc:	173.788MiB/s
(gem_fence_upload:32455) INFO: Contended upload rate for 2 linear threads/wc:	 68.887MiB/s
(gem_fence_upload:32455) INFO: Contended upload rate for 2 tiled threads/wc:	 70.537MiB/s
(gem_fence_upload:32455) INFO: Contended upload rate for 4 linear threads/wc:	 42.922MiB/s
(gem_fence_upload:32455) INFO: Contended upload rate for 4 tiled threads/wc:	 48.634MiB/s
(gem_fence_upload:32455) INFO: Contended upload rate for 8 linear threads/wc:	 52.614MiB/s
(gem_fence_upload:32455) INFO: Contended upload rate for 8 tiled threads/wc:	 55.096MiB/s
(gem_fence_upload:32455) INFO: Contended upload rate for 16 linear threads/wc:	 56.516MiB/s
(gem_fence_upload:32455) INFO: Contended upload rate for 16 tiled threads/wc:	 49.295MiB/s
(gem_fence_upload:32455) INFO: Contended upload rate for 32 linear threads/wc:	 52.445MiB/s
(gem_fence_upload:32455) INFO: Contended upload rate for 32 tiled threads/wc:	 54.054MiB/s
(gem_fence_upload:32455) INFO: Contended upload rate for 64 linear threads/wc:	 50.370MiB/s
(gem_fence_upload:32455) INFO: Contended upload rate for 64 tiled threads/wc:	 51.426MiB/s
(gem_fence_upload:32455) CRITICAL: Test assertion failure function wc_contention, file gem_fence_upload.c:387:
(gem_fence_upload:32455) CRITICAL: Failed assertion: linear[1] > 0.75 * linear[0]
****  END  ****


return code 99


free -h output on GLK
===========================================
              total        used        free      shared  buff/cache   available
Mem:           3.7G        290M        3.1G         12M        307M        3.2G
Swap:           15G          0B         15G
Comment 16 Humberto Israel Perez Rodriguez 2017-07-25 00:10:15 UTC
and for APL please see the following information

test cases 
============================
igt@gem_tiled_swapping@threaded <-- incomplete
igt@gem_workarounds@reset <-- fail
igt@gem_workarounds@suspend-resume <-- fail
igt@gem_exec_nop@headless <-- fail
igt@gem_workarounds@basic-read <-- fail
igt@gem_fence_upload@wc-contention <-- fail
igt@gem_render_linear_blits@swap-thrash <-- timeout



Stdout of igt@gem_workarounds@reset
===================================
	
IGT-Version: 1.19-ga844ccb (x86_64) (Linux: 4.12.0-drm-tip-ww28-commit-bd5641a+ x86_64)
Stack trace:
  #0 [__igt_fail_assert+0x101]
  #1 [check_workarounds+0xe7]
  #2 [__real_main124+0x7a]
  #3 [main+0x33]
  #4 [__libc_start_main+0xf1]
  #5 [_start+0x29]
  #6 [<unknown>+0x29]
Subtest reset: FAIL (0.036s)


Stderr of igt@gem_workarounds@reset
======================================
	
(gem_workarounds:1593) WARNING: 0x0E4F0	0x81008100	0x00008100	0x00000000	FAIL
(gem_workarounds:1593) WARNING: 0x0E184	0x00200020	0x00000020	0x00000000	FAIL
(gem_workarounds:1593) WARNING: 0x0E194	0x00140014	0x00000014	0x00000000	FAIL
(gem_workarounds:1593) WARNING: 0x0E180	0x20002000	0x00002000	0x00000000	FAIL
(gem_workarounds:1593) WARNING: 0x0E4F0	0x00200020	0x00000020	0x00000000	FAIL
(gem_workarounds:1593) CRITICAL: Test assertion failure function check_workarounds, file gem_workarounds.c:103:
(gem_workarounds:1593) CRITICAL: Failed assertion: workaround_fail_count() == 0
(gem_workarounds:1593) CRITICAL: Last errno: 2, No such file or directory
(gem_workarounds:1593) CRITICAL: error: 5 != 0
Subtest reset failed.
**** DEBUG ****
(gem_workarounds:1593) drmtest-DEBUG: Test requirement passed: !(fd<0)
(gem_workarounds:1593) igt-debugfs-DEBUG: Opening debugfs directory '/sys/kernel/debug/dri/0'
(gem_workarounds:1593) DEBUG: Address	val		mask		read		result
(gem_workarounds:1593) DEBUG: 0x0E4F0	0x81008100	0x00008100	0x00000000	FAIL
(gem_workarounds:1593) WARNING: 0x0E4F0	0x81008100	0x00008100	0x00000000	FAIL
(gem_workarounds:1593) DEBUG: 0x0E184	0x00200020	0x00000020	0x00000000	FAIL
(gem_workarounds:1593) WARNING: 0x0E184	0x00200020	0x00000020	0x00000000	FAIL
(gem_workarounds:1593) DEBUG: 0x0E194	0x00140014	0x00000014	0x00000000	FAIL
(gem_workarounds:1593) WARNING: 0x0E194	0x00140014	0x00000014	0x00000000	FAIL
(gem_workarounds:1593) DEBUG: 0x07004	0x00420042	0x00000042	0x000029C2	OK
(gem_workarounds:1593) DEBUG: 0x0E188	0x00080000	0x00000008	0x00000000	OK
(gem_workarounds:1593) DEBUG: 0x07300	0x80208020	0x00008020	0x00008830	OK
(gem_workarounds:1593) DEBUG: 0x07300	0x00100010	0x00000010	0x00008830	OK
(gem_workarounds:1593) DEBUG: 0x0E180	0x20002000	0x00002000	0x00000000	FAIL
(gem_workarounds:1593) WARNING: 0x0E180	0x20002000	0x00002000	0x00000000	FAIL
(gem_workarounds:1593) DEBUG: 0x024D0	0x00002248	0xFFFFFFFF	0x00002248	OK
(gem_workarounds:1593) DEBUG: 0x024D4	0x00002580	0xFFFFFFFF	0x00002580	OK
(gem_workarounds:1593) DEBUG: 0x024D8	0x00007304	0xFFFFFFFF	0x00007304	OK
(gem_workarounds:1593) DEBUG: 0x0E4F0	0x00200020	0x00000020	0x00000000	FAIL
(gem_workarounds:1593) WARNING: 0x0E4F0	0x00200020	0x00000020	0x00000000	FAIL
(gem_workarounds:1593) DEBUG: 0x020E4	0x04000400	0x00000400	0x00000400	OK
(gem_workarounds:1593) DEBUG: 0x07014	0x01000100	0x00000100	0x00000100	OK
(gem_workarounds:1593) DEBUG: 0x04AB0	0x0004AB1B	0x00040000	0x0004AB1B	OK
(gem_workarounds:1593) CRITICAL: Test assertion failure function check_workarounds, file gem_workarounds.c:103:
(gem_workarounds:1593) CRITICAL: Failed assertion: workaround_fail_count() == 0
(gem_workarounds:1593) CRITICAL: Last errno: 2, No such file or directory
(gem_workarounds:1593) CRITICAL: error: 5 != 0
****  END  ****


Returncode	99


$free -h
==================================================
              total        used        free      shared  buff/cache   available
Mem:            15G        497M         14G         65M        667M         14G
Swap:           15G          0B         15G
Comment 17 Imre Deak 2017-07-25 13:57:17 UTC
(In reply to Humberto Israel Perez Rodriguez from comment #15)
> (In reply to Humberto Israel Perez Rodriguez from comment #14)
> > (In reply to Imre Deak from comment #13)
> > > (In reply to Humberto Israel Perez Rodriguez from comment #12)
> > > > Created attachment 132344 [details]
> > > > kern_GLK.log
> > > 
> > > Hi Humberto,
> > > 
> > > the dmesg logs you attach don't contain any error, so I'm not sure what's
> > > failing for you on APL and GLK. Could you provide the output of the failing
> > > IGT tests and the dmesg log right after you captured the IGT failures on
> > > both platforms?
> > > 
> > > Also please provide the output of 'free -h' on the failing platforms.
> > > 
> > > Thanks.
> > 
> > Hi Imre, right now a IGT execution in on going for BXT and GLK, i expected
> > that this execution will be finished on this week in order to double check
> > this failures.
> > 
> > Cheers
> 
> the following test : igt@gem_fence_upload@wc-contention on GLK still fail,
> please see the following information

Thanks. Still missing the dmesg output right after this test run fail. Please provide the test stdout, stderr outputs + the dmesg captured right after the test run.

> 
> stdoutput
> =================================================
> IGT-Version: 1.19-ga844ccb (x86_64) (Linux:
> 4.12.0-drm-tip-ww28-commit-bd5641a+ x86_64)
> Contended upload rate for 1 linear threads/wc:	167.715MiB/s
> Contended upload rate for 1 tiled threads/wc:	173.788MiB/s
> Contended upload rate for 2 linear threads/wc:	 68.887MiB/s
> Contended upload rate for 2 tiled threads/wc:	 70.537MiB/s
> Contended upload rate for 4 linear threads/wc:	 42.922MiB/s
> Contended upload rate for 4 tiled threads/wc:	 48.634MiB/s
> Contended upload rate for 8 linear threads/wc:	 52.614MiB/s
> Contended upload rate for 8 tiled threads/wc:	 55.096MiB/s
> Contended upload rate for 16 linear threads/wc:	 56.516MiB/s
> Contended upload rate for 16 tiled threads/wc:	 49.295MiB/s
> Contended upload rate for 32 linear threads/wc:	 52.445MiB/s
> Contended upload rate for 32 tiled threads/wc:	 54.054MiB/s
> Contended upload rate for 64 linear threads/wc:	 50.370MiB/s
> Contended upload rate for 64 tiled threads/wc:	 51.426MiB/s
> Stack trace:
>   #0 [__igt_fail_assert+0x101]
>   #1 [__real_main391+0xca7]
>   #2 [main+0x33]
>   #3 [__libc_start_main+0xf1]
>   #4 [_start+0x29]
>   #5 [<unknown>+0x29]
> Subtest wc-contention: FAIL (77.899s)
> 
> stderror
> ================================================
> gem_fence_upload:32455) CRITICAL: Test assertion failure function
> wc_contention, file gem_fence_upload.c:387:
> (gem_fence_upload:32455) CRITICAL: Failed assertion: linear[1] > 0.75 *
> linear[0]
> Subtest wc-contention failed.
> **** DEBUG ****
> (gem_fence_upload:32455) drmtest-DEBUG: Test requirement passed: !(fd<0)
> (gem_fence_upload:32455) igt-debugfs-DEBUG: Opening debugfs directory
> '/sys/kernel/debug/dri/0'
> (gem_fence_upload:32455) DEBUG: Test requirement passed: gem_mmap__has_wc(fd)
> (gem_fence_upload:32455) DEBUG: Test requirement passed: num_fences > 0
> (gem_fence_upload:32455) INFO: Contended upload rate for 1 linear
> threads/wc:	167.715MiB/s
> (gem_fence_upload:32455) INFO: Contended upload rate for 1 tiled threads/wc:
> 173.788MiB/s
> (gem_fence_upload:32455) INFO: Contended upload rate for 2 linear
> threads/wc:	 68.887MiB/s
> (gem_fence_upload:32455) INFO: Contended upload rate for 2 tiled threads/wc:
> 70.537MiB/s
> (gem_fence_upload:32455) INFO: Contended upload rate for 4 linear
> threads/wc:	 42.922MiB/s
> (gem_fence_upload:32455) INFO: Contended upload rate for 4 tiled threads/wc:
> 48.634MiB/s
> (gem_fence_upload:32455) INFO: Contended upload rate for 8 linear
> threads/wc:	 52.614MiB/s
> (gem_fence_upload:32455) INFO: Contended upload rate for 8 tiled threads/wc:
> 55.096MiB/s
> (gem_fence_upload:32455) INFO: Contended upload rate for 16 linear
> threads/wc:	 56.516MiB/s
> (gem_fence_upload:32455) INFO: Contended upload rate for 16 tiled
> threads/wc:	 49.295MiB/s
> (gem_fence_upload:32455) INFO: Contended upload rate for 32 linear
> threads/wc:	 52.445MiB/s
> (gem_fence_upload:32455) INFO: Contended upload rate for 32 tiled
> threads/wc:	 54.054MiB/s
> (gem_fence_upload:32455) INFO: Contended upload rate for 64 linear
> threads/wc:	 50.370MiB/s
> (gem_fence_upload:32455) INFO: Contended upload rate for 64 tiled
> threads/wc:	 51.426MiB/s
> (gem_fence_upload:32455) CRITICAL: Test assertion failure function
> wc_contention, file gem_fence_upload.c:387:
> (gem_fence_upload:32455) CRITICAL: Failed assertion: linear[1] > 0.75 *
> linear[0]
> ****  END  ****
> 
> 
> return code 99
> 
> 
> free -h output on GLK
> ===========================================
>               total        used        free      shared  buff/cache  
> available
> Mem:           3.7G        290M        3.1G         12M        307M       
> 3.2G
> Swap:           15G          0B         15G
Comment 18 Hector Velazquez 2017-07-25 20:46:17 UTC
The following test PASS on IVB with this configuration

Tests List:

gem_tiled_swapping --r non-threaded
gem_tiled_swapping --r threaded


This is my configuration:

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


======================================
             Hardware
======================================
motherboard model          : 2349AZ2
motherboard id             : 2349AZ2
form factor                : Notebook
manufacturer               : LENOVO
cpu family                 : Core i5
cpu family id              : 6
cpu information            : Intel(R) Core(TM) i5-3320M CPU @ 2.60GHz
gpu card                   : Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09) (prog-if 00 [VGA controller])
memory ram                 : 3.71 GB
max memory ram             : 16 GB
cpu thread                 : 4
cpu core                   : 2
cpu model                  : 58
cpu stepping               : 9
socket                     : Socket rPGA988B
signature                  : Type 0, Family 6, Model 58, Stepping 9
hard drive                 : 111GiB (120GB)
current cd clock frequency : 400000 kHz
maximum cd clock frequency : 400000 kHz
displays connected         : LVDS-1 DP-1


Note: Removing IVB from this BUG since test is shown as PASSED...
Comment 19 Hector Velazquez 2017-07-25 20:46:35 UTC
Created attachment 132977 [details]
Tests Log (IVB)
Comment 20 Hector Velazquez 2017-07-25 20:46:48 UTC
Created attachment 132978 [details]
Dmesg.log (IVB)
Comment 21 Ricardo Madrigal 2017-08-02 19:37:31 UTC
The following test PASS on GLK with this configuration 

Tests List:
==============================================
gem_tiled_swapping --r non-threaded
gem_tiled_swapping --r threaded
==============================================

Configuration:

====================================================
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-125-gf145475
    commit: f145475173b6d28e550dde27cc361cfb517cbbc3

Component: piglit
    tag: piglit-v1
    commit: 3ff4501e5b8c3f44dfb284edb60b4db7b71ed290


kernel version: 4.13.0-rc3-

======================================
             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 3184 (rev 01) (prog-if 00 [VGA controller])
memory ram                 : 7.6 GB
max memory ram             : 16 GB
cpu thread                 : 4
cpu core                   : 4
cpu model                  : 122
cpu stepping               : 0
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

adding results and dmesg logs
Comment 22 Ricardo Madrigal 2017-08-02 19:38:01 UTC
Created attachment 133211 [details]
results.log
Comment 23 Ricardo Madrigal 2017-08-02 19:38:17 UTC
Created attachment 133212 [details]
dmesg.log
Comment 24 Ricardo Madrigal 2017-08-02 20:02:09 UTC
The following tests pass on BXT with latest configuration

====================================================
Test list
====================================================
gem_tiled_swapping --r non-threaded
gem_tiled_swapping --r threaded
====================================================
Graphic Stack
====================================================
Component: drm
    tag: libdrm-2.4.81-27-gac21401
    commit: ac214017904b31bc5f80f802d748d5f4f3149d22

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

Component: intel-gpu-tools
    tag: intel-gpu-tools-1.19-88-ga844ccb
    commit: a844ccbdbab9fd16c37de81281c6281bc800e97a

Component: piglit
    tag: piglit-v1
    commit: 8717219b07c0cf2853540c373725a23654467d45


======================================
             Hardware
======================================
motherboard model          : NUC6CAYS
motherboard id             : NUC6CAYB
form factor                : Desktop
manufacturer               : Intelcorporation
cpu family                 : Celeron
cpu family id              : 6
cpu information            : Intel(R) Celeron(R) CPU J3455 @ 1.50GHz
gpu card                   : Intel Corporation Device 5a85 (rev 0b) (prog-if 00 [VGA controller])
memory ram                 : 15.54 GB
max memory ram             : 32 GB
cpu thread                 : 4
cpu core                   : 4
cpu model                  : 92
cpu stepping               : 9
socket                     : Other
signature                  : Type 0, Family 6, Model 92, Stepping 9
hard drive                 : 279GiB (300GB)
current cd clock frequency : 288000 kHz
maximum cd clock frequency : 624000 kHz
displays connected         : DP-1 DP-2
Comment 25 Ricardo Madrigal 2017-08-02 20:02:35 UTC
Created attachment 133213 [details]
result.log
Comment 26 Ricardo Madrigal 2017-08-02 20:02:52 UTC
Created attachment 133214 [details]
dmesg.log
Comment 27 Ricardo Madrigal 2017-08-02 21:55:21 UTC
The original test reported in this bug case are already passed; With this, we are going to proceed to close this bug.

For continuation of the tests added later please open a new bug for each IGT family 

Greetings.

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.