drm/i915: Extract i915gm_irq_cstate_wa_{disable,enable}()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 1 Oct 2024 19:58:02 +0000 (22:58 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 3 Oct 2024 11:40:30 +0000 (14:40 +0300)
commitf45cc1d373aeeabaaed0cef6c938bfcbbbd9962f
treef3b158e2277f4e0e3e575f41ffd670f730a72e27
parent8923422ba48f548f046d8d3c9f0244086c794214
drm/i915: Extract i915gm_irq_cstate_wa_{disable,enable}()

Extract the i915gm/i945gm vblank irq C-state workaround to
separate functions. We'll need to reuse these in order to
guarantee timely CRC interrupt delivery as well.

The irq.vblank_enabled count is currently protected by the
drm vblank locks, so let's assert that the innermost of those
is held, in anticipation of other callers.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241001195803.3371-4-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_display_irq.c