Bug 99169

Summary: [HSW] Timed out CRC reading and watermark error (igt@kms_frontbuffer_tracking@fbc-suspend)
Product: DRI Reporter: cprigent <christophe.prigent>
Component: DRM/IntelAssignee: Intel GFX Bugs mailing list <intel-gfx-bugs>
Status: CLOSED FIXED QA Contact: Intel GFX Bugs mailing list <intel-gfx-bugs>
Severity: normal    
Priority: medium CC: dorota.czaplejewicz, intel-gfx-bugs, przanoni
Version: unspecifiedKeywords: bisect_pending
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard: ReadyForDev
i915 platform: HSW i915 features: display/FBC, display/watermark
Attachments:
Description Flags
HSW__kms_frontbuffer_tracking__fbc-suspend__output
none
HSW__kms_frontbuffer_tracking__fbc-suspend__kern.log
none
git-show-982bb30
none
git-show-7155b05 none

Description cprigent 2016-12-21 15:35:08 UTC
Created attachment 128610 [details]
HSW__kms_frontbuffer_tracking__fbc-suspend__output

Platform HSW: Dell Inc. OptiPlex 9020
CPU: Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz (Family 6, Model 60, Stepping 3)
Motherboard: 0DNKMN
GPU: Intel® HD Graphics 4600 / Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller

Software
Bios: A07
Linux distribution: Ubuntu 16.04 64 bits
Kernel: 4.9.0 86a2672 branch drm-tip from https://cgit.freedesktop.org/drm-tip
  commit 86a26727690faef9018c6585e0094e701e0e9b0c
  Author: Rodrigo Vivi <rodrigo.vivi@intel.com>
  Date:   Mon Dec 19 11:15:50 2016 -0800
  drm-tip: 2016y-12m-19d-19h-15m-10s UTC integration manifest

libdrm-2.4.74-17 a07cf7f from git://anongit.freedesktop.org/mesa/drm
mesa: mesa-13.0.2 c9e993b from git://anongit.freedesktop.org/mesa/mesa
cairo 1.15.4 9fe6683 from git://anongit.freedesktop.org/cairo
xorg-server-1.19.0-31 b5dffbb from git://git.freedesktop.org/git/xorg/xserver
xf86-video-2.99.917-746 169c74f from git://git.freedesktop.org/git/xorg/driver/xf86-video-intel
libva-1.7.2-44 598fb9e from git://git.freedesktop.org/git/vaapi/libva 
vaapi-intel-driver: 1.7.2-199 4518d07 from git://git.freedesktop.org/git/vaapi/intel-driver
intel-gpu-tools-1.17-53 38bffd9 from http://anongit.freedesktop.org/git/xorg/app/intel-gpu-tools.git

External screen: DELL E1912Hf

Steps:
------
1. Execute IGT test: 
# ./kms_frontbuffer_tracking --run-subtest fbc-suspend

Actual result:
--------------
1. Test is failing

Expected result
----------------
1. Test is Pass
Comment 1 cprigent 2016-12-21 15:35:58 UTC
Created attachment 128611 [details]
HSW__kms_frontbuffer_tracking__fbc-suspend__kern.log
Comment 2 Paulo Zanoni 2016-12-21 17:07:58 UTC
This is a regression. Can you please bisect it?
Comment 3 cprigent 2016-12-22 13:18:32 UTC
I confirm the regression:
good 982bb30
bad 86a2672
bisect_pending
Comment 4 cprigent 2016-12-22 13:30:04 UTC
Created attachment 128631 [details]
git-show-982bb30
Comment 5 cprigent 2016-12-22 13:30:28 UTC
Created attachment 128632 [details]
git-show-7155b05

Not sure it helps:
The merge base 7155b057c61e55eed27bf478ac9b8034c4c97582 is bad.
This means the bug has been fixed between 7155b057c61e55eed27bf478ac9b8034c4c97582 and [982bb302fdc49f8331f29103ff1c111645598d23].
Comment 6 Paulo Zanoni 2016-12-23 11:14:08 UTC
(In reply to cprigent from comment #5)
> Created attachment 128632 [details]
> git-show-7155b05
> 
> Not sure it helps:
> The merge base 7155b057c61e55eed27bf478ac9b8034c4c97582 is bad.
> This means the bug has been fixed between
> 7155b057c61e55eed27bf478ac9b8034c4c97582 and
> [982bb302fdc49f8331f29103ff1c111645598d23].

I'm not 100% sure I understand what you mean here.

Is the merge commit the *first* bad commit?

Also, commit 982bb302fdc49f8331f29103ff1c111645598d23 doesn't exist anymore.

Can you reproduce the bug with drm-intel-next-queued (instead of drm-tip)?
Comment 7 cprigent 2017-01-20 14:23:42 UTC
Yes, this is why it does not help.
This was the result of git bisect after only 3 iterations (comment 5), I will provide a new result ww04.
Comment 8 cprigent 2017-01-24 12:16:23 UTC
We moved to drm-intel-next-queued and used EZBench.
EZBench does not provide a bisect result, conclusion is the test result is unstable. It tested commits b403c8f, 7155b05, 2ec4584, f03ee46, 0b47a6b.
Comment 9 Jari Tahvanainen 2017-03-14 13:58:26 UTC
*** Bug 100020 has been marked as a duplicate of this bug. ***
Comment 10 Elizabeth 2017-07-07 19:10:59 UTC
This test still fails with the following configuration:

Software Configuration:
======================================
Component: drm
    tag: libdrm-2.4.81-24-g3095cc8
    commit: 3095cc8eaba1aa87ad38c04ae2b1eabe30f7e16c

Component: cairo
    tag: 1.15.6-2-g57b4050
    commit: 57b40507dda3f58dfc8635548d606b86dc7bcf51

Component: intel-gpu-tools
    tag: intel-gpu-tools-1.19-57-g6fcc8e8
    commit: 6fcc8e8b247661c7950b998e0b95141ffbd6b833

Component: piglit
    tag: piglit-v1
    commit: c8f4fd9eeb298a2ef0855927f22634f794ef3eff

Hardware Configuration:
======================================
platform                   : Haswell
motherboard model          : Haswell
manufacturer               : IntelCorp.
cpu                        : Intel® Core™ i5-4250U Processor
gpu                        : Intel® HD Graphics 5000
max memory ram             : 16 GB
cpu core                   : 2
Comment 11 Elizabeth 2017-09-01 22:02:55 UTC
Still fails with commit ad6ab9f96437f0cb1f4d8a7840fd9eeb894eb12e
Comment 12 Elizabeth 2017-10-11 22:21:11 UTC
According to https://intel-gfx-ci.01.org/tree/drm- tip/igt@kms_frontbuffer_tracking@fbc-suspend.html this test isn't failing anymore. Closing.

$ : time sudo -E ./kms_frontbuffer_tracking --run-subtest fbc-suspend
IGT-Version: 1.19-g1e99f8b (x86_64) (Linux: 4.14.0-rc3-drm-tip-ww40-commit-2f14e31+ x86_64)
Primary screen: HDMI-A 1920x1200, crtc 0
Secondary screen: DP 1920x1200, crtc 1
FBC last action not supported
Can't test PSR: no usable eDP screen.
Sink CRC not supported: primary screen is not eDP
rtcwake: assuming RTC uses UTC ...
rtcwake: wakeup from "mem" using /dev/rtc0 at Wed Oct 11 15:26:34 2017
rtcwake: assuming RTC uses UTC ...
rtcwake: wakeup from "mem" using /dev/rtc0 at Wed Oct 11 15:27:01 2017
Subtest fbc-suspend: SUCCESS (25.437s)

real    0m56.403s
user    0m0.026s
sys     0m0.388s

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.