diff options
author | Imre Deak <imre.deak@intel.com> | 2013-07-09 10:05:26 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-07-09 10:35:50 -0400 |
commit | d4eead50eb206b875f54f66cc0f6ec7d54122c28 (patch) | |
tree | f94f8acf87faffa3585bd8920a0f8bd72224d2dc | |
parent | aaf8a5167291b65e9116cb8736d862965b57c13a (diff) |
drm/i915: fix lane bandwidth capping for DP 1.2 sinks
DP 1.2 compatible displays may report a 5.4Gbps maximum bandwidth which
the driver will treat as an invalid value and use 1.62Gbps instead. Fix
this by capping to 2.7Gbps for sinks reporting a 5.4Gbps max bw.
Also add a warning for reserved values.
v2:
- allow only bw values explicitly listed in the DP standard (Daniel,
Chris)
Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r-- | drivers/gpu/drm/i915/intel_dp.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c index b73971234013..26e162bb3a51 100644 --- a/drivers/gpu/drm/i915/intel_dp.c +++ b/drivers/gpu/drm/i915/intel_dp.c | |||
@@ -75,7 +75,12 @@ intel_dp_max_link_bw(struct intel_dp *intel_dp) | |||
75 | case DP_LINK_BW_1_62: | 75 | case DP_LINK_BW_1_62: |
76 | case DP_LINK_BW_2_7: | 76 | case DP_LINK_BW_2_7: |
77 | break; | 77 | break; |
78 | case DP_LINK_BW_5_4: /* 1.2 capable displays may advertise higher bw */ | ||
79 | max_link_bw = DP_LINK_BW_2_7; | ||
80 | break; | ||
78 | default: | 81 | default: |
82 | WARN(1, "invalid max DP link bw val %x, using 1.62Gbps\n", | ||
83 | max_link_bw); | ||
79 | max_link_bw = DP_LINK_BW_1_62; | 84 | max_link_bw = DP_LINK_BW_1_62; |
80 | break; | 85 | break; |
81 | } | 86 | } |