OSDN Git Service

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)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Tue, 8 Mar 2022 06:35:04 +0000 (08:35 +0200)
commit117f5bb31c8cdb1e8f0b443f2a0ac761bf54694c
treed981bf8add5917eab4898ef5d6a822e0ac4efca3
parent4fe4ed07c815044755075eaad5fe1815436a060f
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>
(cherry picked from commit 6475e106821babc0dc478a9cb3fc3973739c43fb)
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/intel_pm.c