]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/skl: While sanitizing cdclock check the SWF18 as well
authorShobhit Kumar <shobhit.kumar@intel.com>
Thu, 5 Nov 2015 12:35:32 +0000 (18:05 +0530)
committerJani Nikula <jani.nikula@intel.com>
Thu, 5 Nov 2015 13:02:58 +0000 (15:02 +0200)
commitea7f16e54e0ea08ab1e5d28fb42b3686453bea1b
tree4da27538fff17740cc5abdfe9659be0f800b77d0
parent9514b06a6c77674f53eca4ba3e4ca9eb4468157b
drm/i915/skl: While sanitizing cdclock check the SWF18 as well

SWF18 is set if the display has been initialized by the pre-os. It also
gives what configuration is enabled on which pipe. In skl_sanitize_cdclk,
the DPLL sanity check can pass even if GOP/VBIOS is not loaded as BIOS
enables DPLL for integrated audio codec related programming.
So fisrt check if SWF18 is set and then follow through with other DPLL
and CDCLK verification. If not set then for sure we need to sanitize the
cdclock.

v2: Update the commit message for clarity (Siva)
v3: Correct the mask to check for bits[23:0] instead of only bits[16:0].
    Had missed checking for PIPE C altogether. Remaining are reserved (Siva)
v4: Use ILK_SWF macro for SWF register definitions. Taken from Ville's patch
    http://lists.freedesktop.org/archives/intel-gfx/2015-November/079480.html

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Shobhit Kumar <shobhit.kumar@intel.com>
Reviewed-by: Sivakumar Thulasimani <sivakumar.thulasimani@intel.com>
Acked-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1446726932-14078-1-git-send-email-shobhit.kumar@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_display.c