All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915/bxt: Enable VBT based BL control for DP
@ 2017-06-06  7:09 Mustamin B Mustaffa
  2017-06-06  7:28 ` ✓ Fi.CI.BAT: success for " Patchwork
  2017-06-06  9:24 ` [PATCH] " Jani Nikula
  0 siblings, 2 replies; 8+ messages in thread
From: Mustamin B Mustaffa @ 2017-06-06  7:09 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.

Change-Id: I42242d8def30d09298b629e3cd4828016189c3fa
Signed-off-by: Mustamin B Mustaffa <mustamin.b.mustaffa@intel.com>
Tracked-On: https://jira01.devtools.intel.com/browse/OAM-46254
---
 drivers/gpu/drm/i915/intel_dp.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
index d1670b8..124f58b 100644
--- a/drivers/gpu/drm/i915/intel_dp.c
+++ b/drivers/gpu/drm/i915/intel_dp.c
@@ -591,13 +591,8 @@ bxt_power_sequencer_idx(struct intel_dp *intel_dp)
 	/* We should never land here with regular DP ports */
 	WARN_ON(!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 dev_priv->vbt.backlight.controller;
 
 	intel_dp->pps_reset = false;
 
-- 
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] 8+ messages in thread

end of thread, other threads:[~2017-06-07 14:12 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-06  7:09 [PATCH] drm/i915/bxt: Enable VBT based BL control for DP Mustamin B Mustaffa
2017-06-06  7:28 ` ✓ Fi.CI.BAT: success for " Patchwork
2017-06-06  9:24 ` [PATCH] " Jani Nikula
2017-06-06 12:34   ` Imre Deak
2017-06-06 14:58     ` Bloomfield, Jon
2017-06-06 15:26       ` Imre Deak
2017-06-07  8:16         ` Jani Nikula
2017-06-07 14:12           ` Bloomfield, Jon

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.