Bug 105998 - [CI][fi-skl-6700hq only] igt@* - dmesg-warn - *ERROR* failed to enable link training
Summary: [CI][fi-skl-6700hq only] igt@* - dmesg-warn - *ERROR* failed to enable link t...
Status: RESOLVED MOVED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: DRI git
Hardware: Other All
: medium normal
Assignee: Manasi
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard: ReadyForDev
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-12 10:18 UTC by Marta Löfstedt
Modified: 2019-11-29 17:45 UTC (History)
3 users (show)

See Also:
i915 platform: SKL
i915 features: CI Infra, display/Other


Attachments
dmesg, drm.debug=0xe (12.67 MB, text/plain)
2018-09-15 15:15 UTC, Chris Murphy
no flags Details

Description Marta Löfstedt 2018-04-12 10:18:38 UTC
[  183.898612] [drm:intel_dp_start_link_train [i915]] *ERROR* failed to enable link training
[  183.898698] [drm:intel_dp_start_link_train [i915]] *ERROR* [CONNECTOR:71:eDP-1] Link Training failed at link rate = 270000, lane count = 2

https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_17/fi-skl-6700hq/igt@kms_cursor_crc@cursor-64x64-dpms.html
https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_17/fi-skl-6700hq/igt@kms_atomic_transition@1x-modeset-transitions-nonblocking.html
Comment 2 Francesco Balestrieri 2018-06-01 07:27:53 UTC
Still reproducible.
Comment 3 Chris Murphy 2018-09-15 15:15:43 UTC
Created attachment 141573 [details]
dmesg, drm.debug=0xe

I'm seeing this on

00:02.0 VGA compatible controller [0300]: Intel Corporation Skylake GT2 [HD Graphics 520] [8086:1916] (rev 07) (prog-if 00 [VGA controller])
	Subsystem: Hewlett-Packard Company Device [103c:81a0]


[12446.213836] f29h.local kernel: [drm:intel_dp_start_link_train [i915]] *ERROR* failed to enable link training
[12446.213959] f29h.local kernel: [drm:intel_dp_start_link_train [i915]] [CONNECTOR:79:DP-1] Link Training failed at link rate = 162000, lane count = 4
[12446.214211] f29h.local kernel: [drm:intel_dp_modeset_retry_work_fn [i915]] [CONNECTOR:79:DP-1]


4.19.0-0.rc3.git2.1.fc30.x86_64 which is git 54eda9df17f3.


So far it's only happening on wake from S3, possibly the connected external display itself hasn't come out of power save at the initial link training? Subsequent link training appears to be OK.

On the primary display at about this time (hard to say), there is a flicker at GDM (GNOME login). I can't tell if it's related.
Comment 4 Martin Peres 2018-09-21 13:34:24 UTC
(In reply to Chris Murphy from comment #3)
> Created attachment 141573 [details]
> dmesg, drm.debug=0xe
> 
> I'm seeing this on
> 
> 00:02.0 VGA compatible controller [0300]: Intel Corporation Skylake GT2 [HD
> Graphics 520] [8086:1916] (rev 07) (prog-if 00 [VGA controller])
> 	Subsystem: Hewlett-Packard Company Device [103c:81a0]
> 
> 
> [12446.213836] f29h.local kernel: [drm:intel_dp_start_link_train [i915]]
> *ERROR* failed to enable link training
> [12446.213959] f29h.local kernel: [drm:intel_dp_start_link_train [i915]]
> [CONNECTOR:79:DP-1] Link Training failed at link rate = 162000, lane count =
> 4
> [12446.214211] f29h.local kernel: [drm:intel_dp_modeset_retry_work_fn
> [i915]] [CONNECTOR:79:DP-1]
> 
> 
> 4.19.0-0.rc3.git2.1.fc30.x86_64 which is git 54eda9df17f3.
> 
> 
> So far it's only happening on wake from S3, possibly the connected external
> display itself hasn't come out of power save at the initial link training?
> Subsequent link training appears to be OK.
> 
> On the primary display at about this time (hard to say), there is a flicker
> at GDM (GNOME login). I can't tell if it's related.

Thanks for this detailed report Chris, I am pulling in Manasi who has been developing this feature. She should be able to tell us for sure if your sensible explanation is sound, and how we could fix this.

However, I would recommend writing a new bug report, given that not all link training failures stem from the same root cause. Since our failing tests are not S3-related, you likely experience a separate issue that is best handled in a separate bug.

In any case, how much impact this issue has for you? This is important for us to prioritise bugs.
Comment 5 Manasi 2018-10-02 21:59:02 UTC
Looking at the logs, this link failure is happening because of the aux timeouts before the link training. Meaning that the AUX power domain is not on at that point.
What test case are you running to put trigger S3 state and waking it up from S3?
Would be interesting to try this with i915.disable_power_well=0 set for the kernel parameters or manually setting this in i915_params.c and rebuilding the kernel.
Let me know if that fixes it.

Manasi
Comment 6 Manasi 2019-01-09 19:31:44 UTC
Did you get a chance to try out what I had suggesting in my earlier comment?
Do you still see this issue on drm-tip?

Manasi
Comment 7 CI Bug Log 2019-02-02 17:08:12 UTC
A CI Bug Log filter associated to this bug has been updated:

{- fi-skl-6700hq fi-skl-6700hq: All tests - *ERROR* failed to enable link training -}
{+ fi-skl-6700hq fi-skl-6700hq fi-icl-y: All tests - *ERROR* failed to enable link training +}

New failures caught by the filter:

* https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_204/fi-icl-y/igt@kms_vblank@pipe-b-ts-continuation-suspend.html
* https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_204/fi-icl-y/igt@kms_flip@flip-vs-suspend.html
* https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_204/fi-icl-y/igt@kms_pipe_crc_basic@suspend-read-crc-pipe-b.html
* https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_204/fi-icl-y/igt@kms_plane@plane-panning-bottom-right-suspend-pipe-b-planes.html
* https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_204/fi-icl-y/igt@kms_vblank@pipe-a-ts-continuation-dpms-suspend.html
* https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_204/fi-icl-y/igt@kms_pipe_crc_basic@suspend-read-crc-pipe-c.html
* https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_204/fi-icl-y/igt@kms_vblank@pipe-a-ts-continuation-suspend.html
* https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_204/fi-icl-y/igt@kms_plane@plane-panning-bottom-right-suspend-pipe-a-planes.html
* https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_204/fi-icl-y/igt@gem_workarounds@suspend-resume-context.html
* https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_204/fi-icl-y/igt@gem_softpin@noreloc-s3.html
* https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_204/fi-icl-y/igt@pm_rpm@system-suspend.html
* https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_204/fi-icl-y/igt@i915_suspend@forcewake.html
* https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_204/fi-icl-y/igt@pm_rpm@system-suspend-execbuf.html
* https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_204/fi-icl-y/igt@kms_vblank@pipe-c-ts-continuation-suspend.html
* https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_204/fi-icl-y/igt@kms_plane@plane-panning-bottom-right-suspend-pipe-c-planes.html
* https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_204/fi-icl-y/igt@i915_suspend@debugfs-reader.html
* https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_204/fi-icl-y/igt@i915_suspend@sysfs-reader.html
* https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_204/fi-icl-y/igt@gem_workarounds@suspend-resume.html
* https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_205/fi-icl-y/igt@kms_vblank@pipe-a-ts-continuation-dpms-suspend.html
* https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_205/fi-icl-y/igt@pm_rpm@system-suspend.html
* https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_205/fi-icl-y/igt@kms_pipe_crc_basic@suspend-read-crc-pipe-a.html
* https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_205/fi-icl-y/igt@gem_workarounds@suspend-resume-fd.html
* https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_205/fi-icl-y/igt@kms_frontbuffer_tracking@fbc-suspend.html
* https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_205/fi-icl-y/igt@gem_softpin@noreloc-s3.html
* https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_205/fi-icl-y/igt@gem_workarounds@suspend-resume.html
* https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_205/fi-icl-y/igt@i915_suspend@sysfs-reader.html
* https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_205/fi-icl-y/igt@kms_vblank@pipe-c-ts-continuation-suspend.html
* https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_205/fi-icl-y/igt@kms_vblank@pipe-b-ts-continuation-dpms-suspend.html
* https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_205/fi-icl-y/igt@kms_plane@plane-panning-bottom-right-suspend-pipe-a-planes.html
* https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_205/fi-icl-y/igt@i915_suspend@fence-restore-untiled.html
* https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_205/fi-icl-y/igt@kms_plane@plane-panning-bottom-right-suspend-pipe-b-planes.html
* https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_205/fi-icl-y/igt@kms_flip@flip-vs-suspend.html
* https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_205/fi-icl-y/igt@pm_rpm@system-suspend-modeset.html
* https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_205/fi-icl-y/igt@kms_vblank@pipe-b-ts-continuation-suspend.html
* https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_205/fi-icl-y/igt@i915_suspend@forcewake.html
Comment 8 Manasi 2019-02-26 00:36:32 UTC
What is the ICL HW setup here where we see the "Failed to enable link training" bug?
Could you tell me the details of which ports are connected and possibly attach a picture of connected ports on the RVP so that I can try and reproduce this on the RVP here.

Manasi
Comment 9 Lakshmi 2019-02-27 11:45:18 UTC
(In reply to Manasi from comment #8)
> What is the ICL HW setup here where we see the "Failed to enable link
> training" bug?
> Could you tell me the details of which ports are connected and possibly
> attach a picture of connected ports on the RVP so that I can try and
> reproduce this on the RVP here.
> 
> Manasi

eDP connected to motherboard, no external displays are connected.
Comment 10 Jani Saarinen 2019-02-27 12:06:43 UTC
on ICL-Y this is just broken VBT?
Comment 11 Manasi 2019-03-04 19:20:08 UTC
This is definitely broken VBT since, even though there are no external displays connected it is trying to link train on DP-1 using AUX B and then it gets failures on AUX and then fails to enable link training.
@Clint was I believe experiencing the same issue on his board, could you try updating the BIOS and/or firmware?

Manasi
Comment 12 Jani Saarinen 2019-03-04 20:30:05 UTC
This was fixed on ICL already, removed ICL.
Comment 13 CI Bug Log 2019-04-05 11:20:59 UTC
A CI Bug Log filter associated to this bug has been updated:

{- fi-skl-6700hq fi-skl-6700hq fi-icl-y: All tests - *ERROR* failed to enable link training -}
{+ fi-skl-6700hq fi-skl-6700hq: All tests - *ERROR* failed to enable link training +}

 No new failures caught with the new filter
Comment 14 CI Bug Log 2019-04-05 11:27:58 UTC
A CI Bug Log filter associated to this bug has been updated:

{- fi-skl-6700hq fi-skl-6700hq: All tests - *ERROR* failed to enable link training -}
{+ fi-skl-6700hq: All tests - dmesg-warn / dmesg-fail - *ERROR* failed to enable link training +}

 No new failures caught with the new filter
Comment 15 Martin Peres 2019-04-05 11:28:52 UTC
(In reply to CI Bug Log from comment #14)
> A CI Bug Log filter associated to this bug has been updated:
> 
> {- fi-skl-6700hq fi-skl-6700hq: All tests - *ERROR* failed to enable link
> training -}
> {+ fi-skl-6700hq: All tests - dmesg-warn / dmesg-fail - *ERROR* failed to
> enable link training +}
> 
>  No new failures caught with the new filter

Dropped the fi-skl-6770hq, because it is handled by https://bugs.freedesktop.org/show_bug.cgi?id=108833.
Comment 16 Martin Peres 2019-04-05 11:33:21 UTC
As for the fi-skl-6700hq, it has not been running in CI for a while (drmtip_224).

Adding CI infra in order to investigate why the machine is dead.
Comment 17 Martin Peres 2019-04-05 11:35:14 UTC
Dropping to medium since it is only seen on one machine.
Comment 18 CI Bug Log 2019-11-12 07:19:26 UTC
A CI Bug Log filter associated to this bug has been updated:

{- fi-skl-6700hq: All tests - dmesg-warn / dmesg-fail - *ERROR* failed to enable link training -}
{+ fi-skl-6770hq fi-skl-6700hq: All tests - dmesg-warn / dmesg-fail - *ERROR* failed to enable link training +}

New failures caught by the filter:

  * https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7306/fi-skl-6770hq/igt@gem_exec_suspend@basic-s0.html
  * https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7306/fi-skl-6770hq/igt@gem_exec_suspend@basic-s3.html
  * https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7306/fi-skl-6770hq/igt@gem_exec_suspend@basic-s4-devices.html
  * https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7306/fi-skl-6770hq/igt@kms_flip@basic-flip-vs-dpms.html
  * https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7306/fi-skl-6770hq/igt@kms_flip@basic-plain-flip.html
  * https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_402/fi-skl-6770hq/igt@kms_atomic_transition@2x-modeset-transitions-nonblocking-fencing.html
  * https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_402/fi-skl-6770hq/igt@kms_color@pipe-a-ctm-0-75.html
  * https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_402/fi-skl-6770hq/igt@kms_cursor_crc@pipe-b-cursor-64x64-sliding.html
  * https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_402/fi-skl-6770hq/igt@kms_atomic_transition@plane-primary-toggle-with-vblank-wait.html
  * https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_402/fi-skl-6770hq/igt@kms_pipe_crc_basic@suspend-read-crc-pipe-c.html
  * https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_402/fi-skl-6770hq/igt@kms_flip@2x-modeset-vs-vblank-race.html
  * https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_402/fi-skl-6770hq/igt@kms_busy@extended-modeset-hang-newfb-with-reset-render-b.html
  * https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_402/fi-skl-6770hq/igt@kms_flip@flip-vs-expired-vblank-interruptible.html
Comment 19 Martin Peres 2019-11-29 17:45:31 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/drm/intel/issues/106.


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.