drm/i915/bxt: Fix eDP panel fitting (v2)
authorMatt Roper <[email protected]>
Wed, 4 Nov 2015 17:05:27 +0000 (09:05 -0800)
committerMatt Roper <[email protected]>
Wed, 4 Nov 2015 17:52:39 +0000 (09:52 -0800)
commitb5667627963b51baa06868a550d2bc340e3d18a9
tree0a554ad81a48025ea1d2ac66b028569773cad117
parentbf6189c6f062b5cd6ca0d46754e4c3064643f48c
drm/i915/bxt: Fix eDP panel fitting (v2)

BXT CRTC scaling uses the same gen9 codepaths as SKL; these codepaths
store panel fitter information in pipe_config->pch_pfit.  However since
HAS_PCH_SPLIT() is false for BXT we never actually wind up filling in
this structure (we wind up filling in pipe_config->gmch_pfit instead,
which is ignored when we go to program the hardware).  Make sure we
always take the PCH code path on gen9+ platforms.

v2: Use HAS_GMCH_DISPLAY() to more cleanly describe the platforms that
    actually want to use GMCH-style panel fitting.  (Ville)

Cc: Imre Deak <[email protected]>
Cc: Chandra Konduru <[email protected]>
Signed-off-by: Matt Roper <[email protected]>
Reviewed-by: Ville Syrjälä <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/i915/intel_dp.c