]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: access the PP_ON_DELAYS/PP_OFF_DELAYS regs only pre GEN5
authorImre Deak <imre.deak@intel.com>
Thu, 3 Sep 2015 13:24:36 +0000 (16:24 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 4 Sep 2015 08:18:51 +0000 (10:18 +0200)
commit0885fd6cf876adab19d40c0a2986c0e2d05380cb
tree62da0d080f38fb9418206107d49b4f1a3894deb3
parent808b5870fd4fe3b8a30e5b7f332a6e0a5ec7b42b
drm/i915: access the PP_ON_DELAYS/PP_OFF_DELAYS regs only pre GEN5

These registers exist only before GEN5, so currently we may access
undefined registers on VLV/CHV and BXT. Apply the workaround only pre
GEN5.

Since the workaround is relevant only when LVDS is present, for clarity
apply it only if this is the case.

This triggered an unclaimed register access warning on BXT.

v2: (Ville)
- move the workaround to the LVDS init code
- print a debug note about the workaround

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_dma.c
drivers/gpu/drm/i915/intel_bios.c
drivers/gpu/drm/i915/intel_bios.h
drivers/gpu/drm/i915/intel_lvds.c