Skip to content

Commit 2e7eeeb

Browse files
committed
drm/i915: set backlight duty cycle after backlight enable for gen4
For reasons I can't claim to fully understand gen4 seems to require backlight duty cycle setting after the backlight has been enabled, or else black screen follows. I don't have documentation for the correct sequence on gen4 either. Confirmed on Dell Latitude D630 and MacBook4,1. This fixes a regression introduced by commit b35684b Author: Jani Nikula <jani.nikula@intel.com> Date: Thu Nov 14 12:13:41 2013 +0200 drm/i915: do full backlight setup at enable time Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=75791 Reported-and-tested-by: mcy@lm7.fr Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=79423 Reported-and-tested-by: Marc Milgram <mmilgram@redhat.com> Cc: Stable <stable@vger.kernel.org> # 3.14+ Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
1 parent 2b85886 commit 2e7eeeb

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎drivers/gpu/drm/i915/intel_panel.c‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -798,9 +798,6 @@ static void i965_enable_backlight(struct intel_connector *connector)
798798
ctl = freq << 16;
799799
I915_WRITE(BLC_PWM_CTL, ctl);
800800

801-
/* XXX: combine this into above write? */
802-
intel_panel_actually_set_backlight(connector, panel->backlight.level);
803-
804801
ctl2 = BLM_PIPE(pipe);
805802
if (panel->backlight.combination_mode)
806803
ctl2 |= BLM_COMBINATION_MODE;
@@ -809,6 +806,8 @@ static void i965_enable_backlight(struct intel_connector *connector)
809806
I915_WRITE(BLC_PWM_CTL2, ctl2);
810807
POSTING_READ(BLC_PWM_CTL2);
811808
I915_WRITE(BLC_PWM_CTL2, ctl2 | BLM_PWM_ENABLE);
809+
810+
intel_panel_actually_set_backlight(connector, panel->backlight.level);
812811
}
813812

814813
static void vlv_enable_backlight(struct intel_connector *connector)

0 commit comments

Comments
 (0)