]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Don't use DDB allocation when choosing gen9 watermark method
authorMatt Roper <matthew.d.roper@intel.com>
Tue, 11 Dec 2018 17:31:06 +0000 (09:31 -0800)
committerMatt Roper <matthew.d.roper@intel.com>
Tue, 11 Dec 2018 23:57:08 +0000 (15:57 -0800)
commitdb60fb3e793af2697f9a92e96baafc737667eb0e
tree3aea965c4aab2066b98848e0461eb0a7c81787dd
parent5decaa1565ab598dc246f64f6f32d95ea62711d8
drm/i915: Don't use DDB allocation when choosing gen9 watermark method

The bspec gives an if/else chain for choosing whether to use "method 1"
or "method 2" for calculating the watermark "Selected Result Blocks"
value for a plane.  One of the branches of the if chain is:

        "Else If ('plane buffer allocation' is known and (plane buffer
        allocation / plane blocks per line) >=1)"

Since our driver currently calculates DDB allocations first and the
actual watermark values second, the plane buffer allocation is known at
this point in our code and we include this test in our driver's logic.
However we plan to soon move to a "watermarks first, ddb allocation
second" sequence where we won't know the DDB allocation at this point.
Let's drop this arm of the if/else statement (effectively considering
the DDB allocation unknown) as an independent patch so that any
regressions can be more accurately bisected to either the different
watermark value (in this patch) or the new DDB allocation (in the next
patch).

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/20181211173107.11068-1-matthew.d.roper@intel.com
drivers/gpu/drm/i915/intel_pm.c