drm/i915/fbc: Introduce intel_fbc_sanitize()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 15 Mar 2022 14:00:00 +0000 (16:00 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 13 Apr 2022 14:19:38 +0000 (17:19 +0300)
commitb65cbb983f2a0a21f0fcf96eaa5a9c20966f8bd8
tree9a98c7e7db96fb16ecf068c19cf1fe948eaeb48d
parent29118f126a25d9a1341359d84be530b22b5f9df4
drm/i915/fbc: Introduce intel_fbc_sanitize()

Let's make sure FBC is always disabled when we start to take
over the hardware state.

I suspect this should never really happen, since the only time
when we really should be taking over with the display already
active is when the previous state was progammed by the BIOS,
which likely shouldn't use FBC. This could be driver init,
or S4 resume when the boot kernel doesn't load i915. But I
suppose no harm in keeping this code around for exra safety
since it's quite trivial.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220315140001.1172-7-ville.syrjala@linux.intel.com
Reviewed-by: Mika Kahola <mika.kahola@intel.com>
drivers/gpu/drm/i915/display/intel_display.c
drivers/gpu/drm/i915/display/intel_fbc.c
drivers/gpu/drm/i915/display/intel_fbc.h