drm/i915/cnl: skip PW_DDI_F on certain skus
authorLucas De Marchi <lucas.demarchi@intel.com>
Wed, 14 Oct 2020 19:19:28 +0000 (12:19 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Thu, 15 Oct 2020 21:14:28 +0000 (14:14 -0700)
commit62277f33e9c16d34f07bc18b8146c4befa92cb69
tree60a05849fa21bda5480507e3ab968c0a3dbd0878
parent9ccd24e9b09164f5ddd9b5a1bea421d8edaa69e7
drm/i915/cnl: skip PW_DDI_F on certain skus

The skus guarded by IS_CNL_WITH_PORT_F() have port F and thus they need
those power wells. The others don't have those. Up to now we were
just overriding the number of power wells on !IS_CNL_WITH_PORT_F(),
relying on those power wells to be the last ones. Now that we have logic
in place to skip power wells by id, use it instead.

Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201014191937.1266226-2-lucas.demarchi@intel.com
drivers/gpu/drm/i915/display/intel_display_power.c
drivers/gpu/drm/i915/display/intel_display_power.h