aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_pm.c
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2019-03-12 22:58:36 +0200
committerVille Syrjälä <ville.syrjala@linux.intel.com>2019-03-20 17:01:56 +0200
commit3cf963cfe3a9fc83bc235b1892858164b1b83306 (patch)
treec641b391070978ecafe55bb4d89699fd73c2e4c7 /drivers/gpu/drm/i915/intel_pm.c
parentdrm/i915: Use HPLLVCO_MOBILE for all PNVs (diff)
downloadlinux-dev-3cf963cfe3a9fc83bc235b1892858164b1b83306.tar.xz
linux-dev-3cf963cfe3a9fc83bc235b1892858164b1b83306.zip
drm/i915: Accept alloc_size == blocks
If the minimum required ddb space for all the planes equals the total ddb space available we are allowed to use the relevant watermark level. Cc: Neel Desai <neel.desai@intel.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20190312205844.6339-2-ville.syrjala@linux.intel.com Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_pm.c')
-rw-r--r--drivers/gpu/drm/i915/intel_pm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
index d73b13ca57a0..07351ceb567b 100644
--- a/drivers/gpu/drm/i915/intel_pm.c
+++ b/drivers/gpu/drm/i915/intel_pm.c
@@ -4378,7 +4378,7 @@ skl_allocate_pipe_ddb(struct intel_crtc_state *cstate,
blocks += wm->uv_wm[level].min_ddb_alloc;
}
- if (blocks < alloc_size) {
+ if (blocks <= alloc_size) {
alloc_size -= blocks;
break;
}