intel-gfx.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* Fixes that failed to backport to v4.12-rc1
@ 2017-05-15 12:43 Jani Nikula
  2017-06-07 13:45 ` Jani Nikula
                   ` (3 more replies)
  0 siblings, 4 replies; 21+ messages in thread
From: Jani Nikula @ 2017-05-15 12:43 UTC (permalink / raw)
  To: intel-gfx, Daniel Vetter, Chris Wilson, Mika Kuoppala,
	Joonas Lahtinen


Continuing [1] for v4.12-rc1

The following commits have been marked as Cc: stable or fixing something
in v4.12-rc1 or earlier, but failed to cherry-pick to
drm-intel-fixes. Please see if they are worth backporting, and please do
so if they are.

BR,
Jani.

e6ba9992de6c ("drm/i915: Differentiate between sw write location into ring and last hw read")
73cc0b9aa9af ("drm/i915: Do not sync RCU during shrinking")



[1] http://mid.mail-archive.com/87lgs9dugv.fsf@intel.com

-- 
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 21+ messages in thread
* [PATCH] drm/i915: Don't enable backlight at setup time.
@ 2017-06-12 20:16 Dhinakaran Pandiyan
  2017-06-13  6:29 ` Maarten Lankhorst
  2017-06-13  6:48 ` Jani Nikula
  0 siblings, 2 replies; 21+ messages in thread
From: Dhinakaran Pandiyan @ 2017-06-12 20:16 UTC (permalink / raw)
  To: intel-gfx; +Cc: Jani Nikula, Dhinakaran Pandiyan

Maarten and Ville noticed that we are enabling backlight via DP aux very
early in the modeset_init path via the intel_dp_aux_setup_backlight()
function. Looks like all we need to do during _setup_backlight() is
read the current brightness state instead of modifying it, so I don't
why need to _enable_backlight() from _setup_backlight().

Cc: Ville Syrjala <ville.syrjala@linux.intel.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
---
 drivers/gpu/drm/i915/intel_dp_aux_backlight.c | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/drivers/gpu/drm/i915/intel_dp_aux_backlight.c b/drivers/gpu/drm/i915/intel_dp_aux_backlight.c
index 6cc6298..228ca06 100644
--- a/drivers/gpu/drm/i915/intel_dp_aux_backlight.c
+++ b/drivers/gpu/drm/i915/intel_dp_aux_backlight.c
@@ -80,10 +80,6 @@ static uint32_t intel_dp_aux_get_backlight(struct intel_connector *connector)
 static void
 intel_dp_aux_set_backlight(const struct drm_connector_state *conn_state, u32 level)
 {
-	/*
-	 * conn_state->best_encoder is likely NULL when called from
-	 * intel_dp_aux_setup_backlight()
-	 */
 	struct intel_connector *connector = to_intel_connector(conn_state->connector);
 	struct intel_dp *intel_dp = enc_to_intel_dp(&connector->encoder->base);
 	uint8_t vals[2] = { 0x0 };
@@ -106,10 +102,6 @@ static void intel_dp_aux_enable_backlight(const struct intel_crtc_state *crtc_st
 					  const struct drm_connector_state *conn_state)
 {
 	struct intel_connector *connector = to_intel_connector(conn_state->connector);
-	/*
-	 * conn_state->best_encoder (and crtc_state) are NULL when called from
-	 * intel_dp_aux_setup_backlight()
-	 */
 	struct intel_dp *intel_dp = enc_to_intel_dp(&connector->encoder->base);
 	uint8_t dpcd_buf = 0;
 	uint8_t edp_backlight_mode = 0;
@@ -156,8 +148,6 @@ static int intel_dp_aux_setup_backlight(struct intel_connector *connector,
 	struct intel_dp *intel_dp = enc_to_intel_dp(&connector->encoder->base);
 	struct intel_panel *panel = &connector->panel;
 
-	intel_dp_aux_enable_backlight(NULL, connector->base.state);
-
 	if (intel_dp->edp_dpcd[2] & DP_EDP_BACKLIGHT_BRIGHTNESS_BYTE_COUNT)
 		panel->backlight.max = 0xFFFF;
 	else
-- 
2.7.4

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

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

end of thread, other threads:[~2017-06-19 19:35 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-15 12:43 Fixes that failed to backport to v4.12-rc1 Jani Nikula
2017-06-07 13:45 ` Jani Nikula
2017-06-08 14:30   ` Ville Syrjälä
2017-06-08 14:47     ` Jani Nikula
2017-06-08 16:00       ` Ville Syrjälä
2017-06-13  8:30         ` Jani Nikula
2017-06-08 14:40   ` [PATCH fixes 1/2] drm/i915: Fix scaling check for 90/270 degree plane rotation ville.syrjala
2017-06-08 14:40     ` [PATCH fixes 2/2] drm/i915: Fix SKL+ watermarks for 90/270 rotation ville.syrjala
2017-06-13  8:27 ` Fixes that failed to backport to v4.12-rc1 Jani Nikula
2017-06-13 17:12   ` Michel Thierry
2017-06-15 13:11 ` [PATCH] drm/i915: Differentiate between sw write location into ring and last hw read Chris Wilson
2017-06-19  8:21   ` Jani Nikula
2017-06-19  9:02 ` Fixes that failed to backport to v4.12-rc1 Jani Nikula
2017-06-19 18:08   ` [PATCH] drm/i915: Don't enable backlight at setup time Dhinakaran Pandiyan
2017-06-19 18:13     ` Pandiyan, Dhinakaran
2017-06-19 19:35     ` Jani Nikula
  -- strict thread matches above, loose matches on Subject: below --
2017-06-12 20:16 Dhinakaran Pandiyan
2017-06-13  6:29 ` Maarten Lankhorst
2017-06-13 18:58   ` Pandiyan, Dhinakaran
2017-06-13  6:48 ` Jani Nikula
2017-06-13 19:31   ` Pandiyan, Dhinakaran

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).