Bug 102095

Summary: [IGT][GLK] kms_flip takes more than 10 minutes (guc enabled)
Product: DRI Reporter: Armando Antonio <armando.antoniox.mora.reos>
Component: DRM/IntelAssignee: Intel GFX Bugs mailing list <intel-gfx-bugs>
Status: CLOSED NOTABUG QA Contact: Intel GFX Bugs mailing list <intel-gfx-bugs>
Severity: normal    
Priority: medium CC: intel-gfx-bugs
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
See Also: https://bugs.freedesktop.org/show_bug.cgi?id=89134
Whiteboard: ReadyForDev
i915 platform: GLK i915 features: display/color management
Attachments:
Description Flags
dmesg log
none
kernel log
none
test log
none
debug.conf none

Description Armando Antonio 2017-08-07 20:14:09 UTC
Created attachment 133355 [details]
dmesg log

The following test cases fail on GLK with latest configuration,  these test cases take more than ten minutes and sometimes they never finish of execute.

======================================
Test list
======================================
igt@kms_flip@2x-blt-flip-vs-modeset
igt@kms_flip@2x-blt-flip-vs-modeset-interruptible
igt@kms_flip@2x-blt-wf_vblank-vs-modeset
igt@kms_flip@2x-blt-wf_vblank-vs-modeset-interruptible
igt@kms_flip@2x-flip-vs-modeset-vs-hang
igt@kms_flip@2x-flip-vs-modeset-vs-hang-interruptible
igt@kms_flip@2x-flip-vs-panning-vs-hang
igt@kms_flip@2x-flip-vs-panning-vs-hang-interruptible
igt@kms_flip@2x-rcs-wf_vblank-vs-modeset
igt@kms_flip@2x-rcs-wf_vblank-vs-modeset-interruptible
igt@kms_flip@2x-render-flip-vs-modeset
igt@kms_flip@2x-render-flip-vs-modeset-interruptible
igt@kms_flip@2x-vblank-vs-dpms-suspend
igt@kms_flip@2x-vblank-vs-dpms-suspend-interruptible
igt@kms_flip@2x-vblank-vs-hang
igt@kms_flip@2x-vblank-vs-hang-interruptible
igt@kms_flip@2x-vblank-vs-modeset-suspend
igt@kms_flip@2x-vblank-vs-modeset-suspend-interruptible
igt@kms_flip@2x-vblank-vs-suspend
igt@kms_flip@2x-vblank-vs-suspend-interruptible
igt@kms_flip@blt-flip-vs-modeset
igt@kms_flip@blt-flip-vs-modeset-interruptible
igt@kms_flip@blt-wf_vblank-vs-modeset
igt@kms_flip@blt-wf_vblank-vs-modeset-interruptible
igt@kms_flip@flip-vs-modeset-vs-hang
igt@kms_flip@flip-vs-modeset-vs-hang-interruptible
igt@kms_flip@flip-vs-panning-vs-hang
igt@kms_flip@flip-vs-panning-vs-hang-interruptible
igt@kms_flip@rcs-wf_vblank-vs-modeset
igt@kms_flip@rcs-wf_vblank-vs-modeset-interruptible
igt@kms_flip@render-flip-vs-modeset
igt@kms_flip@render-flip-vs-modeset-interruptible
igt@kms_flip@vblank-vs-dpms-suspend
igt@kms_flip@vblank-vs-dpms-suspend-interruptible
igt@kms_flip@vblank-vs-hang
igt@kms_flip@vblank-vs-hang-interruptible
igt@kms_flip@vblank-vs-modeset-suspend
igt@kms_flip@vblank-vs-modeset-suspend-interruptible
igt@kms_flip@vblank-vs-suspend
igt@kms_flip@vblank-vs-suspend-interruptible

======================================
             Software
======================================
kernel version              : 4.13.0-rc3-drm-tip-ww31-commit-372e2eb+
/bin/bash: gfx-desktop: command not found
architecture                : x86_64
os version                  : Ubuntu 16.10
os codename                 : yakkety
[sudo] password for gfx: kernel driver               : i915
bios revision               : 52.23
bios release date           : 06/24/2017
ksc                         : 1.36
hardware acceleration       : disabled
swap partition              : enabled on (/dev/sda3)

======================================
        Graphic drivers
======================================
modesetting                 : enabled
modesetting compiled for    : 1.18.4 X.Org Video Driver
xorg-xserver                : 1.18.4
libdrm                      : 2.4.82
cairo                       : 1.15.7
intel-gpu-tools (tag)       : intel-gpu-tools-1.19-126-g6e1ccfa
intel-gpu-tools (commit)    : 6e1ccfa

======================================
             Hardware
======================================
platform                   : Geminilake
motherboard model          : Geminilake
motherboard id             : GLKRVP1DDR4(05)
form factor                : Hand Held
manufacturer               : IntelCorp.
cpu family                 : Other
cpu family id              : 6
cpu information            : Genuine Intel(R) CPU @ 1.10GHz
gpu card                   : Intel Corporation Device 3184 (rev 01) (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               : 0
socket                     : Other
hard drive                 : 111GiB (120GB)
current cd clock frequency : 79200 kHz
maximum cd clock frequency : 316800 kHz
displays connected         : eDP-1

======================================
             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=0x1e log_buf_len=4M i915.alpha_support=1 i915.enable_guc_submission=2 i915.enable_guc_loading=2
Comment 1 Armando Antonio 2017-08-07 20:14:30 UTC
Created attachment 133356 [details]
kernel log
Comment 2 Armando Antonio 2017-08-07 20:14:42 UTC
Created attachment 133357 [details]
test log
Comment 3 Elizabeth 2017-08-10 19:49:32 UTC
Adding tag into "Whiteboard" field - ReadyForDev
*Status is correct
*Platform is included
*Feature is included
*Priority and Severity correctly set
*Logs included
Comment 4 Elizabeth 2017-08-22 22:39:17 UTC
After testing and research from our QA team, it was found that the specific config file from FI that was being used to compile the kernel, had a lot of disable parameters to improve performance while running IGT. The problem was that some of those parameters were required to use the firmware effectively. It was agreed to use a generic config file from kernel.org. 

These tests are now passed with the attached kernel and the last configuration known:
=====================================================
igt@kms_flip@2x-blt-flip-vs-modeset
igt@kms_flip@2x-blt-flip-vs-modeset-interruptible
igt@kms_flip@2x-blt-wf_vblank-vs-modeset
igt@kms_flip@2x-blt-wf_vblank-vs-modeset-interruptible
igt@kms_flip@2x-flip-vs-modeset-vs-hang
igt@kms_flip@2x-flip-vs-modeset-vs-hang-interruptible
igt@kms_flip@2x-flip-vs-panning-vs-hang
igt@kms_flip@2x-flip-vs-panning-vs-hang-interruptible
igt@kms_flip@2x-rcs-wf_vblank-vs-modeset
igt@kms_flip@2x-rcs-wf_vblank-vs-modeset-interruptible
igt@kms_flip@2x-render-flip-vs-modeset
igt@kms_flip@2x-render-flip-vs-modeset-interruptible
igt@kms_flip@2x-vblank-vs-hang
igt@kms_flip@2x-vblank-vs-hang-interruptible
igt@kms_flip@blt-flip-vs-modeset
igt@kms_flip@blt-flip-vs-modeset-interruptible
igt@kms_flip@blt-wf_vblank-vs-modeset
igt@kms_flip@blt-wf_vblank-vs-modeset-interruptible
igt@kms_flip@flip-vs-modeset-vs-hang
igt@kms_flip@flip-vs-modeset-vs-hang-interruptible
igt@kms_flip@flip-vs-panning-vs-hang
igt@kms_flip@flip-vs-panning-vs-hang-interruptible
igt@kms_flip@rcs-wf_vblank-vs-modeset
igt@kms_flip@rcs-wf_vblank-vs-modeset-interruptible
igt@kms_flip@render-flip-vs-modeset
igt@kms_flip@render-flip-vs-modeset-interruptible
igt@kms_flip@vblank-vs-hang
igt@kms_flip@vblank-vs-hang-interruptible
=====================================================

Gfx stack
=====================================================
Component: drm
    tag: libdrm-2.4.81-46-g9d133dd
    commit: 9d133dd08720d80dfc8ce098bf0972ebd05c454d

Component: cairo
    tag: 1.15.6-14-gf351595
    commit: f3515954e0bc9c9ca413a84a8dd842145cec83a7

Component: intel-gpu-tools
    tag: intel-gpu-tools-1.19-193-g5a17ee2
    commit: 5a17ee2c8f9013f5db852d27564b837f9f2c5a9f

Component: piglit
    tag: piglit-v1
    commit: 2a7047a32bb3a9a4fad5bea0a8185d63af6bddf3

Kernel info
=====================================================
commit ad6ab9f96437f0cb1f4d8a7840fd9eeb894eb12e
Author:     Gustavo Padovan <gustavo.padovan@collabora.com>
AuthorDate: Fri Aug 18 15:26:42 2017 -0300
Commit:     Gustavo Padovan <gustavo.padovan@collabora.com>
CommitDate: Fri Aug 18 15:26:42 2017 -0300

    drm-tip: 2017y-08m-18d-18h-21m-46s UTC integration manifest
=====================================================

***

These tests still are failing showing a different issue. They would be tested again and if needed a new bug will be open. Thank you.

======================================================
igt@kms_flip@2x-vblank-vs-dpms-suspend
igt@kms_flip@2x-vblank-vs-dpms-suspend-interruptible
igt@kms_flip@2x-vblank-vs-modeset-suspend
igt@kms_flip@2x-vblank-vs-modeset-suspend-interruptible
igt@kms_flip@2x-vblank-vs-suspend
igt@kms_flip@2x-vblank-vs-suspend-interruptible
igt@kms_flip@vblank-vs-dpms-suspend
igt@kms_flip@vblank-vs-dpms-suspend-interruptible
igt@kms_flip@vblank-vs-modeset-suspend
igt@kms_flip@vblank-vs-modeset-suspend-interruptible
igt@kms_flip@vblank-vs-suspend
igt@kms_flip@vblank-vs-suspend-interruptible
======================================================
Comment 5 Elizabeth 2017-08-22 22:39:45 UTC
Created attachment 133701 [details]
debug.conf

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.