drm/i915/cnl: Fix DP max voltage
Subsystems (2)
Rodrigo Vivi
maintainerPATCH 1/1 drm/i915/cnl: Fix DP max voltage
On clock recovery this function is called to find out the max voltage swing level that we could go.
However gen 9 functions use the old buffer translation tables to figure that out. That table is not valid for CNL causing an invalid number of entries and an invalid selection on the max voltage swing level.
Always picking Level 3 on CNL seems to be the safest way to go instead of doing something similar to gen9 look-up.
So, unless we find a good reason let's simplify and follow the most used way to get the max DP voltage.
--- drivers/gpu/drm/i915/intel_dp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_dp.c +1 -1
@@ -3116,7 +3116,7 @@ static bool intel_dp_get_alpm_status(struct intel_dp *intel_dp)struct drm_i915_private *dev_priv =to_i915 (intel_dp_to_dev (intel_dp));enum port port =dp_to_dig_port (intel_dp)->port; -if (IS_GEN9_LP (dev_priv)) +if (IS_GEN9_LP (dev_priv) ||IS_CANNONLAKE (dev_priv))return DP_TRAIN_VOLTAGE_SWING_LEVEL_3 ;else if (INTEL_GEN (dev_priv) >=9 ) {struct intel_encoder *encoder = &dp_to_dig_port (intel_dp)->base;
Signature · 6 lines
1.9.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
drivers/gpu/drm/i915/intel_dp.c static bool intel_dp_get_alpm_status(struct intel_dp *intel_dp)
Quoted 25 lines · Rodrigo Vivi
On clock recovery this function is called to find out the max voltage swing level that we could go.
However gen 9 functions use the old buffer translation tables to figure that out. That table is not valid for CNL causing an invalid number of entries and an invalid selection on the max voltage swing level.
Always picking Level 3 on CNL seems to be the safest way to go instead of doing something similar to gen9 look-up.
So, unless we find a good reason let's simplify and follow the most used way to get the max DP voltage.
Cc Clint Taylor <[email protected]>Signed-off-by Rodrigo Vivi <[email protected]>--- drivers/gpu/drm/i915/intel_dp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/i915/intel_dp.c +0
-0@@ -3116,7 +3116,7 @@ static bool intel_dp_get_alpm_status(struct intel_dp *intel_dp)
^^^^^^^^^^^^^^^^^^^^^^^^
I wonder what's the deal with these broken looking diffs recently? Is there some buggy version of git around that people are using?
drivers/gpu/drm/i915/intel_dp.c static bool intel_dp_get_alpm_status(struct intel_dp *intel_dp) · line 3120
Quoted 6 lines
drivers/gpu/drm/i915/intel_dp.c +1
-1struct drm_i915_private *dev_priv =to_i915 (intel_dp_to_dev (intel_dp));enum port port =dp_to_dig_port (intel_dp)->port; -if (IS_GEN9_LP (dev_priv)) +if (IS_GEN9_LP (dev_priv) ||IS_CANNONLAKE (dev_priv))return DP_TRAIN_VOLTAGE_SWING_LEVEL_3 ;
This looks wrong to me. If I'm reading the cnl buf trans tables right then eDP doesn't go up to level 3.
The HDMI case also looks suscpect since intel_ddi_hdmi_level() doesn't have anything for CNL.
IMO the best way would be to change all platforms to use a similar approach as what I did for SKL/KBL. In fact I'd like to see all the link training vswing/pre-emph stuff converted into a more data driven approach. Otherwise all the information is spread rather wide making rather hard to cross check the max vs. the actual values. This is especially true for DDI platforms since the buf trans tables aren't even in the same file. Any takers?
Quoted 10 lines
drivers/gpu/drm/i915/intel_dp.c +0
-0else if (INTEL_GEN (dev_priv) >=9 ) {struct intel_encoder *encoder = &dp_to_dig_port (intel_dp)->base;Signature · 6 lines
1.9.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 6 lines
Ville Syrjälä Intel OTC _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Vivi, Rodrigo
maintainerQuoted 21 lines · Ville Syrjälä
Quoted 20 lines · Rodrigo Vivi
On clock recovery this function is called to find out the max voltage swing level that we could go.
However gen 9 functions use the old buffer translation tables to figure that out. That table is not valid for CNL causing an invalid number of entries and an invalid selection on the max voltage swing level.
Always picking Level 3 on CNL seems to be the safest way to go instead of doing something similar to gen9 look-up.
So, unless we find a good reason let's simplify and follow the most used way to get the max DP voltage.
Cc Clint Taylor <[email protected]>Signed-off-by Rodrigo Vivi <[email protected]>--- drivers/gpu/drm/i915/intel_dp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 8 lines
drivers/gpu/drm/i915/intel_dp.c static bool intel_dp_get_alpm_status(struct intel_dp *intel_dp)
Quoted 5 lines
drivers/gpu/drm/i915/intel_dp.c +0
-0@@ -3116,7 +3116,7 @@ static bool intel_dp_get_alpm_status(struct intel_dp *intel_dp)^^^^^^^^^^^^^^^^^^^^^^^^I wonder what's the deal with these broken looking diffs recently? Is there some buggy version of git around that people are using?
that's a good question... it is a fact that I need to update my git anyways...
Quoted 10 lines
drivers/gpu/drm/i915/intel_dp.c static bool intel_dp_get_alpm_status(struct intel_dp *intel_dp) · line 3120
Quoted 7 lines
drivers/gpu/drm/i915/intel_dp.c +1
-1struct drm_i915_private *dev_priv =to_i915 (intel_dp_to_dev (intel_dp));enum port port =dp_to_dig_port (intel_dp)->port; -if (IS_GEN9_LP (dev_priv)) +if (IS_GEN9_LP (dev_priv) ||IS_CANNONLAKE (dev_priv))return DP_TRAIN_VOLTAGE_SWING_LEVEL_3 ;This looks wrong to me. If I'm reading the cnl buf trans tables right then eDP doesn't go up to level 3.
ouch!
Quoted 3 lines
The HDMI case also looks suscpect since
intel_ddi_hdmi_level()doesn't have anything for CNL.
I will check...
Quoted 3 lines
IMO the best way would be to change all platforms to use a similar approach as what I did for SKL/KBL.
hm... I will take a look on that path for now...
Quoted 6 lines
In fact I'd like to see all
the link training vswing/pre-emph stuff converted into a more data driven approach. Otherwise all the information is spread rather wide making rather hard to cross check the max vs. the actual values. This is especially true for DDI platforms since the buf trans tables aren't even in the same file. Any takers?
that's a good idea.
it would get cleaner.
Quoted 7 lines
Quoted 7 lines
drivers/gpu/drm/i915/intel_dp.c +0
-0else if (INTEL_GEN (dev_priv) >=9 ) {struct intel_encoder *encoder = &dp_to_dig_port (intel_dp)->base;Signature · 1 line
1.9.1
Quoted 5 lines
Quoted 4 lines
_______________________________________________
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
Patchwork
CI✓ Fi.CI.BAT: success for drm/i915/cnl: Fix DP max voltage
In reply to Rodrigo Vivi== Series Details ==
== Series Details ==
Series: drm/i915/cnl: Fix DP max voltage
URL : https://patchwork.freedesktop.org/series/27076/
State : success
== Summary ==
Series 27076v1 drm/i915/cnl: Fix DP max voltage
https://patchwork.freedesktop.org/api/1.0/series/27076/revisions/1/mbox/
Test gem_exec_suspend:
Subgroup basic-s4-devices:
dmesg-warn -> PASS (fi-snb-2600) fdo#100125
Test kms_pipe_crc_basic:
Subgroup hang-read-crc-pipe-a:
pass -> DMESG-WARN (fi-pnv-d510) fdo#101597 +1fdo#100125 https://bugs.freedesktop.org/show_bug.cgi?id=100125
fdo#101597 https://bugs.freedesktop.org/show_bug.cgi?id=101597
fi-bdw-5557u total:279 pass:268 dwarn:0 dfail:0 fail:0 skip:11 time:442s fi-bdw-gvtdvm total:279 pass:265 dwarn:0 dfail:0 fail:0 skip:14 time:436s fi-blb-e6850 total:279 pass:224 dwarn:1 dfail:0 fail:0 skip:54 time:355s fi-bsw-n3050 total:279 pass:243 dwarn:0 dfail:0 fail:0 skip:36 time:529s fi-bxt-j4205 total:279 pass:260 dwarn:0 dfail:0 fail:0 skip:19 time:517s fi-byt-j1900 total:279 pass:254 dwarn:1 dfail:0 fail:0 skip:24 time:486s fi-byt-n2820 total:279 pass:250 dwarn:1 dfail:0 fail:0 skip:28 time:476s fi-glk-2a total:279 pass:260 dwarn:0 dfail:0 fail:0 skip:19 time:599s fi-hsw-4770 total:279 pass:263 dwarn:0 dfail:0 fail:0 skip:16 time:437s fi-hsw-4770r total:279 pass:263 dwarn:0 dfail:0 fail:0 skip:16 time:413s fi-ilk-650 total:279 pass:229 dwarn:0 dfail:0 fail:0 skip:50 time:428s fi-ivb-3520m total:279 pass:261 dwarn:0 dfail:0 fail:0 skip:18 time:491s fi-ivb-3770 total:279 pass:261 dwarn:0 dfail:0 fail:0 skip:18 time:475s fi-kbl-7500u total:279 pass:261 dwarn:0 dfail:0 fail:0 skip:18 time:458s fi-kbl-7560u total:279 pass:269 dwarn:0 dfail:0 fail:0 skip:10 time:571s fi-kbl-r total:279 pass:260 dwarn:1 dfail:0 fail:0 skip:18 time:581s fi-pnv-d510 total:279 pass:221 dwarn:3 dfail:0 fail:0 skip:55 time:565s fi-skl-6260u total:279 pass:269 dwarn:0 dfail:0 fail:0 skip:10 time:461s fi-skl-6700hq total:279 pass:262 dwarn:0 dfail:0 fail:0 skip:17 time:587s fi-skl-6700k total:279 pass:257 dwarn:4 dfail:0 fail:0 skip:18 time:463s fi-skl-6770hq total:279 pass:269 dwarn:0 dfail:0 fail:0 skip:10 time:482s fi-skl-gvtdvm total:279 pass:266 dwarn:0 dfail:0 fail:0 skip:13 time:437s fi-snb-2520m total:279 pass:251 dwarn:0 dfail:0 fail:0 skip:28 time:542s fi-snb-2600 total:279 pass:250 dwarn:0 dfail:0 fail:0 skip:29 time:405s
623a0a89056dd13ef29a80f415adbb28837685f8 drm-tip: 2017y-07m-10d-18h-19m-45s UTC integration manifest ddea8a1 drm/i915/cnl: Fix DP max voltage
== Logs ==
For more details see: https://intel-gfx-ci.01.org/CI/Patchwork_5157/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx