drm/i915/edp: use max lanes and clock for edp
Subsystems (2)
RFC 1/1 drm/i915/edp: use max lanes and clock for edp
How about throwing this at any eDP link parameter bugs and regressions? Does it feel too much like giving up the battle?
--- drivers/gpu/drm/i915/intel_dp.c | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-)
drivers/gpu/drm/i915/intel_dp.c +7 -17
@@ -889,23 +889,13 @@ intel_dp_compute_config(struct intel_encoder *encoder, bpp = dev_priv->vbt.edp_bpp; } -if (IS_BROADWELL (dev)) { -/* Yes, it's an ugly hack. */ - min_lane_count = max_lane_count; -DRM_DEBUG_KMS ("forcing lane count to max (%u) on BDW\n" , - min_lane_count); - }else if (dev_priv->vbt.edp_lanes) { - min_lane_count =min (dev_priv->vbt.edp_lanes, - max_lane_count); -DRM_DEBUG_KMS ("using min %u lanes per VBT\n" , - min_lane_count); - } - -if (dev_priv->vbt.edp_rate) { - min_clock =min (dev_priv->vbt.edp_rate >>3 , max_clock); -DRM_DEBUG_KMS ("using min %02x link bw per VBT\n" , - bws[min_clock]); - } +/* +* Use the maximum clock and number of lanes the eDP panel +* advertizes being capable of. Typically these values +* correspond to the native resolution of the panel. +*/ + min_lane_count = max_lane_count; + min_clock = max_clock; }for (; bpp >=6 *3 ; bpp -=2 *3 ) {
Signature · 1 line
1.9.1
Quoted 2 lines · Jani Nikula
How about throwing this at any eDP link parameter bugs and regressions? Does it feel too much like giving up the battle?
Fixes at least one bug...
https://bugs.freedesktop.org/show_bug.cgi?id=79386#c15
Quoted 43 lines
Signed-off-by Jani Nikula <[email protected]>--- drivers/gpu/drm/i915/intel_dp.c | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-)drivers/gpu/drm/i915/intel_dp.c +7
-17@@ -889,23 +889,13 @@ intel_dp_compute_config(struct intel_encoder *encoder, bpp = dev_priv->vbt.edp_bpp; } -if (IS_BROADWELL (dev)) { -/* Yes, it's an ugly hack. */ - min_lane_count = max_lane_count; -DRM_DEBUG_KMS ("forcing lane count to max (%u) on BDW\n" , - min_lane_count); - }else if (dev_priv->vbt.edp_lanes) { - min_lane_count =min (dev_priv->vbt.edp_lanes, - max_lane_count); -DRM_DEBUG_KMS ("using min %u lanes per VBT\n" , - min_lane_count); - } - -if (dev_priv->vbt.edp_rate) { - min_clock =min (dev_priv->vbt.edp_rate >>3 , max_clock); -DRM_DEBUG_KMS ("using min %02x link bw per VBT\n" , - bws[min_clock]); - } +/* +* Use the maximum clock and number of lanes the eDP panel +* advertizes being capable of. Typically these values +* correspond to the native resolution of the panel. +*/ + min_lane_count = max_lane_count; + min_clock = max_clock; }for (; bpp >=6 *3 ; bpp -=2 *3 ) {Signature · 1 line
1.9.1
Signature · 1 line
Jani Nikula, Intel Open Source Technology Center
A message that is not in the archive (sent off-list or not yet received): [email protected]
Jesse Barnes
Reviewed-byQuoted 5 lines · On Thu, 04 Sep 2014 10:53:44 +0300 Jani Nikula <[email protected]> wrote:
Quoted 4 lines · Jani Nikula
Quoted 2 lines · Jani Nikula
How about throwing this at any eDP link parameter bugs and regressions? Does it feel too much like giving up the battle?
Quoted 64 lines
Quoted 3 lines
Fixes at least one bug...
Another
https://bugs.freedesktop.org/show_bug.cgi?id=81647#c6
Quoted 55 lines
Quoted 52 lines
Signed-off-by Jani Nikula <[email protected]>--- drivers/gpu/drm/i915/intel_dp.c | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-)(quoted diff) +0
-0
b/drivers/gpu/drm/i915/intel_dp.cindexd7fc2c0e9ba8..f4248d7f64f9100644 ---a/drivers/gpu/drm/i915/intel_dp.c
+++b/drivers/gpu/drm/i915/intel_dp.cdrivers/gpu/drm/i915/intel_dp.c +2
-17@@ -889,23 +889,13 @@ intel_dp_compute_config(struct intel_encoder *encoder, bpp = dev_priv->vbt.edp_bpp; } -if (IS_BROADWELL (dev)) { -/* Yes, it's an ugly hack. */ - min_lane_count = max_lane_count; -DRM_DEBUG_KMS ("forcing lane count to max (%u) on BDW\n", - min_lane_count); - }else if (dev_priv->vbt.edp_lanes) { - min_lane_count = min(dev_priv->vbt.edp_lanes, - max_lane_count); -DRM_DEBUG_KMS ("using min %u lanes per VBT\n", - min_lane_count); - } - -if (dev_priv->vbt.edp_rate) { - min_clock =min (dev_priv->vbt.edp_rate >> 3, max_clock); -DRM_DEBUG_KMS ("using min %02x link bw per VBT\n", - bws[min_clock]); - } +/* +* Use the maximum clock and number of lanes the eDP panel
(quoted diff) +1
-0+ * advertizes being capable of. Typically thesevalues
(quoted diff) +1
-0+ * correspond to the native resolution of thepanel.
drivers/gpu/drm/i915/intel_dp.c +3
-0+*/ + min_lane_count = max_lane_count; + min_clock = max_clock; }for (; bpp >=6 *3 ; bpp -=2 *3 ) {Signature · 1 line
1.9.1Signature · 1 line
Jani Nikula, Intel Open Source Technology Center
Then I'd say let's go for it. We can always whitelist systems where we can use fewer lanes (e.g. some Chromebooks).
Quoted 4 lines · Jesse Barnes
Then I'd say let's go for it. We can always whitelist systems where we can use fewer lanes (e.g. some Chromebooks).
Reviewed-by Jesse Barnes <[email protected]>
You're late to the party! ;)
commit 39fde1cdcc5df26bd65a2b9b765ae5b741ca6d13
Author: Jani Nikula <[email protected]> Date: Tue Sep 9 11:25:13 2014 +0300
drm/i915/edp: use lane count and link rate from DPCD for eDP
Signature · 1 line
Jani Nikula, Intel Open Source Technology Center