drm/i915/display: Apply workarounds during display init
authorMatt Roper <matthew.d.roper@intel.com>
Wed, 6 Sep 2023 23:47:37 +0000 (16:47 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Fri, 8 Sep 2023 22:45:46 +0000 (15:45 -0700)
commitda1bc5cc3b55af2d785c6dd02c3b461f89f51adf
tree61bd95e2958bb49b780533322e85df9218ba1b11
parent53dd7b1fb4e54d5f029824636b6d17504a4fe80c
drm/i915/display: Apply workarounds during display init

Rather than applying display workarounds as part of
intel_clock_gating_init() (which in turn is confusingly called from
i915_gem_init during device probe), handle them at the point we're
actually initializing the display hardware.  This will also ensure that
these workarounds are properly applied during display initialization on
the Xe driver, which re-uses i915's display code, but does not call
i915's gem init.

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