]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/i915: Enhance cdclk sanitization
authorMatt Roper <matthew.d.roper@intel.com>
Tue, 10 Sep 2019 15:42:51 +0000 (08:42 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Wed, 11 Sep 2019 03:37:12 +0000 (20:37 -0700)
commit8f9f717d6c44649353e153cfcd32ad99618956a9
tree6149cd71ec4995464414f690c56410d54e4f604f
parentd2f429ebb97725e9bec597aad2f0d2c7d203842f
drm/i915: Enhance cdclk sanitization

When reading out the BIOS-programmed cdclk state, let's make sure that
the cdclk value is on the valid list for the platform, ensure that the
VCO matches the cdclk, and ensure that the CD2X divider was set
properly.

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190910154252.30503-8-matthew.d.roper@intel.com
drivers/gpu/drm/i915/display/intel_cdclk.c