drm/i915: export a CPT mode set verification function
authorJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 11 Oct 2011 17:43:02 +0000 (10:43 -0700)
committerKeith Packard <keithp@keithp.com>
Fri, 21 Oct 2011 06:21:56 +0000 (23:21 -0700)
commitd4270e57efe9e2536798c59e1ed2fd0a1e5cdfcf
tree7f274fbd8a757d08947c8633a79b9ad4c6f85cae
parentd64311ab4bd8d1c1e984ce3f0e772266dde95380
drm/i915: export a CPT mode set verification function

At the point where we check, we can't do much about the failure, but it
can aid debugging.  Note that the auto-train override bit will be reset
as part of normal mode setting with this patch if a pipe ever does get
stuck, but that's consistent with the workaround for CPT provided by the
hardware team.  This patch helped catch the fact that the pipe wasn't
running in the !composite sync FDI case on my IVB SDV, so has already
shown to be useful.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Tested-By: Eugeni Dodonov <eugeni.dodonov@intel.com>
Reviewed-By: Eugeni Dodonov <eugeni.dodonov@intel.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_dp.c
drivers/gpu/drm/i915/intel_drv.h