Bug 104056

Summary: [BAT] [CFL only]igt@kms_* - dmesg-warn - *ERROR* Link Training Unsuccessful | *ERROR* LSPCON mode hasn't settled | *ERROR* Error reading LSPCON mode
Product: DRI Reporter: Marta Löfstedt <marta.lofstedt>
Component: DRM/IntelAssignee: shashank.sharma <shashank.sharma>
Status: CLOSED FIXED QA Contact: Intel GFX Bugs mailing list <intel-gfx-bugs>
Severity: normal    
Priority: high CC: intel-gfx-bugs, sagar.a.kamble
Version: DRI git   
Hardware: Other   
OS: All   
Whiteboard: ReadyForDev
i915 platform: CFL i915 features: display/LSPCON
Bug Depends on:    
Bug Blocks: 105979    
Attachments:
Description Flags
dmesg-warn
none
attachment-18173-0.html
none
attachment-11423-0.html none

Comment 1 Octavio 2017-12-12 18:17:01 UTC
Created attachment 136120 [details]
dmesg-warn
Comment 2 Octavio 2017-12-12 18:17:27 UTC
This test have a dmesg-warn on BXT 

Please see the attach [dmesg-warn]

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

IGT-Version: 1.20-g39ac6b8 (x86_64) (Linux: 4.15.0-rc2-drm-intel-qa-ww49-commit-bdf9b36+ x86_64)

----------------------------------------------------------------------------
[ 1307.540154] [drm:intel_dp_get_link_train_fallback_values [i915]] *ERROR* Link Training Unsuccessful
[ 1307.919357] [drm:intel_dp_get_link_train_fallback_values [i915]] *ERROR* Link Training Unsuccessful
Comment 3 shashank.sharma@intel.com 2017-12-13 09:10:24 UTC
Hi Marta, 
I am assuming this issue is with KVM switch for display (which are upgraded to latest KVM FW) ? 

- Shashank
Comment 4 Marta Löfstedt 2017-12-13 09:22:43 UTC
(In reply to shashank.sharma@intel.com from comment #3)
> Hi Marta, 
> I am assuming this issue is with KVM switch for display (which are upgraded
> to latest KVM FW) ? 
> 
> - Shashank

Better ask Tomi about that...
Comment 5 Marta Löfstedt 2017-12-13 10:32:53 UTC
From IRC:
<marta_> tsa, shashank wanted to know if KVM switch FW was upgraded for fi-cfl-s2, could you reply in: https://bugs.freedesktop.org/show_bug.cgi?id=104056
...
<tsa> marta_: fi-cfl-s2 is not connected to kvm switch
Comment 6 Marta Löfstedt 2018-01-03 14:23:16 UTC
https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_3574/fi-cfl-s2/igt@prime_vgem@basic-fence-flip.html

[  522.107446] [drm:lspcon_wait_mode [i915]] *ERROR* LSPCON mode hasn't settled
[  522.214345] [drm:lspcon_change_mode.constprop.4 [i915]] *ERROR* Error reading LSPCON mode
[  522.214493] [drm:intel_dp_detect [i915]] *ERROR* LSPCON resume failed
[  522.260148] [drm:intel_dp_start_link_train [i915]] *ERROR* failed to enable link training
[  522.260361] [drm:intel_dp_get_link_train_fallback_values [i915]] *ERROR* Link Training Unsuccessful
[  522.964988] [drm:lspcon_wait_mode [i915]] *ERROR* LSPCON mode hasn't settled
[  523.006635] [drm:intel_dp_start_link_train [i915]] *ERROR* failed to enable link training
[  523.006851] [drm:intel_dp_get_link_train_fallback_values [i915]] *ERROR* Link Training Unsuccessful
[  523.971974] [drm:lspcon_wait_mode [i915]] *ERROR* LSPCON mode hasn't settled
[  524.013129] [drm:intel_dp_start_link_train [i915]] *ERROR* failed to enable link training
[  524.013326] [drm:intel_dp_get_link_train_fallback_values [i915]] *ERROR* Link Training Unsuccessful
Comment 7 Marta Löfstedt 2018-01-26 07:52:01 UTC
Last seen: CI_DRM_3574: 2017-12-23 / 129 runs ago
Comment 8 Jari Tahvanainen 2018-01-31 09:45:02 UTC
Based on the latest GFX QA results this failure is still visible 62 times on CFL. Triggered by several cases from kms_atomic_transition, kms_cursor_csc, kms_cursor_legacy and kms_flip.
Comment 9 Marta Löfstedt 2018-01-31 09:52:09 UTC
(In reply to Jari Tahvanainen from comment #8)
> Based on the latest GFX QA results this failure is still visible 62 times on
> CFL. Triggered by several cases from kms_atomic_transition, kms_cursor_csc,
> kms_cursor_legacy and kms_flip.

QA has only provided link for BXT results on this CNL only bug. I am however, totally fine with QA re-opening the bug.
Comment 10 Jari Tahvanainen 2018-01-31 11:07:28 UTC
Here is example output from 4.15.0-rc9-drm-intel-qa-ww4-commit-59275f1 CFL-1

Detail	Value
Returncode	0
Time	0:00:05.903215
Stdout	
IGT-Version: 1.21-g37bd27f (x86_64) (Linux: 4.15.0-rc9-drm-intel-qa-ww4-commit-59275f1+ x86_64)
Subtest 1x-modeset-transitions: SUCCESS (3.866s)
Stderr	
Environment	
PIGLIT_SOURCE_DIR="/home/gfx/intel-graphics/intel-gpu-tools/piglit" PIGLIT_PLATFORM="mixed_glx_egl"
Command	/home/gfx/intel-graphics/intel-gpu-tools/tests/kms_atomic_transition --run-subtest 1x-modeset-transitions
dmesg	
[  535.365480] [drm:lspcon_wait_mode [i915]] *ERROR* LSPCON mode hasn't settled
[  535.458196] [drm:lspcon_change_mode.constprop.4 [i915]] *ERROR* Error reading LSPCON mode
[  535.458215] [drm:intel_dp_detect [i915]] *ERROR* LSPCON resume failed
[  535.494824] [drm:intel_dp_start_link_train [i915]] *ERROR* failed to enable link training
[  535.494854] [drm:intel_dp_get_link_train_fallback_values [i915]] *ERROR* Link Training Unsuccessful
[  540.722489] [drm:lspcon_wait_mode [i915]] *ERROR* LSPCON mode hasn't settled
[  540.758844] [drm:intel_dp_start_link_train [i915]] *ERROR* failed to enable link training
[  540.758898] [drm:intel_dp_get_link_train_fallback_values [i915]] *ERROR* Link Training Unsuccessful
Comment 11 Jari Tahvanainen 2018-02-07 08:02:14 UTC
*** Bug 102960 has been marked as a duplicate of this bug. ***
Comment 12 Rodrigo Vivi 2018-02-07 22:44:48 UTC
How did CI resolved this on their side?

CFL seems really green on CI.

What is different on the CI machine?
Firmware updates?
Are the logs here updated, or should we collect new logs on top of new drm-tip?
Comment 13 vladimir.campos 2018-02-12 21:50:11 UTC
LSPCON warns are seen again on ww07.1 but not as many like ww05, warning on link issue is very sporadic having a prove that in ww06, warns went away. also Shashank has confirmed it is sporadic and also has been seeing in KBL Platform with same LSPCON chip. (having this, issue is not a blocker or Highest Critical yet)
Comment 14 Hector Velazquez 2018-03-02 14:11:35 UTC
This tests has a dmesg-warn on CFL QA 
Tests List:

igt@kms_rotation_crc@sprite-rotation-90-flip
igt@kms_rotation_crc@sprite-rotation-270-flip
igt@kms_vblank@pipe-A-query-idle-hang
igt@kms_vblank@pipe-A-query-idle
igt@kms_vblank@pipe-A-query-forked
igt@kms_vblank@pipe-A-accuracy-idle
igt@kms_vblank@crtc-id
igt@kms_universal_plane@universal-plane-gen9-features-pipe-B
igt@kms_universal_plane@cursor-fb-leak-pipe-B
igt@kms_flip@dpms-vs-vblank-race

dmesg-warn sample:
. . .
[  883.236443] [drm:intel_dp_get_link_train_fallback_values [i915]] *ERROR* Link Training Unsuccessful
[  885.067594] [drm:intel_dp_get_link_train_fallback_values [i915]] *ERROR* Link Training Unsuccessful
[  888.129858] [drm:intel_dp_get_link_train_fallback_values [i915]] *ERROR* Link Training Unsuccessful
[  889.829623] [drm:intel_dp_get_link_train_fallback_values [i915]] *ERROR* Link Training Unsuccessful
. . .
[  543.238962] [drm:intel_dp_get_link_train_fallback_values [i915]] *ERROR* Link Training Unsuccessful
[  546.034651] i915 0000:00:02.0: Resetting rcs0 after gpu hang
[  546.349379] [drm:intel_dp_get_link_train_fallback_values [i915]] *ERROR* Link Training Unsuccessful
[  551.115221] [drm:intel_dp_get_link_train_fallback_values [i915]] *ERROR* Link Training Unsuccessful
[  555.822596] i915 0000:00:02.0: Resetting rcs0 after gpu hang
[  556.145333] [drm:intel_dp_get_link_train_fallback_values [i915]] *ERROR* Link Training Unsuccessful
[  556.210777] [drm:intel_dp_get_link_train_fallback_values [i915]] *ERROR* Link Training Unsuccessful
. . .

This tests has a dmesg-warn on CFL QA 
Tests List:
igt@kms_flip@2x-rcs-wf_vblank-vs-modeset
igt@kms_flip@nonexisting-fb
igt@kms_flip@dpms-off-confusion
igt@kms_flip@2x-nonexisting-fb
igt@kms_flip@2x-dpms-vs-vblank-race

dmesg-warn sample:
. . .
[ 1129.745998] [drm:lspcon_wait_mode [i915]] *ERROR* LSPCON mode hasn't settled
[ 1129.838327] [drm:lspcon_change_mode.constprop.4 [i915]] *ERROR* Error reading LSPCON mode
[ 1129.838351] [drm:intel_dp_detect [i915]] *ERROR* LSPCON resume failed
[ 1130.382330] [drm:lspcon_wait_mode [i915]] *ERROR* LSPCON mode hasn't settled
. . .
Comment 17 Marta Löfstedt 2018-03-27 08:03:51 UTC
[  215.407422] [drm:lspcon_wait_mode [i915]] *ERROR* LSPCON mode hasn't settled
[  215.515181] [drm:lspcon_change_mode.constprop.4 [i915]] *ERROR* Error reading LSPCON mode
[  215.515289] [drm:intel_dp_detect [i915]] *ERROR* LSPCON resume failed

https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_7/fi-cfl-s3/igt@kms_frontbuffer_tracking@psr-rgb101010-draw-mmap-wc.html
https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_7/fi-cfl-s3/igt@kms_frontbuffer_tracking@fbc-2p-primscrn-cur-indfb-draw-blt.html
https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_7/fi-cfl-s3/igt@kms_busy@extended-pageflip-modeset-hang-oldfb-render-a.html
https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_7/fi-cfl-s3/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-draw-mmap-cpu.html
https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_7/fi-cfl-s3/igt@gem_exec_suspend@basic-s4-devices.html
https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_7/fi-cfl-s3/igt@kms_atomic_transition@1x-modeset-transitions-nonblocking.html
https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_7/fi-cfl-s3/igt@kms_plane@pixel-format-pipe-a-planes.html
https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_7/fi-cfl-s3/igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-pri-indfb-draw-mmap-gtt.html
https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_7/fi-cfl-s3/igt@perf_pmu@rc6-runtime-pm.html
https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_7/fi-cfl-s3/igt@kms_chv_cursor_fail@pipe-a-256x256-top-edge.html
https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_7/fi-cfl-s3/igt@kms_cursor_legacy@pipe-c-forked-move.html
https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_7/fi-cfl-s3/igt@kms_flip@flip-vs-dpms-off-vs-modeset-interruptible.html
https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_7/fi-cfl-s3/igt@kms_busy@basic-flip-c.html
https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_7/fi-cfl-s3/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-move.html
https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_7/fi-cfl-s3/igt@kms_psr_sink_crc@psr_basic.html
Comment 21 Sagar Kamble 2018-04-13 07:01:17 UTC
Created attachment 138818 [details]
attachment-18173-0.html

Hi,

Thanks for your mail.
I am OOP today.

Thanks and Regards,
Sagar
Comment 22 Sagar Kamble 2018-04-27 08:44:51 UTC
Created attachment 139162 [details]
attachment-11423-0.html

Hi,

Thanks for your mail.
I am WFH today.

Thanks and Regards,
Sagar
Comment 23 Jani Saarinen 2018-05-24 10:13:08 UTC
New FW in testing on CI now.
Comment 24 steven.j.hockemeier 2018-06-18 17:10:34 UTC
Latest results?
Comment 25 Martin Peres 2018-06-19 20:07:25 UTC
(In reply to steven.j.hockemeier from comment #24)
> Latest results?

With the new firmware, this is working well. However, we still need to distribute this firmware and a flasher to go with it.

Maybe we could duplicate this bug to a generic LSPCON flasher bug, but we have not created it yet. In the mean time, we should keep this bug open.

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.