Skip to content

drm/i915: Re: clear up backlight inversion confusion on gen4

Carsten Emde intel-gfx 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4drm/i915: clear up backlight inversion confusion on gen4drivers/gpu/drm/i915/i915_reg.h drivers/gpu/drm/i915/intel_display.c drivers/gpu/drm/i915/intel_panel.c+8 -60 replies
2/4drm/i915: completely revert the invert brightness quirkdrivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/intel_display.c+0 -110 replies
3/4drm/i915: add quirk to indicate that an alt bit is used for brightness inversiondrivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/i915_reg.h drivers/gpu/drm/i915/intel_display.c +1 more+22 -218 replies
4/4drm/i915: assign the brightness inversion quirk to Acer Aspire 5734Zdrivers/gpu/drm/i915/intel_display.c+6 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] drm/i915: Re: clear up backlight inversion confusion on gen4
Quoted 5 lines · Carsten Emde
Quoted 4 lines · Daniel Vetter
Quoted 1 line · Carsten Emde

On 04/23/2012 05:22 PM, Daniel Vetter wrote:

Ok, so the polarity bit does work as advertised. But I still don't understand how your machine works,

Let's go ahead and summarize what we have up to now.

1. With KMS enabled, the backlight panel of the Acer Aspire 5734Z remains dark.

2. Further evaluation showed that the brightness is inverted on this machine, i.e. while setting the Legacy Backlight Brightness (LBB) register to 0x0 normally causes the backlight to be turned off, and 0xFF causes the backlight to be set to 100% intensity, the Acer Aspire 5734Z turns the backlight off at 0xFF and sets it to maximum intensity at 0.

3. In a first step, a quirk was introduced to cope with this particular oddity.

4. Daniel Vetter found out there is a bit in the 2nd backlight control register (BLC_PWM_CTL2) that indicates panel backlight brightness is inverted.

5. On the Acer Aspire 5734Z, however, this bit is not set.

6. Chris Wilson found out that Daniel's bit #28 sometimes could be bit #29.

7. On the Aspire 5734Z, bit #29 is set.

As a conclusion, I have prepared a patch series that
- uses Danieĺ's patch to invert brightness, if required,
- reverts the quirk to invert backlight brightness,
- introduces a new quirk to indicate bit #29 instead of #28 is used,
- marks the Acer Aspire 5734Z to use the quirked bit.

With these patches applied, the Acer Aspire 5734Z works.

-Carsten.

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx