drm/i915/dp: Modify DP lane count from DPCD reading
Subsystems (3)
PATCH 1/1 drm/i915/dp: Modify DP lane count from DPCD reading
We found that the external monitor would be failed to display when hot-plug with dual Type-C USB cable on Dell WD19DC dock. Due to the host would receive 2 lanes setting when the first HPD, then receive 4 lanes setting later, but the host only sets 2 lanes DP and skips to set 4 lanes DP. I modify DP lane count if the current DP lane count is not the same as DPCD reading.
--- drivers/gpu/drm/i915/display/intel_dp.c | 6 ++++++ 1 file changed, 6 insertions(+)
drivers/gpu/drm/i915/display/intel_dp.c +6 -0
@@ -5545,6 +5545,12 @@ intel_dp_detect_dpcd(struct intel_dp *intel_dp)if (!intel_dp_get_dpcd (intel_dp))return connector_status_disconnected; +/* lanes count changed */ +if (intel_dp->lane_count !=drm_dp_max_lane_count (intel_dp->dpcd)) { + intel_dp->lane_count =drm_dp_max_lane_count (intel_dp->dpcd); +return connector_status_disconnected; + } + intel_dp->mst_detect =intel_dp_mst_detect (intel_dp);/* if there's no downstream port, we're done */
Signature · 1 line
2.17.1
Jani Nikula
maintainerQuoted 8 lines · Ben Kao
We found that the external monitor would be failed to display when hot-plug with dual Type-C USB cable on Dell WD19DC dock. Due to the host would receive 2 lanes setting when the first HPD, then receive 4 lanes setting later, but the host only sets 2 lanes DP and skips to set 4 lanes DP. I modify DP lane count if the current DP lane count is not the same as DPCD reading.
Signed-off-by Ben Kao <[email protected]>
Please file a bug according to [1].
BR,
Jani.
[1] https://drm.pages.freedesktop.org/intel-docs/how-to-file-i915-bugs.html
Quoted 21 lines
--- drivers/gpu/drm/i915/display/intel_dp.c | 6 ++++++ 1 file changed, 6 insertions(+)drivers/gpu/drm/i915/display/intel_dp.c +6
-0@@ -5545,6 +5545,12 @@ intel_dp_detect_dpcd(struct intel_dp *intel_dp)if (!intel_dp_get_dpcd (intel_dp))return connector_status_disconnected; +/* lanes count changed */ +if (intel_dp->lane_count !=drm_dp_max_lane_count (intel_dp->dpcd)) { + intel_dp->lane_count =drm_dp_max_lane_count (intel_dp->dpcd); +return connector_status_disconnected; + } + intel_dp->mst_detect =intel_dp_mst_detect (intel_dp);/* if there's no downstream port, we're done */
Signature · 1 line
Jani Nikula, Intel
Quoted 8 lines · Ben Kao
Quoted 7 lines
We found that the external monitor would be failed to display when hot-plug with dual Type-C USB cable on Dell WD19DC dock. Due to the host would receive 2 lanes setting when the first HPD, then receive 4 lanes setting later, but the host only sets 2 lanes DP and skips to set 4 lanes DP. I modify DP lane count if the current DP lane count is not the same as DPCD reading.
Quoted 8 lines
Quoted 1 line
Signed-off-by Ben Kao <[email protected]>Please file a bug according to [1].
BR,
Jani.[1] https://drm.pages.freedesktop.org/intel-docs/how-to-file-i915-bugs.html
This patch is for the bug number 11195
https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11195
Quoted 28 lines
Quoted 24 lines
--- drivers/gpu/drm/i915/display/intel_dp.c | 6 ++++++ 1 file changed, 6 insertions(+)drivers/gpu/drm/i915/display/intel_dp.c +6
-0@@ -5545,6 +5545,12 @@ intel_dp_detect_dpcd(struct intel_dp *intel_dp)if (!intel_dp_get_dpcd (intel_dp))return connector_status_disconnected; +/* lanes count changed */ +if (intel_dp->lane_count !=drm_dp_max_lane_count (intel_dp->dpcd)) { + intel_dp->lane_count =drm_dp_max_lane_count (intel_dp- dpcd); +return connector_status_disconnected; + } + intel_dp->mst_detect =intel_dp_mst_detect (intel_dp);Quoted 1 line
/* if there's no downstream port, we're done */
--
Jani Nikula, Intel
Patchwork
CI✗ Fi.CI.BAT: failure for drm/i915/dp: Modify DP lane count from DPCD reading
In reply to Ben Kao== Series Details ==
== Series Details ==
Series: drm/i915/dp: Modify DP lane count from DPCD reading
URL : https://patchwork.freedesktop.org/series/135505/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_15013 -> Patchwork_135505v1
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_135505v1 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes
introduced in Patchwork_135505v1, please notify your bug team ([email protected]) to allow them to document this new failure mode, which will reduce false positives in CI.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_135505v1/index.html
Participating hosts (42 -> 40)
------------------------------
Missing (2): bat-dg2-11 fi-snb-2520m
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_135505v1:
### IGT changes ###
#### Possible regressions ####
* igt@kms_addfb_basic@bad-pitch-999:
- fi-kbl-7567u: [PASS][1] -> [DMESG-WARN][2] +1 other test dmesg-warn
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15013/fi-kbl-7567u/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_135505v1/fi-kbl-7567u/igt@[email protected]
* igt@kms_cursor_legacy@basic-flip-after-cursor-legacy:
- fi-kbl-7567u: [PASS][3] -> [DMESG-FAIL][4] +2 other tests dmesg-fail
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15013/fi-kbl-7567u/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_135505v1/fi-kbl-7567u/igt@[email protected]
* igt@kms_frontbuffer_tracking@basic:
- fi-kbl-7567u: [PASS][5] -> [FAIL][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15013/fi-kbl-7567u/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_135505v1/fi-kbl-7567u/igt@[email protected]
Known issues
------------
Here are the changes found in Patchwork_135505v1 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@i915_module_load@reload:
- fi-kbl-7567u: [PASS][7] -> [DMESG-WARN][8] ([i915#10062] / [i915#180] / [i915#1982] / [i915#9925]) +1 other test dmesg-warn
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15013/fi-kbl-7567u/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_135505v1/fi-kbl-7567u/igt@[email protected]
* igt@i915_selftest@live@guc_multi_lrc:
- bat-arls-1: [PASS][9] -> [DMESG-FAIL][10] ([i915#10262]) +3 other tests dmesg-fail
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15013/bat-arls-1/igt@i915_selftest@live@guc_multi_lrc.html
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_135505v1/bat-arls-1/igt@i915_selftest@live@guc_multi_lrc.html
* igt@i915_selftest@live@sanitycheck:
- fi-kbl-7567u: [PASS][11] -> [DMESG-WARN][12] ([i915#11328]) +39 other tests dmesg-warn
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15013/fi-kbl-7567u/igt@i915_selftest@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_135505v1/fi-kbl-7567u/igt@i915_selftest@[email protected]
* igt@i915_selftest@live@slpc:
- bat-arls-1: [PASS][13] -> [DMESG-WARN][14] ([i915#10341])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15013/bat-arls-1/igt@i915_selftest@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_135505v1/bat-arls-1/igt@i915_selftest@[email protected]
* igt@kms_busy@basic@flip:
- fi-kbl-7567u: [PASS][15] -> [DMESG-WARN][16] ([i915#180])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15013/fi-kbl-7567u/igt@kms_busy@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_135505v1/fi-kbl-7567u/igt@kms_busy@[email protected]
* igt@kms_flip@basic-flip-vs-modeset:
- fi-kbl-7567u: NOTRUN -> [SKIP][17] +1 other test skip
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_135505v1/fi-kbl-7567u/igt@[email protected]
* igt@kms_pm_rpm@basic-pci-d3-state:
- fi-kbl-7567u: [PASS][18] -> [DMESG-WARN][19] ([i915#10062] / [i915#180] / [i915#9925]) +61 other tests dmesg-warn
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15013/fi-kbl-7567u/igt@[email protected]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_135505v1/fi-kbl-7567u/igt@[email protected]
[i915#10062]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10062
[i915#10262]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10262
[i915#10341]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10341
[i915#11328]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11328
[i915#180]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/180
[i915#1982]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/1982
[i915#9925]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9925
Build changes
-------------
* Linux: CI_DRM_15013 -> Patchwork_135505v1
CI-20190529: 20190529
CI_DRM_15013: 0318a12ff6fb8c321458aa2b373e9322896ee951 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_7906: ae91ba26f657bf11264f64bd2dc21f471a5d18f5 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_135505v1: 0318a12ff6fb8c321458aa2b373e9322896ee951 @ git://anongit.freedesktop.org/gfx-ci/linux
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_135505v1/index.html