]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Extract skl_check_wm_level() and skl_check_nv12_wm_level()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 5 Mar 2021 15:36:09 +0000 (17:36 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 12 Mar 2021 16:19:07 +0000 (18:19 +0200)
commita5941b475028676165525b1bdf259a9088ea2e96
tree9e5fd426b768bcd6eb214c2ac789d6a2adb901d7
parent18ffd6de8c50fdbb925e421f70ea0d1a60f81528
drm/i915: Extract skl_check_wm_level() and skl_check_nv12_wm_level()

Make the code more typo proof by extracting small helpers that
do the "do we have enough DDB for the WM level?" checks in
a consistent manner.

Cc: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210305153610.12177-6-ville.syrjala@linux.intel.com
Reviewed-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
drivers/gpu/drm/i915/intel_pm.c