drm/dp: Don't rewrite link config when setting phy CTS test pattern with LTTPR
Subsystems (2)
PATCH 1/1 drm/dp: Don't rewrite link config when setting phy CTS test pattern with LTTPR
The sequence for Source DP PHY CTS automation[1]:
1- Emulate successful Link Training
2- Short HPD and Change link rates and number of lanes 3- Short HPD and Change PHY test pattern and swing/pre-emp levels
With DP PHY CTS setup as follow:
[DPTX + on board LTTPR]------Main Link--->[Scope]
^ |
| |
| |
----------Aux Ch------>[Aux Emulator]Writing to LINK_BW_SET on a port that has LTTPR is an indication of the LT start for LTTPR [Check DP 2.0 E11 - Sec 3.6.8.2 & 3.6.8.6.3]. As LTTPR snoops LINK_BW_SET/LANE_COUNT_SET, it will stop sending DP signals to DP Scope causing the measurements to fail.
This can be tested with a monitor connected to LTTPR port by writing to LINK_BW_SET as follow:
igt/tools/dpcd_reg write --offset=0x100 --value 0x14 --device=2
OR
printf '\x14' | sudo dd of=/dev/drm_dp_aux2 bs=1 count=1 conv=notrunc seek=$((0x100))
This single aux write causes the screen to blank, sending short HPD to DPTX, setting LINK_STATUS_UPDATE = 1 in DPCD 0x204, and triggering LT.
However, sending the same aux write on a port without LTTPR (direct port to the monitor) has no effect.
In the case of DP PHY CTS setup described above, the AUX emulator executes a script file of aux transactoins it sends to DPTX. For setting PHY pattern the relevant segment of the script looks like the following:
# Set TEST_REQUEST (0x0218): PHY_TEST_PATTERN (0x0218.3) to 1
SetByte 0x218 0
SetBit 0x201 1
SetBit 0x218 3
# Set Test Pattern
SetPattern
# Trigger 1ms HPD Pulse
HPDPulse 0x06
# Wait For 2 seconds
Wait 2000000
MODULEENDAfter the aux emulator finish executing the above segment, the scope waits for the required pattern from DPTX to verify it is the right one and perform the measurements. No more aux transactions the AUX emulator will send. So, when DPTX update LINK_BW_SET/LANE_COUNT_SET, the LTTPR will stop the signals on the main link to DPRX/Scope in order to adjust rate and lane count it snooped and will wait for link training to start which will never happen given the script file for aux transactions already finished.
The fix for this issue, is to not rewrite link config that is already done in step 2 by modeset, and just change PHY test patterns and swing/pre-emph levels.
[1]: LTTPR Re-timer PHY test procedure proposal
https://groups.vesa.org/wg/Link/document/16521
--- drivers/gpu/drm/dp/drm_dp.c | 9 --------- 1 file changed, 9 deletions(-)
drivers/gpu/drm/dp/drm_dp.c +0 -9
@@ -2613,17 +2613,8 @@ int drm_dp_set_phy_test_pattern(struct drm_dp_aux *aux, struct drm_dp_phy_test_params *data, u8 dp_rev) { int err, i; -u8 link_config[2 ];u8 test_pattern; - link_config[0 ] =drm_dp_link_rate_to_bw_code (data->link_rate); - link_config[1 ] = data->num_lanes; -if (data->enhanced_frame_cap) - link_config[1 ] |=DP_LANE_COUNT_ENHANCED_FRAME_EN ; - err =drm_dp_dpcd_write (aux,DP_LINK_BW_SET , link_config,2 ); -if (err <0 ) -return err; - test_pattern = data->phy_pattern;if (dp_rev <0x12 ) { test_pattern = (test_pattern << 2) &
Signature · 1 line
2.25.1
Patchwork
CI[Intel-gfx] ✗ Fi.CI.BAT: failure for drm/dp: Don't rewrite link config when setting phy CTS test pattern with LTTPR
== Series Details ==
== Series Details ==
Series: drm/dp: Don't rewrite link config when setting phy CTS test pattern with LTTPR
URL : https://patchwork.freedesktop.org/series/102385/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_11474 -> Patchwork_22824
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_22824 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_22824, please notify your bug team 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_22824/index.html
Participating hosts (50 -> 36)
------------------------------
Missing (14): fi-bdw-samus bat-adls-5 bat-dg1-6 bat-adlm-1 bat-dg2-9 fi-bsw-cyan bat-adlp-6 bat-adlp-4 bat-hsw-1 fi-elk-e7500 bat-rpls-1 bat-rpls-2 bat-jsl-2 bat-jsl-1
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_22824:
### IGT changes ###
#### Possible regressions ####
* igt@gem_lmem_swapping@basic:
- fi-snb-2600: NOTRUN -> [FAIL][1]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22824/fi-snb-2600/igt@[email protected]
* igt@gem_lmem_swapping@parallel-random-engines:
- fi-bsw-nick: NOTRUN -> [FAIL][2]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22824/fi-bsw-nick/igt@[email protected]
- fi-bsw-kefka: NOTRUN -> [FAIL][3]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22824/fi-bsw-kefka/igt@[email protected]
#### Warnings ####
* igt@gem_lmem_swapping@basic:
- fi-bdw-5557u: [FAIL][4] ([i915#5602]) -> [FAIL][5]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11474/fi-bdw-5557u/igt@[email protected]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22824/fi-bdw-5557u/igt@[email protected]
#### Suppressed ####
The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.
* igt@gem_lmem_swapping@basic:
- {fi-jsl-1}: [FAIL][6] ([i915#5602]) -> [FAIL][7]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11474/fi-jsl-1/igt@[email protected]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22824/fi-jsl-1/igt@[email protected]
Known issues
------------
Here are the changes found in Patchwork_22824 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_close_race@basic-process:
- fi-ivb-3770: NOTRUN -> [SKIP][8] ([fdo#109271]) +146 similar issues
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22824/fi-ivb-3770/igt@[email protected]
* igt@gem_exec_fence@basic-await:
- fi-bsw-nick: NOTRUN -> [SKIP][9] ([fdo#109271]) +151 similar issues
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22824/fi-bsw-nick/igt@[email protected]
* igt@i915_getparams_basic@basic-eu-total:
- fi-snb-2600: NOTRUN -> [SKIP][10] ([fdo#109271]) +150 similar issues
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22824/fi-snb-2600/igt@[email protected]
* igt@kms_pipe_crc_basic@compare-crc-sanitycheck-pipe-c:
- fi-bsw-nick: NOTRUN -> [SKIP][11] ([fdo#109271] / [i915#5341])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22824/fi-bsw-nick/igt@[email protected]
- fi-snb-2600: NOTRUN -> [SKIP][12] ([fdo#109271] / [i915#5341])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22824/fi-snb-2600/igt@[email protected]
- fi-ivb-3770: NOTRUN -> [SKIP][13] ([fdo#109271] / [i915#5341])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22824/fi-ivb-3770/igt@[email protected]
#### Warnings ####
* igt@gem_lmem_swapping@basic:
- fi-skl-guc: [FAIL][14] ([i915#4547]) -> [FAIL][15] ([i915#5602])
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11474/fi-skl-guc/igt@[email protected]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22824/fi-skl-guc/igt@[email protected]
- fi-hsw-g3258: [FAIL][16] -> [FAIL][17] ([i915#5602])
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11474/fi-hsw-g3258/igt@[email protected]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22824/fi-hsw-g3258/igt@[email protected]
- fi-cfl-8109u: [FAIL][18] -> [FAIL][19] ([i915#5602])
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11474/fi-cfl-8109u/igt@[email protected]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22824/fi-cfl-8109u/igt@[email protected]
- fi-cfl-guc: [FAIL][20] -> [FAIL][21] ([i915#5602])
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11474/fi-cfl-guc/igt@[email protected]
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22824/fi-cfl-guc/igt@[email protected]
* igt@runner@aborted:
- fi-bsw-kefka: [FAIL][22] ([i915#3690] / [i915#4312]) -> [FAIL][23] ([i915#4312])
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11474/fi-bsw-kefka/igt@[email protected]
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22824/fi-bsw-kefka/igt@[email protected]
- fi-bsw-nick: [FAIL][24] ([i915#3690]) -> [FAIL][25] ([i915#4312])
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11474/fi-bsw-nick/igt@[email protected]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22824/fi-bsw-nick/igt@[email protected]
- fi-kbl-7500u: [FAIL][26] ([i915#4312] / [i915#5257]) -> [FAIL][27] ([i915#4312])
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11474/fi-kbl-7500u/igt@[email protected]
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22824/fi-kbl-7500u/igt@[email protected]
- fi-kbl-guc: [FAIL][28] ([i915#4312] / [i915#5257]) -> [FAIL][29] ([i915#5602])
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11474/fi-kbl-guc/igt@[email protected]
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22824/fi-kbl-guc/igt@[email protected]
- fi-snb-2600: [FAIL][30] -> [FAIL][31] ([i915#4312])
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11474/fi-snb-2600/igt@[email protected]
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22824/fi-snb-2600/igt@[email protected]
- fi-ivb-3770: [FAIL][32] -> [FAIL][33] ([i915#4312])
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11474/fi-ivb-3770/igt@[email protected]
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22824/fi-ivb-3770/igt@[email protected]
- fi-tgl-1115g4: [FAIL][34] ([i915#3690] / [i915#4312]) -> [FAIL][35] ([i915#3690])
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11474/fi-tgl-1115g4/igt@[email protected]
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22824/fi-tgl-1115g4/igt@[email protected]
- fi-cfl-guc: [FAIL][36] ([i915#4312] / [i915#5257]) -> [FAIL][37] ([i915#4312])
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11474/fi-cfl-guc/igt@[email protected]
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22824/fi-cfl-guc/igt@[email protected]
- fi-skl-guc: [FAIL][38] ([i915#4312] / [i915#5257]) -> [FAIL][39] ([i915#4312])
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11474/fi-skl-guc/igt@[email protected]
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22824/fi-skl-guc/igt@[email protected]
- fi-bsw-n3050: [FAIL][40] ([i915#4312]) -> [FAIL][41] ([i915#3690] / [i915#4312])
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11474/fi-bsw-n3050/igt@[email protected]
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22824/fi-bsw-n3050/igt@[email protected]
- fi-tgl-u2: [FAIL][42] ([i915#3690] / [i915#4312]) -> [FAIL][43] ([i915#3690])
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11474/fi-tgl-u2/igt@[email protected]
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22824/fi-tgl-u2/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109278]: https://bugs.freedesktop.org/show_bug.cgi?id=109278
[fdo#109315]: https://bugs.freedesktop.org/show_bug.cgi?id=109315
[i915#2575]: https://gitlab.freedesktop.org/drm/intel/issues/2575
[i915#3690]: https://gitlab.freedesktop.org/drm/intel/issues/3690
[i915#4312]: https://gitlab.freedesktop.org/drm/intel/issues/4312
[i915#4547]: https://gitlab.freedesktop.org/drm/intel/issues/4547
[i915#5257]: https://gitlab.freedesktop.org/drm/intel/issues/5257
[i915#5341]: https://gitlab.freedesktop.org/drm/intel/issues/5341
[i915#5602]: https://gitlab.freedesktop.org/drm/intel/issues/5602
Build changes
-------------
* Linux: CI_DRM_11474 -> Patchwork_22824
CI-20190529: 20190529
CI_DRM_11474: 7db06d19096d416d9cb1de42460c43ca726858d9 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_6415: c3b690bd5f7fb1fb7ed786ab0f3b815930a6a55f @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_22824: 8daf608dcf56b9ffcefb76e7f80f7c29b91ca33a @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
8daf608dcf56 drm/dp: Don't rewrite link config when setting phy CTS test pattern with LTTPR
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22824/index.html