]> 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)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Tue, 17 Dec 2019 10:23:40 +0000 (12:23 +0200)
commit05dbd8c6e443deba4c568ffa310f26ab686c9c3a
tree456b8d9826c82e53c0a6040e1b064f5dcbbba0b2
parent47ed318dea0127ec099b51e6d92ff33d2a02f471
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: ef8e9a10b68a ("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
(cherry picked from commit 4ba487019d1a196051feefab57f4a393815733b4)
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/intel_pm.c