OSDN Git Service

drm/i915: transition WMs ask for Selected Result Blocks
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Thu, 4 Oct 2018 23:15:58 +0000 (16:15 -0700)
committerPaulo Zanoni <paulo.r.zanoni@intel.com>
Thu, 11 Oct 2018 21:23:04 +0000 (14:23 -0700)
commitcbacc79db6ac932f7ac86ff01086302bfb79e5d0
tree0d4e0f0c4e2ac82a63f08574199d72d04c068d1c
parent077b5820af74507a1d748f215d6e0753616dfb3d
drm/i915: transition WMs ask for Selected Result Blocks

The transition watermarks ask for Selected Result Blocks (the real
value), not Result Blocks (the integer value). Given how ceilings are
applied in both the non-transition and the transition watermarks
calculations, we can get away with assuming that Selected Result
Blocks is actually Result Blocks minus 1 without any rounding errors.

Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181004231600.14101-5-paulo.r.zanoni@intel.com
drivers/gpu/drm/i915/intel_pm.c