Bug 100597 - [BXT/GLK]gem_workarounds/suspend-resume is failing on counting errors == 0
Summary: [BXT/GLK]gem_workarounds/suspend-resume is failing on counting errors == 0
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: Elio
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard: ReadyForDev
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-05 21:50 UTC by Elio
Modified: 2017-08-18 19:32 UTC (History)
4 users (show)

See Also:
i915 platform: BXT, GLK
i915 features: GEM/Other


Attachments
dmesg log (120.05 KB, text/plain)
2017-04-05 21:50 UTC, Elio
no flags Details

Description Elio 2017-04-05 21:50:08 UTC
Created attachment 130718 [details]
dmesg log

The following test is failing because the test cant accomplish condition == 0 on workaround_fail_count.

Test:

gem_workarounds@suspend-resume

Steps to reproduce:

1. install IGT
2. execute gem_worksarounds@suspend-resume

Expected result:
test should pass

Actual result: fail

Output:

IGT-Version: 1.18-g56741ce (x86_64) (Linux: 4.11.0-rc5-drm-tip-qa-ww14-commit-5bc82ec+ x86_64)
(gem_workarounds:1523) WARNING: 0x0E4F0 0x81008100      0x00008100      0x00000000      FAIL
(gem_workarounds:1523) WARNING: 0x0E184 0x00200020      0x00000020      0x00000000      FAIL
(gem_workarounds:1523) WARNING: 0x0E194 0x00040004      0x00000004      0x00000000      FAIL
(gem_workarounds:1523) WARNING: 0x0E180 0x20002000      0x00002000      0x00000000      FAIL
(gem_workarounds:1523) WARNING: 0x0E4F0 0x00200020      0x00000020      0x00000000      FAIL
(gem_workarounds:1523) CRITICAL: Test assertion failure function check_workarounds, file gem_workarounds.c:103:
(gem_workarounds:1523) CRITICAL: Failed assertion: workaround_fail_count() == 0
(gem_workarounds:1523) CRITICAL: Last errno: 2, No such file or directory
(gem_workarounds:1523) CRITICAL: error: 5 != 0
Stack trace:
  #0 [__igt_fail_assert+0x101]
  #1 [check_workarounds+0xe7]
  #2 [__real_main124+0x304]
  #3 [main+0x33]
  #4 [__libc_start_main+0xf1]
  #5 [_start+0x29]
  #6 [<unknown>+0x29]
Subtest suspend-resume failed.
**** DEBUG ****
(gem_workarounds:1523) drmtest-DEBUG: Test requirement passed: !(fd<0)
(gem_workarounds:1523) igt-debugfs-DEBUG: Opening debugfs directory '/sys/kernel/debug/dri/0'
(gem_workarounds:1523) DEBUG: Address   val             mask            read   result
(gem_workarounds:1523) DEBUG: 0x0E4F0   0x81008100      0x00008100      0x00000000      FAIL
(gem_workarounds:1523) WARNING: 0x0E4F0 0x81008100      0x00008100      0x00000000      FAIL
(gem_workarounds:1523) DEBUG: 0x0E184   0x00200020      0x00000020      0x00000000      FAIL
(gem_workarounds:1523) WARNING: 0x0E184 0x00200020      0x00000020      0x00000000      FAIL
(gem_workarounds:1523) DEBUG: 0x0E194   0x00040004      0x00000004      0x00000000      FAIL
(gem_workarounds:1523) WARNING: 0x0E194 0x00040004      0x00000004      0x00000000      FAIL
(gem_workarounds:1523) DEBUG: 0x07004   0x00420042      0x00000042      0x000029C2      OK
(gem_workarounds:1523) DEBUG: 0x0E188   0x00080000      0x00000008      0x00000000      OK
(gem_workarounds:1523) DEBUG: 0x07300   0x80208020      0x00008020      0x00008830      OK
(gem_workarounds:1523) DEBUG: 0x07300   0x00100010      0x00000010      0x00008830      OK
(gem_workarounds:1523) DEBUG: 0x0E180   0x20002000      0x00002000      0x00000000      FAIL
(gem_workarounds:1523) WARNING: 0x0E180 0x20002000      0x00002000      0x00000000      FAIL
(gem_workarounds:1523) DEBUG: 0x024D0   0x00002248      0xFFFFFFFF      0x00002248      OK
(gem_workarounds:1523) DEBUG: 0x024D4   0x00002580      0xFFFFFFFF      0x00002580      OK
(gem_workarounds:1523) DEBUG: 0x024D8   0x00007304      0xFFFFFFFF      0x00007304      OK
(gem_workarounds:1523) DEBUG: 0x0E4F0   0x00200020      0x00000020      0x00000000      FAIL
(gem_workarounds:1523) WARNING: 0x0E4F0 0x00200020      0x00000020      0x00000000      FAIL
(gem_workarounds:1523) DEBUG: 0x020E4   0x04000400      0x00000400      0x00000400      OK
(gem_workarounds:1523) DEBUG: 0x07014   0x01000100      0x00000100      0x00000100      OK
(gem_workarounds:1523) DEBUG: 0x04AB0   0x0004AB1B      0x00040000      0x0004AB1B      OK
(gem_workarounds:1523) CRITICAL: Test assertion failure function check_workarounds, file gem_workarounds.c:103:
(gem_workarounds:1523) CRITICAL: Failed assertion: workaround_fail_count() == 0
(gem_workarounds:1523) CRITICAL: Last errno: 2, No such file or directory
(gem_workarounds:1523) CRITICAL: error: 5 != 0
****  END  ****
Subtest suspend-resume: FAIL (0.219s)

Configuration:

Kernel version:
4.11.0-rc5   commit-5bc82ec

Component         : drm
	url       : http://cgit.freedesktop.org/mesa/drm
	tag       : libdrm-2.4.76-16-g6312017
	commit    : 6312017
	author    : Emil Velikov <emil.l.velikov@gmail.com>
	age       : Mon Apr 3 18:01:49 2017 +0100 7 hours ago
	comment   : configure.ac: bring back pthread-stubs check


Component         : mesa
	url       : http://cgit.freedesktop.org/mesa/mesa
	tag       : 17.0-branchpoint-2397-g405ef7b
	commit    : 405ef7b
	author    : Jason Ekstrand <jason@jlekstrand.net>
	age       : Mon Apr 3 16:58:35 2017 -0700 30 minutes ago
	comment   : intel/vec4: Add some fall through comments



Component         : xf86-video-intel
	url       : http://cgit.freedesktop.org/xorg/driver/xf86-video-intel
	tag       : 2.99.917-770-gcb6ba2d
	commit    : cb6ba2d
	author    : Chris Wilson <chris@chris-wilson.co.uk>
	age       : Sat Mar 25 01:21:46 2017 +0000 10 days ago

Component         : libva
	url       : http://cgit.freedesktop.org/libva
	tag       : libva-1.7.3.pre1-85-gefc164d
	commit    : efc164d
	author    : Xiang Haihao <haihao.xiang@intel.com>
	age       : Tue Mar 7 23:42:43 2017 +0800 4 weeks ago
	comment   : Bump libva to 1.8.1.pre1 for development


Component         : intel-driver
	url       : http://cgit.freedesktop.org/vaapi/intel-driver
	tag       : 1.7.3-359-g437cbe0
	commit    : 437cbe0
	author    : Víctor Manuel Jáquez Leal <vjaquez@igalia.com>
	age       : Wed Mar 29 08:29:46 2017 +0800 6 days ago
	comment   : gen8: accept P010 as valid format



Component         : cairo
	url       : http://cgit.freedesktop.org/cairo
	tag       : 1.15.4-11-gcffa452
	commit    : cffa452
	author    : Debarshi Ray <debarshir@freedesktop.org>
	age       : Wed Mar 15 20:26:22 2017 -0700 3 weeks ago
	comment   : doc: Clarify when the device scale is inherited and when 
Component         : xserver
	url       : http://cgit.freedesktop.org/xorg/xserver
	tag       : xorg-server-1.19.0-184-ge4d0757
	commit    : e4d0757
	author    : Adam Jackson <ajax@redhat.com>
	age       : Thu Mar 30 11:32:02 2017 -0400 4 days ago
	comment   : xfree86: Remove driver entity hooks and private



Component         : macros
	url       : https://cgit.freedesktop.org/xorg/util/macros
	tag       : util-macros-1.19.1-2-g39f07f7
	commit    : 39f07f7
	author    : Emil Velikov <emil.veliko@collabora.com>
	age       : Mon Feb 20 10:16:40 2017 +1000 6 weeks ago
	comment   : Rework INSTALL_CMD to touch/echo >&2 only as needed



Component         : intel-gpu-tools
	url       : https://cgit.freedesktop.org/xorg/app/intel-gpu-tools
	tag       : intel-gpu-tools-1.18-56-g56741ce
	commit    : 56741ce
	author    : Chris Wilson <chris@chris-wilson.co.uk>
	age       : Mon Apr 3 19:19:42 2017 +0100 6 hours ago
	comment   : tests/gem_media_fill: Fixup typo



Component         : piglit
	url       : https://cgit.freedesktop.org/piglit
	tag       : piglit-v1
	commit    : 3d1cbd9
	author    : Vinson Lee <vlee@freedesktop.org>
	age       : Mon Apr 3 15:46:33 2017 -0700 2 hours ago
	comment   : glslparsertest: Add test case for FDO bug #100438.
Comment 1 maria guadalupe 2017-04-17 18:55:13 UTC
The issue is present over GLK with the following configuration :

test : igt@gem_workarounds@suspend-resume

 Software
======================================
kernel version              : 4.11.0-rc6-drm-tip-ww16-commit-6184edc+
architecture                : x86_64
os version                  : Ubuntu 16.10
os codename                 : yakkety
kernel driver               : i915
bios revision               : 41.51
bios release date           : 03/31/2017
ksc                         : 1.25

======================================
        Graphic drivers
======================================
xorg-xserver                : 1.18.4
libdrm                      : 2.4.79
cairo                       : 1.15.5
xserver                     : X.Org X Server 1.18.4
intel-gpu-tools (tag)       : intel-gpu-tools-1.18-73-gd8b83aa
intel-gpu-tools (commit)    : d8b83aa

======================================
             Hardware
======================================
platform                  : Geminilake
motherboard id             : GLKRVP1DDR4(05)
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                 : 7.64 GB
max memory ram             : 16 GB
cpu thread                 : 4
cpu core                   : 4
cpu model                  : 122
hard drive                 : 223GiB (240GB)
current cd clock frequency : 316800 kHz
maximum cd clock frequency : 316800 kHz

======================================
             Firmware
======================================
dmc fw loaded             : yes
dmc version               : 1.4

output
=================================

**** DEBUG ****
(gem_workarounds:2432) drmtest-DEBUG: Test requirement passed: !(fd<0)
(gem_workarounds:2432) igt-debugfs-DEBUG: Opening debugfs directory '/sys/kernel/debug/dri/0'
(gem_workarounds:2432) DEBUG: Address   val             mask            read            result
(gem_workarounds:2432) DEBUG: 0x0E4F0   0x81008100      0x00008100      0xFFFF8120      OK
(gem_workarounds:2432) DEBUG: 0x0E184   0x00200020      0x00000020      0x00000020      OK
(gem_workarounds:2432) DEBUG: 0x0E194   0x00040004      0x00000004      0x00000004      OK
(gem_workarounds:2432) DEBUG: 0x07004   0x00420042      0x00000042      0x000029C2      OK
(gem_workarounds:2432) DEBUG: 0x0E188   0x00080000      0x00000008      0x00008030      OK
(gem_workarounds:2432) DEBUG: 0x07300   0x80208020      0x00008020      0x00008830      OK
(gem_workarounds:2432) DEBUG: 0x07300   0x00100010      0x00000010      0x00008830      OK
(gem_workarounds:2432) DEBUG: 0x0E180   0x20002000      0x00002000      0x00002000      OK
(gem_workarounds:2432) DEBUG: 0x024D0   0x00002248      0xFFFFFFFF      0x00002248      OK
(gem_workarounds:2432) DEBUG: 0x024D4   0x00002580      0xFFFFFFFF      0x00002580      OK
(gem_workarounds:2432) DEBUG: 0x024D8   0x00007304      0xFFFFFFFF      0x00007304      OK
(gem_workarounds:2432) DEBUG: 0x07014   0x01000100      0x00000100      0x00000100      OK
(gem_workarounds:2432) INFO: Suspending the device ...
(gem_workarounds:2432) igt-core-DEBUG: Test requirement passed: !igt_run_in_simulation()
(gem_workarounds:2432) igt-aux-DEBUG: Test requirement passed: (power_dir = open("/sys/power", O_RDONLY)) >= 0
(gem_workarounds:2432) igt-aux-DEBUG: Test requirement passed: get_supported_suspend_states(power_dir) & (1 << state)
(gem_workarounds:2432) igt-aux-DEBUG: Test requirement passed: test == SUSPEND_TEST_NONE || faccessat(power_dir, "pm_test", R_OK | W_OK, 0) == 0
(gem_workarounds:2432) igt-aux-DEBUG: Test requirement passed: system(cmd) == 0
(gem_workarounds:2432) drmtest-DEBUG: Test requirement passed: !(fd<0)
(gem_workarounds:2432) igt-debugfs-DEBUG: Opening debugfs directory '/sys/kernel/debug/dri/0'
(gem_workarounds:2432) DEBUG: Address   val             mask            read            result
(gem_workarounds:2432) DEBUG: 0x0E4F0   0x81008100      0x00008100      0x00000000      FAIL
(gem_workarounds:2432) WARNING: 0x0E4F0 0x81008100      0x00008100      0x00000000      FAIL
(gem_workarounds:2432) DEBUG: 0x0E184   0x00200020      0x00000020      0x00000000      FAIL
(gem_workarounds:2432) WARNING: 0x0E184 0x00200020      0x00000020      0x00000000      FAIL
(gem_workarounds:2432) DEBUG: 0x0E194   0x00040004      0x00000004      0x00000000      FAIL
(gem_workarounds:2432) WARNING: 0x0E194 0x00040004      0x00000004      0x00000000      FAIL
(gem_workarounds:2432) DEBUG: 0x07004   0x00420042      0x00000042      0x00000000      FAIL
(gem_workarounds:2432) WARNING: 0x07004 0x00420042      0x00000042      0x00000000      FAIL
(gem_workarounds:2432) DEBUG: 0x0E188   0x00080000      0x00000008      0x00000000      OK
(gem_workarounds:2432) DEBUG: 0x07300   0x80208020      0x00008020      0x00000000      FAIL
(gem_workarounds:2432) WARNING: 0x07300 0x80208020      0x00008020      0x00000000      FAIL
(gem_workarounds:2432) DEBUG: 0x07300   0x00100010      0x00000010      0x00000000      FAIL
(gem_workarounds:2432) WARNING: 0x07300 0x00100010      0x00000010      0x00000000      FAIL
(gem_workarounds:2432) DEBUG: 0x0E180   0x20002000      0x00002000      0x00000000      FAIL
(gem_workarounds:2432) WARNING: 0x0E180 0x20002000      0x00002000      0x00000000      FAIL
(gem_workarounds:2432) DEBUG: 0x024D0   0x00002248      0xFFFFFFFF      0x00000000      FAIL
(gem_workarounds:2432) WARNING: 0x024D0 0x00002248      0xFFFFFFFF      0x00000000      FAIL
(gem_workarounds:2432) DEBUG: 0x024D4   0x00002580      0xFFFFFFFF      0x00000000      FAIL
(gem_workarounds:2432) WARNING: 0x024D4 0x00002580      0xFFFFFFFF      0x00000000      FAIL
(gem_workarounds:2432) DEBUG: 0x024D8   0x00007304      0xFFFFFFFF      0x00000000      FAIL
(gem_workarounds:2432) WARNING: 0x024D8 0x00007304      0xFFFFFFFF      0x00000000      FAIL
(gem_workarounds:2432) DEBUG: 0x07014   0x01000100      0x00000100      0x00000000      FAIL
(gem_workarounds:2432) WARNING: 0x07014 0x01000100      0x00000100      0x00000000      FAIL
(gem_workarounds:2432) CRITICAL: Test assertion failure function check_workarounds, file gem_workarounds.c:121:
(gem_workarounds:2432) CRITICAL: Failed assertion: workaround_fail_count() == 0
(gem_workarounds:2432) CRITICAL: Last errno: 2, No such file or directory
(gem_workarounds:2432) CRITICAL: error: 11 != 0
****  END  ****
Comment 2 Armando Antonio 2017-05-03 19:03:15 UTC
The following test case was failed with the next configuration:

Test case: gem_workarounds@basic_read 

======================================
             Software
======================================
kernel version              : 4.11.0-rc8-drm-tip-ww18-commit-f165d5d+
architecture                : x86_64
os version                  : Ubuntu 16.10
os codename                 : yakkety
[sudo] password for gfx: kernel driver               : i915
bios revision               : 5.6
bios release date           : 03/10/2017
ksc                         : 16.0

======================================
        Graphic drivers
======================================
modesetting                 : modesetting_drv.so
modesetting_drv.so (0x7f4cc14fe000+0x6e88) [0x7f4cc1504e88]
xorg-xserver                : 1.18.4
libdrm                      : 2.4.80
cairo                       : 1.15.5
xserver                     : X.Org X Server 1.18.4
intel-gpu-tools (tag)       : intel-gpu-tools-1.18-113-g529c0d1
intel-gpu-tools (commit)    : 529c0d1

======================================
             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                 : 1.78 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                 : 279GiB (300GB)
current cd clock frequency : 288000 kHz
maximum cd clock frequency : 624000 kHz
displays connected         : VGA

======================================
             Firmware
======================================
dmc fw loaded             : yes
dmc version               : 1.7
guc fw loaded             : NONE
guc version wanted        : 0.0
guc version found         : 0.0



it looks like this test is looking for a directory and it can't find it.

(gem_workarounds:4668) CRITICAL: Last errno: 2, No such file or directory
(gem_workarounds:4668) CRITICAL: error: 5 != 0

Importance increased due to this is a fastfeedback test case.
Comment 3 Jari Tahvanainen 2017-05-04 08:47:52 UTC
Ricardo et.al. - please refactor this and post basic-read failure as another bug.

gem_workaround@basic-read is pass on GLK with 4.11.0-rc8-drm-tip-qa-ww17-commit-1d490e4+ (GLK-1-GLKRVP1DDR405). 
gem_workaround@suspend-resume is still fail on GLK with IGT 4.11.0-rc5-drm-tip-qa-ww15-commit-e461ecf+ (GLK-1-GLKRVP1DDR405)
gem_workaround@basic_read is fail on APL/BXT with
Comment 4 Elizabeth 2017-06-22 20:03:22 UTC
(In reply to Jari Tahvanainen from comment #3)
> Ricardo et.al. - please refactor this and post basic-read failure as another
> bug.
> 
> gem_workaround@basic-read is pass on GLK with
> 4.11.0-rc8-drm-tip-qa-ww17-commit-1d490e4+ (GLK-1-GLKRVP1DDR405). 
> gem_workaround@suspend-resume is still fail on GLK with IGT
> 4.11.0-rc5-drm-tip-qa-ww15-commit-e461ecf+ (GLK-1-GLKRVP1DDR405)
> gem_workaround@basic_read is fail on APL/BXT with

Is there any update in this case? If so, please share the information. Thank you.
Comment 5 Armando Antonio 2017-08-09 17:05:24 UTC
Opened a new bug for Test case: gem_workarounds@basic-read, Regards
Comment 6 maria guadalupe 2017-08-09 21:54:52 UTC
These tests passed over GLK with the following configuration 

Test:

gem_workarounds@suspend-resume


  Software
======================================
kernel version              : 4.13.0-rc4-drm-tip-ww32-commit-ef8894e+
hostname                    : gfx-desktop
architecture                : x86_64
os version                  : Ubuntu 17.04
os codename                 : zesty
kernel driver               : i915
bios revision               : 52.23
bios release date           : 06/24/2017
ksc                         : 1.36
hardware acceleration       : disabled
swap partition              : enabled on (/dev/sda2)

======================================
        Graphic drivers
======================================
intel-gpu-tools             : 1.17-1

======================================
             Hardware
======================================
platform                   : Geminilake
motherboard model          : Geminilake
motherboard id             : GLKRVP1DDR4(05)
form factor                : Hand Held
manufacturer               : IntelCorp.
cpu family                 : Other
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
cpu thread                 : 4
cpu core                   : 4
cpu model                  : 122
cpu stepping               : 0
socket                     : Other
hard drive                 : 223GiB (240GB)
current cd clock frequency : 79200 kHz
maximum cd clock frequency : 316800 kHz


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.