]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
drm/i915/cnl: Fix DP max voltage
authorRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 31 Aug 2017 14:53:56 +0000 (07:53 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 31 Aug 2017 16:31:58 +0000 (09:31 -0700)
commit5fcf34b1c58ea3e341a24c18759b000c38529ed5
tree7b29445a25d967723d84f50d63c819ef4629c8fe
parentbf50355645790a385b9ff04f33dea6b316c0dc31
drm/i915/cnl: Fix DP max voltage

On clock recovery this function is called to find out
the max voltage swing level that we could go.

However gen 9 functions use the old buffer translation tables
to figure that out. That table is not valid for CNL
causing an invalid number of entries and an invalid selection
on the max voltage swing level.

v2: Let's use same approach that previous platforms.
v3: Actually use n_entries and avoid duplicated -1.
v4: Avoid cnl_max_level and use current style.

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Clint Taylor <clinton.a.taylor@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20170831145356.15932-1-rodrigo.vivi@intel.com
drivers/gpu/drm/i915/intel_ddi.c