]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit679c0f6b74c94953c4550ec7fb4e4476f9d9d3c7
tree294cd6f9bcd0082edc271d089f2656fbddcb5ada
parent92329638bcc6c8945428a8726fbdfed93d5a2318
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: 5a42189eaadf ("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