Bug 83521 - [HSW/BSW]igt/kms_plane some subcases timeout
Summary: [HSW/BSW]igt/kms_plane some subcases timeout
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: Other All
: highest major
Assignee: Thomas Wood
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
: 88982 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-09-05 08:11 UTC by Guo Jinxian
Modified: 2017-10-06 14:35 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
dmesg (117.58 KB, text/plain)
2014-09-05 08:11 UTC, Guo Jinxian
no flags Details

Description Guo Jinxian 2014-09-05 08:11:52 UTC
Created attachment 105786 [details]
dmesg

==System Environment==
--------------------------
Regression: No.
This bug always exist

Non-working platforms: BSW

==kernel==
--------------------------
origin/drm-intel-nightly: 8741309e3741a64c1f83ac1f0b8144452bb83441(fails)
    drm-intel-nightly: 2014y-09m-04d-16h-00m-38s integration manifest
origin/drm-intel-next-queued: 2789339044fb6dfbee0c8cd77e26438b80e333ee(fails)
    drm/i915: Rewrite ABS_DIFF() in a safer manner
origin/drm-intel-fixes: 25fc92b99f65bec7d7c747c0305f048d7b19cc44(fails)
    drm/i915: Fix EIO/wedged handling in gem fault handler

==Bug detailed description==
-----------------------------
igt/kms_plane some subcases timeout

Case list:
igt/kms_plane/plane-panning-bottom-right-pipe-C-plane-1
igt/kms_plane/plane-panning-bottom-right-pipe-C-plane-2
igt/kms_plane/plane-panning-bottom-right-pipe-C-plane-3
igt/kms_plane/plane-panning-top-left-pipe-C-plane-1
igt/kms_plane/plane-panning-top-left-pipe-C-plane-2
igt/kms_plane/plane-panning-top-left-pipe-C-plane-3
igt/kms_plane/plane-position-covered-pipe-C-plane-1
igt/kms_plane/plane-position-covered-pipe-C-plane-2
igt/kms_plane/plane-position-covered-pipe-C-plane-3
igt/kms_plane/plane-position-hole-pipe-C-plane-1
igt/kms_plane/plane-position-hole-pipe-C-plane-2
igt/kms_plane/plane-position-hole-pipe-C-plane-3


Output:
[root@x-bsw01 tests]# ./kms_plane --run-subtest plane-panning-bottom-right-pipe-C-plane-1
IGT-Version: 1.7-g0818875 (x86_64) (Linux: 3.17.0-rc2_drm-intel-nightly_874130_20140905+ x86_64)
Testing connector eDP-1 using pipe C plane 1
Subtest plane-panning-bottom-right-pipe-C-plane-1: TIMEOUT

==Reproduce steps==
---------------------------- 
1. ./kms_plane --run-subtest plane-panning-bottom-right-pipe-C-plane-1
Comment 1 Ding Heng 2015-01-28 07:20:29 UTC
igt/kms_plane/plane-panning-bottom-right-suspend-pipe-B-plane-1
igt/kms_plane/plane-panning-bottom-right-suspend-pipe-B-plane-2
igt/kms_plane/plane-panning-bottom-right-suspend-pipe-C-plane-1
igt/kms_plane/plane-panning-bottom-right-suspend-pipe-C-plane-2

the cases above have the same issue.
Comment 2 wendy.wang 2015-03-12 00:53:48 UTC
QA blacklist 45 kms_plane cases because of this bug, any developer would help take a look at this bug?
Comment 3 Daniel Vetter 2015-04-02 08:46:28 UTC
Can you please retake the output of the testcase again? We've added a lot of useful logging to igt tests in the meantime.
Comment 4 Ding Heng 2015-04-03 02:47:57 UTC
(In reply to Daniel Vetter from comment #3)
> Can you please retake the output of the testcase again? We've added a lot of
> useful logging to igt tests in the meantime.

root@x-bsw09:/GFX/Test/Intel_gpu_tools/intel-gpu-tools/tests# ./kms_plane --debug --run-subtest plane-panning-bottom-right-pipe-C-plane-1
IGT-Version: 1.10-g992f9f6 (x86_64) (Linux: 4.0.0-rc6_drm-intel-nightly_a8ae89_20150402+ x86_64)
(kms_plane:4716) igt-core-DEBUG: Test requirement passed: !igt_run_in_simulation()
Test requirement passed: fd >= 0
Test requirement passed: fd >= 0
Test requirement passed: drmSetMaster(fd) == 0
VT: graphics mode set (mode was 0x0)
Test requirement passed: ctl
Test requirement passed: (written == strlen(cmd) && ret == 0) || errno != ENODEV
display: init {
display:     eDP-1: Selecting pipe A
display: }
Starting subtest: plane-panning-bottom-right-pipe-C-plane-1
Test requirement passed: !(pipe >= data->display.n_pipes)
Test requirement passed: !(plane >= data->display.pipes[pipe].n_planes)
Testing connector eDP-1 using pipe C plane 1
display: eDP-1: set_pipe(C)
igt_create_fb_with_bo_size(width=1920, height=1080, format=0x34325258 [bpp=32], tiling=0x0, size=0
igt_create_fb_with_bo_size(handle=1, pitch=7680)
display: C.0: plane_set_fb(51)
display: commit {
display: }
Subtest plane-panning-bottom-right-pipe-C-plane-1 failed.
**** DEBUG ****
Test requirement passed: !(pipe >= data->display.n_pipes)
Test requirement passed: !(plane >= data->display.pipes[pipe].n_planes)
Testing connector eDP-1 using pipe C plane 1
display: eDP-1: set_pipe(C)
igt_create_fb_with_bo_size(width=1920, height=1080, format=0x34325258 [bpp=32], tiling=0x0, size=0
igt_create_fb_with_bo_size(handle=1, pitch=7680)
display: C.0: plane_set_fb(51)
display: commit {
display: }
****  END  ****
Subtest plane-panning-bottom-right-pipe-C-plane-1: TIMEOUT (5.016s)
Exiting with status code 78
VT: original mode 0x0 restored
Comment 5 ye.tian 2015-04-08 09:20:13 UTC
It also exists on HSW.
case list:
------------------
igt@kms_plane@plane-panning-bottom-right-suspend-pipe-b-plane-1
igt@kms_plane@plane-panning-bottom-right-suspend-pipe-b-plane-2
igt@kms_plane@plane-panning-bottom-right-suspend-pipe-c-plane-1
igt@kms_plane@plane-panning-bottom-right-suspend-pipe-c-plane-2

output:
---------------
root@x-hsw24:/GFX/Test/Intel_gpu_tools/intel-gpu-tools/tests# ./kms_plane --run-subtest plane-panning-bottom-right-suspend-pipe-B-plane-1
IGT-Version: 1.10-gd9a25af (x86_64) (Linux: 4.0.0-rc6_drm-intel-nightly_333cf6_20150403+ x86_64)
Testing connector VGA-1 using pipe B plane 1
rtcwake: wakeup from "mem" using /dev/rtc0 at Wed Apr  8 08:37:11 2015
Subtest plane-panning-bottom-right-suspend-pipe-B-plane-1 failed.
**** DEBUG ****
Test requirement passed: !(pipe >= data->display.n_pipes)
Test requirement passed: !(plane >= data->display.pipes[pipe].n_planes)
Testing connector VGA-1 using pipe B plane 1
display: VGA-1: set_pipe(B)
igt_create_fb_with_bo_size(width=1024, height=768, format=0x34325258 [bpp=32], tiling=0x0, size=0
igt_create_fb_with_bo_size(handle=1, pitch=4096)
display: B.0: plane_set_fb(57)
display: commit {
display:     VGA-1: Selecting pipe B
display:     VGA-1: SetCrtc pipe B, fb 57, panning (0, 0), mode 1024x768
display: }
display: B.0: plane_set_fb(0)
display: commit {
display:     VGA-1: Selecting pipe B
display:     VGA-1: SetCrtc pipe B, disabling
display: }
CRC for a (1.00,0.00,0.00) fb: 172041df 00000000 00000000 00000000 00000000
display: VGA-1: set_pipe(B)
igt_create_fb_with_bo_size(width=1024, height=768, format=0x34325258 [bpp=32], tiling=0x0, size=0
igt_create_fb_with_bo_size(handle=1, pitch=4096)
display: B.0: plane_set_fb(57)
display: commit {
display:     VGA-1: Selecting pipe B
display:     VGA-1: SetCrtc pipe B, fb 57, panning (0, 0), mode 1024x768
display: }
display: B.0: plane_set_fb(0)
display: commit {
display:     VGA-1: Selecting pipe B
display:     VGA-1: SetCrtc pipe B, disabling
display: }
CRC for a (0.00,0.00,1.00) fb: f571dfae 00000000 00000000 00000000 00000000
display: VGA-1: set_pipe(B)
igt_create_fb_with_bo_size(width=2048, height=1536, format=0x34325258 [bpp=32], tiling=0x0, size=0
igt_create_fb_with_bo_size(handle=1, pitch=8192)
display: B.0: plane_set_fb(57)
display: B.0: plane_set_panning(1024,768)
display: B.0: plane_set_position(0,0)
display: commit {
display:     VGA-1: Selecting pipe B
display:     VGA-1: SetCrtc pipe B, fb 57, panning (1024, 768), mode 1024x768
display: }
Test requirement passed: !igt_run_in_simulation()
****  END  ****
Subtest plane-panning-bottom-right-suspend-pipe-B-plane-1: TIMEOUT (9.769s)
Comment 6 Daniel Vetter 2015-04-09 08:23:54 UTC
Yeah we need to change this from timeout to fail to avoid getting blacklisted here ...
Comment 7 Thomas Wood 2015-04-20 11:08:32 UTC
(In reply to Daniel Vetter from comment #6)
> Yeah we need to change this from timeout to fail to avoid getting
> blacklisted here ...

This has been changed in commit cff102e (lib: use test failure status for igt_set_timeout). Please re-test with this commit.
Comment 8 lu hua 2015-04-21 06:33:56 UTC
(In reply to Thomas Wood from comment #7)
> (In reply to Daniel Vetter from comment #6)
> > Yeah we need to change this from timeout to fail to avoid getting
> > blacklisted here ...
> 
> This has been changed in commit cff102e (lib: use test failure status for
> igt_set_timeout). Please re-test with this commit.

Test on the latest igt, the "timeout" goes away, it fails.
output:
IGT-Version: 1.10-gbeddb3b (x86_64) (Linux: 4.0.0_drm-intel-nightly_b9fe35_20150421+ x86_64)
Testing connector eDP-1 using pipe C plane 1
Timed out
Subtest plane-panning-bottom-right-pipe-C-plane-1 failed.
**** DEBUG ****
Test requirement passed: !(pipe >= data->display.n_pipes)
Test requirement passed: !(plane >= data->display.pipes[pipe].n_planes)
Testing connector eDP-1 using pipe C plane 1
display: eDP-1: set_pipe(C)
igt_create_fb_with_bo_size(width=1920, height=1080, format=0x34325258 [bpp=32], tiling=0x0, size=0
igt_create_fb_with_bo_size(handle=1, pitch=7680)
display: C.0: plane_set_fb(51)
display: commit {
display: }
Timed out
****  END  ****
Subtest plane-panning-bottom-right-pipe-C-plane-1: FAIL (5.015s)

real    0m5.058s
user    0m0.012s
sys     0m0.040s
Comment 9 lu hua 2015-04-24 05:42:53 UTC
*** Bug 88982 has been marked as a duplicate of this bug. ***
Comment 10 lu hua 2015-04-24 05:44:22 UTC
The time out goes away, some sub cases fail, track bug 86763. Close this bug.
Comment 11 lu hua 2015-04-24 05:45:06 UTC
Verified.Fixed.
Comment 12 Elizabeth 2017-10-06 14:35:53 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.