]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/fbc: Eliminate racy intel_fbc_is_active() usage
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 24 Nov 2021 11:36:33 +0000 (13:36 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 3 Dec 2021 10:49:14 +0000 (12:49 +0200)
commited91f023f755f4bada831e156500a8040b37a754
tree1a4d93fb58859f4be5601e4f93e22436a722f5d3
parentc2cb3b913ea4109a80105f838458f16d67b333ea
drm/i915/fbc: Eliminate racy intel_fbc_is_active() usage

The ilk fbc watermark computation uses intel_fbc_is_active() which
is racy since we don't know whether FBC will be enabled or not at
some point. So let's just assume it will be if both HAS_FBC()
and the modparam agree.

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