Bug 102412 - [IGT] Fail test igt@perf@per-context-mode-unprivileged
Summary: [IGT] Fail test igt@perf@per-context-mode-unprivileged
Status: CLOSED FIXED
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-08-25 16:54 UTC by Ricardo Madrigal
Modified: 2018-02-14 13:53 UTC (History)
1 user (show)

See Also:
i915 platform: GLK, KBL, SKL
i915 features: Perf/OA


Attachments
result.log (1.22 KB, text/plain)
2017-08-25 16:54 UTC, Ricardo Madrigal
no flags Details
dmesg.log (63.09 KB, text/plain)
2017-08-25 16:55 UTC, Ricardo Madrigal
no flags Details
kern.log (94.40 KB, text/plain)
2017-08-25 16:55 UTC, Ricardo Madrigal
no flags Details
kbl-dmesg (24.21 KB, text/plain)
2017-09-06 16:23 UTC, Armando Antonio
no flags Details
kbl-testlog (1.60 KB, text/plain)
2017-09-06 16:24 UTC, Armando Antonio
no flags Details
output (GLK) (1.46 KB, text/plain)
2017-09-20 17:01 UTC, Hector Velazquez
no flags Details
Dmesg (GLK) (420.79 KB, text/plain)
2017-09-20 17:01 UTC, Hector Velazquez
no flags Details

Description Ricardo Madrigal 2017-08-25 16:54:31 UTC
Created attachment 133778 [details]
result.log

The following tests fail on SKL with latest configuration

====================================================
Test list
====================================================
igt@perf@per-context-mode-unprivileged

====================================================

======================================
             Software
======================================
kernel version              : 4.13.0-rc6-drm-tip-ww34-commit-650ffda+
hostname                    : gfx-desktop
architecture                : x86_64
os version                  : Ubuntu 17.04
os codename                 : zesty
kernel driver               : i915
bios revision               : 85.95
bios release date           : 07/10/2015
ksc                         : 1.21
hardware acceleration       : disabled
swap partition              : enabled on (/dev/nvme0n1p2)

======================================
        Graphic drivers
======================================
grep: /opt/X11R7/var/log/Xorg.0.log: No such file or directory
libdrm                    : 2.4.76
libva                       : 1.7.3-2
vaapi (intel-driver)        : 1.7.3
cairo                       : 1.14.8-1
intel-gpu-tools             : 1.17-1

======================================
             Hardware
======================================
motherboard model          : SkylakeClientplatform
motherboard id             : SkylakeSDS
form factor                : Laptop
manufacturer               : IntelCorporation
cpu family                 : Other
cpu family id              : 6
cpu information            : Intel(R) Core(TM) m5-6Y54 CPU @ 1.10GHz
gpu card                   : Intel Corporation HD Graphics 515 (rev 07) (prog-if 00 [VGA controller])
memory ram                 : 7.76 GB
max memory ram             : 16 GB
cpu thread                 : 4
cpu core                   : 2
cpu model                  : 78
cpu stepping               : 3
socket                     : Other
current cd clock frequency : 337500 kHz
maximum cd clock frequency : 675000 kHz
displays connected         : eDP-1

======================================
Adding logs
Comment 1 Ricardo Madrigal 2017-08-25 16:55:24 UTC
Created attachment 133779 [details]
dmesg.log
Comment 2 Ricardo Madrigal 2017-08-25 16:55:45 UTC
Created attachment 133780 [details]
kern.log
Comment 3 Elizabeth 2017-08-28 14:56:09 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 Armando Antonio 2017-09-06 16:23:34 UTC
The following test are failing on KBL with latest configuration

==================================
Test list
==================================
igt@perf@per-context-mode-unprivileged

======================================
             Software
======================================
kernel version              : 4.13.0-drm-tip-ww36-commit-59fbfaa+
hostname                    : gfx-desktop
architecture                : x86_64
os version                  : Ubuntu 16.10
os codename                 : yakkety
kernel driver               : i915
bios revision               : 5.12
bios release date           : 09/12/2016
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.83
cairo                       : 1.15.9
intel-gpu-tools (tag)       : intel-gpu-tools-1.19-234-g490b386
intel-gpu-tools (commit)    : 490b386

======================================
             Hardware
======================================
platform                   : Kabylake-Nuc
motherboard model          : MS-B142
motherboard id             : MS-B1421
form factor                : Desktop
manufacturer               : Micro-StarInternationalCo.,Ltd.
cpu family                 : Core i7
cpu family id              : 6
cpu information            : Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz
gpu card                   : Intel Corporation Device 5916 (rev 02) (prog-if 00 [VGA controller])
memory ram                 : 15.55 GB
max memory ram             : 64 GB
cpu thread                 : 4
cpu core                   : 2
cpu model                  : 142
cpu stepping               : 9
socket                     : Other
signature                  : Type 0, Family 6, Model 142, Stepping 9
hard drive                 : 111GiB (120GB)
current cd clock frequency : 337500 kHz
maximum cd clock frequency : 675000 kHz
displays connected         : DP-1 HDMI-A-2

======================================
             Firmware
======================================
dmc fw loaded             : yes
dmc version               : 1.1
guc fw loaded             : SUCCESS
guc version wanted        : 9.14
guc version found         : 9.14

======================================
             kernel parameters
======================================
drm.debug=0x1e quiet splash i915.enable_guc_submission=2 i915.enable_guc_loading=2 i915.alpha_support=1

==================================
output sample
==================================

(perf:1441) igt-core-DEBUG: Starting subtest: per-context-mode-unprivileged
(perf:1442) CRITICAL: Test assertion failure function __perf_open, file perf.c:314:
(perf:1442) CRITICAL: Failed assertion: ret >= 0
(perf:1442) CRITICAL: Last errno: 13, Permission denied
Stack trace:
  #0 [__igt_fail_assert+0x101]
  #1 [__perf_open+0x45]
  #2 [__real_main3226+0x223d]
  #3 [main+0x33]
  #4 [__libc_start_main+0xf1]
  #5 [_start+0x29]
  #6 [<unknown>+0x29]
child 0 failed with exit status 99
Subtest per-context-mode-unprivileged failed.
Comment 5 Armando Antonio 2017-09-06 16:23:57 UTC
Created attachment 134013 [details]
kbl-dmesg
Comment 6 Armando Antonio 2017-09-06 16:24:26 UTC
Created attachment 134014 [details]
kbl-testlog
Comment 7 Hector Velazquez 2017-09-06 18:57:19 UTC
The following tests FAIL on SKL 

Tests List:

igt@perf@per-context-mode-unprivileged


This is my configuration:

======================================
        Graphic stack
======================================

Component: drm
    tag: libdrm-2.4.81-52-g05a830d
    commit: 05a830d382382905d87b55af90aa109fb76e4c16

Component: cairo
    tag: 1.15.6-30-gc29db4f
    commit: c29db4f0de52727406a8b62f4da9a382084b5a79

Component: intel-gpu-tools
    tag: intel-gpu-tools-1.19-234-g490b386
    commit: 490b386ae36d393cdea514882a2437c6e964c13f

Component: piglit
    tag: piglit-v1
    commit: dab15137044c34023b1a843e72e781b03b17548b

======================================
	     Software
======================================
kernel version              : 4.13.0-drm-tip-ww36-commit-9dd459e+
hostname                    : gfx-desktop
architecture                : x86_64
os version                  : Ubuntu 16.10
os codename                 : yakkety
kernel driver               : i915
bios revision               : 5.6
bios release date           : 09/29/2016
hardware acceleration       : only available on X
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-234-g490b386
intel-gpu-tools (commit)    : 490b386

======================================
	     Firmware
======================================
dmc fw loaded             : yes
dmc version               : 1.26
guc fw loaded             : SUCCESS
guc version wanted        : 6.1
guc version found         : 6.1
huc fw loaded             : yes

======================================
	     kernel parameters
======================================
quiet splash drm.debug=0x1e i915.enable_guc_submission=2 i915.enable_guc_loading=2 i915.alpha_support=1

======================================
	     Hardware
======================================
platform                   : Skylake Canyon
motherboard id             : NUC6i7KYB
form factor                : Desktop
cpu family                 : Core i7
cpu family id              : 6
cpu information            : Intel(R) Core(TM) i7-6770HQ CPU @ 2.60GHz
gpu card                   : Intel Corporation Iris Pro Graphics 580 (rev 09) (prog-if 00 [VGA controller])
memory ram                 : 31.31 GB
max memory ram             : 32 GB
cpu thread                 : 8
cpu core                   : 4
cpu model                  : 94
cpu stepping               : 3
socket                     : Other
signature                  : Type 0, Family 6, Model 94, Stepping 3
hard drive                 : 223GiB (240GB)
current cd clock frequency : 337500 kHz
maximum cd clock frequency : 675000 kHz
displays connected         : DP-1 DP-3
Comment 8 Hector Velazquez 2017-09-20 17:00:35 UTC
This test fail on GLK QA

igt@perf@per-context-mode-unprivileged

====================================================
Output
====================================================
IGT-Version: 1.19-gda197b5 (x86_64) (Linux: 4.14.0-rc1-drm-tip-ww38-commit-ab2e3a0+ x86_64)
(perf:1486) igt-core-DEBUG: Test requirement passed: !igt_run_in_simulation()
(perf:1486) DEBUG: Test requirement passed: stat("/proc/sys/dev/i915/perf_stream_paranoid", &sb) == 0
(perf:1486) DEBUG: Test requirement passed: stat("/proc/sys/dev/i915/oa_max_sample_rate", &sb) == 0
(perf:1486) igt-debugfs-DEBUG: Opening debugfs directory '/sys/kernel/debug/dri/0'
(perf:1486) DEBUG: TestOa metric set UUID = dd3fd789-e783-4204-8cd0-b671bbccb0cf
(perf:1486) DEBUG: Test requirement passed: init_sys_info()
(perf:1486) DEBUG: Test requirement passed: render_copy
(perf:1486) igt-core-DEBUG: Starting subtest: per-context-mode-unprivileged
(perf:1487) CRITICAL: Test assertion failure function __perf_open, file perf.c:314:
(perf:1487) CRITICAL: Failed assertion: ret >= 0
(perf:1487) CRITICAL: Last errno: 13, Permission denied
Stack trace:
  #0 [__igt_fail_assert+0x101]
  #1 [__perf_open+0x45]
  #2 [__real_main3226+0x223d]
  #3 [main+0x23]
  #4 [__libc_start_main+0xf1]
  #5 [_start+0x29]
  #6 [<unknown>+0x29]
Subtest per-context-mode-unprivileged failed.
No log.
child 0 failed with exit status 99
Subtest per-context-mode-unprivileged: FAIL (0.017s)
(perf:1486) DEBUG: restoring GT frequency range: min = 100mhz, max =800mhz, current: min=100mhz, max=800mhz
(perf:1486) igt-core-DEBUG: Exiting with status code 99
(perf:1486) igt-debugfs-DEBUG: Opening debugfs directory '/sys/kernel/debug/dri/0'



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
======================================
grep: /opt/X11R7/var/log/Xorg.0.log: No such file or directory
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
======================================
platform                   : Geminilake
motherboard model          : Geminilake
motherboard id             : GLKRVP1DDR4(05)
form factor                : Hand Held
manufacturer               : IntelCorp.
cpu family                 : Pentium
cpu family id              : 6
cpu information            : Intel(R) Pentium(R) Silver J5005 CPU @ 1.50GHz
gpu card                   : Intel Corporation Device 3184 (rev 03) (prog-if 00 [VGA controller])
memory ram                 : 7.6 GB
max memory ram             : 16 GB
cpu thread                 : 4
cpu core                   : 4
cpu model                  : 122
cpu stepping               : 1
socket                     : Other
signature                  : Type 0, Family 6, Model 122, Stepping 1
hard drive                 : 111GiB (120GB)
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
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 9 Hector Velazquez 2017-09-20 17:01:31 UTC
Created attachment 134379 [details]
output (GLK)
Comment 10 Hector Velazquez 2017-09-20 17:01:51 UTC
Created attachment 134380 [details]
Dmesg (GLK)
Comment 11 Hector Velazquez 2017-09-28 12:59:49 UTC
This test is still failing on GLK QA

Tests List:

igt@perf@per-context-mode-unprivileged


====================================================
Output
====================================================
. . .
Stdout:	
IGT-Version: 1.19-g0a91a5e (x86_64) (Linux: 4.14.0-rc2-drm-tip-ww39-commit-d76cbbc+ x86_64)
Stack trace:
  #0 [__igt_fail_assert+0x101]
  #1 [__perf_open+0x45]
  #2 [__real_main3226+0x223d]
  #3 [main+0x23]
  #4 [__libc_start_main+0xf1]
  #5 [_start+0x29]
  #6 [<unknown>+0x29]
child 0 failed with exit status 99
Subtest per-context-mode-unprivileged: FAIL (0.004s)
Stderr:	
(perf:1995) CRITICAL: Test assertion failure function __perf_open, file perf.c:314:
(perf:1995) CRITICAL: Failed assertion: ret >= 0
(perf:1995) CRITICAL: Last errno: 13, Permission denied
Subtest per-context-mode-unprivileged failed.
No log.
. . .


This is my configuration:

======================================
        Graphic stack
======================================
Component: drm
    tag: libdrm-2.4.81-56-g7c71188
    commit: 7c71188610b4ceba0339c2bc884320bcb749adee

Component: cairo
    tag: 1.15.6-42-gdccbed7
    commit: dccbed7d78d32bd3b912e8810379451dd94e6a1f

Component: intel-gpu-tools
    tag: intel-gpu-tools-1.19-332-g0a91a5e
    commit: 0a91a5e9624d41d23b79e2540eda111cb56d42d9

Component: piglit
    tag: piglit-v1
    commit: 95e2f51a28b6cf7ff77d84e1234121c98f10ef64
	
======================================
             Software
======================================
kernel version              : 4.14.0-rc2-drm-tip-ww39-commit-d76cbbc+
hostname                    : GLK-2-GLKRVP1DDR405
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.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.83
cairo                       : 1.15.9
intel-gpu-tools (tag)       : intel-gpu-tools-1.19-332-g0a91a5e
intel-gpu-tools (commit)    : 0a91a5e

======================================
             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 drm.debug=0xe pci=pcie_bus_safe i915.alpha_support=1 i915.enable_guc_loading=2 i915.enable_guc_submission=2 intel_iommu=igfx_off auto panic=1 nmi_watchdog=panic resume=/dev/sda3 fastboot
Comment 12 Hector Velazquez 2017-10-03 15:53:50 UTC
This tests still failing on GLK QA

Tests List:

igt@perf@per-context-mode-unprivileged


====================================================
Output 
====================================================
. . .


This is my configuration:

======================================
        Graphic stack
======================================
Component: drm
    tag: libdrm-2.4.81-57-g1dd84e0
    commit: 1dd84e01a972b1759839a7326009be24ab3e6de2

Component: cairo
    tag: 1.15.6-42-gdccbed7
    commit: dccbed7d78d32bd3b912e8810379451dd94e6a1f

Component: intel-gpu-tools
    tag: intel-gpu-tools-1.19-357-g1e99f8b
    commit: 1e99f8b8d2563d7f5c4e82932bab15abc5eacaef

Component: piglit
    tag: piglit-v1
    commit: 5aa6eea37f44f818632a3dad4c1a7478085bd56d

	
======================================
	     Software
======================================
kernel version              : 4.14.0-rc3-drm-tip-ww40-commit-2f14e31+
hostname                    : GLK-1-GLKRVP1DDR405
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.41
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-357-g1e99f8b
intel-gpu-tools (commit)    : 1e99f8b

======================================
	     Hardware
======================================
. . .

======================================
	     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 pci=pcie_bus_safe intel_iommu=igfx_off auto panic=1 nmi_watchdog=panic i915.alpha_support=1 i915.enable_guc_loading=2 i915.enable_guc_submission=2 resume=/dev/sda3 fastboot
Comment 13 mwa 2017-10-18 18:28:54 UTC
per-context-mode-unprivileged only makes sense for HSW, hence the permission issue. Should be fixed by:

commit 8697ba5451c7068aacc3360a2162dd0bb190ac3d
Author: Robert Bragg <robert@sixbynine.org>
Date:   Sun Feb 12 19:28:38 2017 +0000

    tests/perf: add per context filtering test for gen8+
Comment 14 Hector Velazquez 2018-01-09 20:02:22 UTC
This tests has a skipped on SKL/KBL QA and passed on HSW QA

Tests List:

igt@perf@per-context-mode-unprivileged

======================================
        output sample KBL/SKL/GLK
======================================
(perf:2046) igt-core-DEBUG: Test requirement passed: !igt_run_in_simulation()
(perf:2046) DEBUG: Test requirement passed: stat("/proc/sys/dev/i915/perf_stream_paranoid", &sb) == 0
(perf:2046) DEBUG: Test requirement passed: stat("/proc/sys/dev/i915/oa_max_sample_rate", &sb) == 0
(perf:2046) drmtest-DEBUG: Test requirement passed: !(fd<0)
(perf:2046) igt-debugfs-DEBUG: Opening debugfs directory '/sys/kernel/debug/dri/0'
(perf:2046) DEBUG: TestOa metric set UUID = 882fa433-1f4a-4a67-a962-c741888fe5f5
(perf:2046) DEBUG: Test requirement passed: init_sys_info()
(perf:2046) DEBUG: Test requirement passed: render_copy
(perf:2046) igt-core-DEBUG: Starting subtest: per-context-mode-unprivileged
Test requirement not met in function __real_main4393, file perf.c:4458:
Test requirement: IS_HASWELL(devid)

Subtest per-context-mode-unprivileged: SKIP (0.000s)

(perf:2046) igt-core-DEBUG: Exiting with status code 77
(perf:2046) igt-debugfs-DEBUG: Opening debugfs directory '/sys/kernel/debug/dri/0'

======================================
        output sample HSW
======================================
(perf:2823) igt-core-DEBUG: Test requirement passed: !igt_run_in_simulation()
(perf:2823) DEBUG: Test requirement passed: stat("/proc/sys/dev/i915/perf_stream_paranoid", &sb) == 0
(perf:2823) DEBUG: Test requirement passed: stat("/proc/sys/dev/i915/oa_max_sample_rate", &sb) == 0
(perf:2823) drmtest-DEBUG: Test requirement passed: !(fd<0)
(perf:2823) igt-debugfs-DEBUG: Opening debugfs directory '/sys/kernel/debug/dri/0'
(perf:2823) DEBUG: RenderBasic metric set UUID = 403d8832-1a27-4aa6-a64e-f5389ce7b212
(perf:2823) DEBUG: Test requirement passed: init_sys_info()
(perf:2823) DEBUG: Test requirement passed: render_copy
(perf:2823) igt-core-DEBUG: Starting subtest: per-context-mode-unprivileged
(perf:2823) DEBUG: Test requirement passed: IS_HASWELL(devid)

Subtest per-context-mode-unprivileged: SUCCESS (0.035s)

(perf:2823) igt-core-DEBUG: Exiting with status code 0
(perf:2823) igt-debugfs-DEBUG: Opening debugfs directory '/sys/kernel/debug/dri/0'


This is my configuration:

KBL/SKL/HWS:  IGT-Version: 1.20-gd5e51a6 (x86_64) (Linux: 4.15.0-rc7-drm-intel-qa-ww2-commit-11030d7+ x86_64)
GLK:  IGT-Version: 1.20-g4cd4cc4 (x86_64) (Linux: 4.15.0-rc7-drm-intel-qa-ww1-commit-8cb9e98+ x86_64)


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.