drm/i915/bxt: Add HW state verification for DDI PHY and CDCLK
authorImre Deak <imre.deak@intel.com>
Mon, 4 Apr 2016 14:27:10 +0000 (17:27 +0300)
committerImre Deak <imre.deak@intel.com>
Fri, 15 Apr 2016 11:48:19 +0000 (14:48 +0300)
commitadc7f04bfda9cd0b2b4b84b5e8b72fd4c7b56d0a
treea7bd03920c9a195d6723b41e2d1656e9b95c72db
parentbd480061788fe2f657daba7e519c9175b7dba968
drm/i915/bxt: Add HW state verification for DDI PHY and CDCLK

I caught a few errors in our current PHY/CDCLK programming by sanity
checking the actual programmed state, so I thought it would be also
useful for the future. In addition to verifying the state after
programming it also verify it after exiting DC5, to make sure DMC
restored/kept intact everything related.

v2:
- Inlining __phy_reg_verify_state() doesn't make sense and also
  incorrect, so don't do it (PW/CI gcc)
v3:
- Rebase on latest -nightly

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: David Weinehall <david.weinehall@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1459780030-15781-1-git-send-email-imre.deak@intel.com
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_ddi.c
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_runtime_pm.c