drm/i915: Skip CHV PHY asserts until PHY has been fully reset
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 8 Sep 2015 15:05:45 +0000 (18:05 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 6 Oct 2015 08:29:40 +0000 (10:29 +0200)
commit3be60de9e9dc92c852c196cf4b62e287fa53963c
tree8de3cd23a7d53e371fce370c42792d3d9da9d121
parent9571b190cf474ae02a7e018a21d14052d750070f
drm/i915: Skip CHV PHY asserts until PHY has been fully reset

The BIOS can leave the CHV display PHY in some odd state where
some of the LDOs/lanes won't power down fully when unused. This
will trigger a host of asserts that were added in:
30142273a3e83936fd7b45aa5339311a9295ca51 drm/i915: Add CHV PHY LDO power sanity checks
6669e39f95b5530ca8cb9137703ceb5e83e5d648 drm/i915: Add some CHV DPIO lane power state asserts

To avoid that, skip the asserts until the PHY power well has been
disabled at least once. That will fully reset the PHY, and once
brought back up, the dynamic power down features will work correctly.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Deepak S<deepak.s@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_runtime_pm.c