Bug 82800

Summary: [BYT Regession]igt/kms_flip some subcases cause "WARNING: CPU: 0 PID: 6346 at drivers/gpu/drm/i915/intel_dp.c:3263 intel_dp_complete_link_train+0x100/0x27f [i915]()"
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: high CC: intel-gfx-bugs
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
dmesg none

Description Guo Jinxian 2014-08-19 07:13:38 UTC
Created attachment 104864 [details]
dmesg

==System Environment==
--------------------------
Regression: Yes.
Good commit on -next-queued: 1cf0ba14740d96fbf6f58a201f000a34b74f4725(The result was blocked and hadn't calltrace)

Non-working platforms: BYT

==kernel==
--------------------------
origin/drm-intel-nightly: 09fcefee6357c6b3a30016adc0e306496172d6b7(fails)
    drm-intel-nightly: 2014y-08m-18d-16h-51m-59s integration manifest
origin/drm-intel-next-queued: ecca3fd0ea82c45b558f68b1ff3bf6685b443ab1(fails)
    drm/i915/bdw: Enable Logical Ring Contexts (hence, Execlists)
origin/drm-intel-fixes: 1a125d8a2c22b11741fc47d4ffcf7a5ffa044dd3(fails)
    drm/i915: don't try to retrain a DP link on an inactive CRTC

==Bug detailed description==
-----------------------------
igt/kms_flip some subcases cause "WARNING: CPU: 0 PID: 6346 at drivers/gpu/drm/i915/intel_dp.c:3263 intel_dp_complete_link_train+0x100/0x27f [i915]()"

Case list:
igt/kms_flip/2x-absolute-wf_vblank
igt/kms_flip/2x-absolute-wf_vblank-interruptible
igt/kms_flip/2x-bcs-flip-vs-dpms
igt/kms_flip/2x-bcs-flip-vs-dpms-interruptible
igt/kms_flip/2x-bcs-flip-vs-panning
igt/kms_flip/2x-bcs-flip-vs-panning-interruptible
igt/kms_flip/2x-bcs-wf_vblank-vs-dpms
igt/kms_flip/2x-bcs-wf_vblank-vs-dpms-interruptible
igt/kms_flip/2x-blocking-absolute-wf_vblank
igt/kms_flip/2x-blocking-absolute-wf_vblank-interruptible
igt/kms_flip/2x-blocking-wf_vblank
igt/kms_flip/2x-busy-flip
igt/kms_flip/2x-busy-flip-interruptible
igt/kms_flip/2x-dpms-vs-vblank-race
igt/kms_flip/2x-dpms-vs-vblank-race-interruptible
igt/kms_flip/2x-flip-vs-absolute-wf_vblank
igt/kms_flip/2x-flip-vs-absolute-wf_vblank-interruptible
igt/kms_flip/2x-flip-vs-blocking-wf-vblank
igt/kms_flip/2x-flip-vs-dpms
igt/kms_flip/2x-flip-vs-dpms-interruptible
igt/kms_flip/2x-flip-vs-dpms-off-vs-modeset
igt/kms_flip/2x-flip-vs-dpms-off-vs-modeset-interruptible
igt/kms_flip/2x-flip-vs-expired-vblank
igt/kms_flip/2x-flip-vs-expired-vblank-interruptible
igt/kms_flip/2x-flip-vs-fences
igt/kms_flip/2x-flip-vs-fences-interruptible
igt/kms_flip/2x-flip-vs-modeset-vs-hang
igt/kms_flip/2x-flip-vs-modeset-vs-hang-interruptible
igt/kms_flip/2x-flip-vs-panning
igt/kms_flip/2x-flip-vs-panning-interruptible
igt/kms_flip/2x-flip-vs-panning-vs-hang
igt/kms_flip/2x-flip-vs-panning-vs-hang-interruptible
igt/kms_flip/2x-flip-vs-rmfb
igt/kms_flip/2x-flip-vs-wf_vblank
igt/kms_flip/2x-flip-vs-wf_vblank-interruptible
igt/kms_flip/2x-modeset-vs-vblank-race
igt/kms_flip/2x-modeset-vs-vblank-race-interruptible
igt/kms_flip/2x-nonexisting-fb
igt/kms_flip/2x-nonexisting-fb-interruptible
igt/kms_flip/2x-plain-flip
igt/kms_flip/2x-plain-flip-fb-recreate
igt/kms_flip/2x-plain-flip-fb-recreate-interruptible
igt/kms_flip/2x-plain-flip-interruptible
igt/kms_flip/2x-plain-flip-ts-check
igt/kms_flip/2x-plain-flip-ts-check-interruptible
igt/kms_flip/2x-rcs-flip-vs-dpms
igt/kms_flip/2x-rcs-flip-vs-dpms-interruptible
igt/kms_flip/2x-rcs-flip-vs-modeset
igt/kms_flip/2x-rcs-flip-vs-modeset-interruptible
igt/kms_flip/2x-rcs-flip-vs-panning
igt/kms_flip/2x-rcs-flip-vs-panning-interruptible
igt/kms_flip/2x-rcs-wf_vblank-vs-dpms
igt/kms_flip/2x-rcs-wf_vblank-vs-dpms-interruptible
igt/kms_flip/2x-rcs-wf_vblank-vs-modeset
igt/kms_flip/2x-rcs-wf_vblank-vs-modeset-interruptible
igt/kms_flip/2x-single-buffer-flip-vs-dpms-off-vs-modeset
igt/kms_flip/2x-single-buffer-flip-vs-dpms-off-vs-modeset-interruptible

Output:
root@x-bytm02:/GFX/Test/Intel_gpu_tools/intel-gpu-tools/tests# ./kms_flip --run-subtest 2x-absolute-wf_vblank
IGT-Version: 1.7-g5c7bcb1 (x86_64) (Linux: 3.16.0_drm-intel-nightly_186631_20140818+ x86_64)
Using monotonic timestamps
Beginning 2x-absolute-wf_vblank on crtc 7:13, connector 28:16
  1366x768 60 1366 1404 1426 1482 768 771 777 798 0xa 0x48 71000
  1366x768 60 1366 1404 1426 1482 768 771 777 798 0xa 0x48 71000
.....................................................................................................................................................................................
2x-absolute-wf_vblank on crtc 7:13, connector 28:16: PASSED

Subtest 2x-absolute-wf_vblank: SUCCESS
root@x-bytm02:/GFX/Test/Intel_gpu_tools/intel-gpu-tools/tests# dmesg -r|egrep ""<[1-4]>""|grep drm
<3>[  885.840910] [drm:intel_dp_start_link_train] *ERROR* failed to enable link training
<4>[  886.127375] WARNING: CPU: 0 PID: 6346 at drivers/gpu/drm/i915/intel_dp.c:3263 intel_dp_complete_link_train+0x100/0x27f [i915]()
<4>[  886.127399] 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 lpc_ich r8169 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>[  886.127403] CPU: 0 PID: 6346 Comm: kms_flip Not tainted 3.16.0_drm-intel-nightly_186631_20140818+ #1544
<4>[  886.127647]  [<ffffffffa00181c9>] ? drm_mode_set_config_internal+0x48/0xbd [drm]
<4>[  886.127653]  [<ffffffffa005dab0>] ? restore_fbdev_mode+0xa8/0xc1 [drm_kms_helper]
<4>[  886.127659]  [<ffffffffa005dae6>] ? drm_fb_helper_restore_fbdev_mode_unlocked+0x1d/0x34 [drm_kms_helper]
<4>[  886.127665]  [<ffffffffa005ed16>] ? drm_fb_helper_set_par+0x3a/0x58 [drm_kms_helper]
<4>[  886.229450] WARNING: CPU: 0 PID: 6346 at drivers/gpu/drm/i915/intel_dp.c:3263 intel_dp_complete_link_train+0x100/0x27f [i915]()
<4>[  886.229474] 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 lpc_ich r8169 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>[  886.229477] CPU: 0 PID: 6346 Comm: kms_flip Tainted: G        W      3.16.0_drm-intel-nightly_186631_20140818+ #1544
<4>[  886.229713]  [<ffffffffa00181c9>] ? drm_mode_set_config_internal+0x48/0xbd [drm]
<4>[  886.229719]  [<ffffffffa005dab0>] ? restore_fbdev_mode+0xa8/0xc1 [drm_kms_helper]
<4>[  886.229725]  [<ffffffffa005dae6>] ? drm_fb_helper_restore_fbdev_mode_unlocked+0x1d/0x34 [drm_kms_helper]
<4>[  886.229731]  [<ffffffffa005ed16>] ? drm_fb_helper_set_par+0x3a/0x58 [drm_kms_helper]
<4>[  886.329530] WARNING: CPU: 0 PID: 6346 at drivers/gpu/drm/i915/intel_dp.c:3263 intel_dp_complete_link_train+0x100/0x27f [i915]()
<4>[  886.329554] 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 lpc_ich r8169 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>[  886.329557] CPU: 0 PID: 6346 Comm: kms_flip Tainted: G        W      3.16.0_drm-intel-nightly_186631_20140818+ #1544
<4>[  886.329792]  [<ffffffffa00181c9>] ? drm_mode_set_config_internal+0x48/0xbd [drm]
<4>[  886.329798]  [<ffffffffa005dab0>] ? restore_fbdev_mode+0xa8/0xc1 [drm_kms_helper]
<4>[  886.329804]  [<ffffffffa005dae6>] ? drm_fb_helper_restore_fbdev_mode_unlocked+0x1d/0x34 [drm_kms_helper]
<4>[  886.329810]  [<ffffffffa005ed16>] ? drm_fb_helper_set_par+0x3a/0x58 [drm_kms_helper]
<4>[  886.443624] WARNING: CPU: 0 PID: 6346 at drivers/gpu/drm/i915/intel_dp.c:3263 intel_dp_complete_link_train+0x100/0x27f [i915]()
<4>[  886.443647] 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 lpc_ich r8169 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>[  886.443651] CPU: 0 PID: 6346 Comm: kms_flip Tainted: G        W      3.16.0_drm-intel-nightly_186631_20140818+ #1544
<4>[  886.443886]  [<ffffffffa00181c9>] ? drm_mode_set_config_internal+0x48/0xbd [drm]
<4>[  886.443892]  [<ffffffffa005dab0>] ? restore_fbdev_mode+0xa8/0xc1 [drm_kms_helper]
<4>[  886.443898]  [<ffffffffa005dae6>] ? drm_fb_helper_restore_fbdev_mode_unlocked+0x1d/0x34 [drm_kms_helper]
<4>[  886.443903]  [<ffffffffa005ed16>] ? drm_fb_helper_set_par+0x3a/0x58 [drm_kms_helper]
<4>[  886.543701] WARNING: CPU: 0 PID: 6346 at drivers/gpu/drm/i915/intel_dp.c:3263 intel_dp_complete_link_train+0x100/0x27f [i915]()
<4>[  886.543724] 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 lpc_ich r8169 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>[  886.543728] CPU: 0 PID: 6346 Comm: kms_flip Tainted: G        W      3.16.0_drm-intel-nightly_186631_20140818+ #1544
<4>[  886.543963]  [<ffffffffa00181c9>] ? drm_mode_set_config_internal+0x48/0xbd [drm]
<4>[  886.543969]  [<ffffffffa005dab0>] ? restore_fbdev_mode+0xa8/0xc1 [drm_kms_helper]
<4>[  886.543975]  [<ffffffffa005dae6>] ? drm_fb_helper_restore_fbdev_mode_unlocked+0x1d/0x34 [drm_kms_helper]
<4>[  886.543980]  [<ffffffffa005ed16>] ? drm_fb_helper_set_par+0x3a/0x58 [drm_kms_helper]
<4>[  886.643786] WARNING: CPU: 0 PID: 6346 at drivers/gpu/drm/i915/intel_dp.c:3263 intel_dp_complete_link_train+0x100/0x27f [i915]()
<4>[  886.643809] 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 lpc_ich r8169 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>[  886.643813] CPU: 0 PID: 6346 Comm: kms_flip Tainted: G        W      3.16.0_drm-intel-nightly_186631_20140818+ #1544
<4>[  886.644068]  [<ffffffffa00181c9>] ? drm_mode_set_config_internal+0x48/0xbd [drm]
<4>[  886.644074]  [<ffffffffa005dab0>] ? restore_fbdev_mode+0xa8/0xc1 [drm_kms_helper]
<4>[  886.644080]  [<ffffffffa005dae6>] ? drm_fb_helper_restore_fbdev_mode_unlocked+0x1d/0x34 [drm_kms_helper]
<4>[  886.644085]  [<ffffffffa005ed16>] ? drm_fb_helper_set_par+0x3a/0x58 [drm_kms_helper]
<3>[  886.658688] [drm:intel_dp_complete_link_train] *ERROR* failed to train DP, aborting
<4>[  887.660885] WARNING: CPU: 1 PID: 6346 at drivers/gpu/drm/i915/intel_display.c:1746 vlv_pre_enable_dp+0x10b/0x11a [i915]()
<4>[  887.660911] 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 lpc_ich r8169 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>[  887.660915] CPU: 1 PID: 6346 Comm: kms_flip Tainted: G        W      3.16.0_drm-intel-nightly_186631_20140818+ #1544
<4>[  887.661126]  [<ffffffffa00181c9>] ? drm_mode_set_config_internal+0x48/0xbd [drm]
<4>[  887.661133]  [<ffffffffa005dab0>] ? restore_fbdev_mode+0xa8/0xc1 [drm_kms_helper]
<4>[  887.661139]  [<ffffffffa005dae6>] ? drm_fb_helper_restore_fbdev_mode_unlocked+0x1d/0x34 [drm_kms_helper]
<4>[  887.661144]  [<ffffffffa005ed16>] ? drm_fb_helper_set_par+0x3a/0x58 [drm_kms_helper]
<4>[  887.661341] WARNING: CPU: 1 PID: 6346 at drivers/gpu/drm/i915/intel_display.c:10650 intel_modeset_check_state+0x320/0x611 [i915]()
<4>[  887.661366] 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 lpc_ich r8169 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>[  887.661369] CPU: 1 PID: 6346 Comm: kms_flip Tainted: G        W      3.16.0_drm-intel-nightly_186631_20140818+ #1544
<4>[  887.661499]  [<ffffffffa00181c9>] ? drm_mode_set_config_internal+0x48/0xbd [drm]
<4>[  887.661505]  [<ffffffffa005dab0>] ? restore_fbdev_mode+0xa8/0xc1 [drm_kms_helper]
<4>[  887.661511]  [<ffffffffa005dae6>] ? drm_fb_helper_restore_fbdev_mode_unlocked+0x1d/0x34 [drm_kms_helper]
<4>[  887.661516]  [<ffffffffa005ed16>] ? drm_fb_helper_set_par+0x3a/0x58 [drm_kms_helper]
<3>[  887.662727] [drm:intel_pipe_config_compare] *ERROR* mismatch in has_dp_encoder (expected 1, found 0)
<4>[  887.662754] WARNING: CPU: 1 PID: 6346 at drivers/gpu/drm/i915/intel_display.c:10720 check_crtc_state+0xa32/0xa6a [i915]()
<4>[  887.662777] 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 lpc_ich r8169 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>[  887.662780] CPU: 1 PID: 6346 Comm: kms_flip Tainted: G        W      3.16.0_drm-intel-nightly_186631_20140818+ #1544
<4>[  887.662937]  [<ffffffffa00181c9>] ? drm_mode_set_config_internal+0x48/0xbd [drm]
<4>[  887.662943]  [<ffffffffa005dab0>] ? restore_fbdev_mode+0xa8/0xc1 [drm_kms_helper]
<4>[  887.662948]  [<ffffffffa005dae6>] ? drm_fb_helper_restore_fbdev_mode_unlocked+0x1d/0x34 [drm_kms_helper]
<4>[  887.662954]  [<ffffffffa005ed16>] ? drm_fb_helper_set_par+0x3a/0x58 [drm_kms_helper]


Reproduce steps:
-------------------------
1. ./kms_flip --run-subtest 2x-absolute-wf_vblank
Comment 1 Guo Jinxian 2014-08-20 07:07:10 UTC
Bisect blocked by bug 81367
Comment 2 Jani Nikula 2014-09-11 14:11:41 UTC
(In reply to comment #1)
> Bisect blocked by bug 81367

Fixed now, can the bisect continue?
Comment 3 Guo Jinxian 2014-09-12 05:47:35 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > Bisect blocked by bug 81367
> 
> Fixed now, can the bisect continue?

I will bisect it later.
Comment 4 Guo Jinxian 2014-09-17 06:08:35 UTC
The failure unable to reproduce on latest nightly(ab7f1ab9c4d1c8af46517d60e54eeda9d8673f6a)

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

Subtest 2x-absolute-wf_vblank: SUCCESS (36.076s)
root@x-bytm02:/GFX/Test/Intel_gpu_tools/intel-gpu-tools/tests# dmesg -r|egrep "<[1-4]>"|grep drm
root@x-bytm02:/GFX/Test/Intel_gpu_tools/intel-gpu-tools/tests# ./kms_flip --run-subtest 2x-single-buffer-flip-vs-dpms-off-vs-modeset-interruptible
IGT-Version: 1.8-g137877f (x86_64) (Linux: 3.17.0-rc5_drm-intel-nightly_ab7f1a_20140917+ x86_64)
Using monotonic timestamps
Beginning 2x-single-buffer-flip-vs-dpms-off-vs-modeset-interruptible on crtc 8:13, connector 28:16
  1366x768 60 1366 1404 1426 1482 768 771 777 798 0xa 0x48 71000
  1366x768 60 1366 1404 1426 1482 768 771 777 798 0xa 0x48 71000
..
2x-single-buffer-flip-vs-dpms-off-vs-modeset-interruptible on crtc 8:13, connector 28:16: PASSED

Subtest 2x-single-buffer-flip-vs-dpms-off-vs-modeset-interruptible: SUCCESS (11.230s)
root@x-bytm02:/GFX/Test/Intel_gpu_tools/intel-gpu-tools/tests# dmesg -r|egrep "<[1-4]>"|grep drm                 root@x-bytm02:/GFX/Test/Intel_gpu_tools/intel-gpu-tools/tests#
Comment 5 Jari Tahvanainen 2016-09-28 13:25:42 UTC
Closing

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.