Bug 97942

Summary: [IGT][BYT/BXT] gem_mmap_gtt subtest basic-wc fails due to Test assertion failure
Product: DRI Reporter: Luis Botello <luis.botello.ortega>
Component: IGTAssignee: Default DRI bug account <dri-devel>
Status: CLOSED WORKSFORME QA Contact:
Severity: blocker    
Priority: highest CC: intel-gfx-bugs
Version: XOrg git   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: BYT i915 features: display/Other
Attachments:
Description Flags
dmesg none

Description Luis Botello 2016-09-26 23:16:01 UTC
Created attachment 126799 [details]
dmesg

Description
==========================================
gem_mmap_gtt subtest basic-wc fails due to Test assertion failure

Software Configuration
===========================================
drm:  commit: 0659558f6418693ad203b5de2f1bc4fa9f28708e
mesa:  commit: 8b06176f310f65628ce136b90a99005278ba5e0d
cairo:  commit: db8a7f1697c49ae4942d2aa49eed52dd73dd9c7a
xorg-server-macros:  commit: d7acec2d3a3abe79814ceb72e2c0d4d95ed31d37
xserver:  commit: 3ef51c5c74297937002668b0c507fa88550db67e
xf86-video-intel:  commit: 15c5ff12459a034b552c787047d1af6d61047cd6
libva: commit: 7aa2dd979a3758e1f6378344b235595c5028a9e7
vaapi-intel-driver:  commit: 36fbd817428d3a257f59bb1ca28ed491c3981616
piglit:  commit: 1b071c6304dc69a3f754fd1196afde8f9688bb8e
intel-gpu-tool:  commit: 200237acac00f24730b0c5b4362936b6c510b0ed

kernel 
commit aab15c274da587bcab19376d2caa9d6626440335
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Mon Sep 26 15:11:53 2016 +0300

    drm-intel-nightly: 2016y-09m-26d-12h-11m-33s UTC integration manifest


Hardware Configuration
=============================================
Platform: Acer Aspire XC-603
CPU: Intel(R) Pentium(R) CPU  J2900  @ 2.41GHz (family 6, model 55, stepping 8)
Motherboard: Aspire XC-603
GPU: Intel® HD Graphics - Intel Corporation Atom Processor Z36xxx/Z37xxx Series Graphics & Display (rev 0e)

Steps to reproduce
=========================================
./gem_mmap_gtt --run-subtest basic-wc

IGT output
==========================================
IGT-Version: 1.16-g32b2021 (x86_64) (Linux: 4.8.0-rc8-nightly+ x86_64)
(gem_mmap_gtt:14618) CRITICAL: Test assertion failure function test_wc, file gem_mmap_gtt.c:283:
(gem_mmap_gtt:14618) CRITICAL: Failed assertion: gtt_writes > cpu_writes/2
(gem_mmap_gtt:14618) CRITICAL: Write-Combined writes are expected to be roughly equivalent to WB writes: WC (gtt)=2441.84MiB/s, WB (cpu)=5304.02MiB/s
Stack trace:
  #0 [__igt_fail_assert+0xf1]
  #1 [__real_main626+0x10ce]
  #2 [main+0x29]
  #3 [__libc_start_main+0xf0]
  #4 [_start+0x29]
  #5 [<unknown>+0x29]
Subtest basic-wc failed.
**** DEBUG ****
(gem_mmap_gtt:14618) DEBUG: 3398 GTT reads in 200us
(gem_mmap_gtt:14618) DEBUG: 125022 GTT writes in 200us
(gem_mmap_gtt:14618) DEBUG: 271566 CPU writes in 200us
(gem_mmap_gtt:14618) CRITICAL: Test assertion failure function test_wc, file gem_mmap_gtt.c:283:
(gem_mmap_gtt:14618) CRITICAL: Failed assertion: gtt_writes > cpu_writes/2
(gem_mmap_gtt:14618) CRITICAL: Write-Combined writes are expected to be roughly equivalent to WB writes: WC (gtt)=2441.84MiB/s, WB (cpu)=5304.02MiB/s
****  END  ****
Subtest basic-wc: FAIL (0.631s)


Attachments
==============================================
dmesg
Comment 1 Chris Wilson 2016-09-27 07:29:30 UTC
Yes, expected failure for this *hardware*.
Comment 2 cprigent 2016-09-29 09:31:11 UTC
Can the test return Pass to avoid confusion?
Comment 3 Chris Wilson 2016-09-29 09:46:47 UTC
No. That would be silly.
Comment 4 yann 2016-09-29 09:49:31 UTC
(In reply to Chris Wilson from comment #1)
> Yes, expected failure for this *hardware*.

If this is expected, I guess we should have assertion and then SKIP test in that case
Comment 5 Elio 2016-11-23 22:10:40 UTC
The test is failing as expected.

Platform BYT: Acer Aspire XC-603
CPU: Intel(R) Pentium(R) CPU  J2900  @ 2.41GHz (family 6, model 55, stepping 8)
Motherboard: Aspire XC-603
GPU: Intel® HD Graphics - Intel Corporation Atom Processor Z36xxx/Z37xxx Series Graphics & Display (rev 0e)

Software
Bios: P11-B2
Linux distribution: Ubuntu 16.04 64 bits

Kernel: 4.9.0-rc4 91e164f branch drm-intel-nightly from http://cgit.freedesktop.org/drm-intel/ 
  commit 91e164fea17d3e5366048b6eae3c6eea4e14e9fe
  Author: Ville Syrjälä <ville.syrjala@linux.intel.com>
  Date:   Mon Nov 14 16:31:06 2016 +0200
  drm-intel-nightly: 2016y-11m-14d-14h-30m-30s UTC integration manifest

libdrm-2.4.71-13 670f1e4 from git://anongit.freedesktop.org/mesa/drm
mesa: mesa-13.0.0 df1b0a5 from git://anongit.freedesktop.org/mesa/mesa
cairo 1.15.2 db8a7f1 from git://anongit.freedesktop.org/cairo
xorg-server-1.18.99.902-2 7513da4 from git://git.freedesktop.org/git/xorg/xserver
xf86-video-intel 2.99.917-731 d1d14f2 from git://git.freedesktop.org/git/xorg/driver/xf86-video-intel
libva-1.7.2-40 3a7547b from git://git.freedesktop.org/git/vaapi/libva 
vaapi-intel-driver: 1.7.2-157 55a538c from git://git.freedesktop.org/git/vaapi/intel-driver
intel-gpu-tools-1.16-132 773ac7c from http://anongit.freedesktop.org/git/xorg/app/intel-gpu-tools.git

External screen: DELL U2312HM (VGA)
Comment 6 Humberto Israel Perez Rodriguez 2017-05-17 19:21:52 UTC
The following test cases failure on BXT with latest configuration

igt@gem_mmap@swap-bo
igt@gem_mmap_gtt@coherency
igt@gem_mmap_gtt@swap-copy
igt@gem_mmap_gtt@swap-copy-odd
igt@gem_mmap_gtt@swap-copy-xy



======================================
             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 Ricardo Madrigal 2017-07-20 18:42:48 UTC
The following tests fail on BYT with latest configuration

====================================================
Test list
====================================================
igt@gem_mmap_gtt@coherency

====================================================
Graphic Stack
====================================================
Component: drm
     tag: libdrm-2.4.81-31-g23e234a
     commit: 23e234a3503f51b9d9c585123d33b936f522808d
Component: cairo
    tag: 1.15.6-2-g57b4050
    commit: 57b40507dda3f58dfc8635548d606b86dc7bcf51
Component: intel-gpu-tools
    tag: intel-gpu-tools-1.19-96-gfb1ddc4
    commit: fb1ddc47003ad6a683db79beeb81b6cbab1feb7c
Component: piglit
    tag: piglit-v1
    commit: 56e7e5583cd4a3ca15a8cda154d46d168959dd25

======================================
             Hardware
======================================
motherboard model          : .................................
motherboard id             : DN2820FYK
form factor                : Desktop
manufacturer               : .................................
cpu family                 : Celeron
cpu family id              : 6
cpu information            : Intel(R) Celeron(R) CPU  N2830  @ 2.16GHz
gpu card                   : Intel Corporation Atom Processor Z36xxx/Z37xxx Series Graphics & Display (rev 0e) (prog-if 00 [VGA controller])
memory ram                 : 7.66 GB
max memory ram             : 8 GB
cpu thread                 : 2
cpu core                   : 2
cpu model                  : 55
cpu stepping               : 8
socket                     : <OUT OF SPEC>
signature                  : Type 0, Family 6, Model 55, Stepping 8
hard drive                 : 111GiB (120GB)
current cd clock frequency : 266667 kHz
maximum cd clock frequency : 400000 kHz
displays connected         : HDMI-A-1
Comment 8 Elizabeth 2017-10-10 20:58:16 UTC
(In reply to Humberto Israel Perez Rodriguez from comment #6)
> The following test cases failure on BXT with latest configuration
> 
> igt@gem_mmap@swap-bo
> igt@gem_mmap_gtt@coherency
> igt@gem_mmap_gtt@swap-copy
> igt@gem_mmap_gtt@swap-copy-odd
> igt@gem_mmap_gtt@swap-copy-xy

Please note that:
Test igt@gem_mmap_gtt@basic-wc is being follow on bug 102995 also.
Test igt@gem_mmap_gtt@coherency is being follow on bug 100587.
Test igt@gem_mmap@swap-bo is being follow on bug 101701.

A different bug should be used for swap-copy* tests:

igt@gem_mmap_gtt@swap-copy
igt@gem_mmap_gtt@swap-copy-odd
igt@gem_mmap_gtt@swap-copy-xy

Also there is no track of these (swap-copy*) on CI.

Thank you.
Comment 10 Jani Saarinen 2018-05-23 11:35:59 UTC
igt@gem_mmap_gtt@swap-copy* are blacklisted on CI: 
https://cgit.freedesktop.org/drm/igt-gpu-tools/tree/tests/intel-ci/blacklist.txt

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.