Bug 104372

Summary: [IGT] prime_vgem@coherency-gtt failed assertion: gtt[1024*i] == ~i
Product: DRI Reporter: Octavio <octaviox.hernandez.lopez>
Component: DRM/IntelAssignee: Intel GFX Bugs mailing list <intel-gfx-bugs>
Status: CLOSED DUPLICATE QA Contact: Intel GFX Bugs mailing list <intel-gfx-bugs>
Severity: normal    
Priority: medium CC: intel-gfx-bugs
Version: DRI git   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard: ReadyForDev
i915 platform: BSW/CHT, BXT, BYT, GLK i915 features: GEM/Other
Attachments:
Description Flags
dmesg
none
kernel log none

Description Octavio 2017-12-22 20:55:51 UTC
Created attachment 136370 [details]
dmesg

This test fails in BXT with the below configuration,

Execute prime_vgem@coherency-gtt

Output
===================================
IGT-Version: 1.20-gbeb26d8 (x86_64) (Linux: 4.15.0-rc4-drm-intel-qa-ww51-commit-b480e79+ x86_64)
Stack trace:
  #0 [__igt_fail_assert+0x101]
  #1 [__real_main757+0xbb8]
  #2 [<unknown>+0xbb8]
Subtest coherency-gtt: FAIL (0.005s)
Test requirement not met in function __real_main757, file prime_vgem.c:849:
Test requirement: vgem_fence_has_flag(vgem, WIP_VGEM_FENCE_NOTIMEOUT)
Stderr	
(prime_vgem:1871) CRITICAL: Test assertion failure function test_gtt_interleaved, file prime_vgem.c:273:
(prime_vgem:1871) CRITICAL: Failed assertion: gtt[1024*i] == ~i
(prime_vgem:1871) CRITICAL: error: 0 != -1
Subtest coherency-gtt failed.
**** DEBUG ****
(prime_vgem:1871) CRITICAL: Test assertion failure function test_gtt_interleaved, file prime_vgem.c:273:
(prime_vgem:1871) CRITICAL: Failed assertion: gtt[1024*i] == ~i
(prime_vgem:1871) CRITICAL: error: 0 != -1
(prime_vgem:1871) igt-core-INFO: Stack trace:
(prime_vgem:1871) igt-core-INFO:   #0 [__igt_fail_assert+0x101]
(prime_vgem:1871) igt-core-INFO:   #1 [__real_main757+0xbb8]
(prime_vgem:1871) igt-core-INFO:   #2 [<unknown>+0xbb8]
****  END  ****
Comment 1 Octavio 2017-12-22 20:56:35 UTC
======================================
        Graphic stack
======================================

======================================
             Software
======================================
kernel version              : 4.15.0-rc4-drm-intel-qa-ww51-commit-b480e79+
hostname                    : gfx-desktop
architecture                : x86_64
os version                  : Ubuntu 16.10
os codename                 : yakkety
kernel driver               : i915
bios revision               : 5.6
bios release date           : 06/19/2017
ksc                         : 18.0
hardware acceleration       : disabled
swap partition              : enabled on (/dev/sda3)

======================================
        Graphic drivers
======================================
grep: /opt/X11R7/var/log/Xorg.0.log: No such file or directory
libdrm                      : 2.4.89
cairo                       : 1.15.11
intel-gpu-tools (tag)       : intel-gpu-tools-1.20-248-gbeb26d8
intel-gpu-tools (commit)    : beb26d8

======================================
             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.52 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                 : 111GiB (120GB)
current cd clock frequency : 288000 kHz
maximum cd clock frequency : 624000 kHz
displays connected         : DP-2

======================================
             Firmware
======================================
dmc fw loaded             : yes
dmc version               : 1.7
guc fw loaded             : fetch SUCCESS, load SUCCESS
guc version wanted        : wanted 9.29, found 9.29
guc version found         : wanted 9.29, found 9.29

======================================
             kernel parameters
======================================
quiet splash drm.debug=0xe i915.enable_guc=-1 drm.debug=0xe resume=/dev/sda3 i915.alpha_support=1 i915.guc_load_level=2
Comment 2 Octavio 2017-12-22 20:56:58 UTC
Created attachment 136371 [details]
kernel log
Comment 3 Elizabeth 2018-03-05 22:54:45 UTC
This is still an issue:

igt@prime_vgem@coherency-gtt
Out	
IGT-Version: 1.21-gbddfb8d (x86_64) (Linux: 4.16.0-rc3-drm-intel-qa-ww9-commit-b2e10fd+ x86_64)
Stack trace:
  #0 [__igt_fail_assert+0x101]
  #1 [__real_main757+0xbb8]
  #2 [<unknown>+0xbb8]
Subtest coherency-gtt: FAIL (0.006s)
Test requirement not met in function __real_main757, file prime_vgem.c:849:
Test requirement: vgem_fence_has_flag(vgem, WIP_VGEM_FENCE_NOTIMEOUT)
Err	
(prime_vgem:6674) CRITICAL: Test assertion failure function test_gtt_interleaved, file prime_vgem.c:273:
(prime_vgem:6674) CRITICAL: Failed assertion: gtt[1024*i] == ~i
(prime_vgem:6674) CRITICAL: error: 0 != -1
Subtest coherency-gtt failed.
**** DEBUG ****
(prime_vgem:6674) CRITICAL: Test assertion failure function test_gtt_interleaved, file prime_vgem.c:273:
(prime_vgem:6674) CRITICAL: Failed assertion: gtt[1024*i] == ~i
(prime_vgem:6674) CRITICAL: error: 0 != -1
(prime_vgem:6674) igt-core-INFO: Stack trace:
(prime_vgem:6674) igt-core-INFO:   #0 [__igt_fail_assert+0x101]
(prime_vgem:6674) igt-core-INFO:   #1 [__real_main757+0xbb8]
(prime_vgem:6674) igt-core-INFO:   #2 [<unknown>+0xbb8]
****  END  ****
Comment 4 Jani Saarinen 2018-03-29 07:11:40 UTC
First of all. Sorry about spam.
This is mass update for our bugs. 

Sorry if you feel this annoying but with this trying to understand if bug still valid or not.
If bug investigation still in progress, please ignore this and I apologize!

If you think this is not anymore valid, please comment to the bug that can be closed.
If you haven't tested with our latest pre-upstream tree(drm-tip), can you do that also to see if issue is valid there still and if you cannot see issue there, please comment to the bug.
Comment 5 Elizabeth 2018-04-09 19:01:13 UTC
Still valid for BYT, BSW, BXT and GLK:

Results for igt@prime_vgem@coherency-gtt
Result: fail

gfx_stack gfx_stack_easy_bugs kernel_commit_information

Detail	Value
Time	0.17 seconds
Returncode	
99
Out	
IGT-Version: 1.21-ge3a0ed9 (x86_64) (Linux: 4.16.0-rc7-drm-intel-qa-ww14-commit-c46052c+ x86_64)
Stack trace:
  #0 [__igt_fail_assert+0x101]
  #1 [__real_main757+0xbb8]
  #2 [<unknown>+0xbb8]
Subtest coherency-gtt: FAIL (0.008s)
Test requirement not met in function __real_main757, file prime_vgem.c:849:
Test requirement: vgem_fence_has_flag(vgem, WIP_VGEM_FENCE_NOTIMEOUT)
Err	
(prime_vgem:31066) CRITICAL: Test assertion failure function test_gtt_interleaved, file prime_vgem.c:273:
(prime_vgem:31066) CRITICAL: Failed assertion: gtt[1024*i] == ~i
(prime_vgem:31066) CRITICAL: error: 0 != -1
Subtest coherency-gtt failed.
**** DEBUG ****
(prime_vgem:31066) CRITICAL: Test assertion failure function test_gtt_interleaved, file prime_vgem.c:273:
(prime_vgem:31066) CRITICAL: Failed assertion: gtt[1024*i] == ~i
(prime_vgem:31066) CRITICAL: error: 0 != -1
(prime_vgem:31066) igt-core-INFO: Stack trace:
(prime_vgem:31066) igt-core-INFO:   #0 [__igt_fail_assert+0x101]
(prime_vgem:31066) igt-core-INFO:   #1 [__real_main757+0xbb8]
(prime_vgem:31066) igt-core-INFO:   #2 [<unknown>+0xbb8]
****  END  ****
Comment 6 Francesco Balestrieri 2018-07-02 10:15:06 UTC
Still fails in CI, see for example:

https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_75/fi-glk-j4005/igt@prime_vgem@coherency-gtt.html
Comment 7 Francesco Balestrieri 2018-07-02 10:22:57 UTC
Seems to be a duplicate of Bug 100587

*** This bug has been marked as a duplicate of bug 100587 ***

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.