Pull up following revision(s) (requested by jmcneill in ticket #177):

sys/external/bsd/drm2/dist/drm/i915/intel_panel.c: revision 1.6
Merge 2e7eeeb59a (diff-528092536eaeb3c5f7ff6dfeed53786d)

> 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.
> Without this patch, the screen on my T61 (i965) would be blank at boot
> unless I booted with the AC adapter unplugged.
This commit is contained in:
snj 2014-11-05 17:52:10 +00:00
parent 4c097f38b7
commit 31afa6341e
1 changed files with 2 additions and 3 deletions

View File

@ -730,9 +730,6 @@ static void i965_enable_backlight(struct intel_connector *connector)
ctl = freq << 16;
I915_WRITE(BLC_PWM_CTL, ctl);
/* XXX: combine this into above write? */
intel_panel_actually_set_backlight(connector, panel->backlight.level);
ctl2 = BLM_PIPE(pipe);
if (panel->backlight.combination_mode)
ctl2 |= BLM_COMBINATION_MODE;
@ -741,6 +738,8 @@ static void i965_enable_backlight(struct intel_connector *connector)
I915_WRITE(BLC_PWM_CTL2, ctl2);
POSTING_READ(BLC_PWM_CTL2);
I915_WRITE(BLC_PWM_CTL2, ctl2 | BLM_PWM_ENABLE);
intel_panel_actually_set_backlight(connector, panel->backlight.level);
}
static void vlv_enable_backlight(struct intel_connector *connector)