]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Don't forget to reset blocks when testing lower wm levels
authorMatt Roper <matthew.d.roper@intel.com>
Wed, 12 Dec 2018 19:17:20 +0000 (11:17 -0800)
committerMatt Roper <matthew.d.roper@intel.com>
Wed, 12 Dec 2018 20:25:16 +0000 (12:25 -0800)
commit7abac5b3148c87f7c716289af10c6b43d6d95312
treebab345f1d3690f21fcb848c2c73cd4d643221816
parentf94190c96fb4c5ee53efa1103e430c33bd16dd12
drm/i915: Don't forget to reset blocks when testing lower wm levels

During DDB allocation, we try to distribute enough blocks for each plane
to hit the highest watermark level; if that fails, we retry each lower
level (which should require fewer blocks) until we find one that's
possible (or until the whole commit is rejected as impossible).  We need
to reset our running block count when trying each lower level, otherwise
all lower levels will fail as well.

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Fixes: 70a53cec0c ("drm/i915: Switch to level-based DDB allocation algorithm (v5)")
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181212191720.3706-1-matthew.d.roper@intel.com
drivers/gpu/drm/i915/intel_pm.c