drm/i915/display/tgl: Use TGL DP tables for eDP ports without low power support
Subsystems (3)
PATCH 1/3 drm/i915/display/tgl: Use TGL DP tables for eDP ports without low power support
Reusing icl_get_combo_buf_trans() for eDP was causing the wrong table being used when the eDP port don't support low power voltage swing table.
--- drivers/gpu/drm/i915/display/intel_ddi.c | 52 +++++++++++++++--------- 1 file changed, 33 insertions(+), 19 deletions(-)
drivers/gpu/drm/i915/display/intel_ddi.c +33 -19
@@ -1088,30 +1088,44 @@ tgl_get_combo_buf_trans(struct intel_encoder *encoder, int type, int rate, {struct drm_i915_private *dev_priv =to_i915 (encoder->base.dev); -if (type ==INTEL_OUTPUT_EDP && dev_priv->vbt.edp.hobl) { -struct intel_dp *intel_dp =enc_to_intel_dp (encoder); - -if (!intel_dp->hobl_failed && rate <=540000 ) { -/* Same table applies to TGL, RKL and DG1 */ - *n_entries =ARRAY_SIZE (tgl_combo_phy_ddi_translations_edp_hbr2_hobl); -return tgl_combo_phy_ddi_translations_edp_hbr2_hobl; +switch (type) { +case INTEL_OUTPUT_HDMI : + *n_entries =ARRAY_SIZE (icl_combo_phy_ddi_translations_hdmi); +return icl_combo_phy_ddi_translations_hdmi; +case INTEL_OUTPUT_EDP : +if (dev_priv->vbt.edp.hobl) { +struct intel_dp *intel_dp =enc_to_intel_dp (encoder); + +if (!intel_dp->hobl_failed && rate <=540000 ) { +/* Same table applies to TGL, RKL and DG1 */ + *n_entries =ARRAY_SIZE (tgl_combo_phy_ddi_translations_edp_hbr2_hobl); +return tgl_combo_phy_ddi_translations_edp_hbr2_hobl; + } } - } -if (type ==INTEL_OUTPUT_HDMI || type ==INTEL_OUTPUT_EDP ) { -return icl_get_combo_buf_trans (encoder, type, rate, n_entries); - }else if (rate >270000 ) { -if (IS_TGL_U (dev_priv) ||IS_TGL_Y (dev_priv)) { - *n_entries =ARRAY_SIZE (tgl_uy_combo_phy_ddi_translations_dp_hbr2); -return tgl_uy_combo_phy_ddi_translations_dp_hbr2; +if (rate >540000 ) { + *n_entries =ARRAY_SIZE (icl_combo_phy_ddi_translations_edp_hbr3); +return icl_combo_phy_ddi_translations_edp_hbr3; + }else if (dev_priv->vbt.edp.low_vswing) { + *n_entries =ARRAY_SIZE (icl_combo_phy_ddi_translations_edp_hbr2); +return icl_combo_phy_ddi_translations_edp_hbr2; + } +/* fall through */ +default : +/* All combo DP and eDP ports that do not support low_vswing */ +if (rate >270000 ) { +if (IS_TGL_U (dev_priv) ||IS_TGL_Y (dev_priv)) { + *n_entries =ARRAY_SIZE (tgl_uy_combo_phy_ddi_translations_dp_hbr2); +return tgl_uy_combo_phy_ddi_translations_dp_hbr2; + } + + *n_entries =ARRAY_SIZE (tgl_combo_phy_ddi_translations_dp_hbr2); +return tgl_combo_phy_ddi_translations_dp_hbr2; } - *n_entries =ARRAY_SIZE (tgl_combo_phy_ddi_translations_dp_hbr2); -return tgl_combo_phy_ddi_translations_dp_hbr2; + *n_entries =ARRAY_SIZE (tgl_combo_phy_ddi_translations_dp_hbr); +return tgl_combo_phy_ddi_translations_dp_hbr; } - - *n_entries =ARRAY_SIZE (tgl_combo_phy_ddi_translations_dp_hbr); -return tgl_combo_phy_ddi_translations_dp_hbr; } static const struct tgl_dkl_phy_ddi_buf_trans *
Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 2/3 drm/i915/display/ehl: Use EHL DP tables for eDP ports without low power support
Reusing icl_get_combo_buf_trans() for eDP was causing the wrong table being used when the eDP port don't support low power voltage swing table.
--- drivers/gpu/drm/i915/display/intel_ddi.c | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-)
drivers/gpu/drm/i915/display/intel_ddi.c +17 -3
@@ -1074,12 +1074,26 @@ static const struct cnl_ddi_buf_trans * ehl_get_combo_buf_trans(struct intel_encoder *encoder, int type, int rate, int *n_entries) { - if (type != INTEL_OUTPUT_HDMI && type != INTEL_OUTPUT_EDP) { + struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); + +switch (type) { +case INTEL_OUTPUT_HDMI : + *n_entries =ARRAY_SIZE (icl_combo_phy_ddi_translations_hdmi); +return icl_combo_phy_ddi_translations_hdmi; +case INTEL_OUTPUT_EDP : +if (rate >540000 ) { + *n_entries =ARRAY_SIZE (icl_combo_phy_ddi_translations_edp_hbr3); +return icl_combo_phy_ddi_translations_edp_hbr3; + }else if (dev_priv->vbt.edp.low_vswing) { + *n_entries =ARRAY_SIZE (icl_combo_phy_ddi_translations_edp_hbr2); +return icl_combo_phy_ddi_translations_edp_hbr2; + } +/* fall through */ +default : +/* All combo DP and eDP ports that do not support low_vswing */ *n_entries =ARRAY_SIZE (ehl_combo_phy_ddi_translations_dp);return ehl_combo_phy_ddi_translations_dp; } - -return icl_get_combo_buf_trans (encoder, type, rate, n_entries); } static const struct cnl_ddi_buf_trans *
Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 3/3 drm/i915/ehl: Update voltage swing table
In reply to José Roberto de SouzaUpdate with latest tunning in the table.
BSpec: 21257
--- drivers/gpu/drm/i915/display/intel_ddi.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
drivers/gpu/drm/i915/display/intel_ddi.c +6 -6
@@ -572,14 +572,14 @@ static const struct cnl_ddi_buf_trans ehl_combo_phy_ddi_translations_dp[] = {/* NT mV Trans mV db */ { 0xA, 0x33, 0x3F, 0x00, 0x00 }, /* 350 350 0.0 */ { 0xA, 0x47, 0x36, 0x00, 0x09 }, /* 350 500 3.1 */ - { 0xC, 0x64, 0x30, 0x00, 0x0F }, /* 350 700 6.0 */ - { 0x6, 0x7F, 0x2C, 0x00, 0x13 }, /* 350 900 8.2 */ + { 0xC, 0x64, 0x34, 0x00, 0x0B }, /* 350 700 6.0 */ + { 0x6, 0x7F, 0x30, 0x00, 0x0F }, /* 350 900 8.2 */ { 0xA, 0x46, 0x3F, 0x00, 0x00 }, /* 500 500 0.0 */ - { 0xC, 0x64, 0x36, 0x00, 0x09 }, /* 500 700 2.9 */ - { 0x6, 0x7F, 0x30, 0x00, 0x0F }, /* 500 900 5.1 */ + { 0xC, 0x64, 0x38, 0x00, 0x07 }, /* 500 700 2.9 */ + { 0x6, 0x7F, 0x32, 0x00, 0x0D }, /* 500 900 5.1 */ { 0xC, 0x61, 0x3F, 0x00, 0x00 }, /* 650 700 0.6 */ - { 0x6, 0x7F, 0x37, 0x00, 0x08 }, /* 600 900 3.5 */ - { 0x6, 0x7F, 0x3F, 0x00, 0x00 }, /* 900 900 0.0 */ + { 0x6, 0x7F, 0x37, 0x00, 0x07 }, /* 600 900 3.5 */ + { 0x6, 0x7F, 0x38, 0x00, 0x00 }, /* 900 900 0.0 */ }; struct icl_mg_phy_ddi_buf_trans {
Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [PATCH 3/3] drm/i915/ehl: Update voltage swing table
Quoted 4 lines · José Roberto de Souza
Update with latest tunning in the table.
BSpec: 21257
Signed-off-by José Roberto de Souza <[email protected]>
It looks like we now have separate tables for EHL and JSL; we probably need to handle them with separate tables now.
Quoted 16 lines
--- drivers/gpu/drm/i915/display/intel_ddi.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)drivers/gpu/drm/i915/display/intel_ddi.c +2
-2@@ -572,14 +572,14 @@ static const struct cnl_ddi_buf_trans ehl_combo_phy_ddi_translations_dp[] = {/* NT mV Trans mV db */ { 0xA, 0x33, 0x3F, 0x00, 0x00 }, /* 350 350 0.0 */ { 0xA, 0x47, 0x36, 0x00, 0x09 }, /* 350 500 3.1 */ - { 0xC, 0x64, 0x30, 0x00, 0x0F }, /* 350 700 6.0 */ - { 0x6, 0x7F, 0x2C, 0x00, 0x13 }, /* 350 900 8.2 */ + { 0xC, 0x64, 0x34, 0x00, 0x0B }, /* 350 700 6.0 */ + { 0x6, 0x7F, 0x30, 0x00, 0x0F }, /* 350 900 8.2 */
drivers/gpu/drm/i915/display/intel_ddi.c static const struct cnl_ddi_buf_trans ehl_combo_phy_ddi_translations_dp[] = { · line 582
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_ddi.c +4
-4{ 0xA, 0x46, 0x3F, 0x00, 0x00 }, /* 500 500 0.0 */ - { 0xC, 0x64, 0x36, 0x00, 0x09 }, /* 500 700 2.9 */ - { 0x6, 0x7F, 0x30, 0x00, 0x0F }, /* 500 900 5.1 */ + { 0xC, 0x64, 0x38, 0x00, 0x07 }, /* 500 700 2.9 */ + { 0x6, 0x7F, 0x32, 0x00, 0x0D }, /* 500 900 5.1 */ { 0xC, 0x61, 0x3F, 0x00, 0x00 }, /* 650 700 0.6 */ - { 0x6, 0x7F, 0x37, 0x00, 0x08 }, /* 600 900 3.5 */ - { 0x6, 0x7F, 0x3F, 0x00, 0x00 }, /* 900 900 0.0 */ + { 0x6, 0x7F, 0x37, 0x00, 0x07 }, /* 600 900 3.5 */ + { 0x6, 0x7F, 0x38, 0x00, 0x00 }, /* 900 900 0.0 */
These last two entries might have already changed again in the bspec since you wrote this. For EHL I see:
0x6, 0x7f, 0x38, 0x00, 0x07
0x6, 0x7f, 0x3f, 0x00, 0x00(i.e., the third column is slightly different). And the JSL table has other deltas as well since it just got added.
Matt
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_ddi.c +0
-0};struct icl_mg_phy_ddi_buf_trans {Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 9 lines
Matt Roper Graphics Software Engineer VTT-OSGC Platform Enablement Intel Corporation (916) 356-2795 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for series starting with [1/3] drm/i915/display/tgl: Use TGL DP tables for eDP ports without low power support
In reply to José Roberto de Souza== Series Details ==
== Series Details ==
Series: series starting with [1/3] drm/i915/display/tgl: Use TGL DP tables for eDP ports without low power support
URL : https://patchwork.freedesktop.org/series/80819/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip 368c77e8c5f2 drm/i915/display/tgl: Use TGL DP tables for eDP ports without low power support -:42: WARNING:LONG_LINE: line length of 102 exceeds 100 columns #42: FILE: drivers/gpu/drm/i915/display/intel_ddi.c:1101: + *n_entries = ARRAY_SIZE(tgl_combo_phy_ddi_translations_edp_hbr2_hobl);
-:61: WARNING:PREFER_FALLTHROUGH: Prefer 'fallthrough;' over fallthrough comment #61: FILE: drivers/gpu/drm/i915/display/intel_ddi.c:1113:
+ /* fall through */
total: 0 errors, 2 warnings, 0 checks, 63 lines checked4ff37f4d65b8 drm/i915/display/ehl: Use EHL DP tables for eDP ports without low power support -:40: WARNING:PREFER_FALLTHROUGH: Prefer 'fallthrough;' over fallthrough comment #40: FILE: drivers/gpu/drm/i915/display/intel_ddi.c:1091:
+ /* fall through */
total: 0 errors, 1 warnings, 0 checks, 29 lines checked 91c25dc00bf9 drm/i915/ehl: Update voltage swing table
-:9: WARNING:TYPO_SPELLING: 'tunning' may be misspelled - perhaps 'tuning'? #9:
Update with latest tunning in the table.
total: 0 errors, 1 warnings, 0 checks, 20 lines checked
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [1/3] drm/i915/display/tgl: Use TGL DP tables for eDP ports without low power support
In reply to José Roberto de Souza== Series Details ==
== Series Details ==
Series: series starting with [1/3] drm/i915/display/tgl: Use TGL DP tables for eDP ports without low power support
URL : https://patchwork.freedesktop.org/series/80819/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_8908 -> Patchwork_18377
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18377/index.html
Known issues
------------
Here are the changes found in Patchwork_18377 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@i915_module_load@reload:
- fi-apl-guc: [PASS][1] -> [DMESG-WARN][2] ([i915#1635] / [i915#1982])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8908/fi-apl-guc/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18377/fi-apl-guc/igt@[email protected]
- fi-bxt-dsi: [PASS][3] -> [DMESG-WARN][4] ([i915#1635] / [i915#1982])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8908/fi-bxt-dsi/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18377/fi-bxt-dsi/igt@[email protected]
- fi-icl-y: [PASS][5] -> [DMESG-WARN][6] ([i915#1982])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8908/fi-icl-y/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18377/fi-icl-y/igt@[email protected]
* igt@i915_pm_rpm@basic-pci-d3-state:
- fi-byt-j1900: [PASS][7] -> [DMESG-WARN][8] ([i915#1982])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8908/fi-byt-j1900/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18377/fi-byt-j1900/igt@[email protected]
* igt@kms_busy@basic@flip:
- fi-kbl-x1275: [PASS][9] -> [DMESG-WARN][10] ([i915#62] / [i915#92] / [i915#95])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8908/fi-kbl-x1275/igt@kms_busy@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18377/fi-kbl-x1275/igt@kms_busy@[email protected]
* igt@kms_cursor_legacy@basic-busy-flip-before-cursor-atomic:
- fi-bsw-n3050: [PASS][11] -> [DMESG-WARN][12] ([i915#1982])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8908/fi-bsw-n3050/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18377/fi-bsw-n3050/igt@[email protected]
- fi-bsw-kefka: [PASS][13] -> [DMESG-WARN][14] ([i915#1982])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8908/fi-bsw-kefka/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18377/fi-bsw-kefka/igt@[email protected]
#### Warnings ####
* igt@kms_cursor_legacy@basic-flip-after-cursor-varying-size:
- fi-kbl-x1275: [DMESG-WARN][15] ([i915#62] / [i915#92] / [i915#95]) -> [DMESG-WARN][16] ([i915#62] / [i915#92])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8908/fi-kbl-x1275/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18377/fi-kbl-x1275/igt@[email protected]
* igt@prime_vgem@basic-fence-flip:
- fi-kbl-x1275: [DMESG-WARN][17] ([i915#62] / [i915#92]) -> [DMESG-WARN][18] ([i915#62] / [i915#92] / [i915#95]) +4 similar issues
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8908/fi-kbl-x1275/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18377/fi-kbl-x1275/igt@[email protected]
[i915#1635]: https://gitlab.freedesktop.org/drm/intel/issues/1635
[i915#1982]: https://gitlab.freedesktop.org/drm/intel/issues/1982
[i915#62]: https://gitlab.freedesktop.org/drm/intel/issues/62
[i915#92]: https://gitlab.freedesktop.org/drm/intel/issues/92
[i915#95]: https://gitlab.freedesktop.org/drm/intel/issues/95
Participating hosts (39 -> 34)
------------------------------
Missing (5): fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-byt-clapper
Build changes
-------------
* Linux: CI_DRM_8908 -> Patchwork_18377
CI-20190529: 20190529
CI_DRM_8908: 03a59fdcea84502e199bf7fa55fd117dcd161dab @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5769: 4e5f76be680b65780204668e302026cf638decc9 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_18377: 91c25dc00bf957b42a9a1484d1e111a7c41bf26e @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
91c25dc00bf9 drm/i915/ehl: Update voltage swing table4ff37f4d65b8 drm/i915/display/ehl: Use EHL DP tables for eDP ports without low power support 368c77e8c5f2 drm/i915/display/tgl: Use TGL DP tables for eDP ports without low power support
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18377/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✓ Fi.CI.IGT: success for series starting with [1/3] drm/i915/display/tgl: Use TGL DP tables for eDP ports without low power support
In reply to José Roberto de Souza== Series Details ==
== Series Details ==
Series: series starting with [1/3] drm/i915/display/tgl: Use TGL DP tables for eDP ports without low power support
URL : https://patchwork.freedesktop.org/series/80819/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_8908_full -> Patchwork_18377_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
Known issues
------------
Here are the changes found in Patchwork_18377_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_exec_balancer@bonded-early:
- shard-kbl: [PASS][1] -> [FAIL][2] ([i915#2079])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8908/shard-kbl1/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18377/shard-kbl1/igt@[email protected]
* igt@gem_exec_gttfill@all:
- shard-glk: [PASS][3] -> [DMESG-WARN][4] ([i915#118] / [i915#95]) +1 similar issue
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8908/shard-glk6/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18377/shard-glk8/igt@[email protected]
* igt@gem_media_fill:
- shard-skl: [PASS][5] -> [DMESG-WARN][6] ([i915#1982]) +9 similar issues
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8908/shard-skl8/igt@gem_media_fill.html
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18377/shard-skl2/igt@gem_media_fill.html
* igt@i915_module_load@reload-with-fault-injection:
- shard-tglb: [PASS][7] -> [DMESG-WARN][8] ([i915#1982]) +1 similar issue
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8908/shard-tglb8/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18377/shard-tglb5/igt@[email protected]
* igt@i915_pm_dc@dc6-psr:
- shard-iclb: [PASS][9] -> [FAIL][10] ([i915#454])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8908/shard-iclb7/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18377/shard-iclb6/igt@[email protected]
* igt@kms_cursor_crc@pipe-a-cursor-suspend:
- shard-kbl: [PASS][11] -> [DMESG-WARN][12] ([i915#180]) +7 similar issues
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8908/shard-kbl1/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18377/shard-kbl1/igt@[email protected]
* igt@kms_cursor_crc@pipe-c-cursor-suspend:
- shard-skl: [PASS][13] -> [INCOMPLETE][14] ([i915#300])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8908/shard-skl3/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18377/shard-skl9/igt@[email protected]
* igt@kms_cursor_legacy@basic-busy-flip-before-cursor-legacy:
- shard-apl: [PASS][15] -> [DMESG-WARN][16] ([i915#1635] / [i915#1982])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8908/shard-apl1/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18377/shard-apl7/igt@[email protected]
* igt@kms_flip@plain-flip-fb-recreate@a-edp1:
- shard-skl: [PASS][17] -> [FAIL][18] ([i915#2122])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8908/shard-skl3/igt@kms_flip@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18377/shard-skl7/igt@kms_flip@[email protected]
* igt@kms_flip_tiling@flip-to-y-tiled:
- shard-skl: [PASS][19] -> [FAIL][20] ([i915#167])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8908/shard-skl6/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18377/shard-skl5/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-blt:
- shard-kbl: [PASS][21] -> [DMESG-WARN][22] ([i915#1982])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8908/shard-kbl2/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18377/shard-kbl7/igt@[email protected]
* igt@kms_hdr@bpc-switch-dpms:
- shard-skl: [PASS][23] -> [FAIL][24] ([i915#1188]) +1 similar issue
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8908/shard-skl1/igt@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18377/shard-skl5/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-c-constant-alpha-min:
- shard-skl: [PASS][25] -> [FAIL][26] ([fdo#108145] / [i915#265])
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8908/shard-skl6/igt@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18377/shard-skl5/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-c-coverage-7efc:
- shard-skl: [PASS][27] -> [DMESG-FAIL][28] ([fdo#108145] / [i915#1982])
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8908/shard-skl1/igt@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18377/shard-skl8/igt@[email protected]
* igt@kms_psr@psr2_sprite_plane_move:
- shard-iclb: [PASS][29] -> [SKIP][30] ([fdo#109441]) +1 similar issue
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8908/shard-iclb2/igt@kms_psr@psr2_sprite_plane_move.html
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18377/shard-iclb3/igt@kms_psr@psr2_sprite_plane_move.html
* igt@perf@blocking-parameterized:
- shard-iclb: [PASS][31] -> [FAIL][32] ([i915#1542])
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8908/shard-iclb1/igt@[email protected]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18377/shard-iclb8/igt@[email protected]
- shard-tglb: [PASS][33] -> [FAIL][34] ([i915#1542])
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8908/shard-tglb3/igt@[email protected]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18377/shard-tglb3/igt@[email protected]
* igt@sysfs_heartbeat_interval@precise@vecs0:
- shard-apl: [PASS][35] -> [FAIL][36] ([i915#1635] / [i915#1755])
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8908/shard-apl8/igt@sysfs_heartbeat_interval@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18377/shard-apl7/igt@sysfs_heartbeat_interval@[email protected]
#### Possible fixes ####
* igt@gem_exec_whisper@basic-contexts-forked:
- shard-glk: [DMESG-WARN][37] ([i915#118] / [i915#95]) -> [PASS][38]
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8908/shard-glk4/igt@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18377/shard-glk6/igt@[email protected]
* igt@i915_selftest@mock@contexts:
- shard-skl: [INCOMPLETE][39] ([i915#198] / [i915#2278]) -> [PASS][40]
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8908/shard-skl8/igt@i915_selftest@[email protected]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18377/shard-skl2/igt@i915_selftest@[email protected]
* igt@kms_addfb_basic@bo-too-small:
- shard-iclb: [DMESG-WARN][41] ([i915#1982]) -> [PASS][42]
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8908/shard-iclb2/igt@[email protected]
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18377/shard-iclb7/igt@[email protected]
* igt@kms_color@pipe-c-ctm-0-25:
- shard-skl: [DMESG-WARN][43] ([i915#1982]) -> [PASS][44] +12 similar issues
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8908/shard-skl9/igt@[email protected]
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18377/shard-skl1/igt@[email protected]
* igt@kms_cursor_legacy@basic-flip-after-cursor-varying-size:
- shard-tglb: [DMESG-WARN][45] ([i915#1982]) -> [PASS][46] +4 similar issues
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8908/shard-tglb8/igt@[email protected]
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18377/shard-tglb5/igt@[email protected]
* igt@kms_draw_crc@draw-method-rgb565-mmap-cpu-untiled:
- shard-skl: [FAIL][47] ([i915#52] / [i915#54]) -> [PASS][48]
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8908/shard-skl10/igt@[email protected]
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18377/shard-skl6/igt@[email protected]
* igt@kms_flip@flip-vs-suspend@c-dp1:
- shard-kbl: [DMESG-WARN][49] ([i915#180]) -> [PASS][50] +10 similar issues
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8908/shard-kbl1/igt@kms_flip@[email protected]
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18377/shard-kbl4/igt@kms_flip@[email protected]
* igt@kms_flip@plain-flip-fb-recreate@b-edp1:
- shard-skl: [FAIL][51] ([i915#2122]) -> [PASS][52]
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8908/shard-skl3/igt@kms_flip@[email protected]
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18377/shard-skl7/igt@kms_flip@[email protected]
* igt@kms_frontbuffer_tracking@psr-1p-primscrn-spr-indfb-draw-render:
- shard-skl: [FAIL][53] ([i915#49]) -> [PASS][54]
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8908/shard-skl2/igt@kms_frontbuffer_tracking@psr-1p-primscrn-spr-indfb-draw-render.html
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18377/shard-skl7/igt@kms_frontbuffer_tracking@psr-1p-primscrn-spr-indfb-draw-render.html
* igt@kms_plane_alpha_blend@pipe-b-coverage-7efc:
- shard-skl: [FAIL][55] ([fdo#108145] / [i915#265]) -> [PASS][56] +1 similar issue
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8908/shard-skl9/igt@[email protected]
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18377/shard-skl3/igt@[email protected]
* igt@kms_psr@psr2_cursor_blt:
- shard-iclb: [SKIP][57] ([fdo#109441]) -> [PASS][58]
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8908/shard-iclb4/igt@kms_psr@psr2_cursor_blt.html
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18377/shard-iclb2/igt@kms_psr@psr2_cursor_blt.html
* igt@kms_vblank@pipe-b-ts-continuation-modeset-rpm:
- shard-kbl: [DMESG-WARN][59] ([i915#165]) -> [PASS][60]
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8908/shard-kbl2/igt@[email protected]
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18377/shard-kbl7/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#108145]: https://bugs.freedesktop.org/show_bug.cgi?id=108145
[fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[i915#118]: https://gitlab.freedesktop.org/drm/intel/issues/118
[i915#1188]: https://gitlab.freedesktop.org/drm/intel/issues/1188
[i915#1542]: https://gitlab.freedesktop.org/drm/intel/issues/1542
[i915#1635]: https://gitlab.freedesktop.org/drm/intel/issues/1635
[i915#165]: https://gitlab.freedesktop.org/drm/intel/issues/165
[i915#167]: https://gitlab.freedesktop.org/drm/intel/issues/167
[i915#1755]: https://gitlab.freedesktop.org/drm/intel/issues/1755
[i915#180]: https://gitlab.freedesktop.org/drm/intel/issues/180
[i915#198]: https://gitlab.freedesktop.org/drm/intel/issues/198
[i915#1982]: https://gitlab.freedesktop.org/drm/intel/issues/1982
[i915#2079]: https://gitlab.freedesktop.org/drm/intel/issues/2079
[i915#2122]: https://gitlab.freedesktop.org/drm/intel/issues/2122
[i915#2278]: https://gitlab.freedesktop.org/drm/intel/issues/2278
[i915#265]: https://gitlab.freedesktop.org/drm/intel/issues/265
[i915#300]: https://gitlab.freedesktop.org/drm/intel/issues/300
[i915#454]: https://gitlab.freedesktop.org/drm/intel/issues/454
[i915#49]: https://gitlab.freedesktop.org/drm/intel/issues/49
[i915#52]: https://gitlab.freedesktop.org/drm/intel/issues/52
[i915#54]: https://gitlab.freedesktop.org/drm/intel/issues/54
[i915#95]: https://gitlab.freedesktop.org/drm/intel/issues/95
Participating hosts (11 -> 11)
------------------------------
No changes in participating hosts
Build changes
-------------
* Linux: CI_DRM_8908 -> Patchwork_18377
CI-20190529: 20190529
CI_DRM_8908: 03a59fdcea84502e199bf7fa55fd117dcd161dab @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5769: 4e5f76be680b65780204668e302026cf638decc9 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_18377: 91c25dc00bf957b42a9a1484d1e111a7c41bf26e @ git://anongit.freedesktop.org/gfx-ci/linux
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18377/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 40 lines · José Roberto de Souza
Reusing
icl_get_combo_buf_trans()for eDP was causing the wrong table being used when the eDP port don't support low power voltage swing table.Cc Lee Shawn C <[email protected]>Cc Khaled Almahallawy <[email protected]>Signed-off-by José Roberto de Souza <[email protected]>--- drivers/gpu/drm/i915/display/intel_ddi.c | 52 +++++++++++++++--------- 1 file changed, 33 insertions(+), 19 deletions(-)drivers/gpu/drm/i915/display/intel_ddi.c +13
-8@@ -1088,30 +1088,44 @@ tgl_get_combo_buf_trans(struct intel_encoder *encoder, int type, int rate, {struct drm_i915_private *dev_priv =to_i915 (encoder->base.dev); -if (type ==INTEL_OUTPUT_EDP && dev_priv->vbt.edp.hobl) { -struct intel_dp *intel_dp =enc_to_intel_dp (encoder); - -if (!intel_dp->hobl_failed && rate <=540000 ) { -/* Same table applies to TGL, RKL and DG1 */ - *n_entries =ARRAY_SIZE (tgl_combo_phy_ddi_translations_edp_hbr2_hobl); -return tgl_combo_phy_ddi_translations_edp_hbr2_hobl; +switch (type) { +case INTEL_OUTPUT_HDMI : + *n_entries =ARRAY_SIZE (icl_combo_phy_ddi_translations_hdmi); +return icl_combo_phy_ddi_translations_hdmi; +case INTEL_OUTPUT_EDP : +if (dev_priv->vbt.edp.hobl) { +struct intel_dp *intel_dp =enc_to_intel_dp (encoder); + +if (!intel_dp->hobl_failed && rate <=540000 ) { +/* Same table applies to TGL, RKL and DG1 */ + *n_entries =ARRAY_SIZE (tgl_combo_phy_ddi_translations_edp_hbr2_hobl); +return tgl_combo_phy_ddi_translations_edp_hbr2_hobl; + } } - }
drivers/gpu/drm/i915/display/intel_ddi.c tgl_get_combo_buf_trans(struct intel_encoder *encoder, int type, int rate, · line 1108
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_ddi.c +3
-6-if (type ==INTEL_OUTPUT_HDMI || type ==INTEL_OUTPUT_EDP ) { -return icl_get_combo_buf_trans (encoder, type, rate, n_entries); - }else if (rate >270000 ) { -if (IS_TGL_U (dev_priv) ||IS_TGL_Y (dev_priv)) { - *n_entries =ARRAY_SIZE (tgl_uy_combo_phy_ddi_translations_dp_hbr2); -return tgl_uy_combo_phy_ddi_translations_dp_hbr2; +if (rate >540000 ) { + *n_entries =ARRAY_SIZE (icl_combo_phy_ddi_translations_edp_hbr3); +return icl_combo_phy_ddi_translations_edp_hbr3;
So if we have (HBR3 && !low_vswing) we still want to use the eDP table values? How did you figure that out? The only relevant comment I see in the bspec is
eDP panels may support lower power, low voltage, swing values using the "eDP" protocol values from the table or higher power, high voltage, swing values using the "DP" protocol values.
which doesn't make any specific mention of HBR3 being a special case.
Matt
Quoted 35 lines
drivers/gpu/drm/i915/display/intel_ddi.c +17
-5+ }else if (dev_priv->vbt.edp.low_vswing) { + *n_entries =ARRAY_SIZE (icl_combo_phy_ddi_translations_edp_hbr2); +return icl_combo_phy_ddi_translations_edp_hbr2; + } +/* fall through */ +default : +/* All combo DP and eDP ports that do not support low_vswing */ +if (rate >270000 ) { +if (IS_TGL_U (dev_priv) ||IS_TGL_Y (dev_priv)) { + *n_entries =ARRAY_SIZE (tgl_uy_combo_phy_ddi_translations_dp_hbr2); +return tgl_uy_combo_phy_ddi_translations_dp_hbr2; + } + + *n_entries =ARRAY_SIZE (tgl_combo_phy_ddi_translations_dp_hbr2); +return tgl_combo_phy_ddi_translations_dp_hbr2; } - *n_entries =ARRAY_SIZE (tgl_combo_phy_ddi_translations_dp_hbr2); -return tgl_combo_phy_ddi_translations_dp_hbr2; + *n_entries =ARRAY_SIZE (tgl_combo_phy_ddi_translations_dp_hbr); +return tgl_combo_phy_ddi_translations_dp_hbr; } - - *n_entries =ARRAY_SIZE (tgl_combo_phy_ddi_translations_dp_hbr); -return tgl_combo_phy_ddi_translations_dp_hbr; } static const struct tgl_dkl_phy_ddi_buf_trans *Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 9 lines
Matt Roper Graphics Software Engineer VTT-OSGC Platform Enablement Intel Corporation (916) 356-2795 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 62 lines · Matt Roper
Quoted 46 lines · José Roberto de Souza
Reusing
icl_get_combo_buf_trans()for eDP was causing the wrong table being used when the eDP port don't support low power voltage swing table.Cc: Lee Shawn C <
[email protected]Quoted 1 line
Cc: Khaled Almahallawy <
[email protected]Quoted 1 line
Signed-off-by: José Roberto de Souza <
[email protected]Quoted 1 line
--- drivers/gpu/drm/i915/display/intel_ddi.c | 52 +++++++++++++++--------- 1 file changed, 33 insertions(+), 19 deletions(-)drivers/gpu/drm/i915/display/intel_ddi.c +13
-8@@ -1088,30 +1088,44 @@ tgl_get_combo_buf_trans(struct intel_encoder *encoder, int type, int rate, {struct drm_i915_private *dev_priv =to_i915 (encoder->base.dev); -if (type ==INTEL_OUTPUT_EDP && dev_priv->vbt.edp.hobl) { -struct intel_dp *intel_dp =enc_to_intel_dp (encoder); - -if (!intel_dp->hobl_failed && rate <=540000 ) { -/* Same table applies to TGL, RKL and DG1 */ - *n_entries =ARRAY_SIZE (tgl_combo_phy_ddi_translations_edp_hbr2_hobl); -return tgl_combo_phy_ddi_translations_edp_hbr2_hobl; +switch (type) { +case INTEL_OUTPUT_HDMI : + *n_entries =ARRAY_SIZE (icl_combo_phy_ddi_translations_hdmi); +return icl_combo_phy_ddi_translations_hdmi; +case INTEL_OUTPUT_EDP : +if (dev_priv->vbt.edp.hobl) { +struct intel_dp *intel_dp =enc_to_intel_dp (encoder); + +if (!intel_dp->hobl_failed && rate <=540000 ) { +/* Same table applies to TGL, RKL and DG1 */ + *n_entries =ARRAY_SIZE (tgl_combo_phy_ddi_translations_edp_hbr2_hobl); +return tgl_combo_phy_ddi_translations_edp_hbr2_hobl; + } } - }drivers/gpu/drm/i915/display/intel_ddi.c tgl_get_combo_buf_trans(struct intel_encoder *encoder, int type, int rate, · line 1108
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_ddi.c +3
-6-if (type ==INTEL_OUTPUT_HDMI || type ==INTEL_OUTPUT_EDP ) { -return icl_get_combo_buf_trans (encoder, type, rate, n_entries); - }else if (rate >270000 ) { -if (IS_TGL_U (dev_priv) ||IS_TGL_Y (dev_priv)) { - *n_entries =ARRAY_SIZE (tgl_uy_combo_phy_ddi_translations_dp_hbr2); -return tgl_uy_combo_phy_ddi_translations_dp_hbr2; +if (rate >540000 ) { + *n_entries =ARRAY_SIZE (icl_combo_phy_ddi_translations_edp_hbr3); +return icl_combo_phy_ddi_translations_edp_hbr3;So if we have (HBR3 && !low_vswing) we still want to use the eDP table values? How did you figure that out? The only relevant comment I see in the bspec is
Quoted 5 lines
eDP panels may support lower power, low voltage, swing values using the "eDP" protocol values from the table or higher power, high voltage, swing values using the "DP" protocol values.
which doesn't make any specific mention of HBR3 being a special case.
As combo ports in DP mode don't support HBR3 it is trying to use HBR3 table without even check if supported, in this case if the link training fails intel_dp_get_link_train_fallback_values() will reduce the rate and lanes until link training succeed or completely fails.
But looks unlikely that a vendor will be ship a product with a HBR3 eDP panel and not set low_vswing in VBT.
Quoted 35 lines
Matt
Quoted 31 lines
drivers/gpu/drm/i915/display/intel_ddi.c +17
-5+ }else if (dev_priv->vbt.edp.low_vswing) { + *n_entries =ARRAY_SIZE (icl_combo_phy_ddi_translations_edp_hbr2); +return icl_combo_phy_ddi_translations_edp_hbr2; + } +/* fall through */ +default : +/* All combo DP and eDP ports that do not support low_vswing */ +if (rate >270000 ) { +if (IS_TGL_U (dev_priv) ||IS_TGL_Y (dev_priv)) { + *n_entries =ARRAY_SIZE (tgl_uy_combo_phy_ddi_translations_dp_hbr2); +return tgl_uy_combo_phy_ddi_translations_dp_hbr2; + } + + *n_entries =ARRAY_SIZE (tgl_combo_phy_ddi_translations_dp_hbr2); +return tgl_combo_phy_ddi_translations_dp_hbr2; } - *n_entries =ARRAY_SIZE (tgl_combo_phy_ddi_translations_dp_hbr2); -return tgl_combo_phy_ddi_translations_dp_hbr2; + *n_entries =ARRAY_SIZE (tgl_combo_phy_ddi_translations_dp_hbr); +return tgl_combo_phy_ddi_translations_dp_hbr; } - - *n_entries =ARRAY_SIZE (tgl_combo_phy_ddi_translations_dp_hbr); -return tgl_combo_phy_ddi_translations_dp_hbr; } static const struct tgl_dkl_phy_ddi_buf_trans *Signature · 1 line
2.28.0
Quoted 8 lines
Quoted 6 lines
_______________________________________________
Intel-gfx mailing list
[email protected]
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 63 lines · Jose
Quoted 62 lines · Matt Roper
Quoted 46 lines · José Roberto de Souza
Reusing
icl_get_combo_buf_trans()for eDP was causing the wrong table being used when the eDP port don't support low power voltage swing table.Cc: Lee Shawn C <
[email protected]Quoted 1 line
Cc: Khaled Almahallawy <
[email protected]Quoted 1 line
Signed-off-by: José Roberto de Souza <
[email protected]Quoted 1 line
--- drivers/gpu/drm/i915/display/intel_ddi.c | 52 +++++++++++++++--------- 1 file changed, 33 insertions(+), 19 deletions(-)drivers/gpu/drm/i915/display/intel_ddi.c +13
-8@@ -1088,30 +1088,44 @@ tgl_get_combo_buf_trans(struct intel_encoder *encoder, int type, int rate, {struct drm_i915_private *dev_priv =to_i915 (encoder->base.dev); -if (type ==INTEL_OUTPUT_EDP && dev_priv->vbt.edp.hobl) { -struct intel_dp *intel_dp =enc_to_intel_dp (encoder); - -if (!intel_dp->hobl_failed && rate <=540000 ) { -/* Same table applies to TGL, RKL and DG1 */ - *n_entries =ARRAY_SIZE (tgl_combo_phy_ddi_translations_edp_hbr2_hobl); -return tgl_combo_phy_ddi_translations_edp_hbr2_hobl; +switch (type) { +case INTEL_OUTPUT_HDMI : + *n_entries =ARRAY_SIZE (icl_combo_phy_ddi_translations_hdmi); +return icl_combo_phy_ddi_translations_hdmi; +case INTEL_OUTPUT_EDP : +if (dev_priv->vbt.edp.hobl) { +struct intel_dp *intel_dp =enc_to_intel_dp (encoder); + +if (!intel_dp->hobl_failed && rate <=540000 ) { +/* Same table applies to TGL, RKL and DG1 */ + *n_entries =ARRAY_SIZE (tgl_combo_phy_ddi_translations_edp_hbr2_hobl); +return tgl_combo_phy_ddi_translations_edp_hbr2_hobl; + } } - }drivers/gpu/drm/i915/display/intel_ddi.c tgl_get_combo_buf_trans(struct intel_encoder *encoder, int type, int rate, · line 1108
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_ddi.c +3
-6-if (type ==INTEL_OUTPUT_HDMI || type ==INTEL_OUTPUT_EDP ) { -return icl_get_combo_buf_trans (encoder, type, rate, n_entries); - }else if (rate >270000 ) { -if (IS_TGL_U (dev_priv) ||IS_TGL_Y (dev_priv)) { - *n_entries =ARRAY_SIZE (tgl_uy_combo_phy_ddi_translations_dp_hbr2); -return tgl_uy_combo_phy_ddi_translations_dp_hbr2; +if (rate >540000 ) { + *n_entries =ARRAY_SIZE (icl_combo_phy_ddi_translations_edp_hbr3); +return icl_combo_phy_ddi_translations_edp_hbr3;So if we have (HBR3 && !low_vswing) we still want to use the eDP table values? How did you figure that out? The only relevant comment I see in the bspec is
Quoted 7 lines
Quoted 5 lines
eDP panels may support lower power, low voltage, swing values using the "eDP" protocol values from the table or higher power, high voltage, swing values using the "DP" protocol values.
which doesn't make any specific mention of HBR3 being a special case.
As combo ports in DP mode don't support HBR3 it is trying to use HBR3
In that case should we drop the HBR3 check from the EHL patch? Because on EHL the DP combo PHYs actually can support HBR3.
Matt
Quoted 50 lines
table without even check if supported, in this case if the link training fails
intel_dp_get_link_train_fallback_values()will reduce the rate and lanes until link training succeed or completely fails.But looks unlikely that a vendor will be ship a product with a HBR3 eDP panel and not set
low_vswingin VBT.Quoted 43 lines
Matt
Quoted 37 lines
drivers/gpu/drm/i915/display/intel_ddi.c +17
-5+ }else if (dev_priv->vbt.edp.low_vswing) { + *n_entries =ARRAY_SIZE (icl_combo_phy_ddi_translations_edp_hbr2); +return icl_combo_phy_ddi_translations_edp_hbr2; + } +/* fall through */ +default : +/* All combo DP and eDP ports that do not support low_vswing */ +if (rate >270000 ) { +if (IS_TGL_U (dev_priv) ||IS_TGL_Y (dev_priv)) { + *n_entries =ARRAY_SIZE (tgl_uy_combo_phy_ddi_translations_dp_hbr2); +return tgl_uy_combo_phy_ddi_translations_dp_hbr2; + } + + *n_entries =ARRAY_SIZE (tgl_combo_phy_ddi_translations_dp_hbr2); +return tgl_combo_phy_ddi_translations_dp_hbr2; } - *n_entries =ARRAY_SIZE (tgl_combo_phy_ddi_translations_dp_hbr2); -return tgl_combo_phy_ddi_translations_dp_hbr2; + *n_entries =ARRAY_SIZE (tgl_combo_phy_ddi_translations_dp_hbr); +return tgl_combo_phy_ddi_translations_dp_hbr; } - - *n_entries =ARRAY_SIZE (tgl_combo_phy_ddi_translations_dp_hbr); -return tgl_combo_phy_ddi_translations_dp_hbr; } static const struct tgl_dkl_phy_ddi_buf_trans *Signature · 7 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 9 lines
Matt Roper Graphics Software Engineer VTT-OSGC Platform Enablement Intel Corporation (916) 356-2795 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 71 lines · Matt Roper
Quoted 70 lines · Jose
Quoted 69 lines · Matt Roper
Quoted 49 lines · José Roberto de Souza
Reusing
icl_get_combo_buf_trans()for eDP was causing the wrong table being used when the eDP port don't support low power voltage swing table.Cc: Lee Shawn C <
[email protected]Cc: Khaled Almahallawy <
[email protected]Signed-off-by: José Roberto de Souza <
[email protected]--- drivers/gpu/drm/i915/display/intel_ddi.c | 52 +++++++++++++++--------- 1 file changed, 33 insertions(+), 19 deletions(-)drivers/gpu/drm/i915/display/intel_ddi.c +13
-8@@ -1088,30 +1088,44 @@ tgl_get_combo_buf_trans(struct intel_encoder *encoder, int type, int rate, {struct drm_i915_private *dev_priv =to_i915 (encoder->base.dev); -if (type ==INTEL_OUTPUT_EDP && dev_priv->vbt.edp.hobl) { -struct intel_dp *intel_dp =enc_to_intel_dp (encoder); - -if (!intel_dp->hobl_failed && rate <=540000 ) { -/* Same table applies to TGL, RKL and DG1 */ - *n_entries =ARRAY_SIZE (tgl_combo_phy_ddi_translations_edp_hbr2_hobl); -return tgl_combo_phy_ddi_translations_edp_hbr2_hobl; +switch (type) { +case INTEL_OUTPUT_HDMI : + *n_entries =ARRAY_SIZE (icl_combo_phy_ddi_translations_hdmi); +return icl_combo_phy_ddi_translations_hdmi; +case INTEL_OUTPUT_EDP : +if (dev_priv->vbt.edp.hobl) { +struct intel_dp *intel_dp =enc_to_intel_dp (encoder); + +if (!intel_dp->hobl_failed && rate <=540000 ) { +/* Same table applies to TGL, RKL and DG1 */ + *n_entries =ARRAY_SIZE (tgl_combo_phy_ddi_translations_edp_hbr2_hobl); +return tgl_combo_phy_ddi_translations_edp_hbr2_hobl; + } } - }drivers/gpu/drm/i915/display/intel_ddi.c tgl_get_combo_buf_trans(struct intel_encoder *encoder, int type, int rate, · line 1108
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_ddi.c +3
-6-if (type ==INTEL_OUTPUT_HDMI || type ==INTEL_OUTPUT_EDP ) { -return icl_get_combo_buf_trans (encoder, type, rate, n_entries); - }else if (rate >270000 ) { -if (IS_TGL_U (dev_priv) ||IS_TGL_Y (dev_priv)) { - *n_entries =ARRAY_SIZE (tgl_uy_combo_phy_ddi_translations_dp_hbr2); -return tgl_uy_combo_phy_ddi_translations_dp_hbr2; +if (rate >540000 ) { + *n_entries =ARRAY_SIZE (icl_combo_phy_ddi_translations_edp_hbr3); +return icl_combo_phy_ddi_translations_edp_hbr3;So if we have (HBR3 && !low_vswing) we still want to use the eDP table values? How did you figure that out? The only relevant comment I see in the bspec is
eDP panels may support lower power, low voltage, swing values using the "eDP" protocol values from the table or higher power, high voltage, swing values using the "DP" protocol values.
Quoted 6 lines
Quoted 3 lines
Quoted 1 line
which doesn't make any specific mention of HBR3 being a special case.
As combo ports in DP mode don't support HBR3 it is trying to use HBR3
In that case should we drop the HBR3 check from the EHL patch? Because on EHL the DP combo PHYs actually can support HBR3.
Oh good catch will fix patch 3.
Quoted 57 lines
Matt
Quoted 51 lines
table without even check if supported, in this case if the link training fails
intel_dp_get_link_train_fallback_values()will reduce the rate and lanes until link training succeed or completely fails.But looks unlikely that a vendor will be ship a product with a HBR3 eDP panel and not set
low_vswingin VBT.Quoted 44 lines
Matt
Quoted 39 lines
drivers/gpu/drm/i915/display/intel_ddi.c +17
-5+ }else if (dev_priv->vbt.edp.low_vswing) { + *n_entries =ARRAY_SIZE (icl_combo_phy_ddi_translations_edp_hbr2); +return icl_combo_phy_ddi_translations_edp_hbr2; + } +/* fall through */ +default : +/* All combo DP and eDP ports that do not support low_vswing */ +if (rate >270000 ) { +if (IS_TGL_U (dev_priv) ||IS_TGL_Y (dev_priv)) { + *n_entries =ARRAY_SIZE (tgl_uy_combo_phy_ddi_translations_dp_hbr2); +return tgl_uy_combo_phy_ddi_translations_dp_hbr2; + } + + *n_entries =ARRAY_SIZE (tgl_combo_phy_ddi_translations_dp_hbr2); +return tgl_combo_phy_ddi_translations_dp_hbr2; } - *n_entries =ARRAY_SIZE (tgl_combo_phy_ddi_translations_dp_hbr2); -return tgl_combo_phy_ddi_translations_dp_hbr2; + *n_entries =ARRAY_SIZE (tgl_combo_phy_ddi_translations_dp_hbr); +return tgl_combo_phy_ddi_translations_dp_hbr; } - - *n_entries =ARRAY_SIZE (tgl_combo_phy_ddi_translations_dp_hbr); -return tgl_combo_phy_ddi_translations_dp_hbr; } static const struct tgl_dkl_phy_ddi_buf_trans *Signature · 8 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx