]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Fix > vs >= mismatch in watermark/ddb calculations
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 21 Dec 2018 17:14:31 +0000 (19:14 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 30 Jan 2019 14:10:47 +0000 (16:10 +0200)
commit9cdfc65e485de549d253de384e49173ae47bcecb
tree93f10f2044b68701dbf8e9da0cbdbe7e8ad5a38e
parent19473276040b3e1716442eea97b2dd0051265eb2
drm/i915: Fix > vs >= mismatch in watermark/ddb calculations

Bspec says we have to reject the watermark if it's >= the ddb
allocation. Fix the code to reject the == case as it should.
For transition watermarks we can just use >=, for the rest
we'll do +1 when calculating the minimum ddb allocation size.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181221171436.8218-5-ville.syrjala@linux.intel.com
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
drivers/gpu/drm/i915/intel_pm.c