Bug 101759 - [IGT] [BSW] gem_mmap_gtt subtest causes assertion failures
Summary: [IGT] [BSW] gem_mmap_gtt subtest causes assertion failures
Status: CLOSED WORKSFORME
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
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-07-11 20:27 UTC by Armando Antonio
Modified: 2018-04-24 07:23 UTC (History)
1 user (show)

See Also:
i915 platform: BSW/CHT
i915 features: GEM/PPGTT


Attachments
dmesg log (206.48 KB, text/plain)
2017-07-13 19:42 UTC, Armando Antonio
no flags Details
kernel log (301.47 KB, text/plain)
2017-07-13 19:43 UTC, Armando Antonio
no flags Details
output (8.16 KB, text/plain)
2017-07-13 19:44 UTC, Armando Antonio
no flags Details
gem_mmap_gtt output (23.75 KB, text/plain)
2017-07-13 21:28 UTC, Armando Antonio
no flags Details

Description Armando Antonio 2017-07-11 20:27:40 UTC
The following test fail on BSW with latest configuration

====================================================
Test list
====================================================
igt@gem_mmap_gtt@forked-basic-small-copy-odd
igt@gem_mmap_gtt@forked-basic-small-copy-xy
igt@gem_mmap_gtt@forked-big-copy-odd
igt@gem_mmap_gtt@forked-big-copy-xy
igt@gem_mmap_gtt@forked-medium-copy-odd
igt@gem_mmap_gtt@forked-medium-copy-xy



====================================================
Graphic Stack
====================================================
Component: drm
    tag: libdrm-2.4.81-24-g3095cc8
    commit: 3095cc8eaba1aa87ad38c04ae2b1eabe30f7e16c
Component: cairo
    tag: 1.15.6-2-g57b4050
    commit: 57b40507dda3f58dfc8635548d606b86dc7bcf51
Component: intel-gpu-tools
    tag: intel-gpu-tools-1.19-57-g6fcc8e8
    commit: 6fcc8e8b247661c7950b998e0b95141ffbd6b833
Component: piglit
    tag: piglit-v1
    commit: c8f4fd9eeb298a2ef0855927f22634f794ef3eff

======================================
             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                 : 476GiB (512GB)
current cd clock frequency : 266667 kHz
maximum cd clock frequency : 320000 kHz
displays connected         : DP-1 DP-3
Comment 1 Elizabeth 2017-07-12 21:33:49 UTC
Adding tag into "Whiteboard" field - ReadyForDev
*Status is correct
*Platform is included
*Feature is included
*Priority and Severity correctly set
Comment 2 Chris Wilson 2017-07-13 08:52:29 UTC
(In reply to Elizabeth from comment #1)
> Adding tag into "Whiteboard" field - ReadyForDev
> *Status is correct
> *Platform is included
> *Feature is included
> *Priority and Severity correctly set

But does it include the test output or dmesg?
Comment 3 Armando Antonio 2017-07-13 19:42:50 UTC
Created attachment 132674 [details]
dmesg log
Comment 4 Armando Antonio 2017-07-13 19:43:17 UTC
Created attachment 132675 [details]
kernel log
Comment 5 Armando Antonio 2017-07-13 19:44:16 UTC
Created attachment 132676 [details]
output
Comment 6 Chris Wilson 2017-07-13 19:48:37 UTC
Wrong test? Since those logs are for gem_exec_reloc

*** This bug has been marked as a duplicate of bug 101635 ***
Comment 7 Armando Antonio 2017-07-13 21:28:12 UTC
Created attachment 132680 [details]
gem_mmap_gtt output
Comment 8 Armando Antonio 2017-07-13 21:29:17 UTC
sorry wrong file, I attached a new one
Comment 9 Chris Wilson 2017-07-13 23:36:47 UTC
Hmm, they are wild values not even close to the target, i.e. not cache dirt. Could be fences, or something even weirder and less likely like pageout?

8G of ram, so should be plenty for those tests. Any occurrance on other machines?
Comment 10 Armando Antonio 2017-07-18 19:18:59 UTC
Hello, 
I tried to reproduce this issue in KBL, IVB and SKL and I could not reproduce, it looks like it only happen in BSW.
Regards
Comment 11 Chris Wilson 2017-07-19 19:30:22 UTC
My bsw (n3050) is happy. The test here focuses on fencing, there is no reason (afaik) to expect a bsw specific failure.
Comment 12 Hector Velazquez 2017-07-28 20:45:10 UTC
The following tests FAIL on BSW with this configuration

Tests List:

igt@gem_mmap_gtt@forked-basic-small-copy-XY
igt@gem_mmap_gtt@forked-medium-copy-XY
igt@gem_mmap_gtt@forked-big-copy-XY



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 13 Elizabeth 2017-10-13 22:36:20 UTC
Still failing with: IGT-Version: 1.20-g5861627 (x86_64) (Linux: 4.14.0-rc4-drm-intel-qa-ww41-commit-b2c76c5+ x86_64)
Comment 14 Elizabeth 2018-02-27 16:14:23 UTC
These test still are failing on BSW only:

igt@gem_mmap_gtt@forked-basic-small-copy-odd, with commit-562dc33+
igt@gem_mmap_gtt@forked-big-copy-XY, with commit-562dc33+
igt@gem_mmap_gtt@forked-big-copy-odd, with commit-562dc33+
igt@gem_mmap_gtt@forked-medium-copy-XY, last seen with commit-6c10ba2+
igt@gem_mmap_gtt@forked-medium-copy-odd, last seen with commit-8a1ed24+

	
(gem_mmap_gtt:6235) CRITICAL: Test assertion failure function test_huge_copy, file gem_mmap_gtt.c:673:
(gem_mmap_gtt:6235) CRITICAL: Failed assertion: page[j] == i + j
(gem_mmap_gtt:6235) CRITICAL: Last errno: 25, Inappropriate ioctl for device
(gem_mmap_gtt:6235) CRITICAL: error: 0x6000b800 != 0x379a
Subtest forked-basic-small-copy-odd failed.

(gem_mmap_gtt:11256) CRITICAL: Test assertion failure function test_huge_copy, file gem_mmap_gtt.c:671:
(gem_mmap_gtt:11256) CRITICAL: Failed assertion: page[j] == ~(i + j)
(gem_mmap_gtt:11256) CRITICAL: Last errno: 25, Inappropriate ioctl for device
(gem_mmap_gtt:11256) CRITICAL: error: 0x7a61d0 != 0xffff1736
Subtest forked-big-copy-XY failed.

(gem_mmap_gtt:12959) CRITICAL: Test assertion failure function test_huge_copy, file gem_mmap_gtt.c:671:
(gem_mmap_gtt:12959) CRITICAL: Failed assertion: page[j] == ~(i + j)
(gem_mmap_gtt:12959) CRITICAL: Last errno: 25, Inappropriate ioctl for device
(gem_mmap_gtt:12959) CRITICAL: error: 0x8 != 0xffff1bd0
Subtest forked-big-copy-odd failed.

(gem_mmap_gtt:7824) CRITICAL: Test assertion failure function test_huge_copy, file gem_mmap_gtt.c:683:
(gem_mmap_gtt:7824) CRITICAL: Failed assertion: page[j] == ~(i + j)
(gem_mmap_gtt:7824) CRITICAL: Last errno: 25, Inappropriate ioctl for device
(gem_mmap_gtt:7824) CRITICAL: error: 0x86890000 != 0xfffffade
Subtest forked-medium-copy-XY failed.

	
(gem_mmap_gtt:8418) CRITICAL: Test assertion failure function test_huge_copy, file gem_mmap_gtt.c:671:
(gem_mmap_gtt:8418) CRITICAL: Failed assertion: page[j] == ~(i + j)
(gem_mmap_gtt:8418) CRITICAL: Last errno: 25, Inappropriate ioctl for device
(gem_mmap_gtt:8418) CRITICAL: error: 0x48000000 != 0xfffffcfa
Subtest forked-medium-copy-odd failed.
Comment 15 Jani Saarinen 2018-03-29 07:10:30 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 16 Elizabeth 2018-04-06 21:02:20 UTC
Still valid.
igt@gem_mmap_gtt@forked-medium-copy-XY
igt@gem_mmap_gtt@forked-medium-copy-odd
igt@gem_mmap_gtt@forked-big-copy-odd
igt@gem_mmap_gtt@forked-big-copy-XY
igt@gem_mmap_gtt@forked-basic-small-copy-odd

Results for igt@gem_mmap_gtt@forked-basic-small-copy-XY
Result: fail

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 [test_huge_copy+0x4ad]
  #2 [<unknown>+0x4ad]
child 2 failed with exit status 99
Subtest forked-basic-small-copy-XY: FAIL (6.620s)
Err	
(gem_mmap_gtt:13596) CRITICAL: Test assertion failure function test_huge_copy, file gem_mmap_gtt.c:636:
(gem_mmap_gtt:13596) CRITICAL: Failed assertion: page[j] == ~(i + j)
(gem_mmap_gtt:13596) CRITICAL: Last errno: 25, Inappropriate ioctl for device
(gem_mmap_gtt:13596) CRITICAL: error: 0x6000b800 != 0xffffe832
Subtest forked-basic-small-copy-XY failed.
**** DEBUG ****
(gem_mmap_gtt:13591) intel-chipset-DEBUG: Test requirement passed: pci_dev
(gem_mmap_gtt:13591) intel-os-DEBUG: Checking 8 surfaces of size 67108864 bytes (total 536875008) against RAM
(gem_mmap_gtt:13591) drmtest-DEBUG: Test requirement passed: !(fd<0)
(gem_mmap_gtt:13591) igt-debugfs-DEBUG: Opening debugfs directory '/sys/kernel/debug/dri/0'
(gem_mmap_gtt:13591) intel-os-DEBUG: Test requirement passed: __intel_check_memory(count, size, mode, &required, &total)
(gem_mmap_gtt:13591) igt-core-DEBUG: Test requirement passed: !igt_run_in_simulation()
****  END  ****
Comment 17 Jani Saarinen 2018-04-23 19:07:31 UTC
These passing in CI, closing.
https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_25/fi-bsw-n3050/runtimes-all.log
Comment 18 Jani Saarinen 2018-04-23 19:07:41 UTC
These passing in CI, closing.
https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_25/fi-bsw-n3050/runtimes-all.log


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.