Bug 97975 - [BDW / BSW] kms_rmfb / close-fd and rmfb-ioctl are failing
Summary: [BDW / BSW] kms_rmfb / close-fd and rmfb-ioctl are failing
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: Marta Löfstedt
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-29 13:27 UTC by cprigent
Modified: 2017-06-20 06:11 UTC (History)
1 user (show)

See Also:
i915 platform: BDW, BSW/CHT
i915 features: display/Other


Attachments
BDW__kms_rmfb__kern.log (322.17 KB, text/plain)
2016-09-29 13:27 UTC, cprigent
no flags Details
BDW__kms_rmfb__output (5.38 KB, text/plain)
2016-09-29 13:29 UTC, cprigent
no flags Details

Description cprigent 2016-09-29 13:27:28 UTC
Created attachment 126863 [details]
BDW__kms_rmfb__kern.log

Platform: NUC5i7RYB
CPU: Intel(R) Core(TM) i7-5557U CPU @ 3.10GHz (Family 6, Model 61, Stepping 4)
Motherboard version: H73774-102
GPU: Intel® Iris™ Graphics 6100 - Intel Corporation Broadwell-U Integrated Graphics (rev 09)
Memory: two 4GB card Kingston 99U5469-045.A00LF
SSD: INTEL SSDSC2KW24

Software
Bios: RYBDWi35.86A.0358.2016.0606.1423 from https://downloadcenter.intel.com/downloads/eula/26081/BIOS-Update-RYBDWi35-86A-?httpDown=https%3A%2F%2Fdownloadmirror.intel.com%2F26081%2Feng%2FRY0358.bio
Linux distribution: Ubuntu 16.04 64 bits
Kernel: 4.8.0-rc8 aab15c2 from http://cgit.freedesktop.org/drm-intel/
   commit aab15c274da587bcab19376d2caa9d6626440335
   Author: Jani Nikula <jani.nikula@intel.com>
   Date:   Mon Sep 26 15:11:53 2016 +0300
   drm-intel-nightly: 2016y-09m-26d-12h-11m-33s UTC integration manifest
libdrm-2.4.70-14 0659558 from git://anongit.freedesktop.org/mesa/drm
mesa: mesa-12.0.0 8b06176 from git://anongit.freedesktop.org/mesa/mesa
cairo 1.15.2 db8a7f1 from git://anongit.freedesktop.org/cairo
xorg-server-1.18.99.901-14 ba199cb from git://git.freedesktop.org/git/xorg/xserver
xf86-video-intel 2.99.917-708 8f33f80 from git://git.freedesktop.org/git/xorg/driver/xf86-video-intel
libva-1.7.2-38 3b7e499 from git://git.freedesktop.org/git/vaapi/libva 
vaapi-intel-driver: 1.7.2-101 302cf63 from git://git.freedesktop.org/git/vaapi/intel-driver
IGT: intel-gpu-tools-1.16-30 32b2021 from http://anongit.freedesktop.org/git/xorg/app/intel-gpu-tools.git

Steps:
------
1. Execute IGT tests:
# ./kms_rmfb --r close-fd
# ./kms_rmfb --r rmfb-ioctl

Actual resulst
--------------
Tests are fail

Expected result:
----------------
Tests are Pass
Comment 1 cprigent 2016-09-29 13:29:15 UTC
Created attachment 126864 [details]
BDW__kms_rmfb__output
Comment 2 cprigent 2016-09-29 13:30:03 UTC
Could it be the same as bug 97973 ?
Comment 3 Luis Botello 2016-10-13 21:40:01 UTC
Issue is also seen over APL with the following configuration:

Software Config:
=====================================================
Kernel:
commit f35ed31aea66b3230c366fcba5f3456ae2cb956e
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Mon Oct 10 14:29:09 2016 +0300
    drm-intel-nightly: 2016y-10m-10d-11h-28m-51s UTC integration manifest

drm:
  tag: libdrm-2.4.71
  commit: a44c9c31b7b38b3eedf3d26648f9e68dcc377c4c
mesa:
  tag: mesa-12.0.0
  commit: 8b06176f310f65628ce136b90a99005278ba5e0d
cairo:
  tag: 1.15.2
  commit: db8a7f1697c49ae4942d2aa49eed52dd73dd9c7a
xorg-server-macros:
  tag: util-macros-1.19.0-2-gd7acec2
  commit: d7acec2d3a3abe79814ceb72e2c0d4d95ed31d37
xserver:
  tag: xorg-server-1.18.99.901-76-g97a8353
  commit: 97a8353ec1192d8d3bd2ebb99e5687cb91427e09
xf86-video-intel:
  tag: 2.99.917-712-g696f58f
  commit: 696f58f69f2bac5717d19f7a1a2278fee50a083e
libva:
  tag: libva-1.7.2-38-g3b7e499
  commit: 3b7e4999950a04fabd42edbead8c2f24c6cdf3cf
vaapi-intel-driver:
  tag: 1.7.2-133-gdd73514
  commit: dd73514209d7942f2d8c8b0bbb541fe6884ea1bc

Hardware Config:
========================================================
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 0a) (prog-if 00 [VGA controller])
Comment 4 Luis Botello 2016-10-20 22:05:28 UTC
Issue is still present over KBL with the following configuration

Software Configuration:
========================================================
Kernel:
Branch           : drm-intel-nightly WW42 
commit 15dfed2b90e84e7c277f81842fc3f19355293061
Author: Lyude <thatslyude@gmail.com>
Date:   Sun Oct 16 19:16:08 2016 -0400
    drm-intel-nightly: 2016y-10m-16d-23h-15m-00s UTC integration manifest

Component         : drm
        tag       : libdrm-2.4.71
        commit    : a44c9c31b7b38b3eedf3d26648f9e68dcc377c4c 
Component         : cairo
        tag       : 1.15.2
        commit    : db8a7f1697c49ae4942d2aa49eed52dd73dd9c7a 
Component         : intel-gpu-tools
        tag       : intel-gpu-tools-1.16-83-g54f8a3f
        commit    : 54f8a3f7cf12eea484a0b0641718ced559959f53
Comment 5 Elio 2016-11-23 23:10:59 UTC
The problem is present with BYT as well, configuration:

Platform BYT: Acer Aspire XC-603
CPU: Intel(R) Pentium(R) CPU  J2900  @ 2.41GHz (family 6, model 55, stepping 8)
Motherboard: Aspire XC-603
GPU: Intel® HD Graphics - Intel Corporation Atom Processor Z36xxx/Z37xxx Series Graphics & Display (rev 0e)

Software
Bios: P11-B2
Linux distribution: Ubuntu 16.04 64 bits

Kernel: 4.9.0-rc4 91e164f branch drm-intel-nightly from http://cgit.freedesktop.org/drm-intel/ 
  commit 91e164fea17d3e5366048b6eae3c6eea4e14e9fe
  Author: Ville Syrjälä <ville.syrjala@linux.intel.com>
  Date:   Mon Nov 14 16:31:06 2016 +0200
  drm-intel-nightly: 2016y-11m-14d-14h-30m-30s UTC integration manifest

libdrm-2.4.71-13 670f1e4 from git://anongit.freedesktop.org/mesa/drm
mesa: mesa-13.0.0 df1b0a5 from git://anongit.freedesktop.org/mesa/mesa
cairo 1.15.2 db8a7f1 from git://anongit.freedesktop.org/cairo
xorg-server-1.18.99.902-2 7513da4 from git://git.freedesktop.org/git/xorg/xserver
xf86-video-intel 2.99.917-731 d1d14f2 from git://git.freedesktop.org/git/xorg/driver/xf86-video-intel
libva-1.7.2-40 3a7547b from git://git.freedesktop.org/git/vaapi/libva 
vaapi-intel-driver: 1.7.2-157 55a538c from git://git.freedesktop.org/git/vaapi/intel-driver
intel-gpu-tools-1.16-132 773ac7c from http://anongit.freedesktop.org/git/xorg/app/intel-gpu-tools.git

External screen: DELL U2312HM (VGA)

Error:
 [IGT] kms_rmfb: starting subtest close-fd
[51907.230482] [drm:drm_mode_addfb2] [FB:52]
[51907.230524] [drm:drm_mode_addfb2] [FB:68]
[51907.230776] [drm:drm_mode_setcrtc] [CRTC:33:pipe A]
[51907.230785] [drm:drm_mode_setcrtc] [CONNECTOR:43:VGA-1]
[51907.245471] [drm:intel_set_memory_cxsr [i915]] memory self-refresh is disabled
[51907.262044] [drm:vlv_pipe_set_fifo_size.isra.25 [i915]] Pipe A FIFO split 256 / 511 / 511
[51907.262098] [drm:vlv_update_wm [i915]] Setting FIFO watermarks - A: plane=136, cursor=63, sprite0=135, sprite1=0, SR: plane=0, cursor=0 level=0 cxsr=0
[51907.278440] [drm:intel_set_memory_cxsr [i915]] memory self-refresh is disabled
[51907.295013] [drm:vlv_pipe_set_fifo_size.isra.25 [i915]] Pipe A FIFO split 171 / 341 / 511
[51907.295068] [drm:vlv_update_wm [i915]] Setting FIFO watermarks - A: plane=51, cursor=63, sprite0=50, sprite1=50, SR: plane=0, cursor=0 level=0 cxsr=0
[51907.318459] [drm:vlv_pipe_set_fifo_size.isra.25 [i915]] Pipe A FIFO split 171 / 341 / 511
[51907.318515] [drm:vlv_update_wm [i915]] Setting FIFO watermarks - A: plane=51, cursor=0, sprite0=50, sprite1=50, SR: plane=0, cursor=0 level=0 cxsr=0
[51907.328363] [drm:drm_mode_setcrtc] [CRTC:42:pipe B]
[51907.328572] [drm:intel_atomic_check [i915]] New cdclk calculated to be atomic 200000, actual 200000
[51907.328642] [drm:intel_set_memory_cxsr [i915]] memory self-refresh is disabled
[51907.345049] [drm:intel_disable_pipe [i915]] disabling pipe A
[51907.361658] [drm:vlv_pipe_set_fifo_size.isra.25 [i915]] Pipe A FIFO split 511 / 511 / 511
[51907.361713] [drm:vlv_update_wm [i915]] Setting FIFO watermarks - A: plane=0, cursor=0, sprite0=0, sprite1=0, SR: plane=0, cursor=0 level=0 cxsr=0
[51907.363770] [drm:intel_update_cdclk [i915]] Current CD clock rate: 200000 kHz
[51907.363832] [drm:intel_atomic_commit_tail [i915]] [ENCODER:44:CRT]
[51907.363891] [drm:intel_atomic_commit_tail [i915]] [ENCODER:45:DP B]
[51907.363946] [drm:intel_atomic_commit_tail [i915]] [ENCODER:49:HDMI B]
[51907.364002] [drm:verify_connector_state.isra.82 [i915]] [CONNECTOR:43:VGA-1]
[51907.364065] [drm:intel_power_well_disable [i915]] disabling dpio-common
[51907.366451] [drm:intel_power_well_disable [i915]] disabling display
[51907.368904] [drm:intel_atomic_commit_tail [i915]] [CRTC:33:pipe A]
[51907.368961] [drm:intel_power_well_disable [i915]] disabling always-on
[51907.378527] [IGT] kms_rmfb: exiting, ret=99
[51907.378727] [drm:intel_atomic_check [i915]] [CONNECTOR:43:VGA-1] checking for sink bpp constrains
[51907.378781] [drm:intel_atomic_check [i915]] clamping display bpp (was 30) to default limit of 24
[51907.378853] [drm:intel_atomic_check [i915]] hw max bpp: 30, pipe bpp: 24, dithering: 0
[51907.378909] [drm:intel_dump_pipe_config [i915]] [CRTC:33:pipe A][modeset]
[51907.378963] [drm:intel_dump_pipe_config [i915]] cpu_transcoder: A, pipe bpp: 24, dithering: 0
[51907.379024] [drm:intel_dump_pipe_config [i915]] audio: 0, infoframes: 0
[51907.379077] [drm:intel_dump_pipe_config [i915]] requested mode:
[51907.379087] [drm:drm_mode_debug_printmodeline] Modeline 0:"1920x1080" 60 148500 1920 2008 2052 2200 1080 1084 1089 1125 0x48 0x5
[51907.379140] [drm:intel_dump_pipe_config [i915]] adjusted mode:
[51907.379147] [drm:drm_mode_debug_printmodeline] Modeline 0:"1920x1080" 60 148500 1920 2008 2052 2200 1080 1084 1089 1125 0x48 0x5
[51907.379203] [drm:intel_dump_pipe_config [i915]] crtc timings: 148500 1920 2008 2052 2200 1080 1084 1089 1125, type: 0x48 flags: 0x5
[51907.379256] [drm:intel_dump_pipe_config [i915]] port clock: 148500, pipe src size: 1920x1080
[51907.379311] [drm:intel_dump_pipe_config [i915]] gmch pfit: control: 0x00000000, ratios: 0x00000000, lvds border: 0x00000000
[51907.379364] [drm:intel_dump_pipe_config [i915]] ips: 0, double wide: 0
[51907.379476] [drm:intel_dump_pipe_config [i915]] dpll_hw_state: dpll: 0xf0002000, dpll_md: 0x0, fp0: 0x0, fp1: 0x0
[51907.379528] [drm:intel_dump_pipe_config [i915]] planes on this crtc
[51907.379583] [drm:intel_dump_pipe_config [i915]] [PLANE:25:primary A] disabled, scaler_id = 0
[51907.379636] [drm:intel_dump_pipe_config [i915]] [PLANE:27:sprite A] disabled, scaler_id = 0
[51907.379695] [drm:intel_dump_pipe_config [i915]] [PLANE:29:sprite B] disabled, scaler_id = 0
[51907.379751] [drm:intel_dump_pipe_config [i915]] [PLANE:31:cursor A] FB:67, fb = 256x256 format = AR24 little-endian (0x34325241)
[51907.379803] [drm:intel_atomic_check [i915]] New cdclk calculated to be atomic 266667, actual 266667
[51907.380196] [drm:intel_power_well_enable [i915]] enabling always-on
[51907.380241] [drm:intel_power_well_enable [i915]] enabling display
[51907.382347] [drm:intel_crt_reset [i915]] crt adpa set to 0xf40000
[51907.382402] [drm:i915_redisable_vga_power_on [i915]] Something enabled VGA plane, disabling it
[51907.382755] [drm:intel_power_well_enable [i915]] enabling dpio-common
[51907.388477] [drm:intel_update_cdclk [i915]] Current CD clock rate: 266667 kHz
[51907.388535] [drm:intel_atomic_commit_tail [i915]] [ENCODER:44:CRT]
[51907.388590] [drm:intel_atomic_commit_tail [i915]] [ENCODER:45:DP B]
[51907.388645] [drm:intel_atomic_commit_tail [i915]] [ENCODER:49:HDMI B]
[51907.388929] [drm:vlv_pipe_set_fifo_size.isra.25 [i915]] Pipe A FIFO split 511 / 511 / 511
[51907.388981] [drm:vlv_update_wm [i915]] Setting FIFO watermarks - A: plane=391, cursor=63, sprite0=0, sprite1=0, SR: plane=0, cursor=0 level=0 cxsr=0
[51907.389034] [drm:intel_enable_pipe [i915]] enabling pipe A
[51907.406208] [drm:verify_connector_state.isra.82 [i915]] [CONNECTOR:43:VGA-1]
[51907.406279] [drm:intel_atomic_commit_tail [i915]] [CRTC:33:pipe A]
[51907.424595] [drm:intel_crt_detect [i915]] [CONNECTOR:43:VGA-1] force=0
[51907.424624] [drm:intel_crt_detect [i915]] trigger hotplug detect cycle: adpa=0x80f40018
[51907.439790] [drm:intel_get_hpd_pins [i915]] hotplug event received, stat 0x00000800, dig 0x00000800, pins 0x00000002
[51907.440480] [drm:intel_crt_detect [i915]] valleyview hotplug adpa=0x83f40018, result 1
[51907.440522] [drm:intel_crt_detect [i915]] CRT detected via hotplug
[51907.440532] [drm:drm_helper_hpd_irq_event] [CONNECTOR:43:VGA-1] status updated from connected to connected
[51907.440575] [drm:intel_dp_detect [i915]] [CONNECTOR:46:DP-1]
[51907.440615] [drm:intel_power_well_enable [i915]] enabling dpio-tx-b-01
[51907.443039] [drm:intel_power_well_enable [i915]] enabling dpio-tx-b-23
[51907.445459] [drm:intel_power_well_enable [i915]] enabling dpio-tx-c-01
[51907.447980] [drm:intel_power_well_enable [i915]] enabling dpio-tx-c-23
[51907.450394] [drm:intel_power_well_disable [i915]] disabling dpio-tx-c-23
[51907.452553] [drm:intel_power_well_disable [i915]] disabling dpio-tx-c-01
[51907.454970] [drm:intel_power_well_disable [i915]] disabling dpio-tx-b-23
[51907.457377] [drm:intel_power_well_disable [i915]] disabling dpio-tx-b-01
[51907.459747] [drm:drm_helper_hpd_irq_event] [CONNECTOR:46:DP-1] status updated from disconnected to disconnected
[51907.459810] [drm:intel_hdmi_detect [i915]] [CONNECTOR:50:HDMI-A-1]
[51907.460323] [drm:gmbus_xfer [i915]] GMBUS [i915 gmbus dpb] NAK for addr: 0050 w(1)
[51907.460375] [drm:gmbus_xfer [i915]] GMBUS [i915 gmbus dpb] NAK on first message, retry
[51907.460902] [drm:gmbus_xfer [i915]] GMBUS [i915 gmbus dpb] NAK for addr: 0050 w(1)
[51907.460913] [drm:drm_do_probe_ddc_edid] drm: skipping non-existent adapter i915 gmbus dpb
[51907.461396] [drm:gmbus_xfer [i915]] GMBUS [i915 gmbus dpb] NAK for addr: 0040 w(1)
[51907.461448] [drm:gmbus_xfer [i915]] GMBUS [i915 gmbus dpb] NAK on first message, retry
[51907.461960] [drm:gmbus_xfer [i915]] GMBUS [i915 gmbus dpb] NAK for addr: 0040 w(1)
[51907.461973] [drm:drm_dp_dual_mode_detect] DP dual mode HDMI ID:  (err -6)
[51907.461980] [drm:drm_helper_hpd_irq_event] [CONNECTOR:50:HDMI-A-1] status updated from disconnected to disconnected
Comment 6 maria guadalupe 2016-11-24 20:01:38 UTC
Issue still present over BSW with the following config:

 Software information
============================================
Kernel version                  : 4.9.0-rc6-nightly+
Linux distribution              : Ubuntu 16.04.1 LTS
Architecture                    : 64-bit
Gfx stack code                  : 2141224538
xf86-video-intel version        : 2.99.917
Xorg-Xserver version            : 1.18.4
DRM version                     : 2.4.73
Cairo version                   : 1.15.2
Intel GPU Tools version         : Tag [intel-gpu-tools-1.16-156-gcddf996] / Commit [cddf996]
Kernel driver in use            : i915
Bios revision                   : 0.33
Bios release date               : 08/12/2015
KSC revision                    : 0.16


 Hardware information
============================================
Platform                        : BSW
Motherboard model               : 10G9000NUS
Motherboard type                : BRASWELL Desktop
Motherboard manufacturer        : LENOVO
CPU family                      : Pentium
CPU information                 : Intel(R) Pentium(R) CPU  N3700  @ 1.60GHz
GPU Card                        : Intel Corporation Device 22b1 (rev 21) (prog-if 00 [VGA controller])
Memory ram                      : 8 GB
Maximum memory ram allowed      : 8 GB
CPU thread                      : 4
CPU core                        : 4
Hard drive capacity             : 476GiB (512GB)
Comment 7 Jari Tahvanainen 2017-03-16 11:40:27 UTC
Removing KBL since on the 4.10.0-drm-tip-qa-ww9-commit-7f38bb9+ (KBL-1-MS-B1421) one has
igt@kms_rmfb@close-fd		Pass
igt@kms_rmfb@rmfb-ioctl		Pass
Comment 8 Jari Tahvanainen 2017-03-16 11:45:09 UTC
Removing BXT since on 4.10.0-rc8-drm-tip-qa-ww7-commit-e80b772+ (BXT-1-NOTEBOOK) one has
igt@kms_rmfb@close-fd		 Pass
igt@kms_rmfb@rmfb-ioctl		 Pass
Comment 9 Humberto Israel Perez Rodriguez 2017-05-30 16:18:25 UTC
Same issue with BDW and latest configuration

igt@kms_rmfb@rmfb-ioctl
igt@kms_rmfb@close-fd


test output
=============================

IGT-Version: 1.18-g00ce341 (x86_64) (Linux: 4.12.0-rc3-drm-tip-ww22-commit-75397b6+ x86_64)
(kms_rmfb:1404) igt-core-DEBUG: Test requirement passed: !igt_run_in_simulation()
(kms_rmfb:1404) drmtest-DEBUG: Test requirement passed: !(fd<0)
(kms_rmfb:1404) igt-debugfs-DEBUG: Opening debugfs directory '/sys/kernel/debug/dri/0'
(kms_rmfb:1404) drmtest-DEBUG: Test requirement passed: drmSetMaster(fd) == 0
(kms_rmfb:1404) igt-kms-DEBUG: VT: graphics mode set (mode was 0x0)
(kms_rmfb:1404) igt-kms-DEBUG: display: init {
(kms_rmfb:1404) igt-kms-DEBUG: Setting Broadcast RGB mode on connector 48 to 1
(kms_rmfb:1404) igt-kms-DEBUG: Setting Broadcast RGB mode on connector 53 to 1
(kms_rmfb:1404) igt-kms-DEBUG: Setting Broadcast RGB mode on connector 57 to 1
(kms_rmfb:1404) igt-kms-DEBUG: display: }
(kms_rmfb:1404) igt-core-DEBUG: Starting subtest: close-fd
(kms_rmfb:1404) igt-kms-DEBUG: display: HDMI-A-1: set_pipe(A)
(kms_rmfb:1404) igt-kms-DEBUG: Setting Broadcast RGB mode on connector 48 to 1
(kms_rmfb:1404) igt-kms-DEBUG: display: HDMI-A-1: Selecting pipe A
(kms_rmfb:1404) igt-fb-DEBUG: igt_create_fb_with_bo_size(width=1920, height=1080, format=0x34325258, tiling=0x0, size=0)
(kms_rmfb:1404) igt-fb-DEBUG: igt_create_fb_with_bo_size(handle=1, pitch=7680)
(kms_rmfb:1404) igt-fb-DEBUG: igt_create_fb_with_bo_size(width=1920, height=1080, format=0x34325241, tiling=0x0, size=0)
(kms_rmfb:1404) igt-fb-DEBUG: igt_create_fb_with_bo_size(handle=2, pitch=7680)
(kms_rmfb:1404) igt-kms-DEBUG: display: A.0: plane_set_fb(59)
(kms_rmfb:1404) igt-kms-DEBUG: display: A.1: plane_set_fb(59)
(kms_rmfb:1404) igt-kms-DEBUG: display: A.2: plane_set_fb(96)
(kms_rmfb:1404) igt-kms-DEBUG: display: A.2: fb_set_size(256x256)
(kms_rmfb:1404) igt-kms-DEBUG: display: A.2: plane_set_size (256x256)
(kms_rmfb:1404) igt-kms-DEBUG: display: commit {
(kms_rmfb:1404) igt-kms-DEBUG: display:     A: Setting mode 1920x1080 from HDMI-A-1
(kms_rmfb:1404) igt-kms-DEBUG: display:     populating plane data: A.0, fb 59
(kms_rmfb:1404) igt-kms-DEBUG: display:     src = (0, 0) 1920 x 1080 dst = (0, 0) 1920 x 1080
(kms_rmfb:1404) igt-kms-DEBUG: display:     populating plane data: A.1, fb 59
(kms_rmfb:1404) igt-kms-DEBUG: display:     src = (0, 0) 1920 x 1080 dst = (0, 0) 1920 x 1080
(kms_rmfb:1404) igt-kms-DEBUG: display:     populating plane data: A.2, fb 96
(kms_rmfb:1404) igt-kms-DEBUG: display:     src = (0, 0) 256 x 256 dst = (0, 0) 256 x 256
(kms_rmfb:1404) igt-kms-DEBUG: display:     B: Setting NULL mode
(kms_rmfb:1404) igt-kms-DEBUG: display:     populating plane data: B.0, fb 0
(kms_rmfb:1404) igt-kms-DEBUG: display:     populating plane data: B.1, fb 0
(kms_rmfb:1404) igt-kms-DEBUG: display:     populating plane data: B.2, fb 0
(kms_rmfb:1404) igt-kms-DEBUG: display:     C: Setting NULL mode
(kms_rmfb:1404) igt-kms-DEBUG: display:     populating plane data: C.0, fb 0
(kms_rmfb:1404) igt-kms-DEBUG: display:     populating plane data: C.1, fb 0
(kms_rmfb:1404) igt-kms-DEBUG: display:     populating plane data: C.2, fb 0
(kms_rmfb:1404) igt-kms-DEBUG: display:     HDMI-A-1: preparing atomic, pipe: A
(kms_rmfb:1404) igt-kms-DEBUG: display:     DP-1: preparing atomic, pipe: None
(kms_rmfb:1404) igt-kms-DEBUG: display:     HDMI-A-2: preparing atomic, pipe: None
(kms_rmfb:1404) igt-kms-CRITICAL: Test assertion failure function do_display_commit, file igt_kms.c:2650:
(kms_rmfb:1404) igt-kms-CRITICAL: Failed assertion: ret == 0
(kms_rmfb:1404) igt-kms-CRITICAL: Last errno: 22, Invalid argument
(kms_rmfb:1404) igt-kms-CRITICAL: error: -22 != 0
Stack trace:
  #0 [__igt_fail_assert+0x101]
  #1 [do_display_commit+0xabc]
  #2 [<unknown>+0xabc]
Subtest close-fd failed.
**** DEBUG ****
(kms_rmfb:1404) igt-kms-DEBUG: display: HDMI-A-1: set_pipe(A)
(kms_rmfb:1404) igt-kms-DEBUG: Setting Broadcast RGB mode on connector 48 to 1
(kms_rmfb:1404) igt-kms-DEBUG: display: HDMI-A-1: Selecting pipe A
(kms_rmfb:1404) igt-fb-DEBUG: igt_create_fb_with_bo_size(width=1920, height=1080, format=0x34325258, tiling=0x0, size=0)
(kms_rmfb:1404) igt-fb-DEBUG: igt_create_fb_with_bo_size(handle=1, pitch=7680)
(kms_rmfb:1404) igt-fb-DEBUG: igt_create_fb_with_bo_size(width=1920, height=1080, format=0x34325241, tiling=0x0, size=0)
(kms_rmfb:1404) igt-fb-DEBUG: igt_create_fb_with_bo_size(handle=2, pitch=7680)
(kms_rmfb:1404) igt-kms-DEBUG: display: A.0: plane_set_fb(59)
(kms_rmfb:1404) igt-kms-DEBUG: display: A.1: plane_set_fb(59)
(kms_rmfb:1404) igt-kms-DEBUG: display: A.2: plane_set_fb(96)
(kms_rmfb:1404) igt-kms-DEBUG: display: A.2: fb_set_size(256x256)
(kms_rmfb:1404) igt-kms-DEBUG: display: A.2: plane_set_size (256x256)
(kms_rmfb:1404) igt-kms-DEBUG: display: commit {
(kms_rmfb:1404) igt-kms-DEBUG: display:     A: Setting mode 1920x1080 from HDMI-A-1
(kms_rmfb:1404) igt-kms-DEBUG: display:     populating plane data: A.0, fb 59
(kms_rmfb:1404) igt-kms-DEBUG: display:     src = (0, 0) 1920 x 1080 dst = (0, 0) 1920 x 1080
(kms_rmfb:1404) igt-kms-DEBUG: display:     populating plane data: A.1, fb 59
(kms_rmfb:1404) igt-kms-DEBUG: display:     src = (0, 0) 1920 x 1080 dst = (0, 0) 1920 x 1080
(kms_rmfb:1404) igt-kms-DEBUG: display:     populating plane data: A.2, fb 96
(kms_rmfb:1404) igt-kms-DEBUG: display:     src = (0, 0) 256 x 256 dst = (0, 0) 256 x 256
(kms_rmfb:1404) igt-kms-DEBUG: display:     B: Setting NULL mode
(kms_rmfb:1404) igt-kms-DEBUG: display:     populating plane data: B.0, fb 0
(kms_rmfb:1404) igt-kms-DEBUG: display:     populating plane data: B.1, fb 0
(kms_rmfb:1404) igt-kms-DEBUG: display:     populating plane data: B.2, fb 0
(kms_rmfb:1404) igt-kms-DEBUG: display:     C: Setting NULL mode
(kms_rmfb:1404) igt-kms-DEBUG: display:     populating plane data: C.0, fb 0
(kms_rmfb:1404) igt-kms-DEBUG: display:     populating plane data: C.1, fb 0
(kms_rmfb:1404) igt-kms-DEBUG: display:     populating plane data: C.2, fb 0
(kms_rmfb:1404) igt-kms-DEBUG: display:     HDMI-A-1: preparing atomic, pipe: A
(kms_rmfb:1404) igt-kms-DEBUG: display:     DP-1: preparing atomic, pipe: None
(kms_rmfb:1404) igt-kms-DEBUG: display:     HDMI-A-2: preparing atomic, pipe: None
(kms_rmfb:1404) igt-kms-CRITICAL: Test assertion failure function do_display_commit, file igt_kms.c:2650:
(kms_rmfb:1404) igt-kms-CRITICAL: Failed assertion: ret == 0
(kms_rmfb:1404) igt-kms-CRITICAL: Last errno: 22, Invalid argument
(kms_rmfb:1404) igt-kms-CRITICAL: error: -22 != 0
****  END  ****
Subtest close-fd: FAIL (0.017s)
(kms_rmfb:1404) igt-core-DEBUG: Exiting with status code 99
(kms_rmfb:1404) igt-kms-DEBUG: VT: original mode 0x0 restored
(kms_rmfb:1404) igt-debugfs-DEBUG: Opening debugfs directory '/sys/kernel/debug/dri/0'

Software versions
=======================================
Component: drm
    tag: libdrm-2.4.80-18-gce9e3ba
    commit: ce9e3ba6e2cc65e1e9e6e05a5f326c4dd25ab2c4

Component: cairo
    tag: 1.15.4-22-g0fd0fd0
    commit: 0fd0fd0ae9ad8cfb177bb844091de98c0235917e

Component: intel-gpu-tools
    tag: intel-gpu-tools-1.18-211-g00ce341
    commit: 00ce341b95c718611689ded8ccec45086186c5b7

Component: piglit
    tag: piglit-v1
    commit: ebbb9c5dcc6a637884d54e06eb430a8c14993413
Comment 10 Humberto Israel Perez Rodriguez 2017-06-01 00:19:42 UTC
same issue on BSW with latest configuration

igt@kms_rmfb@rmfb-ioctl
igt@kms_rmfb@close-fd


Component: drm
    tag: libdrm-2.4.80-18-gce9e3ba
    commit: ce9e3ba6e2cc65e1e9e6e05a5f326c4dd25ab2c4

Component: cairo
    tag: 1.15.4-22-g0fd0fd0
    commit: 0fd0fd0ae9ad8cfb177bb844091de98c0235917e

Component: intel-gpu-tools
    tag: intel-gpu-tools-1.18-211-g00ce341
    commit: 00ce341b95c718611689ded8ccec45086186c5b7

Component: piglit
    tag: piglit-v1
    commit: ebbb9c5dcc6a637884d54e06eb430a8c14993413

kernel
===================================================
commit 4aa1d46d3b24bbe545cdf7cbd407c18f5cd5e43d
Author:     Daniel Vetter <daniel.vetter@ffwll.ch>
AuthorDate: Wed May 31 10:59:05 2017 +0200
Commit:     Daniel Vetter <daniel.vetter@ffwll.ch>
CommitDate: Wed May 31 10:59:05 2017 +0200

    drm-tip: 2017y-05m-31d-08h-58m-36s UTC integration manifest
Comment 11 Marta Löfstedt 2017-06-19 12:17:23 UTC
I have reproduced both failing test on BDW with:
commit 728e84dbddb4fc5f7a4e48dafcda215c527737ca
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Fri Jun 16 10:11:47 2017 +0300

    drm-tip: 2017y-06m-16d-07h-10m-54s UTC integration manifest


This bug is a regression caused by:

"commit 1e1bb8710e6018e932d18f9064d815634e3179f8
Author: Ville Syrjälä <ville.syrjala@linux.intel.com>
Date:   Mon Mar 27 21:55:41 2017 +0300

    drm/i915: Use fb->pitches[0] in cursor code"
Comment 12 Marta Löfstedt 2017-06-19 12:38:50 UTC
Ville suggest to change the test instead, see patch:

https://patchwork.freedesktop.org/patch/162337/
Comment 13 Marta Löfstedt 2017-06-19 12:42:15 UTC
With Villes patch:
https://patchwork.freedesktop.org/patch/162337/

both test pass on BDW.
Comment 15 Jani Saarinen 2017-06-20 06:10:00 UTC
Verified already by Marta


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.