Bug 83519

Summary: [BSW]igt/kms_pipe_crc_basic some subcases timeout
Product: DRI Reporter: Guo Jinxian <jinxianx.guo>
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: intel-gfx-bugs
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
dmesg none

Description Guo Jinxian 2014-09-05 07:08:12 UTC
==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_pipe_crc_basic some subcases timeout

Case list:
igt/kms_pipe_crc_basic/hang-read-crc-pipe-C
igt/kms_pipe_crc_basic/read-crc-pipe-A
igt/kms_pipe_crc_basic/read-crc-pipe-A-frame-sequence
igt/kms_pipe_crc_basic/read-crc-pipe-C
igt/kms_pipe_crc_basic/read-crc-pipe-C-frame-sequence


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

==Reproduce steps==
---------------------------- 
1. ./kms_pipe_crc_basic --run-subtest hang-read-crc-pipe-C
Comment 1 Guo Jinxian 2014-09-05 07:08:32 UTC
Created attachment 105783 [details]
dmesg
Comment 2 lu hua 2014-10-31 06:13:26 UTC
It also happens on IVB/HSW.

output:
[root@x-hsw27 tests]# time ./kms_pipe_crc_basic --run-subtest hang-read-crc-pipe-B
IGT-Version: 1.8-gab5f7ea (x86_64) (Linux: 3.18.0-rc2_drm-intel-fixes_7809a6_20141031+ x86_64)
hang-read-crc-pipe-B: Testing connector VGA-1 using pipe B
Subtest hang-read-crc-pipe-B: TIMEOUT (11.068s)
Comment 3 Daniel Vetter 2014-11-18 10:08:03 UTC
ivb/hsw and bsw are completely different wrt pipe CRC. so let's restrict this to bsw and if there's still an issue on ibv/hsw please file a new bug report for that.
Comment 4 lu hua 2015-01-06 02:17:12 UTC
(In reply to Daniel Vetter from comment #3)
> ivb/hsw and bsw are completely different wrt pipe CRC. so let's restrict
> this to bsw and if there's still an issue on ibv/hsw please file a new bug
> report for that.

Run binary on IVB/HSW, I am unable reproduce this issue, but automation testing, it still report timeout. File bug 88080 to track IVB/HSW.
Comment 5 Thomas Wood 2015-04-22 10:14:13 UTC
The timeout behaviour of the tests has been changed in commit cff102e (lib: use test failure status for igt_set_timeout). Please re-test with this commit.
Comment 6 ye.tian 2015-04-23 03:18:00 UTC
Test it on the latest nightly kernel and latest igt (e1ce5ea),this problem does not exist, but it fails.

output:
------------------
root@x-bsw08:/GFX/Test/Intel_gpu_tools/intel-gpu-tools/tests# time ./kms_pipe_crc_basic --run-subtest hang-read-crc-pipe-C
IGT-Version: 1.10-ge1ce5ea (x86_64) (Linux: 4.0.0_drm-intel-nightly_b9fe35_20150421+ x86_64)
hang-read-crc-pipe-C: Testing connector eDP-1 using pipe C
Timed out
Subtest hang-read-crc-pipe-C failed.
**** DEBUG ****
Test requirement passed: !(pipe >= data->display.n_pipes)
hang-read-crc-pipe-C: Testing connector eDP-1 using pipe C
display: eDP-1: set_pipe(C)
Clearing the fb with color (0.00,1.00,0.00)
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 hang-read-crc-pipe-C: FAIL (10.891s)

real    0m11.147s
user    0m0.005s
sys     0m0.055s
Comment 7 ye.tian 2015-04-23 03:21:50 UTC
(In reply to ye.tian from comment #6)
> Test it on the latest nightly kernel and latest igt (e1ce5ea),this problem
> does not exist, but it fails.
> 
> output:
> ------------------
> root@x-bsw08:/GFX/Test/Intel_gpu_tools/intel-gpu-tools/tests# time
> ./kms_pipe_crc_basic --run-subtest hang-read-crc-pipe-C
> IGT-Version: 1.10-ge1ce5ea (x86_64) (Linux:
> 4.0.0_drm-intel-nightly_b9fe35_20150421+ x86_64)
> hang-read-crc-pipe-C: Testing connector eDP-1 using pipe C
> Timed out
> Subtest hang-read-crc-pipe-C failed.
> **** DEBUG ****
> Test requirement passed: !(pipe >= data->display.n_pipes)
> hang-read-crc-pipe-C: Testing connector eDP-1 using pipe C
> display: eDP-1: set_pipe(C)
> Clearing the fb with color (0.00,1.00,0.00)
> 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 hang-read-crc-pipe-C: FAIL (10.891s)
> 
> real    0m11.147s
> user    0m0.005s
> sys     0m0.055s

It may be the same as below bug:
Bug 86767 - [BSW]igt/kms_rotation_crc subcases fail
Comment 8 Thomas Wood 2015-04-23 10:48:16 UTC
(In reply to ye.tian from comment #7)
 
> It may be the same as below bug:
> Bug 86767 - [BSW]igt/kms_rotation_crc subcases fail

Yes, it looks like the same issue and since the kms_pipe_crc_basic subtests no longer timeout, this bug can be closed.
Comment 9 ye.tian 2015-04-24 01:56:26 UTC
Okay, verified it.
Comment 10 Elizabeth 2017-10-06 14:35:55 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.