All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915: Enable VBT based BL control for DP (v3)
@ 2018-02-20  2:46 Mustamin B Mustaffa
  2018-02-20  5:54 ` ✗ Fi.CI.CHECKPATCH: warning for " Patchwork
                   ` (16 more replies)
  0 siblings, 17 replies; 36+ messages in thread
From: Mustamin B Mustaffa @ 2018-02-20  2:46 UTC (permalink / raw)
  To: intel-gfx; +Cc: Mustamin B Mustaffa

Currently, BXT_PP is hardcoded with value '0'.
It practically disabled eDP backlight on MRB (BXT) platform.

This patch will tell which BXT_PP registers (there are two set of PP_CONTROL in the spec)
to be used as defined in VBT (Video Bios Timing table) and this will enabled eDP
backlight controller on MRB (BXT) platform.

v2:
 - Remove unnecessary information in commit message.
 - Assign vbt.backlight.controller to a backlight_controller variable and return
   the variable value.
v3:
 - Rebased to latest code base.
 - updated commit title.

Signed-off-by: Mustamin B Mustaffa <mustamin.b.mustaffa@intel.com>
---
 drivers/gpu/drm/i915/intel_dp.c | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
index 1868f73..f9b922d 100644
--- a/drivers/gpu/drm/i915/intel_dp.c
+++ b/drivers/gpu/drm/i915/intel_dp.c
@@ -655,18 +655,15 @@ static enum pipe vlv_find_free_pps(struct drm_i915_private *dev_priv)
 {
 	struct drm_i915_private *dev_priv = to_i915(intel_dp_to_dev(intel_dp));
 
+        int backlight_controller = dev_priv->vbt.backlight.controller;
+
 	lockdep_assert_held(&dev_priv->pps_mutex);
 
 	/* We should never land here with regular DP ports */
 	WARN_ON(!intel_dp_is_edp(intel_dp));
 
-	/*
-	 * TODO: BXT has 2 PPS instances. The correct port->PPS instance
-	 * mapping needs to be retrieved from VBT, for now just hard-code to
-	 * use instance #0 always.
-	 */
 	if (!intel_dp->pps_reset)
-		return 0;
+		return backlight_controller;
 
 	intel_dp->pps_reset = false;
 
@@ -676,7 +673,7 @@ static enum pipe vlv_find_free_pps(struct drm_i915_private *dev_priv)
 	 */
 	intel_dp_init_panel_power_sequencer_registers(intel_dp, false);
 
-	return 0;
+	return backlight_controller;
 }
 
 typedef bool (*vlv_pipe_check)(struct drm_i915_private *dev_priv,
-- 
1.9.1

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 36+ messages in thread

end of thread, other threads:[~2018-02-28 10:40 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-20  2:46 [PATCH] drm/i915: Enable VBT based BL control for DP (v3) Mustamin B Mustaffa
2018-02-20  5:54 ` ✗ Fi.CI.CHECKPATCH: warning for " Patchwork
2018-02-20  6:09 ` ✓ Fi.CI.BAT: success " Patchwork
2018-02-20  6:18 ` [V3] drm/i915: Enable VBT based BL control for DP Mustamin B Mustaffa
2018-02-20  6:52   ` Mustamin B Mustaffa
2018-02-20  8:39     ` Chris Wilson
2018-02-20  8:44       ` Mustaffa, Mustamin B
2018-02-20  9:29         ` Chris Wilson
2018-02-20  9:43           ` Jani Nikula
2018-02-20 19:46             ` Rodrigo Vivi
2018-02-20  9:42     ` [V4] " Mustamin B Mustaffa
2018-02-20 14:26       ` Ville Syrjälä
2018-02-21  0:04         ` Mustaffa, Mustamin B
2018-02-21  0:22           ` Rodrigo Vivi
2018-02-21 13:19           ` Ville Syrjälä
2018-02-22  1:36             ` Mustaffa, Mustamin B
2018-02-21  6:43       ` [PATCH] " Mustamin B Mustaffa
2018-02-21  7:38         ` Jani Nikula
2018-02-27  2:47         ` [PATCH] [V3] " Mustamin B Mustaffa
2018-02-27  3:07           ` Mustamin B Mustaffa
2018-02-28  9:42             ` Jani Nikula
2018-02-28 10:40               ` Mustaffa, Mustamin B
2018-02-20  6:39 ` ✗ Fi.CI.CHECKPATCH: warning for drm/i915: Enable VBT based BL control for DP (v3) (rev2) Patchwork
2018-02-20  6:53 ` ✓ Fi.CI.IGT: success for drm/i915: Enable VBT based BL control for DP (v3) Patchwork
2018-02-20  6:55 ` ✓ Fi.CI.BAT: success for drm/i915: Enable VBT based BL control for DP (v3) (rev2) Patchwork
2018-02-20  7:31 ` ✓ Fi.CI.BAT: success for drm/i915: Enable VBT based BL control for DP (v3) (rev3) Patchwork
2018-02-20  8:35 ` ✓ Fi.CI.IGT: " Patchwork
2018-02-20 10:43 ` ✗ Fi.CI.CHECKPATCH: warning for drm/i915: Enable VBT based BL control for DP (v3) (rev4) Patchwork
2018-02-20 10:58 ` ✓ Fi.CI.BAT: success " Patchwork
2018-02-20 14:06 ` ✗ Fi.CI.IGT: failure " Patchwork
2018-02-20 19:44 ` [PATCH] drm/i915: Enable VBT based BL control for DP (v3) Rodrigo Vivi
2018-02-21  7:14 ` ✓ Fi.CI.BAT: success for drm/i915: Enable VBT based BL control for DP (v3) (rev5) Patchwork
2018-02-21  8:56 ` ✓ Fi.CI.IGT: " Patchwork
2018-02-27  2:54 ` ✗ Fi.CI.BAT: failure for drm/i915: Enable VBT based BL control for DP (v3) (rev7) Patchwork
2018-02-27  3:37 ` ✓ Fi.CI.BAT: success for drm/i915: Enable VBT based BL control for DP (v3) (rev8) Patchwork
2018-02-27  4:22 ` ✓ Fi.CI.IGT: " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.