drm/i915: Don't skip ddb allocation if data_rate==0
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 14 Feb 2022 10:55:29 +0000 (12:55 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 3 Mar 2022 16:16:23 +0000 (18:16 +0200)
commit6475e106821babc0dc478a9cb3fc3973739c43fb
tree294cd6f9bcd0082edc271d089f2656fbddcb5ada
parent98bf4f47a86c7b4edf85ebaa3016615c0bb71fb5
drm/i915: Don't skip ddb allocation if data_rate==0

data_rate==0 no longer means a plane is disabled, it could
also mean we want to use the minimum ddb allocation for it.
Hence we can't bail out early during ddb allocation or
else we'll simply forget to allocate any ddb for such planes.

Cc: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
Fixes: 6a4d8cc6bbbf ("drm/i915: Don't allocate extra ddb during async flip for DG2")
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220214105532.13049-2-ville.syrjala@linux.intel.com
Reviewed-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
drivers/gpu/drm/i915/intel_pm.c