]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit99cd7f4d12b5983ea59194be811cbb2e35fd97f9
tree9a98c7e7db96fb16ecf068c19cf1fe948eaeb48d
parent19c350f38fd3cf067878804833f1b69d67f36450
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