]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Check SAGV wm min_ddb_alloc rather than plane_res_b
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 5 Mar 2021 15:36:07 +0000 (17:36 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 12 Mar 2021 16:18:40 +0000 (18:18 +0200)
commit4bd080877ebd3d4e0dc1a898b62d707097bb1291
treeba5284165de5ba754f03ed7b16aabcc8d56f2273
parentf3ef6a98c425fe2afcf07ce597def0155a5d5a2f
drm/i915: Check SAGV wm min_ddb_alloc rather than plane_res_b

For non-transition watermarks we are supposed to check min_ddb_alloc
rather than plane_res_b when determining if we have enough DDB space
for it. A bit too much copy pasta made me check the wrong thing.

Cc: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
Fixes: 740697263d25 ("drm/i915: Zero out SAGV wm when we don't have enough DDB for it")
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210305153610.12177-4-ville.syrjala@linux.intel.com
Reviewed-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
drivers/gpu/drm/i915/intel_pm.c