Bug 93014 - [ALL] igt/kms_atomic test fail
Summary: [ALL] igt/kms_atomic test fail
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: DRI git
Hardware: Other Linux (All)
: medium normal
Assignee: Intel GFX Bugs mailing list
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-19 14:29 UTC by Rami
Modified: 2017-01-17 11:15 UTC (History)
2 users (show)

See Also:
i915 platform: BSW/CHT, BXT, BYT, HSW, IVB, SKL, SNB
i915 features: display/atomic


Attachments
dmesg (245.06 KB, text/plain)
2015-11-19 14:29 UTC, Rami
no flags Details
bsw-dmesg-kms_atomic (124.65 KB, text/plain)
2016-03-15 08:53 UTC, cprigent
no flags Details

Description Rami 2015-11-19 14:29:43 UTC
Created attachment 119940 [details]
dmesg

Test fail on BSW ehith the last setup:
Hardware:
Platform: Braswell M 
CPU : Intel(R) Celeron N3060 1.60GHz @ 1.6 GHz (family: 6, model: 76 stepping: 4)
SoC : BSW C0
QDF : K6XC
CRB : BRASWELL RVP Fab2
Mandatory Reworks : All Feature Reworks: F28, F32, F33, F35, F37
Optional reworks : O-01a; O-02, O-03 

Software:
Linux distribution: Ubuntu 15.04 LTS 64 bits 
BIOS : BRAS.X64.B084.R00.1508310642
TXE FW : 2.0.0.2073
Ksc : 1.08
kernel  drm-intel-nightly: 2015y-11m-12d-15h-35m-53s UTC integration manifest
commit 4c2531304c0a2f36f6b2cce2add5b5b2bd3fd893
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Thu Nov 12 17:36:12 2015 +0200
cairo: (HEAD, tag: 1.14.2) 93422b3cb5e0ef8104b8194c8873124ce2f5ea2d from git://git.freedesktop.org/git/cairo
drm: (HEAD, tag: libdrm-2.4.65, tag: 2.4.65) c3496167637e35cf8a52d5e7e53a412e79d80db0 from git://git.freedesktop.org/git/mesa/drm
intel-driver: (HEAD, tag: 1.6.1, origin/v1.6-branch) 35858c69166b845c59ca32e19a3dbb0b758df209 from git://git.freedesktop.org/git/vaapi/intel-driver
libva: (HEAD, tag: libva-1.6.1, origin/v1.6-branch) 613eb962b45fbbd1526d751e88e0d8897af6c0e0 from git://git.freedesktop.org/git/vaapi/libva
mesa: (HEAD, tag: mesa-11.0.5) ee57c22141c42d9b511a7dfa5971c4428cd1c6e7 from git://git.freedesktop.org/git/mesa/mesa
xf86-video-intel: (HEAD, tag: 2.99.917) baec802b21387d04aebb10ac29e719a1800c5aa0 from git://git.freedesktop.org/git/xorg/driver/xf86-video-intel
xserver: (HEAD, tag: xorg-server-1.17.2) 2123f7682d522619f101b05fb75efa75dabbe371 from git://git.freedesktop.org/git/xorg/xserver

* Tools *
intel-gpu-tools: (HEAD, origin/master, origin/HEAD, master) e42936d86b52c6804da41755df7155cafded5eb2 from git://git.freedesktop.org/git/xorg/app/intel-gpu-tools

Steps:
=======
./kms_atomic


Actual result:
==============
IGT-Version: 1.12-ge42936d (x86_64) (Linux: 4.3.0-nightly+ x86_64)
Test assertion failure function atomic_setup, file kms_atomic.c:726:
Failed assertion: (drmSetClientCap(desc->fd, 3, 1)) == 0
Last errno: 22, Invalid argument
Stack trace:
  #0 [__igt_fail_assert+0x101]
  #1 [__real_main1307+0x1db0]
  #2 [main+0x23]
  #3 [__libc_start_main+0xf0]
  #4 [_start+0x29]
  #5 [<unknown>+0x29]
Test kms_atomic failed.
**** DEBUG ****
(kms_atomic:1035) drmtest-DEBUG: Test requirement passed: fd >= 0
Test requirement passed: fd >= 0
Test requirement passed: drmSetMaster(fd) == 0
Test assertion failure function atomic_setup, file kms_atomic.c:726:
Failed assertion: (drmSetClientCap(desc->fd, 3, 1)) == 0
Last errno: 22, Invalid argument
****  END  ****
Subtest plane_overlay_legacy: FAIL
Subtest plane_primary_legacy: FAIL
Subtest plane_cursor_legacy: FAIL
Subtest plane_invalid_params: FAIL
Subtest crtc_invalid_params: FAIL
Subtest atomic_invalid_params: FAIL
Comment 1 Elio 2015-11-25 19:31:14 UTC
The problem is present in BYT as well, 

Following configuration:
Linux distribution: Ubuntu 15.04 LTS 64 bits 
Kernel: 
4.4.0-rc1-nightly+

Test assertion failure function atomic_setup, file kms_atomic.c:726:
Failed assertion: (drmSetClientCap(desc->fd, 3, 1)) == 0
Last errno: 22, Invalid argument
Test kms_atomic failed.
**** DEBUG ****
(kms_atomic:1866) drmtest-DEBUG: Test requirement passed: fd >= 0
Test requirement passed: fd >= 0
Test requirement passed: drmSetMaster(fd) == 0
Test assertion failure function atomic_setup, file kms_atomic.c:726:
Failed assertion: (drmSetClientCap(desc->fd, 3, 1)) == 0
Last errno: 22, Invalid argument
Comment 2 cprigent 2015-11-27 17:35:04 UTC
Test is fail on SKL-Y with kernel tag drm-intel-testing-2015-11-20 

Motherboard: Skylake Y
cpu model name	: Intel(R) Core(TM) m5-6Y57 CPU @ 1.10GHz
cpu model : 78
cpu family : 6
Graphic card: Device 191e (rev 07) 
Software:
Kernel: tag drm-intel-testing-2015-11-20 5074e51ef3a2b0ad4c2354e95aec5380a93966b3 (4.4-rc1) from git://anongit.freedesktop.org/drm-intel
Ubuntu 14.04.2 LTS
Bios: SKLSE2R1.R00.B104.B01.1511110114
Libdrm: 2.4.65 from http://cgit.freedesktop.org/mesa/drm
Comment 3 cprigent 2015-11-29 10:25:04 UTC
Following subtests are fail on HSW-ULT with kernel testing tag 2015-11-20:
igt@kms_atomic@atomic_invalid_params
igt@kms_atomic@crtc_invalid_params
igt@kms_atomic@plane_cursor_legacy
igt@kms_atomic@plane_invalid_params
igt@kms_atomic@plane_overlay_legacy
igt@kms_atomic@plane_primary_legacy

Hardware:
Motherboard: SawTooth Peak
cpu model name : Intel(R) Core(TM) i7-4550U CPU @ 1.50GHz
cpu model : 69
cpu family : 6
Graphic card: Haswell-ULT Integrated Graphics Controller (rev 09)
Software:
Kernel tag drm-intel-testing-2015-11-20 5074e51ef3a2b0ad4c2354e95aec5380a93966b3 (4.4-rc1) from git://anongit.freedesktop.org/drm-intel 
  commit 5074e51ef3a2b0ad4c2354e95aec5380a93966b3
  Author: Imre Deak <imre.deak@intel.com>
  Date:   Fri Nov 20 11:50:03 2015 +0200
  drm-intel-nightly: 2015y-11m-20d-09h-49m-41s UTC integration manifest
Ubuntu 14.04.1 LTS
Bios: HSWLPTU1.86C.0135.R01.1311020052
Libdrm: 2.4.65
Comment 4 cprigent 2015-11-29 11:00:31 UTC
Subcases are Fail on IVB with kernel testing tag 2015-11-20:
igt@kms_atomic@atomic_invalid_params
igt@kms_atomic@crtc_invalid_params
igt@kms_atomic@plane_cursor_legacy
igt@kms_atomic@plane_invalid_params
igt@kms_atomic@plane_overlay_legacy
igt@kms_atomic@plane_primary_legacy

Hardware:
Motherboard: DH77EB
cpu model name : Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz
cpu model : 58
cpu family : 6
Graphic card: Xeon E3-1200 v2/3rd Gen Core processor Graphics
Software:
Kernel tag drm-intel-testing-2015-11-20 5074e51 (4.4-rc1) from git://anongit.freedesktop.org/drm-intel 
  commit 5074e51ef3a2b0ad4c2354e95aec5380a93966b3
  Author: Imre Deak <imre.deak@intel.com>
  Date:   Fri Nov 20 11:50:03 2015 +0200
  drm-intel-nightly: 2015y-11m-20d-09h-49m-41s UTC integration manifest
Ubuntu 14.04.1 LTS
Bios: EBH7710H.86A.0096.2012.1012.1645
Libdrm: 2.4.65
Comment 5 cprigent 2015-11-29 11:28:07 UTC
Fail on SNB with kernel testing tag 2015-11-20:
igt@kms_atomic@atomic_invalid_params
igt@kms_atomic@crtc_invalid_params
igt@kms_atomic@plane_cursor_legacy
igt@kms_atomic@plane_invalid_params
igt@kms_atomic@plane_overlay_legacy
igt@kms_atomic@plane_primary_legacy

Hardware:
Motherboard: DQ67SW
cpu model name : Intel(R) Core(TM) i5-2400S CPU @ 2.50GHz
cpu model : 42
cpu family : 6
Graphic card: 2nd Generation Core Processor Family Integrated Graphics
Software:
Kernel tag drm-intel-testing-2015-11-20 5074e51 (4.4-rc1) from git://anongit.freedesktop.org/drm-intel 
  commit 5074e51ef3a2b0ad4c2354e95aec5380a93966b3
  Author: Imre Deak <imre.deak@intel.com>
  Date:   Fri Nov 20 11:50:03 2015 +0200
  drm-intel-nightly: 2015y-11m-20d-09h-49m-41s UTC integration manifest
Ubuntu 14.04.1 LTS
Bios: SWQ6710H.86A.0060.2011.1220.1805
Libdrm: 2.4.65
Comment 6 cprigent 2016-01-17 21:01:44 UTC
Following subcases are fail on a SKL production device:
kms_atomic@crtc_invalid_params
kms_atomic@plane_cursor_legacy
kms_atomic@plane_invalid_params
kms_atomic@plane_overlay_legacy
kms_atomic@plane_primary_legacy

Dell Inspiron 15 7000 2-1
Intel Core (TM) i7 CPU @ 6500 2.5
Intel HD Graphics
Linux distribution: Ubuntu 15.10 64 bits
Kernel: drm-intel-nightly 4.4.0-rc8 8834392 from http://cgit.freedesktop.org/drm-intel/
libdrm-2.4.66 from http://cgit.freedesktop.org/mesa/drm/
xf86-video-intel 2.99.917 from http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/
mesa-11.0.8 from http://cgit.freedesktop.org/mesa/mesa/
libva-1.6.2 from http://cgit.freedesktop.org/libva/
intel-driver 1.6.2 from http://cgit.freedesktop.org/vaapi/intel-driver
cairo 1.15.2 from http://cgit.freedesktop.org/cairo
IGT 1.13 cd658a7c6bca74eb897a8ae87751029793f0c4f4 from http://cgit.freedesktop.org/xorg/app/intel-gpu-tools/
DMC and GUC firmware from https://01.org/linuxgraphics/intel-linux-graphics-firmwares
Comment 7 Rami 2016-02-03 14:30:16 UTC
This subtest are fail on BXT with last setup:

igt@kms_atomic@atomic_invalid_params
igt@kms_atomic@crtc_invalid_params
igt@kms_atomic@plane_cursor_legacy
igt@kms_atomic@plane_invalid_params
igt@kms_atomic@plane_overlay_legacy
igt@kms_atomic@plane_primary_legacy

Setup:
======
Platform: Broxton P A0 Platform
CPU Name : Intel(R) @ 1.2 GHz (family: 6, model: 92, stepping: 8) – 4 cores
SoC : BROXTON-P A0
CRB : Apollo Lake LPDDR3 RVP2B
Reworks : R17, R18, PNP3

Software:
=========
BIOS (IFWI Version): APLK_IFWI_X64_R_2015_44_3_00
KSC : 1.05
Linux distribution: Ubuntu 15.10 64 bits
Kernel: drm-intel-nightly 4.5 rc1 6b1049b
http://cgit.freedesktop.org/drm-intel/
drm: tag libdrm-2.4.66 e342c0f from http://cgit.freedesktop.org/mesa/drm/
mesa: tag mesa-11.0.9  from http://cgit.freedesktop.org/mesa/mesa/
cairo: tag 1.15.2 db8a7f1 from http://cgit.freedesktop.org/cairo
waffle: master bb29b2a from https://github.com/waffle-gl/waffle
xorg-server-macros: master d7acec2 from git://git.freedesktop.org/git/xorg/util/macros
libva: tag libva-1.6.1 cb418f6 from http://cgit.freedesktop.org/libva/
vaapi-intel-driver: tag 1.6.1 2110b3a from http://cgit.freedesktop.org/vaapi/intel-driver
Tools
deqp: tag android-cts-6.0_r2 cf44075 from https://android.googlesource.com/platform/external/deqp
ogles1conform master from https://git-amr-2.devtools.intel.com/gerrit/gitweb?p=otc_gen_graphics-khronos-glconform.git
ogles2-3conform branch gles3-new-skylake f64cf0f from https://git-amr-2.devtools.intel.com/gerrit/gitweb?p=otc_gen_graphics-khronos-glconform.git
intel-gpu-tool: (HEAD, origin/master, origin/HEAD) d63e72f0ad281f295b058a572741b995a5a0f64a from git://git.freedesktop.org/git/xorg/app/intel-gpu-tools
Comment 8 cprigent 2016-02-14 12:47:56 UTC
Subtests are fail on KBL:
igt@kms_atomic@atomic_invalid_params
igt@kms_atomic@crtc_invalid_params
igt@kms_atomic@plane_cursor_legacy
igt@kms_atomic@plane_invalid_params
igt@kms_atomic@plane_overlay_legacy
igt@kms_atomic@plane_primary_legacy

Hardware
Platform: KABY LAKE-U
CPU : Intel(R) Core(TM) @ 2.60GHz
MCP : KBL-U G0 2+2 (ou ULT-G0)
QDF : QYQ8
Chipset PCH: SPT-LP C1
CRB : KABY LAKE U DDR3L RVP7 CRB FAB1
Software
BIOS : KBLSE2R1.R00.X015.B01.1511271314
ME FW : 11.5.0.1008
Ksc (EC FW): 1.20
Linux distribution: Ubuntu 15.10 64 bits
Kernel: drm-intel-nightly 4.5.0-rc3_d9bd337 from
http://cgit.freedesktop.org/drm-intel/
commit d9bd337b4b2d46f73005fcdf0e7049e7f8ed5c04
Author: Jani Nikula <jani.nikula@intel.com>
Date: Tue Feb 9 17:43:10 2016 +0200
drm-intel-nightly: 2016y-02m-09d-15h-42m-46s UTC integration manifest
drm: tag libdrm-2.4.66-33-gf884af9
intel-gpu-tool: intel-gpu-tools-1.13-195-g8d441ee
Comment 9 Humberto Israel Perez Rodriguez 2016-02-26 04:14:33 UTC
The following tests fail as well with the latest setup on BXT-P

tests
=====
kms_atomic@plane_overlay_legacy
kms_atomic@atomic_invalid_params
kms_atomic@plane_primary_legacy
kms_atomic@crtc_invalid_params
kms_atomic@plane_invalid_params
kms_atomic@plane_cursor_legacy


Software & Hardware configuration
===================================
Kernel version                      : 4.5.0-rc5-nightly+
Linux distribution                  : Ubuntu 15.10
Architecture                        : 64-bit
Mesa version                        : 11.1.1 (git-330aa44
xf86-video-intel version            : 2.99.917
Xorg-Xserver version                : 1.18.1
DRM version                         : 2.4.66
VAAPI version                       : Intel i965 driver for Intel(R) Broxton - 1.6.3.pre1 (1.6.1-92-gf6fe842)
Cairo version                       : 1.15.2
Bios revision                       : 119.10
KSC revision                        : 1.6
Motherboard model                   : Broxton P
Motherboard type                    : NOTEBOOK Hand Held
Motherboard manufacturer            : Intel Corp.
CPU family                          : Other
CPU information                     : 06/5c
GPU Card                            : Intel Corporation Device 5a84 (rev 03) (prog-if 00 [VGA controller])

 --> Component : intel-gpu-tools 
url : http://cgit.freedesktop.org/xorg/app/intel-gpu-tools 
tag : intel-gpu-tools-1.13 
commit : 2db78a4 
author : Thomas Wood <thomas.wood@intel.com> 
age : 3 months ago 

kernel
======
commit 1a139ead792d8e912aa13d413b9cf59811fde676
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Mon Feb 22 10:48:46 2016 +0200

    drm-intel-nightly: 2016y-02m-22d-08h-48m-06s UTC integration manifest
Comment 10 cprigent 2016-03-15 08:53:56 UTC
Created attachment 122309 [details]
bsw-dmesg-kms_atomic

Fail on BSW:
kms_atomic@atomic_invalid_params
kms_atomic@crtc_invalid_params
kms_atomic@plane_cursor_legacy
kms_atomic@plane_invalid_params
kms_atomic@plane_overlay_legacy
kms_atomic@plane_primary_legacy

# ./kms_atomic --run-subtest atomic_invalid_params
IGT-Version: 1.14-NOT-GIT (x86_64) (Linux: 4.4.0-nightly x86_64)
(kms_atomic:1638) CRITICAL: Test assertion failure function atomic_setup, file kms_atomic.c:726:
(kms_atomic:1638) CRITICAL: Failed assertion: (drmSetClientCap(desc->fd, 3, 1)) == 0
(kms_atomic:1638) CRITICAL: Last errno: 22, Invalid argument
Stack trace:
  #0 [__igt_fail_assert+0xf1]
  #1 [__real_main1283+0x2970]
  #2 [main+0x29]
  #3 [__libc_start_main+0xf5]
  #4 [_start+0x29]
  #5 [<unknown>+0x29]
Test kms_atomic failed.
**** DEBUG ****
(kms_atomic:1638) drmtest-DEBUG: Test requirement passed: fd >= 0
(kms_atomic:1638) drmtest-DEBUG: Test requirement passed: fd >= 0
(kms_atomic:1638) drmtest-DEBUG: Test requirement passed: drmSetMaster(fd) == 0
(kms_atomic:1638) CRITICAL: Test assertion failure function atomic_setup, file kms_atomic.c:726:
(kms_atomic:1638) CRITICAL: Failed assertion: (drmSetClientCap(desc->fd, 3, 1)) == 0
(kms_atomic:1638) CRITICAL: Last errno: 22, Invalid argument
****  END  ****
Subtest atomic_invalid_params: FAIL
#
#
# ./kms_atomic --run-subtest crtc_invalid_params
IGT-Version: 1.14-NOT-GIT (x86_64) (Linux: 4.4.0-nightly x86_64)
(kms_atomic:1696) CRITICAL: Test assertion failure function atomic_setup, file kms_atomic.c:726:
(kms_atomic:1696) CRITICAL: Failed assertion: (drmSetClientCap(desc->fd, 3, 1)) == 0
(kms_atomic:1696) CRITICAL: Last errno: 22, Invalid argument
Stack trace:
  #0 [__igt_fail_assert+0xf1]
  #1 [__real_main1283+0x2970]
  #2 [main+0x29]
  #3 [__libc_start_main+0xf5]
  #4 [_start+0x29]
  #5 [<unknown>+0x29]
Test kms_atomic failed.
**** DEBUG ****
(kms_atomic:1696) drmtest-DEBUG: Test requirement passed: fd >= 0
(kms_atomic:1696) drmtest-DEBUG: Test requirement passed: fd >= 0
(kms_atomic:1696) drmtest-DEBUG: Test requirement passed: drmSetMaster(fd) == 0
(kms_atomic:1696) CRITICAL: Test assertion failure function atomic_setup, file kms_atomic.c:726:
(kms_atomic:1696) CRITICAL: Failed assertion: (drmSetClientCap(desc->fd, 3, 1)) == 0
(kms_atomic:1696) CRITICAL: Last errno: 22, Invalid argument
****  END  ****
Subtest crtc_invalid_params: FAIL
#
#
# ./kms_atomic --run-subtest plane_cursor_legacy
IGT-Version: 1.14-NOT-GIT (x86_64) (Linux: 4.4.0-nightly x86_64)
(kms_atomic:1757) CRITICAL: Test assertion failure function atomic_setup, file kms_atomic.c:726:
(kms_atomic:1757) CRITICAL: Failed assertion: (drmSetClientCap(desc->fd, 3, 1)) == 0
(kms_atomic:1757) CRITICAL: Last errno: 22, Invalid argument
Stack trace:
  #0 [__igt_fail_assert+0xf1]
  #1 [__real_main1283+0x2970]
  #2 [main+0x29]
  #3 [__libc_start_main+0xf5]
  #4 [_start+0x29]
  #5 [<unknown>+0x29]
Test kms_atomic failed.
**** DEBUG ****
(kms_atomic:1757) drmtest-DEBUG: Test requirement passed: fd >= 0
(kms_atomic:1757) drmtest-DEBUG: Test requirement passed: fd >= 0
(kms_atomic:1757) drmtest-DEBUG: Test requirement passed: drmSetMaster(fd) == 0
(kms_atomic:1757) CRITICAL: Test assertion failure function atomic_setup, file kms_atomic.c:726:
(kms_atomic:1757) CRITICAL: Failed assertion: (drmSetClientCap(desc->fd, 3, 1)) == 0
(kms_atomic:1757) CRITICAL: Last errno: 22, Invalid argument
****  END  ****
Subtest plane_cursor_legacy: FAIL
#
#
#
# ./kms_atomic --run-subtest plane_invalid_params
IGT-Version: 1.14-NOT-GIT (x86_64) (Linux: 4.4.0-nightly x86_64)
(kms_atomic:1800) CRITICAL: Test assertion failure function atomic_setup, file kms_atomic.c:726:
(kms_atomic:1800) CRITICAL: Failed assertion: (drmSetClientCap(desc->fd, 3, 1)) == 0
(kms_atomic:1800) CRITICAL: Last errno: 22, Invalid argument
Stack trace:
  #0 [__igt_fail_assert+0xf1]
  #1 [__real_main1283+0x2970]
  #2 [main+0x29]
  #3 [__libc_start_main+0xf5]
  #4 [_start+0x29]
  #5 [<unknown>+0x29]
Test kms_atomic failed.
**** DEBUG ****
(kms_atomic:1800) drmtest-DEBUG: Test requirement passed: fd >= 0
(kms_atomic:1800) drmtest-DEBUG: Test requirement passed: fd >= 0
(kms_atomic:1800) drmtest-DEBUG: Test requirement passed: drmSetMaster(fd) == 0
(kms_atomic:1800) CRITICAL: Test assertion failure function atomic_setup, file kms_atomic.c:726:
(kms_atomic:1800) CRITICAL: Failed assertion: (drmSetClientCap(desc->fd, 3, 1)) == 0
(kms_atomic:1800) CRITICAL: Last errno: 22, Invalid argument
****  END  ****
Subtest plane_invalid_params: FAIL
#
#
# ./kms_atomic --run-subtest plane_overlay_legacy
IGT-Version: 1.14-NOT-GIT (x86_64) (Linux: 4.4.0-nightly x86_64)
(kms_atomic:1843) CRITICAL: Test assertion failure function atomic_setup, file kms_atomic.c:726:
(kms_atomic:1843) CRITICAL: Failed assertion: (drmSetClientCap(desc->fd, 3, 1)) == 0
(kms_atomic:1843) CRITICAL: Last errno: 22, Invalid argument
Stack trace:
  #0 [__igt_fail_assert+0xf1]
  #1 [__real_main1283+0x2970]
  #2 [main+0x29]
  #3 [__libc_start_main+0xf5]
  #4 [_start+0x29]
  #5 [<unknown>+0x29]
Test kms_atomic failed.
**** DEBUG ****
(kms_atomic:1843) drmtest-DEBUG: Test requirement passed: fd >= 0
(kms_atomic:1843) drmtest-DEBUG: Test requirement passed: fd >= 0
(kms_atomic:1843) drmtest-DEBUG: Test requirement passed: drmSetMaster(fd) == 0
(kms_atomic:1843) CRITICAL: Test assertion failure function atomic_setup, file kms_atomic.c:726:
(kms_atomic:1843) CRITICAL: Failed assertion: (drmSetClientCap(desc->fd, 3, 1)) == 0
(kms_atomic:1843) CRITICAL: Last errno: 22, Invalid argument
****  END  ****
Subtest plane_overlay_legacy: FAIL
#
#
# ./kms_atomic --run-subtest plane_primary_legacy
IGT-Version: 1.14-NOT-GIT (x86_64) (Linux: 4.4.0-nightly x86_64)
(kms_atomic:1889) CRITICAL: Test assertion failure function atomic_setup, file kms_atomic.c:726:
(kms_atomic:1889) CRITICAL: Failed assertion: (drmSetClientCap(desc->fd, 3, 1)) == 0
(kms_atomic:1889) CRITICAL: Last errno: 22, Invalid argument
Stack trace:
  #0 [__igt_fail_assert+0xf1]
  #1 [__real_main1283+0x2970]
  #2 [main+0x29]
  #3 [__libc_start_main+0xf5]
  #4 [_start+0x29]
  #5 [<unknown>+0x29]
Test kms_atomic failed.
**** DEBUG ****
(kms_atomic:1889) drmtest-DEBUG: Test requirement passed: fd >= 0
(kms_atomic:1889) drmtest-DEBUG: Test requirement passed: fd >= 0
(kms_atomic:1889) drmtest-DEBUG: Test requirement passed: drmSetMaster(fd) == 0
(kms_atomic:1889) CRITICAL: Test assertion failure function atomic_setup, file kms_atomic.c:726:
(kms_atomic:1889) CRITICAL: Failed assertion: (drmSetClientCap(desc->fd, 3, 1)) == 0
(kms_atomic:1889) CRITICAL: Last errno: 22, Invalid argument
****  END  ****
Subtest plane_primary_legacy: FAIL


Hardware: 
Motherboard: Aspire XC-704 
cpu model name : Intel(R) Pentium(R) CPU N3700 @ 1.60GHz 
cpu model : 76 
cpu family : 6 
Graphic card: Device 22b1 (rev 21)

Software:
Bios: R01-A2
Kernel mainline 4.4.0 from https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
  commit afd2ff9b7e1b367172f18ba7f693dfb62bdcb2dc
  Author: Linus Torvalds <torvalds@linux-foundation.org>
  Date:   Sun Jan 10 15:01:32 2016 -0800
  Linux 4.4
drm: libdrm-2.4.67-5 ea07de9 from git://anongit.freedesktop.org/mesa/drm
mesa: tag mesa-11.1.2 7bcd827 from git://anongit.freedesktop.org/mesa/mesa
cairo: tag 1.15.2 db8a7f1 from git://anongit.freedesktop.org/cairo
waffle: master bb29b2a from git://github.com/waffle-gl/waffle
xorg-server-macros: tag: util-macros-1.19.0-2 d7acec2 from git://git.freedesktop.org/git/xorg/util/macros
xserver: tag: xorg-server-1.18.1 23e60f9 from git://git.freedesktop.org/git/xorg/xserver
xf86-video-intel: tag 2.99.917-560 d167280 from git://anongit.freedesktop.org/xorg/driver/xf86-video-intel
libva: tag libva-1.7.0.pre1 35f1447 from git://git.freedesktop.org/git/vaapi/libva
vaapi-intel-driver: tag 1.7.0.pre1 ab8e4e3 from git://anongit.freedesktop.org/vaapi/intel-driver
IGT 1.14 364d378 from http://anongit.freedesktop.org/git/xorg/app/intel-gpu-tools.git

One external screen connected to HDMI
Comment 11 Humberto Israel Perez Rodriguez 2016-03-17 17:56:15 UTC
The following test cases fail on BXT-P with the following configuration

case list
================


kms_atomic@crtc_invalid_params
kms_atomic@plane_primary_legacy
kms_atomic@atomic_invalid_params
kms_atomic@plane_overlay_legacy
kms_atomic@plane_cursor_legacy
kms_atomic@plane_invalid_params


Hardware information
=====================
Platform	BXT-P
Motherboard model	Broxton P
Motherboard type	NOTEBOOK Hand Held
Motherboard manufacturer	Intel Corp.
CPU family	Other
CPU information	06/5c
GPU Card	Intel Corporation Device 5a84 (rev 03) (prog-if 00 [VGA controller])

Software information
======================
Linux distribution : Ubuntu 15.10
Architecture       : 64-bit

 --> Component : drm 
	 url : http://cgit.freedesktop.org/mesa/drm 
	 tag : libdrm-2.4.67-5-gea07de9 
	 commit : ea07de9 
	 author : Rodrigo Vivi <rodrigo.vivi@intel.com> 
	 age : 13 days ago 
 --> Component : mesa 
	 url : http://cgit.freedesktop.org/mesa/mesa 
	 tag : mesa-11.1.2 
	 commit : 7bcd827 
	 author : Emil Velikov <emil.velikov@collabora.com> 
	 age : 5 weeks ago 
 --> Component : xf86-video-intel 
	 url : http://cgit.freedesktop.org/xorg/driver/xf86-video-intel 
	 tag : 2.99.917-560-gd167280 
	 commit : d167280 
	 author : Chris Wilson <chris@chris-wilson.co.uk> 
	 age : 3 weeks ago 
 --> Component : libva 
	 url : http://cgit.freedesktop.org/libva/ 
	 tag : libva-1.7.0.pre1 
	 commit : 35f1447 
	 author : Xiang Haihao <haihao.xiang@intel.com> 
	 age : 11 days ago 
 --> Component : vaapi (intel-driver) 
	 url : http://cgit.freedesktop.org/vaapi/intel-driver 
	 tag : 1.7.0.pre1 
	 commit : ab8e4e3 
	 author : Xiang Haihao <haihao.xiang@intel.com> 
	 age : 11 days ago 
 --> Component : cairo 
	 url : http://cgit.freedesktop.org/cairo 
	 tag : 1.15.2 
	 commit : db8a7f1 
	 author : Bryce Harrington <bryce@osg.samsung.com> 
	 age : 3 months ago 
 --> Component : xserver 
	 url :  http://cgit.freedesktop.org/xorg/xserver 
	 tag : xorg-server-1.18.1 
	 commit : 23e60f9 
	 author : Adam Jackson <ajax@redhat.com> 
	 age : 5 weeks ago 
 --> Component : intel-gpu-tools 
	 url : http://cgit.freedesktop.org/xorg/app/intel-gpu-tools 
	 tag : intel-gpu-tools-1.14-23-g364d378 
	 commit : 364d378 
	 author : Paulo Zanoni <paulo.r.zanoni@intel.com> 
	 age : 10 days ago 

kernel
=========
drm-intel-testing / commit a27657a

commit a27657a39741599ce9feef1ef39ae6654e9e6768
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Mon Feb 29 09:42:22 2016 +0100

    drm-intel-nightly: 2016y-02m-29d-08h-41m-12s UTC integration manifest

Kernel version : 4.5.0-rc5
Architecture : source amd64 all
Comment 12 Matt Roper 2016-03-17 18:12:27 UTC
You're missing the "i915.nuclear_pageflip=1" option on your kernel command line to enable atomic modeset functionality.  Without that option, this test isn't expected to work until full atomic is officially enabled in i915 (although we have most of the functionality done, we can't turn the atomic feature on by default yet since we're still lacking async atomic).

Arguably the kms_atomic IGT test should probably skip rather than fail if it is unable to set the DRM_CLIENT_CAP_ATOMIC capability bit since that indicates the running kernel doesn't have atomic modesetting support.
Comment 13 Luis Botello 2016-03-23 19:29:07 UTC
This issue still happen on KBL with the following configuration


Test cases
===============
kms_atomic@atomic_invalid_params
kms_atomic@crtc_invalid_params
kms_atomic@plane_primary_legacy
kms_atomic@plane_invalid_params
kms_atomic@plane_overlay_legacy
kms_atomic@plane_cursor_legacy


Hardware configuration
=======================
Platform	KBL (RVP3)
Motherboard model	Kabylake Client platform
Motherboard type	Skylake Y LPDDR3 RVP3 Laptop
Motherboard manufacturer	Intel Corporation
CPU family	Other
CPU information	Genuine Intel(R) CPU 0000 @ 0.90GHz
GPU Card	Intel Corporation Device 591e (prog-if 00 [VGA controller])
Memory ram	4 GB

Software configuration
=======================
 --> Component : drm 
	 url : http://cgit.freedesktop.org/mesa/drm 
	 tag : libdrm-2.4.67-5-gea07de9 
	 commit : ea07de9 
	 author : Rodrigo Vivi <rodrigo.vivi@intel.com> 
	 age : 13 days ago 
 --> Component : mesa 
	 url : http://cgit.freedesktop.org/mesa/mesa 
	 tag : mesa-11.1.2 
	 commit : 7bcd827 
	 author : Emil Velikov <emil.velikov@collabora.com> 
	 age : 5 weeks ago 
 --> Component : xf86-video-intel 
	 url : http://cgit.freedesktop.org/xorg/driver/xf86-video-intel 
	 tag : 2.99.917-560-gd167280 
	 commit : d167280 
	 author : Chris Wilson <chris@chris-wilson.co.uk> 
	 age : 3 weeks ago 
 --> Component : libva 
	 url : http://cgit.freedesktop.org/libva/ 
	 tag : libva-1.7.0.pre1 
	 commit : 35f1447 
	 author : Xiang Haihao <haihao.xiang@intel.com> 
	 age : 11 days ago 
 --> Component : vaapi (intel-driver) 
	 url : http://cgit.freedesktop.org/vaapi/intel-driver 
	 tag : 1.7.0.pre1 
	 commit : ab8e4e3 
	 author : Xiang Haihao <haihao.xiang@intel.com> 
	 age : 11 days ago 
 --> Component : cairo 
	 url : http://cgit.freedesktop.org/cairo 
	 tag : 1.15.2 
	 commit : db8a7f1 
	 author : Bryce Harrington <bryce@osg.samsung.com> 
	 age : 3 months ago 
 --> Component : xserver 
	 url :  http://cgit.freedesktop.org/xorg/xserver 
	 tag : xorg-server-1.18.1 
	 commit : 23e60f9 
	 author : Adam Jackson <ajax@redhat.com> 
	 age : 5 weeks ago 
 --> Component : intel-gpu-tools 
	 url : http://cgit.freedesktop.org/xorg/app/intel-gpu-tools 
	 tag : intel-gpu-tools-1.14-23-g364d378 
	 commit : 364d378 
	 author : Paulo Zanoni <paulo.r.zanoni@intel.com> 
	 age : 10 days ago 


kernel configuration
=====================
Branch : drm-intel-testing
commit a27657a39741599ce9feef1ef39ae6654e9e6768
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Mon Feb 29 09:42:22 2016 +0100

    drm-intel-nightly: 2016y-02m-29d-08h-41m-12s UTC integration manifest
Kernel version : 4.5.0-rc5
Architecture : source amd64 all
Comment 14 cprigent 2016-03-25 15:57:11 UTC
I confirm test is Pass on BSW with kernel command line i915.nuclear_pageflip=1
Comment 15 Matt Roper 2016-04-04 21:19:03 UTC
This igt patch should cause the test to skip rather than fail when we're running on a kernel that doesn't have atomic modesetting support turned on:

https://patchwork.freedesktop.org/patch/79566/
Comment 16 Matt Roper 2016-04-05 14:45:24 UTC
Fix in IGT is now upstream.
Comment 17 cprigent 2016-05-16 13:00:05 UTC
Tests are now skip on KBL-U:

Hardware
Platform: KABY LAKE-U
CPU : Intel(R) Core(TM) @ 2.60GHz
MCP : KBL-U G0 2+2 (ou ULT-G0)
QDF : QYQ8
Chipset PCH: SPT-LP C1
CRB : KABY LAKE U DDR3L RVP7 CRB FAB1

Software
BIOS : KBLSE2R1.R00.X015.B01.1511271314
ME FW : 11.5.0.1008
Ksc (EC FW): 1.20
Linux distribution: Ubuntu 16.04 64 bits
kernel drm-intel-nightly 4.6.0-rc7 61f856f from http://cgit.freedesktop.org/drm-intel/
  commit 61f856faa1e6ff9dddad214be1e372e8aacfc0f4
  Author: Ville Syrjälä <ville.syrjala@linux.intel.com>
  Date:   Mon May 9 19:24:21 2016 +0300
  drm-intel-nightly: 2016y-05m-09d-16h-24m-01s UTC integration manifest
libdrm-2.4.68 fc09c5a from git://anongit.freedesktop.org/mesa/drm
cairo: 1.15.2 db8a7f1 from git://anongit.freedesktop.org/cairo
IGT 1.14 cc24755 from http://anongit.freedesktop.org/git/xorg/app/intel-gpu-tools.git

Let's confirm the results on the others platforms before closing it.
Comment 18 Jari Tahvanainen 2017-01-17 11:15:13 UTC
Verifyind and Closing resolved+fixed. Tests kms_atomic/* are skipped when atomic modesetting is NOT turned ON
BSW - 6 skip/6 total
BXT - 6 skip/6 total
BYT - 6 skip/6 total
HSW - 6 skip/6 total
IVB - 6 skip/6 total
SKL - 6 skip/6 total
SNB - 6 skip/6 total


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.