drm/i915/fbc: Make FBC check stolen at use time
authorJouni Högander <jouni.hogander@intel.com>
Wed, 14 Jun 2023 05:17:30 +0000 (08:17 +0300)
committerJouni Högander <jouni.hogander@intel.com>
Mon, 7 Aug 2023 05:26:46 +0000 (08:26 +0300)
commita6989c86090e50f03b6b1465053ed6796847bd1d
tree9a11f734af1dc8b4f9e72c5343cd956f25b98869
parent1d47074cb68cf2423b6215b82e43fedaa0ce25d0
drm/i915/fbc: Make FBC check stolen at use time

As a preparation for Xe change stolen memory initialization check to be
done in use-time instead of during initialization.

In case of xe, stolen memory is initialised much later so it can't be
checked during init. There is no specific reason to check this in init for
i915 either -> perform the check in use-time. This also gives us benefit
fbc_no_reason reporting missing initialization being reason for disabled
fbc.

Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Jeevan B <jeevan.b@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230614051731.745821-3-jouni.hogander@intel.com
drivers/gpu/drm/i915/display/intel_fbc.c