Bug 70332

Summary: igt/kms_flip/bcs-flip-vs-modeset
Product: DRI Reporter: Qingshuai Tian <qingshuai.tian>
Component: DRM/IntelAssignee: Daniel Vetter <daniel>
Status: CLOSED FIXED QA Contact: Intel GFX Bugs mailing list <intel-gfx-bugs>
Severity: major    
Priority: medium CC: huax.lu, intel-gfx-bugs
Version: unspecified   
Hardware: All   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
dmesg
none
dmesg of case failed none

Description Qingshuai Tian 2013-10-10 07:28:35 UTC
Created attachment 87372 [details]
dmesg

System Environment:
--------------------------
Platform:  PNV/ILK/SNB/IVB/HSW
Kernel: (drm-intel-next-queued)54d8bc84add7885353ee1d31083e3ff9cadb6681
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Fri Oct 4 15:08:48 2013 +0300
drm/i915/dp: update training set in a burst write with training pattern set

Bug detailed description:
-----------------------------
1.It fails on PNV/ILK/SNB/IVB/HSW with -queued and -nightly kernel.

2.std out:

Using monotonic timestamps
no crtc with a compatible encoder (crtc_idx_mask 00000001)
no crtc with a compatible encoder (crtc_idx_mask 00000001)
Beginning bcs-flip-vs-modeset on crtc 4, connector 5
  1024x600 60 1024 1048 1184 1438 600 603 604 628 0xa 0x48 54200
.Test assertion failure function run_test_step, file kms_flip.c:845:
Failed assertion: set_mode(o, 0 , 0, 0)
failed to disable output: No such file or directory
Subtest bcs-flip-vs-modeset: FAIL
Test assertion failure function set_connector_dpms, file kms_flip.c:269:
Failed assertion: found_it
DPMS property not found on 5
kms_flip: drmtest.c:928: igt_fail: Assertion `!test_with_subtests || in_fixture' failed.
Aborted (core dumped)

3.back trace

#0  0xb7fff424 in __kernel_vsyscall ()
#1  0x4d93695f in raise () from /lib/libc.so.6
#2  0x4d9382b3 in abort () from /lib/libc.so.6
#3  0x0804ffd5 in __igt_fail_assert (exitcode=exitcode@entry=99, file=file@entry=0x805e2fe "kms_flip.c",
    line=line@entry=845, func=func@entry=0x805f160 "run_test_step", assertion=assertion@entry=
    0x805e493 "set_mode(o, 0 , 0, 0)", f=f@entry=0x805e475 "failed to disable output: %s\n") at drmtest.c:965
#4  0x0804d19b in run_test_step (o=0xbfffece8) at kms_flip.c:843
#5  event_loop (o=o@entry=0xbfffece8, duration_ms=duration_ms@entry=20000) at kms_flip.c:1081
#6  0x0804df85 in run_test_on_crtc (duration_ms=20000, crtc_idx=1, o=0xbfffece8) at kms_flip.c:1156
#7  run_test (duration=20000, flags=flags@entry=274) at kms_flip.c:1306
#8  0x0804aa50 in main (argc=3, argv=0xbffff304) at kms_flip.c:1473


4.Following cases also fail like this:
  igt/kms_flip/bcs-flip-vs-modeset
  igt/kms_flip/bcs-flip-vs-modeset-interruptible
  igt/kms_flip/bcs-flip-vs-panning
  igt/kms_flip/bcs-flip-vs-panning-interruptible
  igt/kms_flip/bcs-wf_vblank-vs-modeset
  igt/kms_flip/bcs-wf_vblank-vs-modeset-interruptible
  igt/kms_flip/flip-vs-dpms-off-vs-modeset
  igt/kms_flip/flip-vs-dpms-off-vs-modeset-interruptible
  igt/kms_flip/flip-vs-modeset
  igt/kms_flip/flip-vs-modeset-interruptible
  igt/kms_flip/flip-vs-panning                   
  igt/kms_flip/flip-vs-panning-interruptible
  igt/kms_flip/rcs-wf_vblank-vs-modeset
  igt/kms_flip/rcs-wf_vblank-vs-modeset-interruptible
  igt/kms_flip/wf_vblank-vs-modeset
  igt/kms_flip/wf_vblank-vs-modeset-interruptible
Comment 1 Daniel Vetter 2013-10-10 09:20:18 UTC
I've made a few changes recently to the kms_flip testcase. Is this a regression in i-g-t? If so can you please try to bisect it?
Comment 2 Qingshuai Tian 2013-10-11 11:05:14 UTC
Created attachment 87449 [details]
dmesg of case failed

I realized that this case (igt/kms_flip/bcs-flip-vs-modeset) was first added in nightly test On September 4th,but first failed on October 6th.
But I can't find a good commit on both drm-intel-fixes branch and drm-intel-next-queued branch.
If there is anything I can do to help,please let me know.

Kernel: (drm-intel-fixes)f327a13466ae6f06841cec08897cd10fed636f14
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Wed Sep 4 10:54:30 2013 +0100

    drm/i915: Confine page flips to BCS on Valleyview
Comment 3 Daniel Vetter 2013-10-11 17:37:45 UTC
Like I've said it might be a regression in the i-g-t repository ... Can you please check there around the time this started to fail?
Comment 4 Daniel Vetter 2013-10-11 18:56:07 UTC
Ok, I've done the bisecting here quickly and fixed the bug in i-g-t:

commit a5d40a9bf27c2a41a981cb6fa168b1e68bfc0b3c
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Fri Oct 11 20:53:40 2013 +0200

    tests/kms_flip: fix igt_assert

But please check why your bisect tools didn't correctly pick this up.
Comment 5 Elizabeth 2017-10-06 14:42:42 UTC
Closing old verified.

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.