Bug 92854

Summary: [SKL] igt / kms_frontbuffer_tracking / FBC subcases fail
Product: DRI Reporter: cprigent <christophe.prigent>
Component: DRM/IntelAssignee: Olivier Berthier <olivierx.berthier>
Status: CLOSED FIXED QA Contact: Intel GFX Bugs mailing list <intel-gfx-bugs>
Severity: normal    
Priority: medium CC: intel-gfx-bugs, przanoni
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: SKL i915 features: display/FBC
Attachments:
Description Flags
dmesg log for kms_frontbuffer_tracking fbc-1p-primscrn-shrfb-evflip-blt
none
dmesg log for kms_frontbuffer_tracking fbc-1p-rte
none
dmesg none

Description cprigent 2015-11-07 12:40:01 UTC
Platform: SKY LAKE Y A0 
CPU : Intel(R) Core(TM) m5-6Y57 CPU @ 1.10GHz (family: 6, model: 78  stepping: 3)
MCP : SKL-Y  D1 2+2 (ou ULX-D1)
QDF : QJK9 
CPU : SKL D0
Chipset PCH: Sunrise Point LP C1       
CRB : SKY LAKE Y LPDDR3 RVP3 CRB FAB2
Reworks : All Mandatories + FBS02,FBS03, F23, O-02 & O-06
Software
BIOS : SKLSE2R1.R00.X097.B02.1509020030
ME FW : 11.0.0.1173
Ksc (EC FW): 1.19
Linux distribution: Ubuntu 14.04 LTS 64 bits
kernel 4.3.0-rc7-drm-intel-nightly (86ba603) from git://anongit.freedesktop.org/drm-intel
  commit 86ba603f327626055fe1436112b3786eaaaf7fb1
  Author: Daniel Vetter <daniel.vetter@ffwll.ch>
  Date:   Sat Oct 31 09:27:21 2015 +0100
  drm-intel-nightly: 2015y-10m-31d-08h-26m-39s UTC integration manifest
Mesa 11.0.4 from http://cgit.freedesktop.org/mesa/mesa/
xf86-video-intel - 2.99.917 from http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/
Libdrm - 2.4.65 from http://cgit.freedesktop.org/mesa/drm/
Libva - 1.6.1 from http://cgit.freedesktop.org/libva/
vaapi intel-driver - 1.6.1 from http://cgit.freedesktop.org/vaapi/intel-driver
Cairo - 1.14.2 from http://cgit.freedesktop.org/cairo
Xorg Xserver - 1.17.2 from http://cgit.freedesktop.org/xorg/xserver

Steps:
------
1. Execute FBC tests of kms_frontbuffer_tracking
./kms_frontbuffer_tracking --run-subtest <...>

Actual result:
--------------
1. Following tests are failed:
igt@kms_frontbuffer_tracking@fbc-1p-primscrn-shrfb-evflip-blt
igt@kms_frontbuffer_tracking@fbc-1p-primscrn-shrfb-flip-blt
igt@kms_frontbuffer_tracking@fbc-1p-primscrn-shrfb-msflip-blt
igt@kms_frontbuffer_tracking@fbc-1p-rte
igt@kms_frontbuffer_tracking@fbc-1p-shrfb-fliptrack
igt@kms_frontbuffer_tracking@fbc-2p-primscrn-shrfb-evflip-blt
igt@kms_frontbuffer_tracking@fbc-2p-primscrn-shrfb-msflip-blt
igt@kms_frontbuffer_tracking@fbc-2p-rte
igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-shrfb-evflip-blt
igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-shrfb-flip-blt
igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-shrfb-msflip-blt
igt@kms_frontbuffer_tracking@fbc-2p-shrfb-fliptrack
igt@kms_frontbuffer_tracking@fbc-farfromfence
igt@kms_frontbuffer_tracking@fbc-shrfb-scaledprimary

Expected result:
-----------------
1. Tests are Pass
Comment 1 cprigent 2015-11-07 12:42:11 UTC
Hi Olivier,
Thanks to attach result.json and kern.log.
Please have a look to last comment of https://bugs.freedesktop.org/show_bug.cgi?id=91028.
Comment 2 Olivier Berthier 2015-11-09 10:03:46 UTC
Created attachment 119501 [details]
dmesg log for kms_frontbuffer_tracking fbc-1p-primscrn-shrfb-evflip-blt

When I execute the tests with # ./intel-gpu-tools/tests/kms_frontbuffer_tracking I have these results :

IGT-Version: 1.12-gbfea74a (x86_64) (Linux: 4.3.0-rc7-nightly+ x86_64)
Primary screen: eDP 3200x1800
Secondary screen: DP 1920x1080
FBC last action not supported
Subtest fbc-1p-rte: SUCCESS (4.436s)
Subtest fbc-2p-rte: SUCCESS (3.980s)
Subtest fbc-1p-primscrn-pri-indfb-draw-mmap-cpu: SUCCESS (4.752s)
Subtest fbc-1p-primscrn-pri-indfb-draw-mmap-gtt: SUCCESS (2.096s)
Subtest fbc-1p-primscrn-pri-indfb-draw-mmap-wc: SUCCESS (2.120s)
Subtest fbc-1p-primscrn-pri-indfb-draw-pwrite: SUCCESS (2.484s)
Subtest fbc-1p-primscrn-pri-indfb-draw-blt: SUCCESS (2.296s)
Subtest fbc-1p-primscrn-pri-indfb-draw-render: SUCCESS (2.276s)
Subtest fbc-1p-primscrn-pri-shrfb-draw-mmap-cpu: SUCCESS (2.168s)
Subtest fbc-1p-primscrn-pri-shrfb-draw-mmap-gtt: SUCCESS (2.064s)
Subtest fbc-1p-primscrn-pri-shrfb-draw-mmap-wc: SUCCESS (2.112s)
Subtest fbc-1p-primscrn-pri-shrfb-draw-pwrite: SUCCESS (2.556s)
Subtest fbc-1p-primscrn-pri-shrfb-draw-blt: SUCCESS (2.260s)
Subtest fbc-1p-primscrn-pri-shrfb-draw-render: SUCCESS (2.304s)
Subtest fbc-1p-primscrn-cur-indfb-draw-mmap-cpu: SUCCESS (3.844s)
Subtest fbc-1p-primscrn-cur-indfb-draw-mmap-gtt: SUCCESS (2.296s)
Subtest fbc-1p-primscrn-cur-indfb-draw-mmap-wc: SUCCESS (2.312s)
Subtest fbc-1p-primscrn-cur-indfb-draw-pwrite: SUCCESS (2.304s)
Subtest fbc-1p-primscrn-cur-indfb-draw-blt: SUCCESS (2.500s)
Subtest fbc-1p-primscrn-cur-indfb-draw-render: SUCCESS (2.520s)
Subtest fbc-1p-primscrn-spr-indfb-draw-mmap-cpu: SUCCESS (2.360s)
Subtest fbc-1p-primscrn-spr-indfb-draw-mmap-gtt: SUCCESS (2.312s)
Subtest fbc-1p-primscrn-spr-indfb-draw-mmap-wc: SUCCESS (2.312s)
Subtest fbc-1p-primscrn-spr-indfb-draw-pwrite: SUCCESS (2.312s)
Subtest fbc-1p-primscrn-spr-indfb-draw-blt: SUCCESS (2.524s)
Subtest fbc-1p-primscrn-spr-indfb-draw-render: SUCCESS (2.528s)
Subtest fbc-1p-offscren-pri-indfb-draw-mmap-cpu: SUCCESS (1.644s)
Subtest fbc-1p-offscren-pri-indfb-draw-mmap-gtt: SUCCESS (1.604s)
Subtest fbc-1p-offscren-pri-indfb-draw-mmap-wc: SUCCESS (1.604s)
Subtest fbc-1p-offscren-pri-indfb-draw-pwrite: SUCCESS (1.696s)
Subtest fbc-1p-offscren-pri-indfb-draw-blt: SUCCESS (1.652s)
Subtest fbc-1p-offscren-pri-indfb-draw-render: SUCCESS (1.608s)
Subtest fbc-1p-offscren-pri-shrfb-draw-mmap-cpu: SUCCESS (1.664s)
Subtest fbc-1p-offscren-pri-shrfb-draw-mmap-gtt: SUCCESS (1.644s)
Subtest fbc-1p-offscren-pri-shrfb-draw-mmap-wc: SUCCESS (1.612s)
Subtest fbc-1p-offscren-pri-shrfb-draw-pwrite: SUCCESS (2.540s)
Subtest fbc-1p-offscren-pri-shrfb-draw-blt: SUCCESS (1.796s)
Subtest fbc-1p-offscren-pri-shrfb-draw-render: SUCCESS (1.848s)
Subtest fbc-2p-primscrn-pri-indfb-draw-mmap-cpu: SUCCESS (2.404s)
Subtest fbc-2p-primscrn-pri-indfb-draw-mmap-gtt: SUCCESS (2.400s)
Subtest fbc-2p-primscrn-pri-indfb-draw-mmap-wc: SUCCESS (2.392s)
Subtest fbc-2p-primscrn-pri-indfb-draw-pwrite: SUCCESS (2.868s)
Subtest fbc-2p-primscrn-pri-indfb-draw-blt: SUCCESS (3.232s)
Subtest fbc-2p-primscrn-pri-indfb-draw-render: SUCCESS (3.152s)
Subtest fbc-2p-primscrn-pri-shrfb-draw-mmap-cpu: SUCCESS (3.132s)
Subtest fbc-2p-primscrn-pri-shrfb-draw-mmap-gtt: SUCCESS (2.956s)
Subtest fbc-2p-primscrn-pri-shrfb-draw-mmap-wc: SUCCESS (2.384s)
Subtest fbc-2p-primscrn-pri-shrfb-draw-pwrite: SUCCESS (2.868s)
Subtest fbc-2p-primscrn-pri-shrfb-draw-blt: SUCCESS (2.580s)
Subtest fbc-2p-primscrn-pri-shrfb-draw-render: SUCCESS (2.592s)
Subtest fbc-2p-primscrn-cur-indfb-draw-mmap-cpu: SUCCESS (3.252s)
Subtest fbc-2p-primscrn-cur-indfb-draw-mmap-gtt: SUCCESS (2.584s)
Subtest fbc-2p-primscrn-cur-indfb-draw-mmap-wc: SUCCESS (2.544s)
Subtest fbc-2p-primscrn-cur-indfb-draw-pwrite: SUCCESS (3.136s)
Subtest fbc-2p-primscrn-cur-indfb-draw-blt: SUCCESS (3.404s)
Subtest fbc-2p-primscrn-cur-indfb-draw-render: SUCCESS (3.400s)
Subtest fbc-2p-primscrn-spr-indfb-draw-mmap-cpu: SUCCESS (2.592s)
Subtest fbc-2p-primscrn-spr-indfb-draw-mmap-gtt: SUCCESS (2.616s)
Subtest fbc-2p-primscrn-spr-indfb-draw-mmap-wc: SUCCESS (2.600s)
Subtest fbc-2p-primscrn-spr-indfb-draw-pwrite: SUCCESS (3.144s)
Subtest fbc-2p-primscrn-spr-indfb-draw-blt: SUCCESS (2.792s)
Subtest fbc-2p-primscrn-spr-indfb-draw-render: SUCCESS (2.800s)
Subtest fbc-2p-scndscrn-pri-indfb-draw-mmap-cpu: SUCCESS (1.784s)
Subtest fbc-2p-scndscrn-pri-indfb-draw-mmap-gtt: SUCCESS (2.308s)
Subtest fbc-2p-scndscrn-pri-indfb-draw-mmap-wc: SUCCESS (2.396s)
Subtest fbc-2p-scndscrn-pri-indfb-draw-pwrite: SUCCESS (2.648s)
Subtest fbc-2p-scndscrn-pri-indfb-draw-blt: SUCCESS (2.004s)
Subtest fbc-2p-scndscrn-pri-indfb-draw-render: SUCCESS (1.984s)
Subtest fbc-2p-scndscrn-pri-shrfb-draw-mmap-cpu: SUCCESS (2.376s)
Subtest fbc-2p-scndscrn-pri-shrfb-draw-mmap-gtt: SUCCESS (1.784s)
Subtest fbc-2p-scndscrn-pri-shrfb-draw-mmap-wc: SUCCESS (2.304s)
Subtest fbc-2p-scndscrn-pri-shrfb-draw-pwrite: SUCCESS (3.224s)
Subtest fbc-2p-scndscrn-pri-shrfb-draw-blt: SUCCESS (1.960s)
Subtest fbc-2p-scndscrn-pri-shrfb-draw-render: SUCCESS (2.740s)
Subtest fbc-2p-scndscrn-cur-indfb-draw-mmap-cpu: SUCCESS (1.840s)
Subtest fbc-2p-scndscrn-cur-indfb-draw-mmap-gtt: SUCCESS (2.420s)
Subtest fbc-2p-scndscrn-cur-indfb-draw-mmap-wc: SUCCESS (2.536s)
Subtest fbc-2p-scndscrn-cur-indfb-draw-pwrite: SUCCESS (2.492s)
Subtest fbc-2p-scndscrn-cur-indfb-draw-blt: SUCCESS (2.088s)
Subtest fbc-2p-scndscrn-cur-indfb-draw-render: SUCCESS (2.740s)
Subtest fbc-2p-scndscrn-spr-indfb-draw-mmap-cpu: SUCCESS (2.020s)
Subtest fbc-2p-scndscrn-spr-indfb-draw-mmap-gtt: SUCCESS (2.420s)
Subtest fbc-2p-scndscrn-spr-indfb-draw-mmap-wc: SUCCESS (1.916s)
Subtest fbc-2p-scndscrn-spr-indfb-draw-pwrite: SUCCESS (2.428s)
Subtest fbc-2p-scndscrn-spr-indfb-draw-blt: SUCCESS (2.116s)
Subtest fbc-2p-scndscrn-spr-indfb-draw-render: SUCCESS (2.096s)
Subtest fbc-1p-primscrn-indfb-flip-blt: SUCCESS (2.124s)
Subtest fbc-1p-primscrn-indfb-evflip-blt: SUCCESS (2.144s)
Subtest fbc-1p-primscrn-indfb-msflip-blt: SUCCESS (2.144s)
Received signal SIGBUS.
Subtest fbc-1p-primscrn-shrfb-flip-blt: CRASH (1.300s)
Received signal SIGBUS.
Subtest fbc-1p-primscrn-shrfb-evflip-blt: CRASH (1.308s)
Received signal SIGBUS.
Subtest fbc-1p-primscrn-shrfb-msflip-blt: CRASH (1.324s)
Subtest fbc-2p-primscrn-indfb-flip-blt: SUCCESS (2.436s)
Subtest fbc-2p-primscrn-indfb-evflip-blt: SUCCESS (3.152s)
Subtest fbc-2p-primscrn-indfb-msflip-blt: SUCCESS (2.500s)
Received signal SIGBUS.
Subtest fbc-2p-primscrn-shrfb-flip-blt: CRASH (1.628s)
Received signal SIGBUS.
Subtest fbc-2p-primscrn-shrfb-evflip-blt: CRASH (2.320s)
Received signal SIGBUS.
Subtest fbc-2p-primscrn-shrfb-msflip-blt: CRASH (1.592s)
Subtest fbc-2p-scndscrn-indfb-flip-blt: SUCCESS (2.524s)
Subtest fbc-2p-scndscrn-indfb-evflip-blt: SUCCESS (1.840s)
Subtest fbc-2p-scndscrn-indfb-msflip-blt: SUCCESS (1.896s)
Received signal SIGBUS.
Subtest fbc-2p-scndscrn-shrfb-flip-blt: CRASH (2.092s)
Received signal SIGBUS.
Subtest fbc-2p-scndscrn-shrfb-evflip-blt: CRASH (1.496s)
Received signal SIGBUS.
Subtest fbc-2p-scndscrn-shrfb-msflip-blt: CRASH (1.448s)

I attach the dmesg for fbc-1p-primscrn-shrfb-evflip-blt.

But maybe we have another bug when we execute the tests one by one. For exemple when I run # ./intel-gpu-tools/tests/kms_frontbuffer_tracking --run-subtest fbc-1p-rte, I have de DUT crash, but the test pass when we execute all tests. It's really a problem for running the tests with piglit.
Comment 3 Olivier Berthier 2015-11-09 10:04:53 UTC
Created attachment 119502 [details]
dmesg log for kms_frontbuffer_tracking fbc-1p-rte
Comment 4 Paulo Zanoni 2015-11-13 13:46:10 UTC
I've seen crashes on SKL with eDP+HDMI, but if I use eDP only, it never crashes. I'm also not sure this is due to FBC code.

Can you confirm this?
Comment 5 Olivier Berthier 2015-11-16 10:47:53 UTC
Yes, I confirm, without additional screen there are no crashes and I only have one fail with fbc-farfromfence:

IGT-Version: 1.12-gbfea74a (x86_64) (Linux: 4.3.0-rc7-nightly+ x86_64)
Primary screen: eDP 3200x1800
FBC last action not supported
FBC status:
FBC disabled: mode too large for compression
Compressing: yes

Test assertion failure function farfromfence_subtest, file kms_frontbuffer_tracking.c:2798:
Failed assertion: false
FBC disabled
Stack trace:
  #0 [__igt_fail_assert+0x101]
  #1 [farfromfence_subtest+0x5b5]
  #2 [main+0x1103]
  #3 [__libc_start_main+0xf0]
  #4 [_start+0x29]
  #5 [<unknown>+0x29]
Subtest fbc-farfromfence failed.
**** DEBUG ****
Test requirement passed: fbc.can_test
igt_create_fb_with_bo_size(width=3200, height=1800, format=0x34325258 [bpp=32], tiling=0x100000000000001, size=0)
igt_create_fb_with_bo_size(handle=6, pitch=16384)
Blue CRC:   pipe:[caf54d69 00000000 00000000 00000000 00000000] sink:[00000000a7d9]
igt_create_fb_with_bo_size(width=3200, height=1800, format=0x34325258 [bpp=32], tiling=0x100000000000001, size=0)
igt_create_fb_with_bo_size(handle=6, pitch=16384)
igt_create_fb_with_bo_size(width=3200, height=1800, format=0x34325258 [bpp=32], tiling=0x100000000000001, size=0)
igt_create_fb_with_bo_size(handle=7, pitch=16384)
igt_create_fb_with_bo_size(width=3200, height=1800, format=0x34325258 [bpp=32], tiling=0x100000000000001, size=0)
igt_create_fb_with_bo_size(handle=8, pitch=16384)
igt_create_fb_with_bo_size(width=3200, height=1800, format=0x34325258 [bpp=32], tiling=0x100000000000001, size=0)
igt_create_fb_with_bo_size(handle=9, pitch=16384)
Test requirement passed: intel_gen(intel_get_drm_devid(fd)) >= 5
Test requirement passed: intel_gen(intel_get_drm_devid(fd)) >= 5
Test requirement passed: intel_gen(intel_get_drm_devid(fd)) >= 5
Test requirement passed: intel_gen(intel_get_drm_devid(fd)) >= 5
Test requirement passed: intel_gen(intel_get_drm_devid(fd)) >= 5
Test requirement passed: intel_gen(intel_get_drm_devid(fd)) >= 5
Test requirement passed: intel_gen(intel_get_drm_devid(fd)) >= 5
Test requirement passed: intel_gen(intel_get_drm_devid(fd)) >= 5
Test requirement passed: intel_gen(intel_get_drm_devid(fd)) >= 5
Test requirement passed: intel_gen(intel_get_drm_devid(fd)) >= 5
Rect 0 CRC: pipe:[085496e8 00000000 00000000 00000000 00000000] sink:[0000679bc042]
Rect 1 CRC: pipe:[f0ce7e4f 00000000 00000000 00000000 00000000] sink:[2e4b679bee09]
Rect 2 CRC: pipe:[eb887661 00000000 00000000 00000000 00000000] sink:[4d444f61c6f3]
Rect 3 CRC: pipe:[178fb566 00000000 00000000 00000000 00000000] sink:[4d4440e9c6f3]
Test requirement passed: intel_gen(intel_get_drm_devid(fd)) >= 5
Calculated CRC: pipe:[caf54d69 00000000 00000000 00000000 00000000] sink:[00000000a7d9]
Test requirement passed: !fbc_not_enough_stolen()
Calculated CRC: pipe:[caf54d69 00000000 00000000 00000000 00000000] sink:[00000000a7d9]
igt_create_fb_with_bo_size(width=3200, height=8192, format=0x34325258 [bpp=32], tiling=0x100000000000001, size=0)
igt_create_fb_with_bo_size(handle=6, pitch=16384)
Calculated CRC: pipe:[caf54d69 00000000 00000000 00000000 00000000] sink:[00000000a7d9]
Test requirement passed: !fbc_not_enough_stolen()
Test assertion failure function farfromfence_subtest, file kms_frontbuffer_tracking.c:2798:
Failed assertion: false
FBC disabled
****  END  ****
Subtest fbc-farfromfence: FAIL (5.708s)
Comment 6 Humberto Israel Perez Rodriguez 2015-12-11 05:01:26 UTC
The following tests also failed on SKL-Y with latest setup :

kms_frontbuffer_tracking@fbc-1p-rte
kms_frontbuffer_tracking@fbcpsr-2p-scndscrn-pri-indfb-draw-blt
kms_frontbuffer_tracking@fbc-2p-primscrn-cur-indfb-onoff
kms_frontbuffer_tracking@fbc-1p-primscrn-cur-indfb-onoff
kms_frontbuffer_tracking@fbc-1p-offscren-pri-indfb-draw-mmap-cpu
kms_frontbuffer_tracking@fbc-2p-primscrn-spr-indfb-move
kms_frontbuffer_tracking@fbc-rgb101010-draw-render
kms_frontbuffer_tracking@fbc-rgb565-draw-blt
kms_frontbuffer_tracking@fbc-2p-scndscrn-cur-indfb-draw-blt
kms_frontbuffer_tracking@fbc-2p-primscrn-cur-indfb-draw-mmap-gtt
kms_frontbuffer_tracking@fbc-2p-primscrn-spr-indfb-draw-blt
kms_frontbuffer_tracking@fbc-2p-scndscrn-pri-indfb-draw-pwrite
kms_frontbuffer_tracking@fbc-1p-primscrn-pri-indfb-draw-blt
kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-onoff
kms_frontbuffer_tracking@fbc-1p-primscrn-indfb-plflip-blt
kms_frontbuffer_tracking@fbc-2p-primscrn-pri-shrfb-draw-blt
kms_frontbuffer_tracking@fbc-stridechange
kms_frontbuffer_tracking@fbc-2p-scndscrn-pri-shrfb-draw-pwrite
kms_frontbuffer_tracking@fbc-2p-primscrn-pri-indfb-draw-pwrite
kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-fullscreen
kms_frontbuffer_tracking@fbc-2p-primscrn-spr-indfb-draw-mmap-cpu
kms_frontbuffer_tracking@fbc-2p-scndscrn-pri-shrfb-draw-blt
kms_frontbuffer_tracking@fbc-2p-scndscrn-pri-indfb-draw-render
kms_frontbuffer_tracking@fbc-2p-primscrn-indfb-evflip-blt
kms_frontbuffer_tracking@fbc-2p-primscrn-shrfb-msflip-blt
kms_frontbuffer_tracking@fbc-2p-scndscrn-shrfb-msflip-blt
kms_frontbuffer_tracking@fbc-badstride
kms_frontbuffer_tracking@fbc-2p-scndscrn-pri-shrfb-draw-mmap-wc
kms_frontbuffer_tracking@fbc-2p-scndscrn-cur-indfb-draw-render
kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-blt
kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-mmap-gtt
kms_frontbuffer_tracking@fbc-1p-pri-indfb-multidraw
kms_frontbuffer_tracking@fbc-1p-primscrn-pri-shrfb-draw-blt
kms_frontbuffer_tracking@fbc-1p-primscrn-cur-indfb-draw-blt
kms_frontbuffer_tracking@fbc-rgb101010-draw-mmap-cpu
kms_frontbuffer_tracking@fbc-rgb565-draw-mmap-cpu
kms_frontbuffer_tracking@fbc-suspend
kms_frontbuffer_tracking@fbc-2p-scndscrn-spr-indfb-draw-mmap-cpu
kms_frontbuffer_tracking@fbc-1p-offscren-pri-indfb-draw-render
kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-draw-blt
kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-mmap-cpu
kms_frontbuffer_tracking@fbc-1p-primscrn-shrfb-pgflip-blt
kms_frontbuffer_tracking@fbc-2p-primscrn-pri-indfb-draw-mmap-wc
kms_frontbuffer_tracking@fbc-rgb565-draw-render
kms_frontbuffer_tracking@fbc-2p-primscrn-indfb-plflip-blt
kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-move
kms_frontbuffer_tracking@fbc-2p-scndscrn-spr-indfb-fullscreen
kms_frontbuffer_tracking@fbc-2p-primscrn-cur-indfb-move
kms_frontbuffer_tracking@fbc-2p-primscrn-pri-shrfb-draw-mmap-wc
kms_frontbuffer_tracking@fbc-1p-primscrn-indfb-evflip-blt
kms_frontbuffer_tracking@fbc-2p-primscrn-shrfb-pgflip-blt
kms_frontbuffer_tracking@fbc-1p-primscrn-shrfb-msflip-blt
kms_frontbuffer_tracking@fbc-2p-scndscrn-shrfb-plflip-blt
kms_frontbuffer_tracking@fbc-1p-primscrn-pri-shrfb-draw-pwrite
kms_frontbuffer_tracking@fbc-rgb101010-draw-blt
kms_frontbuffer_tracking@fbc-modesetfrombusy
kms_frontbuffer_tracking@fbc-1p-primscrn-pri-indfb-draw-pwrite
kms_frontbuffer_tracking@fbc-2p-pri-indfb-multidraw
kms_frontbuffer_tracking@fbc-2p-primscrn-cur-indfb-draw-render
kms_frontbuffer_tracking@fbc-2p-scndscrn-spr-indfb-draw-blt
kms_frontbuffer_tracking@fbc-2p-scndscrn-cur-indfb-draw-mmap-cpu
kms_frontbuffer_tracking@fbc-1p-primscrn-shrfb-evflip-blt
kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-draw-mmap-gtt
kms_frontbuffer_tracking@fbc-2p-scndscrn-cur-indfb-onoff
kms_frontbuffer_tracking@fbc-1p-primscrn-pri-indfb-draw-mmap-wc
kms_frontbuffer_tracking@fbc-2p-scndscrn-indfb-plflip-blt
kms_frontbuffer_tracking@fbc-2p-scndscrn-indfb-evflip-blt
kms_frontbuffer_tracking@fbc-2p-scndscrn-pri-shrfb-draw-mmap-gtt
kms_frontbuffer_tracking@fbc-1p-primscrn-pri-indfb-draw-render
kms_frontbuffer_tracking@fbc-2p-scndscrn-pri-indfb-draw-blt
kms_frontbuffer_tracking@fbc-1p-offscren-pri-indfb-draw-blt
kms_frontbuffer_tracking@fbc-2p-primscrn-pri-indfb-draw-mmap-gtt
kms_frontbuffer_tracking@fbc-2p-primscrn-spr-indfb-draw-mmap-wc
kms_frontbuffer_tracking@fbc-2p-primscrn-shrfb-evflip-blt
kms_frontbuffer_tracking@fbc-1p-primscrn-shrfb-plflip-blt
kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-render



 --- Hardware information ---
Motherboard model             : Skylake Client platform
Motherboard type              : Skylake Y LPDDR3 RVP3 Laptop
Motherboard manufacturer      : Intel Corporation
CPU information               : Intel(R) Core(TM) m5-6Y57 CPU @ 1.10GHz
GPU Card                      : Intel Corporation Sky Lake Integrated Graphics (rev 07) (prog-if 00 [VGA controller])
KSC                           : 1.15

Linux distribution: Ubuntu 15.10 LTS 64 bits
Kernel: 4.3 mainline from https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/log/?id=refs/tags/v4.3
Bios SKL: SKLSE2R1.R00.B104.B01.1511110114)
xorg-server-1.18.0 from http://cgit.freedesktop.org/xorg/xserver
libdrm-2.4.65 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.4 from http://cgit.freedesktop.org/mesa/mesa/
libva-1.6.2.pre1 from http://cgit.freedesktop.org/libva/
vaapi-intel-driver 1.6.2.pre1 from http://cgit.freedesktop.org/vaapi/intel-driver
cairo 1.14.4 from http://cgit.freedesktop.org/cairo
Rendercheck 1.5 from http://cgit.freedesktop.org/xorg/app/rendercheck
SKL-Y :  DMC 1.23 and GUC 4.3 firmware from https://01.org/linuxgraphics/intel-linux-graphics-firmwares
IGT 1.13: http://cgit.freedesktop.org/xorg/app/intel-gpu-tools/commit/?id=2db78a4995a8ee298ae0cd68879baf80407a0e5e
Comment 7 Rami 2016-01-26 09:49:15 UTC
Created attachment 121296 [details]
dmesg

Reproduced on BXT with the last setup:

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 RVPC1 Fab1 
Reworks : R14, R06C and R16
Monitors: Asus PB287Q (4K), Samsung S24C650

Software:
=========
BIOS (IFWI Version): APLK_IFWI_X64_R_2015_41_5_02 
KSC : 1.02
Linux distribution: Ubuntu 15.10 64 bits
Kernel: drm-intel-nightly 4.4.0 8114b00 from 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.8 261daab 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:
======
intel-gpu-tool: tag intel-gpu-tools-1.13 51e965f from http://cgit.freedesktop.org/xorg/app/intel-gpu-tools/

Steps:
======
./kms_frontbuffer_tracking --run-subtest fbc-tilingchange


Actual results:
===============
 ./kms_frontbuffer_tracking --run-subtest fbc-tilingchange
IGT-Version: 1.13-NOT-GIT (x86_64) (Linux: 4.4.0-nightly+ x86_64)
Primary screen: DP 1920x1080
FBC last action not supported
Can't test PSR: no usable eDP screen.
Sink CRC not supported: primary screen is not eDP
(kms_frontbuffer_tracking:1198) CRITICAL: Test assertion failure function page_flip_for_params, file kms_frontbuffer_tracking.c:2236:
(kms_frontbuffer_tracking:1198) CRITICAL: Failed assertion: rc == 0
(kms_frontbuffer_tracking:1198) CRITICAL: Last errno: 22, Invalid argument
(kms_frontbuffer_tracking:1198) CRITICAL: error: -22 != 0
Stack trace:
  #0 [__igt_fail_assert+0xf1]
  #1 [page_flip_for_params+0xab]
  #2 [tilingchange_subtest+0xaf]
  #3 [main+0x245f]
  #4 [__libc_start_main+0xf0]
  #5 [_start+0x29]
  #6 [<unknown>+0x29]
Subtest fbc-tilingchange failed.
**** DEBUG ****
(kms_frontbuffer_tracking:1198) DEBUG: Test requirement passed: fbc.can_test
(kms_frontbuffer_tracking:1198) igt-fb-DEBUG: igt_create_fb_with_bo_size(width=1920, height=1080, format=0x34325258 [bpp=32], tiling=0x100000000000001, size=0)
(kms_frontbuffer_tracking:1198) igt-fb-DEBUG: igt_create_fb_with_bo_size(handle=6, pitch=8192)
(kms_frontbuffer_tracking:1198) DEBUG: Blue CRC:   pipe:[f57eca81 00000000 00000000 00000000 00000000] sink:[unsupported!]
(kms_frontbuffer_tracking:1198) igt-draw-DEBUG: Test requirement passed: intel_gen(intel_get_drm_devid(fd)) >= 5
(kms_frontbuffer_tracking:1198) DEBUG: Calculated CRC: pipe:[f57eca81 00000000 00000000 00000000 00000000] sink:[unsupported!]
(kms_frontbuffer_tracking:1198) DEBUG: Test requirement passed: !fbc_not_enough_stolen()
(kms_frontbuffer_tracking:1198) DEBUG: Calculated CRC: pipe:[f57eca81 00000000 00000000 00000000 00000000] sink:[unsupported!]
(kms_frontbuffer_tracking:1198) igt-fb-DEBUG: igt_create_fb_with_bo_size(width=1920, height=1080, format=0x34325258 [bpp=32], tiling=0x0, size=0)
(kms_frontbuffer_tracking:1198) igt-fb-DEBUG: igt_create_fb_with_bo_size(handle=6, pitch=7680)
(kms_frontbuffer_tracking:1198) DEBUG: Flip type: 0
(kms_frontbuffer_tracking:1198) CRITICAL: Test assertion failure function page_flip_for_params, file kms_frontbuffer_tracking.c:2236:
(kms_frontbuffer_tracking:1198) CRITICAL: Failed assertion: rc == 0
(kms_frontbuffer_tracking:1198) CRITICAL: Last errno: 22, Invalid argument
(kms_frontbuffer_tracking:1198) CRITICAL: error: -22 != 0
****  END  ****
Subtest fbc-tilingchange: FAIL (1.908s)

Expected result:
================
test pass
Comment 8 Paulo Zanoni 2016-01-29 21:18:21 UTC
Hi

Can you please retest this with the latest drm-intel-nightly tree and the latest IGT tree?

The only test failing on SKL should be fbc-farfromfence.

Thanks,
Paulo
Comment 9 Olivier Berthier 2016-02-19 09:04:21 UTC
Hi

I confirm, now the only test that fail on Sky Lake is fbc-farfromfence with the latest kernel drm-intel-nightly 4.5.0-rc3 and Intel-gpu-tools 1.13-220 g0a45d6b.

Olivier
Comment 10 Paulo Zanoni 2016-02-19 19:35:53 UTC
(In reply to Olivier Berthier from comment #9)
> Hi
> 
> I confirm, now the only test that fail on Sky Lake is fbc-farfromfence with
> the latest kernel drm-intel-nightly 4.5.0-rc3 and Intel-gpu-tools 1.13-220
> g0a45d6b.
> 
> Olivier

Merged today:

https://cgit.freedesktop.org/xorg/app/intel-gpu-tools/commit/?id=b87188795e9fda89c7e376726283a63817e83c60

I suppose that if you confirm we can close the bug and go into "regression watching mode" for the specific FBC tests.

I still can see problems with 2 monitors, but they are not specific to FBC and I opened #94122 for this.

Thanks for the testing,
Paulo
Comment 11 cprigent 2016-02-22 16:34:55 UTC
So resolved as fixed
Comment 12 cprigent 2016-02-22 16:35:47 UTC
fbc-farfromfence failure is tracked by: https://bugs.freedesktop.org/show_bug.cgi?id=94118
So closed

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.