Bug 94216 - [IGT] [BXT-P] igt/prime_mmap_coherency/read-and-fail subtest fail
Summary: [IGT] [BXT-P] igt/prime_mmap_coherency/read-and-fail subtest fail
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:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-19 15:09 UTC by Rami
Modified: 2017-06-27 16:02 UTC (History)
1 user (show)

See Also:
i915 platform: BXT
i915 features: display/Other


Attachments
dmesg (284.80 KB, text/plain)
2016-02-19 15:09 UTC, Rami
no flags Details

Description Rami 2016-02-19 15:09:29 UTC
Created attachment 121844 [details]
dmesg

This subtest is fail 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/


Steps:
======
./prime_mmap_coherency --run-subtest read-and-fail

Actual result:
=========
./prime_mmap_coherency --run-subtest read-and-fail
IGT-Version: 1.13-NOT-GIT (x86_64) (Linux: 4.5.0-rc4-no-suspend-ww08+ x86_64)
20 rounds for each test
exercising read flush and expect to fail on !llc
(prime_mmap_coherency:3732) CRITICAL: Test assertion failure function main, file prime_mmap_coherency.c:216:
(prime_mmap_coherency:3732) CRITICAL: Failed assertion: !(!stale)
(prime_mmap_coherency:3732) CRITICAL: couldn't find any stale cache lines
Stack trace:
  #0 [__igt_fail_assert+0xf1]
  #1 [main+0x314]
  #2 [__libc_start_main+0xf0]
  #3 [_start+0x29]
  #4 [<unknown>+0x29]
Subtest read-and-fail failed.
**** DEBUG ****
(prime_mmap_coherency:3732) INFO: exercising read flush and expect to fail on !llc
(prime_mmap_coherency:3732) DEBUG: Test requirement passed: !gem_has_llc(fd)
(prime_mmap_coherency:3732) DEBUG: Test requirement passed: !(errno == EINVAL)
(prime_mmap_coherency:3732) DEBUG: Test requirement passed: !gem_has_llc(fd)
(prime_mmap_coherency:3732) DEBUG: Test requirement passed: !(errno == EINVAL)
(prime_mmap_coherency:3732) DEBUG: Test requirement passed: !gem_has_llc(fd)
(prime_mmap_coherency:3732) DEBUG: Test requirement passed: !(errno == EINVAL)
(prime_mmap_coherency:3732) DEBUG: Test requirement passed: !gem_has_llc(fd)
(prime_mmap_coherency:3732) DEBUG: Test requirement passed: !(errno == EINVAL)
(prime_mmap_coherency:3732) DEBUG: Test requirement passed: !gem_has_llc(fd)
(prime_mmap_coherency:3732) DEBUG: Test requirement passed: !(errno == EINVAL)
(prime_mmap_coherency:3732) DEBUG: Test requirement passed: !gem_has_llc(fd)
(prime_mmap_coherency:3732) DEBUG: Test requirement passed: !(errno == EINVAL)
(prime_mmap_coherency:3732) DEBUG: Test requirement passed: !gem_has_llc(fd)
(prime_mmap_coherency:3732) DEBUG: Test requirement passed: !(errno == EINVAL)
(prime_mmap_coherency:3732) DEBUG: Test requirement passed: !gem_has_llc(fd)
(prime_mmap_coherency:3732) DEBUG: Test requirement passed: !(errno == EINVAL)
(prime_mmap_coherency:3732) DEBUG: Test requirement passed: !gem_has_llc(fd)
(prime_mmap_coherency:3732) DEBUG: Test requirement passed: !(errno == EINVAL)
(prime_mmap_coherency:3732) DEBUG: Test requirement passed: !gem_has_llc(fd)
(prime_mmap_coherency:3732) DEBUG: Test requirement passed: !(errno == EINVAL)
(prime_mmap_coherency:3732) DEBUG: Test requirement passed: !gem_has_llc(fd)
(prime_mmap_coherency:3732) DEBUG: Test requirement passed: !(errno == EINVAL)
(prime_mmap_coherency:3732) DEBUG: Test requirement passed: !gem_has_llc(fd)
(prime_mmap_coherency:3732) DEBUG: Test requirement passed: !(errno == EINVAL)
(prime_mmap_coherency:3732) DEBUG: Test requirement passed: !gem_has_llc(fd)
(prime_mmap_coherency:3732) DEBUG: Test requirement passed: !(errno == EINVAL)
(prime_mmap_coherency:3732) DEBUG: Test requirement passed: !gem_has_llc(fd)
(prime_mmap_coherency:3732) DEBUG: Test requirement passed: !(errno == EINVAL)
(prime_mmap_coherency:3732) DEBUG: Test requirement passed: !gem_has_llc(fd)
(prime_mmap_coherency:3732) DEBUG: Test requirement passed: !(errno == EINVAL)
(prime_mmap_coherency:3732) DEBUG: Test requirement passed: !gem_has_llc(fd)
(prime_mmap_coherency:3732) DEBUG: Test requirement passed: !(errno == EINVAL)
(prime_mmap_coherency:3732) DEBUG: Test requirement passed: !gem_has_llc(fd)
(prime_mmap_coherency:3732) DEBUG: Test requirement passed: !(errno == EINVAL)
(prime_mmap_coherency:3732) DEBUG: Test requirement passed: !gem_has_llc(fd)
(prime_mmap_coherency:3732) DEBUG: Test requirement passed: !(errno == EINVAL)
(prime_mmap_coherency:3732) DEBUG: Test requirement passed: !gem_has_llc(fd)
(prime_mmap_coherency:3732) DEBUG: Test requirement passed: !(errno == EINVAL)
(prime_mmap_coherency:3732) DEBUG: Test requirement passed: !gem_has_llc(fd)
(prime_mmap_coherency:3732) DEBUG: Test requirement passed: !(errno == EINVAL)
(prime_mmap_coherency:3732) CRITICAL: Test assertion failure function main, file prime_mmap_coherency.c:216:
(prime_mmap_coherency:3732) CRITICAL: Failed assertion: !(!stale)
(prime_mmap_coherency:3732) CRITICAL: couldn't find any stale cache lines
****  END  ****
Subtest read-and-fail: FAIL (0.607s)
Comment 1 Humberto Israel Perez Rodriguez 2016-05-18 01:55:27 UTC
The following tests cases fail under the following configuration on BXT-P

tests cases
================================================================
igt@prime_mmap_coherency@read-and-fail


Hardware configuration
================================================================
Platform     BXT - P (APL)
Motherboard model  Apollo Lake
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


gfx user space
================================================================
 --> Component : drm 
	 url : http://cgit.freedesktop.org/mesa/drm 
	 tag : libdrm-2.4.68 
	 commit : fc09c5a 
	 author : Kenneth Graunke <kenneth@whitecape.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-645-g88733a7 
	 commit : 88733a7 
	 author : Chris Wilson <chris@chris-wilson.co.uk> 
	 age : 7 days ago 
 --> Component : libva 
	 url : http://cgit.freedesktop.org/libva/ 
	 tag : libva-1.7.0-2-g4cb6d78 
	 commit : 4cb6d78 
	 author : Alan Coopersmith <alan.coopersmith@oracle.com> 
	 age : 5 weeks ago 
 --> Component : vaapi (intel-driver) 
	 url : http://cgit.freedesktop.org/vaapi/intel-driver 
	 tag : 1.7.0-12-g4643f94 
	 commit : 4643f94 
	 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-317-g7f04946 
	 commit : 7f04946 
	 author : Dave Airlie <airlied@redhat.com> 
	 age : 9 days 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 weeks ago 


kernel
====================================================================
commit 447f2438e5ee3e9bb7d5cbe88fc44cdff74cc165
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Sun May 8 18:21:27 2016 +0200

    drm-intel-nightly: 2016y-05m-08d-16h-21m-00s UTC integration manifest


Kernel version : 4.6.0-rc6
Architecture : source amd64 all
Homepage : http://www.kernel.org/
Comment 2 Humberto Israel Perez Rodriguez 2016-05-26 15:24:45 UTC
The following tests cases fail with the following configuration :


Tests cases
===============================================
igt@prime_mmap_coherency@read-and-fail


Gfx stack information
===============================================
 --> Component : drm 
	 tag : libdrm-2.4.68-4-g7aab852 
	 commit : 7aab852 
 --> Component : mesa 
	 tag : mesa-11.1.2 
	 commit : 7bcd827 
 --> Component : cairo 
	 tag : 1.15.2 
	 commit : db8a7f1 
 --> Component : intel-gpu-tools
	 tag : intel-gpu-tools-1.14-346-gcce2ff0
	 commit : cce2ff0


Software information
===============================================
Kernel version                      : 4.6.0-rc7-drm-intel-nightly-ww20-commit-5528ede+
Linux distribution                  : Ubuntu 15.10
Architecture                        : 64-bit
Bios revision                       : 138.22
KSC revision                        : 1.12
DMC revision                        : 1.07
GUC revision                        : 8.7


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 0a) (prog-if 00 [VGA controller])


kernel
===============================================
commit 2ec823981d62c56d1511bda42b8295e31ece800f
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Sun May 22 18:23:13 2016 +0200

    drm-intel-nightly: 2016y-05m-22d-16h-22m-45s UTC integration manifest
Comment 3 Humberto Israel Perez Rodriguez 2016-06-03 17:04:30 UTC
The following tests cases are fail with the following configuration :


Tests cases
===============================================
igt@prime_mmap_coherency@read-and-fail


Gfx stack information
===============================================
--> Component : drm 
	 tag : libdrm-2.4.68 
	 commit : fc09c5a 
--> Component : cairo 
	 tag : 1.15.2 
	 commit : db8a7f1 
--> Component : intel-gpu-tools 
	 tag : intel-gpu-tools-1.14-348-g303b380 
	 commit : 303b380 
 
Software information
===============================================
Kernel version                      : 4.6.0-drm-intel-nightly-ww23-commit-fb023a2+
Linux distribution                  : Ubuntu 16.04
Architecture                        : 64-bit
Bios revision                       : 138.25
KSC revision                        : 1.12
DMC revision                        : 1.07

Hardware information
===============================================
Platform                            : BXT-P
Motherboard model                   : Broxton P
Motherboard type                    : NOTEBOOK Hand Held
Motherboard manufacturer            : Intel Corp.
CPU family                          : B1
CPU information                     : 06/5c
GPU Card                            : Intel Corporation Device 5a84 (rev 0a) (prog-if 00 [VGA controller])

kernel
===============================================
commit fb023a2062df06c9e097e1f8f2bcf252194b9413
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Mon May 30 10:46:14 2016 +0200

    drm-intel-nightly: 2016y-05m-30d-08h-45m-53s UTC integration manifest
Comment 4 Humberto Israel Perez Rodriguez 2016-06-19 17:25:41 UTC
the same issue with the following config :

test : igt@prime_mmap_coherency@read-and-fail


kernel : 4.6.1 from http://www.kernel.org/
Graphic stack
--> Component : drm 
         tag : libdrm-2.4.68 
         commit : fc09c5a 
--> Component : mesa 
         tag : mesa-11.2.2 
         commit : 3a9f628 
--> Component : cairo 
         tag : 1.15.2 
         commit : db8a7f1 
--> Component : intel-gpu-tools 
         tag : intel-gpu-tools-1.15 
         commit : 3ce58b6 
Software information
===============================================
Linux distribution                  : Ubuntu 16.04
Architecture                        : 64-bit
Bios revision                       : 138.25
KSC revision                        : 1.12
DMC revision                        : 1.07

Hardware information
===============================================
Platform                            : BXT-P
Motherboard model                   : Broxton P
Motherboard type                    : NOTEBOOK Hand Held
Motherboard manufacturer            : Intel Corp.
CPU family                          : B1
CPU information                     : 06/5c
GPU Card                            : Intel Corporation Device 5a84 (rev 0a) (prog-if 00 [VGA controller])
Comment 5 Humberto Israel Perez Rodriguez 2016-06-29 17:48:52 UTC
same issue on the following configuration 


Software information
============================================
Kernel version                  : 4.7.0-rc4-drm-intel-nightly-ww26-commit-5c244f4+
Linux distribution              : Ubuntu 16.04 LTS
Architecture                    : 64-bit

Hardware information
============================================
Platform                        : BXT-P
Motherboard model               : Broxton P
Motherboard type                : NOTEBOOK Hand Held
Motherboard manufacturer        : Intel Corp.
CPU family                      : B1
CPU information                 : 06/5c
GPU Card                        : Intel Corporation Device 5a84 (rev 0a) (prog-if 00 [VGA controller])
Memory ram                      : 16 GB

Firmwares information
============================================
DMC fw loaded                   : yes
DMC version                     : 1.7
GUC fw loaded                   : SUCCESS
GUC version wanted              : 8.7
GUC version found               : 8.7

 
 --> Component : drm 
	 url : http://cgit.freedesktop.org/mesa/drm 
	 tag : libdrm-2.4.68-9-g625d181 
	 commit : 625d181 
 --> Component : cairo 
	 url : http://cgit.freedesktop.org/cairo 
	 tag : 1.15.2 
	 commit : db8a7f1 
 --> Component : intel-gpu-tools 
	 url : http://cgit.freedesktop.org/xorg/app/intel-gpu-tools 
	 tag : intel-gpu-tools-1.15-54-g88c1f7c 
	 commit : 88c1f7c 

Kernel information
============================================
commit 5c244f4b128c6274755007e080d46e0a61b71534
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Fri Jun 24 16:17:56 2016 +0100

    drm-intel-nightly: 2016y-06m-24d-15h-17m-32s UTC integration manifest
Comment 6 Humberto Israel Perez Rodriguez 2016-07-08 16:06:35 UTC
The following tests fails on APL :

Tests cases
=============================================
igt@prime_mmap_coherency@read-and-fail


Hardware Information
=============================================
Platform: APL system
Linux distribution: Ubuntu 16.04 64 bits
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 FAB1
Reworks : R19, R20
Bios : 144.10
KSC: 1.15

Software Information
===============================================
drm: libdrm-2.4.68-11 7996a87
mesa: mesa-11.2.2 3a9f628
cairo: 1.15.2 db8a7f1
server: xorg-server-1.18.0-443 3762edd 
xf86-video-intel: 2.99.917-674 9154dff
libva: libva-1.7.0-26 c36971c
vaapi-intel-driver: 1.7.0-53 bcde10d
Intel-Gpu-Tools 1.15-87 376b813 

Firmwares information
============================================
DMC fw loaded                   : yes
DMC version                     : 1.7
GUC fw loaded                   : SUCCESS
GUC version wanted              : 8.7
GUC version found               : 8.7


Kernel
===============================================
commit 2fe5da8adcbe5a34830b98c63878eea756e977a2
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Sat Jul 2 19:32:50 2016 +0100

    drm-intel-nightly: 2016y-07m-02d-18h-31m-39s UTC integration manifest
Comment 7 Jari Tahvanainen 2017-03-14 16:21:46 UTC
Still valid failure on WW08 execution with 4.10.0-rc8-drm-tip-qa-ww7-commit-e80b772+ on BXT-1-NOTEBOOK).
Comment 8 Chris Wilson 2017-03-14 17:02:44 UTC
The test is a bit weak. It is asserting that it detects cache-line dirt when such detection is tricky.
Comment 9 Chris Wilson 2017-04-08 19:55:11 UTC
commit b1da8d89c8d13e3f0254d69c639c7f66c10e4175
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Sat Apr 8 13:46:33 2017 +0100

    igt/prime_mmap_coherency: Reorder cache flushes to avoid excess pressure
    
    Flush the secondary buffer from the cpu cache before dirtying the cache
    for the primary to ensure a better chance of the primary buffer
    remaining in cache, causing the incoherency.
    
    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Comment 10 Ricardo 2017-06-27 16:02:34 UTC
change in IGT test handling and moving to close


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.