Bug 60002 - [PNV]I-G-T/kms_flip subtest:'blocking-absolute-wf_vblank' fail
Summary: [PNV]I-G-T/kms_flip subtest:'blocking-absolute-wf_vblank' fail
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: XOrg git
Hardware: Other All
: medium normal
Assignee: Antti Koskipaa
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-29 06:28 UTC by yanbing
Modified: 2017-10-06 14:46 UTC (History)
3 users (show)

See Also:
i915 platform:
i915 features:


Attachments
blocking-absolute-wf_vblank-PNV.dmesg (74.07 KB, text/plain)
2013-01-29 06:28 UTC, yanbing
no flags Details
fix for initial console blank state (2.17 KB, patch)
2013-04-30 15:13 UTC, Imre Deak
no flags Details | Splinter Review

Description yanbing 2013-01-29 06:28:00 UTC
Created attachment 73806 [details]
blocking-absolute-wf_vblank-PNV.dmesg

Environment(32 bit):
--------------------

Kernel: (drm-intel-nightly)2d039f65e28be0be6ef765f6da45df6b3c4efef2
Some additional commit info:
Merge: ef13e7f 735dc0d
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Fri Jan 25 00:00:02 2013 +0100


Description:
--------------------
Using the latest -nightly

1.Running kms_flip subtest blocking-absolute-wf_vblank fail.

2.std out:

Using monotonic timestamps
running testcase: blocking-absolute-wf_vblank
could not find requested crtc 3
Beginning blocking-absolute-wf_vblank on crtc 4, connector 5
  1024x600 60 1024 1048 1184 1438 600 603 604 628 0xa 0x48 54200
.run_test_step:574 failed, ret=-16, errno=16

3.This phenomenon is very strange.Running this subcase after rebooting at the first time is pass.But after that always fail.

4.I attached the dmesg.
Comment 1 Imre Deak 2013-04-30 15:13:41 UTC
Created attachment 78651 [details] [review]
fix for initial console blank state

So, after some discussions on IRC with one part of the solution is to force a full modeset to make sure we unblank if we started the test with a blanked state.

A patch for this is attached could you try it on your box with the command sequence I posted in my previous comment?

A secondary issue that can happen is blanking _during_ the test, for that we need to prevent blanking from within the test app, we'll follow-up with a patch for that too.
Comment 2 shui yangwei 2013-05-02 06:53:28 UTC
(In reply to comment #1)
> Created attachment 78651 [details] [review] [review]
> fix for initial console blank state
> 
> So, after some discussions on IRC with one part of the solution is to force
> a full modeset to make sure we unblank if we started the test with a blanked
> state.
> 
> A patch for this is attached could you try it on your box with the command
> sequence I posted in my previous comment?
> 
> A secondary issue that can happen is blanking _during_ the test, for that we
> need to prevent blanking from within the test app, we'll follow-up with a
> patch for that too.

I tried the patch you appended on -nightly top, the result is just like yanbing reported: "The first time is pass,but after that always fail". I list the phenomenon below, if anything you needed I haven't described clearly, please comment.
-------------------------------------------------------------
[root@x-pnv1 tests]# ./kms_flip --run-subtest blocking-absolute-wf_vblank
Using monotonic timestamps
running testcase: blocking-absolute-wf_vblank
could not find requested crtc 3
Beginning blocking-absolute-wf_vblank on crtc 4, connector 5
  1024x600 60 1024 1048 1184 1438 600 603 604 628 0xa 0x48 54200
.............................................................
blocking-absolute-wf_vblank on crtc 4, connector 5: PASSED

[root@x-pnv1 tests]# echo $?
0
[root@x-pnv1 tests]# ./kms_flip --run-subtest blocking-absolute-wf_vblank
Using monotonic timestamps
running testcase: blocking-absolute-wf_vblank
could not find requested crtc 3
Beginning blocking-absolute-wf_vblank on crtc 4, connector 5
  1024x600 60 1024 1048 1184 1438 600 603 604 628 0xa 0x48 54200
.run_test_step:732 failed, ret=-16, errno=16
Aborted (core dumped)
[root@x-pnv1 tests]# echo $?
134
Comment 3 Imre Deak 2013-05-02 09:24:32 UTC
(In reply to comment #2)
> (In reply to comment #1)
> 
> I tried the patch you appended on -nightly top, the result is just like
> yanbing reported: "The first time is pass,but after that always fail". I
> list the phenomenon below, if anything you needed I haven't described
> clearly, please comment.
> -------------------------------------------------------------
> [root@x-pnv1 tests]# ./kms_flip --run-subtest blocking-absolute-wf_vblank
> Using monotonic timestamps
> running testcase: blocking-absolute-wf_vblank
> could not find requested crtc 3
> Beginning blocking-absolute-wf_vblank on crtc 4, connector 5
>   1024x600 60 1024 1048 1184 1438 600 603 604 628 0xa 0x48 54200
> .............................................................
> blocking-absolute-wf_vblank on crtc 4, connector 5: PASSED
> 
> [root@x-pnv1 tests]# echo $?
> 0
> [root@x-pnv1 tests]# ./kms_flip --run-subtest blocking-absolute-wf_vblank
> Using monotonic timestamps
> running testcase: blocking-absolute-wf_vblank
> could not find requested crtc 3
> Beginning blocking-absolute-wf_vblank on crtc 4, connector 5
>   1024x600 60 1024 1048 1184 1438 600 603 604 628 0xa 0x48 54200
> .run_test_step:732 failed, ret=-16, errno=16
> Aborted (core dumped)
> [root@x-pnv1 tests]# echo $?
> 134

Thanks, so this is a separate issue. Could you try the same patch for bug #59834?
Comment 4 Daniel Vetter 2013-06-12 11:03:03 UTC
Can you please retest with the following patch applied to latest -nightly?

https://patchwork.kernel.org/patch/2709081/
Comment 5 shui yangwei 2013-06-13 03:07:17 UTC
(In reply to comment #4)
> Can you please retest with the following patch applied to latest -nightly?
> 
> https://patchwork.kernel.org/patch/2709081/

I tried this patch on -nightly top, this issue also exist as well as comment 2.
Comment 6 Imre Deak 2013-08-23 15:43:45 UTC
Could you rerun this test? It's not clear where exactly in the source the failure happens, the new igt_assert() should help in this.
Comment 7 cancan,feng 2013-09-09 01:33:12 UTC
(In reply to comment #6)
> Could you rerun this test? It's not clear where exactly in the source the
> failure happens, the new igt_assert() should help in this.

I use latest nightly kernel to run this case again and find this issue always exist. 

------------------------------------------------------

[root@x-pnv1 tests]# ./kms_flip --run-subtest blocking-absolute-wf_vblank
Using monotonic timestamps
no crtc with a compatible encoder (crtc_idx_mask 00000001)
Beginning blocking-absolute-wf_vblank on crtc 4, connector 5
  1024x600 60 1024 1048 1184 1438 600 603 604 628 0xa 0x48 54200
.............................................................
blocking-absolute-wf_vblank on crtc 4, connector 5: PASSED

Subtest blocking-absolute-wf_vblank: SUCCESS
[root@x-pnv1 tests]# ./kms_flip --run-subtest blocking-absolute-wf_vblank
Using monotonic timestamps
no crtc with a compatible encoder (crtc_idx_mask 00000001)
Beginning blocking-absolute-wf_vblank 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:831:
Failed assertion: (do_wait_for_vblank(o, o->pipe, target_seq, &vbl_reply)) == 0
Subtest blocking-absolute-wf_vblank: FAIL
DPMS property not found on 5
Comment 8 Jani Nikula 2014-01-10 15:38:57 UTC
This bug seems to have been neglected a bit, please retest on current -nightly.
Comment 9 Antti Koskipaa 2014-07-01 11:22:58 UTC
Closing due to inactivity. Please reopen if this is still an issue.
Comment 10 lu hua 2014-07-02 08:28:46 UTC
Fixed.
# ./kms_flip --run-subtest blocking-absolute-wf_vblank
IGT-Version: 1.7-g67e29a3 (i686) (Linux: 3.16.0-rc2_drm-intel-nightly_9bfcb9_20140702+ i686)
Using monotonic timestamps
Beginning blocking-absolute-wf_vblank on crtc 9, connector 10
  1024x600 60 1024 1072 1104 1200 600 603 609 625 0xa 0x48 45000
....................................................................................................................................................................................
blocking-absolute-wf_vblank on crtc 9, connector 10: PASSED

Subtest blocking-absolute-wf_vblank: SUCCESS
# ./kms_flip --run-subtest blocking-absolute-wf_vblank
IGT-Version: 1.7-g67e29a3 (i686) (Linux: 3.16.0-rc2_drm-intel-nightly_9bfcb9_20140702+ i686)
Using monotonic timestamps
Beginning blocking-absolute-wf_vblank on crtc 9, connector 10
  1024x600 60 1024 1072 1104 1200 600 603 609 625 0xa 0x48 45000
....................................................................................................................................................................................
blocking-absolute-wf_vblank on crtc 9, connector 10: PASSED

Subtest blocking-absolute-wf_vblank: SUCCESS
Comment 11 Elizabeth 2017-10-06 14:46:57 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.