]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Fix WARN_ON condition for cursor plane ddb allocation
authorVandita Kulkarni <vandita.kulkarni@intel.com>
Mon, 16 Dec 2019 08:06:19 +0000 (13:36 +0530)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 16 Dec 2019 21:17:57 +0000 (23:17 +0200)
commitd51019f701911a3b50832384fef4a1eba7837713
tree98b39023eab49cbddb22c5049a8e40cb95c51fbb
parent1777cc9b8cd770b3f235b3d9ea8ab5cccd79101b
drm/i915: Fix WARN_ON condition for cursor plane ddb allocation

In some cases like latency[level]==0, wm[level].res_lines>31,
min_ddb_alloc can be U16_MAX, exclude it from the WARN_ON.

v2: Specify the cases in which we hit U16_MAX, indentation (Ville)

Fixes: a524dd820af6 ("drm/i915: Make sure cursor has enough ddb for the selected wm level")
Suggested-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Vandita Kulkarni <vandita.kulkarni@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191216080619.10945-1-vandita.kulkarni@intel.com
drivers/gpu/drm/i915/intel_pm.c