Bug 101264 - [IGT] [BSW/GLK] prime_mmap_coherency Test assertion failure function main
Summary: [IGT] [BSW/GLK] prime_mmap_coherency Test assertion failure function main
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: DRI git
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Intel GFX Bugs mailing list
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard: ReadyForDev
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-01 00:26 UTC by Humberto Israel Perez Rodriguez
Modified: 2018-02-13 16:12 UTC (History)
1 user (show)

See Also:
i915 platform: BSW/CHT, GLK
i915 features: display/Other


Attachments
dmesg.log (91.86 KB, text/plain)
2017-06-01 00:26 UTC, Humberto Israel Perez Rodriguez
no flags Details
kern.log (146.38 KB, text/plain)
2017-06-01 00:26 UTC, Humberto Israel Perez Rodriguez
no flags Details

Description Humberto Israel Perez Rodriguez 2017-06-01 00:26:02 UTC
Created attachment 131629 [details]
dmesg.log

The following test case fail on BSW with latest configuration

igt@prime_mmap_coherency@write


test output
======================================
rime_mmap_coherency.c:169
(prime_mmap_coherency:1304) WARNING: Found 0x00000000 at offset 0x0001112b
(prime_mmap_coherency:1304) WARNING: Warning on condition !expect_stale_cache in function test_write_flush, file prime_mmap_coherency.c:169
(prime_mmap_coherency:1304) WARNING: Found 0x00000000 at offset 0x0001112c
(prime_mmap_coherency:1304) WARNING: Warning on condition !expect_stale_cache in function test_write_flush, file prime_mmap_coherency.c:169
(prime_mmap_coherency:1304) WARNING: Found 0x00000000 at offset 0x0001112d
(prime_mmap_coherency:1304) WARNING: Warning on condition !expect_stale_cache in function test_write_flush, file prime_mmap_coherency.c:169
(prime_mmap_coherency:1304) WARNING: Found 0x00000000 at offset 0x0001112e
(prime_mmap_coherency:1304) WARNING: Warning on condition !expect_stale_cache in function test_write_flush, file prime_mmap_coherency.c:169
(prime_mmap_coherency:1304) WARNING: Found 0x00000000 at offset 0x0001112f
(prime_mmap_coherency:1304) CRITICAL: Test assertion failure function main, file prime_mmap_coherency.c:320:
(prime_mmap_coherency:1304) CRITICAL: Failed assertion: !(stale)
(prime_mmap_coherency:1304) CRITICAL: num of stale cache lines 112
****  END  ****
Subtest write: FAIL (0.721s)
(prime_mmap_coherency:1304) igt-core-DEBUG: Exiting with status code 99
(prime_mmap_coherency:1304) igt-debugfs-DEBUG: Opening debugfs directory '/sys/kernel/debug/dri/0'



Software
======================================
kernel version              : 4.12.0-rc3-drm-tip-ww22-commit-4aa1d46+
architecture                : x86_64
os version                  : Ubuntu 16.10
os codename                 : yakkety
kernel driver               : i915
bios revision               : 0.33
bios release date           : 08/12/2015
ksc                         : 0.16


Graphic drivers
===================================================
Component: drm
    tag: libdrm-2.4.80-18-gce9e3ba
    commit: ce9e3ba6e2cc65e1e9e6e05a5f326c4dd25ab2c4

Component: cairo
    tag: 1.15.4-22-g0fd0fd0
    commit: 0fd0fd0ae9ad8cfb177bb844091de98c0235917e

Component: intel-gpu-tools
    tag: intel-gpu-tools-1.18-211-g00ce341
    commit: 00ce341b95c718611689ded8ccec45086186c5b7

Component: piglit
    tag: piglit-v1
    commit: ebbb9c5dcc6a637884d54e06eb430a8c14993413

kernel
===================================================
commit 4aa1d46d3b24bbe545cdf7cbd407c18f5cd5e43d
Author:     Daniel Vetter <daniel.vetter@ffwll.ch>
AuthorDate: Wed May 31 10:59:05 2017 +0200
Commit:     Daniel Vetter <daniel.vetter@ffwll.ch>
CommitDate: Wed May 31 10:59:05 2017 +0200

    drm-tip: 2017y-05m-31d-08h-58m-36s UTC integration manifest
	
======================================
             Hardware
======================================
platform                   : BSW
motherboard model          : 10G9000NUS
motherboard id             : BRASWELL
form factor                : Desktop
manufacturer               : LENOVO
cpu family                 : Pentium
cpu family id              : 6
cpu information            : Intel(R) Pentium(R) CPU  N3700  @ 1.60GHz
gpu card                   : Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Integrated Graphics Controller (rev 21) (prog-if 00 [VGA controller])
memory ram                 : 7.68 GB
max memory ram             : 8 GB
cpu thread                 : 4
cpu core                   : 4
cpu model                  : 76
cpu stepping               : 3
socket                     : Socket BGA1155
signature                  : Type 0, Family 6, Model 76, Stepping 3
hard drive                 : 476GiB (512GB)
current cd clock frequency : 266667 kHz
maximum cd clock frequency : 320000 kHz
displays connected         : DP-1 DP-3


======================================
             kernel parameters
======================================
quiet drm.debug=0xe auto panic=1 nmi_watchdog=panic resume=/dev/sda3 fastboot


Attachments
======================================
dmesg,log
kern.log
Comment 1 Humberto Israel Perez Rodriguez 2017-06-01 00:26:21 UTC
Created attachment 131630 [details]
kern.log
Comment 2 Humberto Israel Perez Rodriguez 2017-06-29 15:19:29 UTC
same issue with GLK and 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 3 Hector Velazquez 2017-07-28 21:00:56 UTC
The following tests FAIL on BSW with this configuration

Tests List:

igt@prime_mmap_coherency@write



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

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



**************************************************************
* * * * * * * * SPECIFICATIONS * * * * * * * * * * * 
**************************************************************

======================================
             Software
======================================
kernel version              : 4.13.0-rc2-drm-tip-ww30-commit-1eb8669+
/bin/bash: BSW-1-BRASWELL: command not found
architecture                : x86_64
os version                  : Ubuntu 16.10
os codename                 : yakkety
kernel driver               : i915
bios revision               : 0.33
bios release date           : 08/12/2015
ksc                         : 0.16
hardware acceleration       : disabled
swap partition              : enabled on (/dev/sda3)

======================================
        Graphic drivers
======================================
modesetting                 : enabled
modesetting compiled for    : 1.18.4 X.Org Video Driver
xorg-xserver                : 1.18.4
libdrm                      : 2.4.82
cairo                       : 1.15.7
intel-gpu-tools (tag)       : intel-gpu-tools-1.19-125-gf145475
intel-gpu-tools (commit)    : f145475

======================================
             Hardware
======================================
platform                   : Braswell
motherboard model          : 10G9000NUS
motherboard id             : BRASWELL
form factor                : Desktop
manufacturer               : LENOVO
cpu family                 : Pentium
cpu family id              : 6
cpu information            : Intel(R) Pentium(R) CPU  N3700  @ 1.60GHz
gpu card                   : Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Integrated Graphics Controller (rev 21) (prog-if 00 [VGA controller])
memory ram                 : 7.68 GB
max memory ram             : 8 GB
cpu thread                 : 4
cpu core                   : 4
cpu model                  : 76
cpu stepping               : 3
socket                     : Socket BGA1155
signature                  : Type 0, Family 6, Model 76, Stepping 3
hard drive                 : 74GiB (80GB)
current cd clock frequency : 266667 kHz
maximum cd clock frequency : 320000 kHz
displays connected         : DP-1 DP-3

======================================
             Firmware
======================================

======================================
             kernel parameters
======================================
quiet drm.debug=0x1e resume=/dev/sda3 fastboot
Comment 4 maria guadalupe 2017-08-02 22:43:28 UTC
this test passed with the following configuration for BSW & GLK

* prime_mmap_coherency@write
 
======================================
             Software
======================================
kernel version              : 4.13.0-rc3-drm-tip-ww31-commit-fcb630a+
/bin/bash: gfx-desktop: command not found
architecture                : x86_64
os version                  : Ubuntu 17.04
os codename                 : zesty
kernel driver               : i915
bios revision               : 52.23
ksc                         : 1.36

======================================
        Graphic drivers
======================================
modesetting                 : enabled
modesetting compiled for    : 1.19.3 X.Org Video Driver
xorg-xserver                : 1.19.3
intel-gpu-tools             : 1.17-1

======================================
             Hardware
======================================
platform                   : Geminilake
motherboard model          : Geminilake
motherboard id             : GLKRVP1DDR4(05)
form factor                : Hand Held
manufacturer               : IntelCorp.
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                 : 5.64 GB
max memory ram             : 16 GB
display resolution         : 3840x1080
cpu thread                 : 4
cpu core                   : 4
hard drive                 : 223GiB (240GB)
current cd clock frequency : 316800 kHz
maximum cd clock frequency : 316800 kHz
displays connected         : eDP-1 HDMI-A-2 DP

OUTPUT
==================================================
./prime_mmap_coherency --r write
IGT-Version: 1.19-g6e1ccfa (x86_64) (Linux: 4.13.0-rc3-drm-tip-ww31-commit-fcb630a+ x86_64)
20 rounds for each test
exercising write flush
Subtest write: SUCCESS (3.305s)
Comment 5 maria guadalupe 2018-02-13 16:12:25 UTC
the following test is failing on KBL

igt@prime_mmap_coherency@write 

**** DEBUG ****
(prime_mmap_coherency:2191) CRITICAL: Test assertion failure function test_read_flush, file prime_mmap_coherency.c:80:
(prime_mmap_coherency:2191) CRITICAL: Failed assertion: ptr_cpu != MAP_FAILED
(prime_mmap_coherency:2191) CRITICAL: Last errno: 9, Bad file descriptor

**** Configuration ****
======================================
kernel version              : 4.15.0-drm-intel-qa-ww6-commit-6c10ba2+
libdrm                      : 2.4.89
cairo                       : 1.15.11
intel-gpu-tools (tag)       : intel-gpu-tools-1.20-310-g37bd27

 ***** Firmware *****
======================================
dmc fw loaded             : yes
dmc version               : 1.4
guc fw loaded             : fetch SUCCESS, load SUCCESS
guc version wanted        : wanted 9.39, found 9.39
guc version found         : wanted 9.39, found 9.39


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.