drm/i915/cnp: Wa 1181: Fix Backlight issue
authorRodrigo Vivi <[email protected]>
Thu, 31 Aug 2017 04:52:23 +0000 (21:52 -0700)
committerRodrigo Vivi <[email protected]>
Tue, 5 Sep 2017 19:14:50 +0000 (12:14 -0700)
commit0a46ddd57c9ef9fb5376d4bff65d07e0aea30f35
tree4c905aad892a322597dbf7041321637bedf15e9c
parent908a610557f4d8b46a0f82c01e31b30f5c998580
drm/i915/cnp: Wa 1181: Fix Backlight issue

This workaround fixes a CNL PCH bug when changing
backlight from a lower frequency to a higher frequency.

During random reboot cycles, display backlight seems to
be off/ dim for 2-3 mins.

The only functional change on this patch is to
set bit 13 of 0xC2020 for CNL PCH.

The rest of patch is organizing identation around
those bits definitions and re-organizing CFL workarounds.

v2: Only add the bit that matters without touching others
    around (Jani).
    Rebase on top of clock gating functions rename.

Cc: Jani Nikula <[email protected]>
Cc: Arthur J Runyan <[email protected]>
Cc: Dhinakaran Pandiyan <[email protected]>
Signed-off-by: Rodrigo Vivi <[email protected]>
Reviewed-by: Dhinakaran Pandiyan <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_pm.c