]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
drm/i915/bxt: Force reprogramming a PHY with invalid HW state
authorImre Deak <imre.deak@intel.com>
Wed, 20 Apr 2016 17:46:06 +0000 (20:46 +0300)
committerImre Deak <imre.deak@intel.com>
Fri, 22 Apr 2016 13:32:59 +0000 (16:32 +0300)
commit47baf2a5332de6cfb21d1e7e0d2e36640362ff48
tree6f61fcc3a8548a3d1acd87f19135adb612abcbc8
parent01a01ef2eaf0eb90f4582f911e9fbce3f79d55e7
drm/i915/bxt: Force reprogramming a PHY with invalid HW state

It's possible that BIOS enables PHY0, but it programmes only the first
channel on it. Since we program the PHYs only during driver loading this
is an incorrect configuration from the driver's point of view, since we
may use both channels eventually. Detect this scenario and force
reprogramming the PHY in this case.

The actual scenario for me was that the lane optimization for the second
channel in PHY0 was not setup by BIOS and so a state verification
warning was triggered. Everything else was setup properly.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1461174366-16758-4-git-send-email-imre.deak@intel.com
drivers/gpu/drm/i915/intel_ddi.c