Bug 101919

Summary: [IGT][APL/BDW/GLK] gem_reset_stats subcases fail
Product: DRI Reporter: Armando Antonio <armando.antoniox.mora.reos>
Component: DRM/IntelAssignee: Intel GFX Bugs mailing list <intel-gfx-bugs>
Status: CLOSED FIXED QA Contact: Intel GFX Bugs mailing list <intel-gfx-bugs>
Severity: normal    
Priority: medium CC: intel-gfx-bugs
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard: ReadyForDev
i915 platform: BDW, BXT, GLK, SKL i915 features: GEM/Other
Attachments:
Description Flags
kernel log
none
test log
none
dmesg log
none
Test_outputs_GLK
none
kernel log skl
none
dmesg-skl
none
test output-skl none

Description Armando Antonio 2017-07-25 18:43:49 UTC
Created attachment 132969 [details]
kernel log

The following test fail on BDW with latest configuration

====================================================
Test list
====================================================
igt@gem_reset_stats@reset-count-bsd1
igt@gem_reset_stats@reset-count-bsd2


====================================================
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-112-g493151b
    commit: 493151b0768aa4ca535cef49cb7efa174a9c3a77

Component: piglit
    tag: piglit-v1
    commit: 973892687cf5c2f8e2dbe1d22998b82736643787

======================================
             Software
======================================
kernel version              : 4.13.0-rc1-drm-tip-ww30-commit-2a4f730+
/bin/bash: BDW-2-NUC5i7RYB: command not found
architecture                : x86_64
os version                  : Ubuntu 16.10
os codename                 : yakkety
kernel driver               : i915
bios revision               : 5.6
bios release date           : 05/29/2015
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-116-g76bce77
intel-gpu-tools (commit)    : 76bce77

======================================
             Hardware
======================================
platform                   : Broadwell
motherboard id             : NUC5i7RYB
form factor                : Desktop
cpu family                 : Core i7
cpu family id              : 6
cpu information            : Intel(R) Core(TM) i7-5557U CPU @ 3.10GHz
gpu card                   : Intel Corporation Iris Graphics 6100 (rev 09) (prog-if 00 [VGA controller])
memory ram                 : 7.71 GB
max memory ram             : 16 GB
cpu thread                 : 4
cpu core                   : 2
cpu model                  : 61
cpu stepping               : 4
socket                     : Socket BGA1168
signature                  : Type 0, Family 6, Model 61, Stepping 4
hard drive                 : 447GiB (480GB)
current cd clock frequency : 337500 kHz
maximum cd clock frequency : 540000 kHz
displays connected         : HDMI-A-1 DP-1
Comment 1 Armando Antonio 2017-07-25 18:44:20 UTC
Created attachment 132970 [details]
test log
Comment 2 Armando Antonio 2017-07-25 18:44:47 UTC
Created attachment 132971 [details]
dmesg log
Comment 3 Elizabeth 2017-07-25 20:27:22 UTC
Adding tag into "Whiteboard" field - ReadyForDev
*Status is correct
*Platform is included
*Feature is included
*Priority and Severity correctly set
*Logs included
Comment 4 Elizabeth 2017-09-11 22:53:05 UTC
*** Bug 102469 has been marked as a duplicate of this bug. ***
Comment 5 Elizabeth 2017-09-12 14:36:57 UTC
Created attachment 134179 [details]
Test_outputs_GLK

On GLK this test are failing with the same assertion: 
Subtest reset-count-default: FAIL (15.936s)
Subtest reset-count-render: FAIL (15.967s)
Subtest reset-count-bsd: FAIL (15.959s)
Subtest reset-count-blt: FAIL (15.906s)
Subtest reset-count-vebox: FAIL (15.930s)

(gem_reset_stats:1923) CRITICAL: Test assertion failure function test_reset_count, file gem_reset_stats.c:609:
(gem_reset_stats:1923) CRITICAL: Failed assertion: c2 == -EPERM
Stack trace:
  #0 [__igt_fail_assert+0x101]
  #1 [test_reset_count+0x167]
  #2 [__real_main772+0xa3a]
  #3 [main+0x23]
  #4 [__libc_start_main+0xf1]
  #5 [_start+0x29]
  #6 [<unknown>+0x29]
child 0 failed with exit status 99
======================================
             Software
======================================
kernel version              : 4.13.0-drm-tip-ww37-commit-14ea1a9+
hostname                    : GLK-1-GLKRVP1DDR405
architecture                : x86_64
os version                  : Ubuntu 16.10
os codename                 : yakkety
kernel driver               : i915
bios revision               : 60.34
bios release date           : 08/09/2017
ksc                         : 1.41
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.70
cairo                       : 1.14.6

======================================
             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 3185 (rev 03) (prog-if 00 [VGA controller])
memory ram                 : 7.64 GB
max memory ram             : 16 GB
cpu thread                 : 2
cpu core                   : 2
cpu model                  : 122
cpu stepping               : 1
socket                     : Other
hard drive                 : 223GiB (240GB)
current cd clock frequency : 316800 kHz
maximum cd clock frequency : 316800 kHz
displays connected         : eDP-1 DP-1 HDMI-A-2

======================================
             Firmware
======================================
dmc fw loaded             : yes
dmc version               : 1.4
guc fw loaded             : SUCCESS
guc version wanted        : 10.56
guc version found         : 10.56

======================================
             kernel parameters
======================================
quiet drm.debug=0x1e i915.enable_guc_loading=2 i915.enable_guc_submission=2 i915.alpha_support=1 auto panic=1 nmi_watchdog=panic intel_iommu=igfx_off resume=/dev/sda3 fastboot
Comment 6 Hector Velazquez 2017-09-20 12:53:44 UTC
This test also fail on GLK QA

Tests List:

igt@gem_reset_stats@reset-count-blt
igt@gem_reset_stats@reset-count-bsd
igt@gem_reset_stats@reset-count-default
igt@gem_reset_stats@reset-count-render
igt@gem_reset_stats@reset-count-vebox


====================================================
Output
====================================================
. . .
(gem_reset_stats:12795) drmtest-DEBUG: Test requirement passed: !(fd<0)
(gem_reset_stats:12795) ioctl-wrappers-DEBUG: Test requirement passed: gem_has_ring(fd, ring)
(gem_reset_stats:12795) ioctl-wrappers-DEBUG: Test requirement passed: has_ban_period || has_bannable
(gem_reset_stats:12795) igt-gt-DEBUG: Test requirement passed: has_gpu_reset(fd)
(gem_reset_stats:12795) igt-gt-DEBUG: Test requirement passed: ctx == 0 || ring == I915_EXEC_RENDER
(gem_reset_stats:12797) CRITICAL: Test assertion failure function test_reset_count, file gem_reset_stats.c:609:
(gem_reset_stats:12797) CRITICAL: Failed assertion: c2 == -EPERM
Stack trace:
  #0 [__igt_fail_assert+0x101]
  #1 [test_reset_count+0x167]
  #2 [__real_main772+0xa3a]
  #3 [main+0x23]
  #4 [__libc_start_main+0xf1]
  #5 [_start+0x29]
  #6 [<unknown>+0x29]
Subtest reset-count-bsd failed.
. . .

This is my configuration:

====================================================
Graphic Stack
====================================================

Component: drm
    tag: libdrm-2.4.81-55-g76418c2
    commit: 76418c244d4c52a8dd20809e3e8b4e70501fc76f

Component: cairo
    tag: 1.15.6-38-g1220e3c
    commit: 1220e3c6b8f94a00ac7afee15f21e6782655d97c

Component: intel-gpu-tools
    tag: intel-gpu-tools-1.19-312-gda197b5
    commit: da197b5f3cb516aaaea72d0d60b0f5c1c81081dd

Component: piglit
    tag: piglit-v1
    commit: 2753955998d7deb90f681cf4cb1253c4519dfd1d

======================================
	     Software
======================================
kernel version              : 4.14.0-rc1-drm-tip-ww38-commit-ab2e3a0+
hostname                    : gfx-desktop
architecture                : x86_64
os version                  : Ubuntu 16.10
os codename                 : yakkety
kernel driver               : i915
bios revision               : 62.30
bios release date           : 08/22/2017
ksc                         : 1.48
hardware acceleration       : disabled
swap partition              : enabled on (/dev/sda3)

======================================
	Graphic drivers
======================================
libdrm                      : 2.4.83
cairo                       : 1.15.9
intel-gpu-tools (tag)       : intel-gpu-tools-1.19-312-gda197b5
intel-gpu-tools (commit)    : da197b5

======================================
	     Hardware
======================================
. . .
======================================
	     Firmware
======================================
dmc fw loaded             : yes
dmc version               : 1.4
guc fw loaded             : SUCCESS
guc version wanted        : 10.56
guc version found         : 10.56
huc fw loaded             : yes

======================================
	     kernel parameters
======================================
quiet splash drm.debug=0xe i915.enable_guc_submission=2 i915.enable_guc_loading=2 i915.alpha_support=1 resume=/dev/sda3
Comment 7 Hector Velazquez 2017-09-29 21:44:25 UTC
This fail in GLK -> https://bugs.freedesktop.org/show_bug.cgi?id=92715#c42

This fail in CFL -> https://bugs.freedesktop.org/show_bug.cgi?id=92715#c43
Comment 8 Armando Antonio 2017-11-30 17:56:27 UTC
The following tests are failing on CNL too.

igt@gem_reset_stats@reset-count-blt
igt@gem_reset_stats@reset-count-bsd
igt@gem_reset_stats@reset-count-default
igt@gem_reset_stats@reset-count-render
igt@gem_reset_stats@reset-count-vebox

Configuration:
intel-gpu-tools (tag)       : intel-gpu-tools-1.20-169-gac6739b
kernel version              : 4.15.0-rc1-drm-intel-qa-ww48-commit-6d6c48b+
Comment 9 Octavio 2017-12-13 20:07:08 UTC
This test also fail on BXT QA

Tests List:

igt@gem_reset_stats@reset-count-bl
igt@gem_reset_stats@reset-count-bsd
igt@gem_reset_stats@reset-count-default
igt@gem_reset_stats@reset-count-render
igt@gem_reset_stats@reset-count-vebox

IGT-Version: 1.20-g39ac6b8 (x86_64) (Linux: 4.15.0-rc2-drm-intel-qa-ww49-commit-bdf9b36+ x86_64)
Comment 10 Armando Antonio 2018-01-08 15:58:00 UTC
The following test are falling with same assertion on SKL

=====================================
Test list
=====================================
igt@gem_reset_stats@reset-count-blt
igt@gem_reset_stats@reset-count-bsd
igt@gem_reset_stats@reset-count-bsd1
igt@gem_reset_stats@reset-count-bsd2
igt@gem_reset_stats@reset-count-default
igt@gem_reset_stats@reset-count-render
igt@gem_reset_stats@reset-count-vebox

====================================
Software configuration
====================================
kernel version              : 4.15.0-rc6-drm-tip-ww1-commit-0cb68b0+
intel-gpu-tools (tag)       : intel-gpu-tools-1.20-266-g6db2441

====================================
Hardware Configuration
====================================
platform                   : Skylake Canyon
cpu information            : Intel(R) Core(TM) i7-6770HQ CPU @ 2.60GHz
signature                  : Type 0, Family 6, Model 94, Stepping 3


====================================
Summary assertion
====================================
(gem_reset_stats:1701) igt-gt-DEBUG: Test requirement passed: ctx == 0 || has_ctx_exec(fd, ring, ctx)
(gem_reset_stats:1704) CRITICAL: Test assertion failure function test_reset_count, file gem_reset_stats.c:609:
(gem_reset_stats:1704) CRITICAL: Failed assertion: c2 == -EPERM
Stack trace:
  #0 [__igt_fail_assert+0x101]
  #1 [test_reset_count+0x167]
  #2 [__real_main772+0xa3a]
  #3 [main+0x23]
  #4 [__libc_start_main+0xf1]
  #5 [_start+0x29]
  #6 [<unknown>+0x29]
child 0 failed with exit status 99
Subtest reset-count-bsd2 failed.
Comment 11 Armando Antonio 2018-01-08 15:59:32 UTC
Created attachment 136616 [details]
kernel log skl
Comment 12 Armando Antonio 2018-01-08 16:00:12 UTC
Created attachment 136617 [details]
dmesg-skl
Comment 13 Armando Antonio 2018-01-08 16:01:15 UTC
Created attachment 136618 [details]
test output-skl
Comment 14 Armando Antonio 2018-02-23 15:23:55 UTC
The following test cases are working correctly on CNL with latest configurations

=============================
Test Cases
=============================
igt@gem_reset_stats@reset-count-blt
igt@gem_reset_stats@reset-count-bsd
igt@gem_reset_stats@reset-count-default
igt@gem_reset_stats@reset-count-render
igt@gem_reset_stats@reset-count-vebox

removing CNL from platform list.

Regards
Comment 15 Elizabeth 2018-02-27 15:23:42 UTC
(In reply to Armando Antonio from comment #10)
> The following test are falling with same assertion on SKL
> 
> =====================================
> Test list
> =====================================
> igt@gem_reset_stats@reset-count-blt
> igt@gem_reset_stats@reset-count-bsd
> igt@gem_reset_stats@reset-count-bsd1
> igt@gem_reset_stats@reset-count-bsd2
> igt@gem_reset_stats@reset-count-default
> igt@gem_reset_stats@reset-count-render
> igt@gem_reset_stats@reset-count-vebox
> 
> ====================================
> Software configuration
> ====================================
> kernel version              : 4.15.0-rc6-drm-tip-ww1-commit-0cb68b0+
> intel-gpu-tools (tag)       : intel-gpu-tools-1.20-266-g6db2441
> 
> ====================================
> Hardware Configuration
> ====================================
> platform                   : Skylake Canyon
> cpu information            : Intel(R) Core(TM) i7-6770HQ CPU @ 2.60GHz
> signature                  : Type 0, Family 6, Model 94, Stepping 3
> 
> 
> ====================================
> Summary assertion
> ====================================
> (gem_reset_stats:1701) igt-gt-DEBUG: Test requirement passed: ctx == 0 ||
> has_ctx_exec(fd, ring, ctx)
> (gem_reset_stats:1704) CRITICAL: Test assertion failure function
> test_reset_count, file gem_reset_stats.c:609:
> (gem_reset_stats:1704) CRITICAL: Failed assertion: c2 == -EPERM
> Stack trace:
>   #0 [__igt_fail_assert+0x101]
>   #1 [test_reset_count+0x167]
>   #2 [__real_main772+0xa3a]
>   #3 [main+0x23]
>   #4 [__libc_start_main+0xf1]
>   #5 [_start+0x29]
>   #6 [<unknown>+0x29]
> child 0 failed with exit status 99
> Subtest reset-count-bsd2 failed.
This issue haven't been seen since February ww6 in any of our platforms, closing bug. Thank you.

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.