Bug 84074 - [BYT]igt/kms_flip some subcases cause "WARNING: CPU: 0 PID: 4384 at drivers/gpu/drm/i915/intel_display.c:1746 valleyview_crtc_enable+0x9e4/0xaee [i915]()"
Summary: [BYT]igt/kms_flip some subcases cause "WARNING: CPU: 0 PID: 4384 at drivers/g...
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Intel GFX Bugs mailing list
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-19 03:44 UTC by Guo Jinxian
Modified: 2015-03-03 03:02 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
dmesg (117.78 KB, text/plain)
2014-09-19 05:01 UTC, Guo Jinxian
no flags Details

Description Guo Jinxian 2014-09-19 03:44:49 UTC
==System Environment==
--------------------------
Regression: No.
The failure only occurs on -nightly branch

Non-working platforms: BYT

==kernel==
--------------------------
origin/drm-intel-nightly:3d788a0e87efd99553d5b00a70ab2a162c2c2283(fails)
    drm-intel-nightly: 2014y-09m-18d-14h-51m-54s UTC integration manifest
origin/drm-intel-next-queued:f2a95be39ef661595379c23964710f0d760a2385(another bug 82446)
    drm/i915/vlv: Remove check for Old Ack during forcewake
origin/drm-intel-fixes: 8c875fca1a8d76665c60fa141c220cee65f44f5e(another bug 82800)
    drm/i915: Add limited color range readout for HDMI/DP ports on g4x/vlv/chv
origin/drm-fixes: 7dc9250f1d08f470f8d4e585a2eaeb951d4356be (another bug 82800)
    drm: sti: do not iterate over the info frame array
origin/drm-next: 8337486a8fda53e5f46b3cb2b4eb3272608348cb (another bug 82446)
    Merge branch 'drm/next/du' of git://linuxtv.org/pinchartl/fbdev into drm-next


==Bug detailed description==
-----------------------------
igt/kms_flip some subcases cause "WARNING: CPU: 0 PID: 4384 at drivers/gpu/drm/i915/intel_display.c:1746 valleyview_crtc_enable+0x9e4/0xaee [i915]()"

Case list:
igt/kms_flip/flip-vs-expired-vblank
igt/kms_flip/flip-vs-expired-vblank-interruptible

Output:
root@x-bytm02:/GFX/Test/Intel_gpu_tools/intel-gpu-tools/tests# ./kms_flip --run-subtest flip-vs-expired-vblank   IGT-Version: 1.8-g5053446 (x86_64) (Linux: 3.17.0-rc5_drm-intel-nightly_3d788a_20140919+ x86_64)
Using monotonic timestamps
Beginning flip-vs-expired-vblank on crtc 8, connector 28
  1366x768 60 1366 1404 1426 1482 768 771 777 798 0xa 0x48 71000
...................................................................................................................................................................................................................................................................................................................................................................................................................................................................
flip-vs-expired-vblank on crtc 8, connector 28: PASSED

Beginning flip-vs-expired-vblank on crtc 13, connector 28
  1366x768 60 1366 1404 1426 1482 768 771 777 798 0xa 0x48 71000
..................................................................................Test assertion failure function run_test_step, file kms_flip.c:837:
Failed assertion: reply.sequence == exp_seq
Subtest flip-vs-expired-vblank: FAIL (22.266s)
root@x-bytm02:/GFX/Test/Intel_gpu_tools/intel-gpu-tools/tests# dmesg -r|egrep ""<[1-4]>""|grep drm
<3>[   96.203586] [drm:intel_dp_complete_link_train] *ERROR* failed to train DP, aborting
<4>[   97.254477] WARNING: CPU: 0 PID: 4384 at drivers/gpu/drm/i915/intel_display.c:1746 valleyview_crtc_enable+0x9e4/0xaee [i915]()
<4>[   97.254484] Modules linked in: dm_mod snd_hda_codec_hdmi iTCO_wdt iTCO_vendor_support snd_hda_codec_conexant snd_hda_codec_generic pcspkr i2c_i801 r8169 lpc_ich mfd_core snd_hda_intel snd_hda_controller snd_hda_codec snd_hwdep snd_pcm snd_timer snd soundcore iosf_mbi battery wmi ac acpi_cpufreq uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core v4l2_common videodev i915 button video drm_kms_helper drm cfbfillrect cfbimgblt cfbcopyarea
<4>[   97.254525] CPU: 0 PID: 4384 Comm: kms_flip Not tainted 3.17.0-rc5_drm-intel-nightly_3d788a_20140919+ #2612
<4>[   97.254750]  [<ffffffffa0017fe5>] ? drm_mode_set_config_internal+0x48/0xbd [drm]
<4>[   97.254764]  [<ffffffffa001ba0e>] ? drm_mode_setcrtc+0x3e6/0x48b [drm]
<4>[   97.254776]  [<ffffffffa001074c>] ? drm_ioctl+0x279/0x3bc [drm]
<4>[   97.254796]  [<ffffffffa001b628>] ? drm_mode_setplane+0x1ce/0x1ce [drm]
<3>[   98.512241] [drm:i9xx_set_fifo_underrun_reporting] *ERROR* pipe B underrun
<3>[   98.512251] [drm:valleyview_pipestat_irq_handler] *ERROR* pipe B underrun
<3>[  104.117081] [drm:intel_dp_complete_link_train] *ERROR* failed to train DP, aborting


==Reproduce steps==
---------------------------- 
1. ./kms_flip --run-subtest flip-vs-expired-vblank
Comment 1 Guo Jinxian 2014-09-19 05:01:15 UTC
Created attachment 106534 [details]
dmesg
Comment 2 Guo Jinxian 2014-09-19 05:15:26 UTC
This failure is able to reproduce while running tests below:

igt/kms_flip/plain-flip
igt/kms_flip/wf_vblank-ts-check-interruptible


root@x-bytm02:/GFX/Test/Intel_gpu_tools/intel-gpu-tools/tests# ./kms_flip --run-subtest wf_vblank-ts-check-interruptible
IGT-Version: 1.8-g5053446 (x86_64) (Linux: 3.17.0-rc5_drm-intel-nightly_3d788a_20140919+ x86_64)
Using monotonic timestamps
Beginning wf_vblank-ts-check-interruptible on crtc 8, connector 28
  1366x768 60 1366 1404 1426 1482 768 771 777 798 0xa 0x48 71000
..............................................
wf_vblank-ts-check-interruptible on crtc 8, connector 28: PASSED

Beginning wf_vblank-ts-check-interruptible on crtc 13, connector 28
  1366x768 60 1366 1404 1426 1482 768 771 777 798 0xa 0x48 71000
...Test assertion failure function check_state, file kms_flip.c:587:
Failed assertion: fabs((((double) diff.tv_usec) - usec_interflip) / usec_interflip) <= 0.005
Last errno: 4, Interrupted system call
inter-vblank ts jitter: 0s, 987044us
Subtest wf_vblank-ts-check-interruptible: FAIL (21.058s)
root@x-bytm02:/GFX/Test/Intel_gpu_tools/intel-gpu-tools/tests# dmesg -r|egrep "<[1-4]>"|grep drm
<3>[  484.453171] [drm:intel_dp_complete_link_train] *ERROR* failed to train DP, aborting
<4>[  485.504061] WARNING: CPU: 1 PID: 4308 at drivers/gpu/drm/i915/intel_display.c:1746 valleyview_crtc_enable+0x9e4/0xaee [i915]()
<4>[  485.504068] Modules linked in: dm_mod snd_hda_codec_hdmi snd_hda_codec_conexant iTCO_wdt iTCO_vendor_support snd_hda_codec_generic snd_hda_intel snd_hda_controller pcspkr r8169 lpc_ich snd_hda_codec mfd_core snd_hwdep i2c_i801 snd_pcm snd_timer snd soundcore iosf_mbi battery wmi ac acpi_cpufreq uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core v4l2_common videodev i915 button video drm_kms_helper drm cfbfillrect cfbimgblt cfbcopyarea
<4>[  485.504109] CPU: 1 PID: 4308 Comm: kms_flip Tainted: G        W      3.17.0-rc5_drm-intel-nightly_3d788a_20140919+ #2612
<4>[  485.504335]  [<ffffffffa0017fe5>] ? drm_mode_set_config_internal+0x48/0xbd [drm]
<4>[  485.504349]  [<ffffffffa001ba0e>] ? drm_mode_setcrtc+0x3e6/0x48b [drm]
<4>[  485.504361]  [<ffffffffa001074c>] ? drm_ioctl+0x279/0x3bc [drm]
<4>[  485.504381]  [<ffffffffa001b628>] ? drm_mode_setplane+0x1ce/0x1ce [drm]
<3>[  486.857576] [drm:valleyview_pipestat_irq_handler] *ERROR* pipe B underrun
<3>[  492.413688] [drm:intel_dp_complete_link_train] *ERROR* failed to train DP, aborting
Comment 3 Guo Jinxian 2014-10-20 06:24:51 UTC
The failure is able to reproduce on IVB while running tests below

igt/kms_flip/blocking-wf_vblank
igt/kms_flip/flip-vs-absolute-wf_vblank
igt/kms_flip/flip-vs-absolute-wf_vblank-interruptible
igt/kms_flip/flip-vs-blocking-wf-vblank
igt/kms_flip/flip-vs-wf_vblank
igt/kms_flip/flip-vs-wf_vblank-interruptible
igt/kms_flip/wf_vblank-ts-check
igt/kms_flip/wf_vblank-ts-check-interruptible



[root@x-ivb9 tests]# ./kms_flip --run-subtest wf_vblank-ts-check
IGT-Version: 1.8-gbba1cd0 (x86_64) (Linux: 3.17.0_drm-intel-nightly_8d1dbe_20141020_debug+ x86_64)
Using monotonic timestamps
Beginning wf_vblank-ts-check on crtc 8, connector 18
  1680x1050 60 1680 1784 1960 2240 1050 1053 1059 1089 0x6 0x48 146250
..Test assertion failure function check_state, file kms_flip.c:585:
Failed assertion: fabs((((double) diff.tv_usec) - usec_interflip) / usec_interflip) <= 0.005
inter-vblank ts jitter: 0s, 165943us
Subtest wf_vblank-ts-check: FAIL (1.462s)
Comment 4 Jesse Barnes 2015-03-02 21:27:25 UTC
Do these problems still occur in current kernels?
Comment 5 Ding Heng 2015-03-03 03:01:57 UTC
(In reply to Jesse Barnes from comment #4)
> Do these problems still occur in current kernels?

Warn never appear anymore, most of the cases passed, but subcase will still fail. I will open a new bug for this. Close this bug.


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.