drm/i915: Don't zero out the Y plane's watermarks
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Sat, 27 Mar 2021 00:59:45 +0000 (02:59 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 8 Apr 2021 21:58:57 +0000 (00:58 +0300)
commitf99b805fb9413ff007ca0b6add871737664117dd
treea30acddee41a1ad0e9e1d3c795b2a2d92aaa4288
parent9e2eb6d5380e9dadcd2baecb51f238e5eba94bee
drm/i915: Don't zero out the Y plane's watermarks

Don't zero out the watermarks for the Y plane since we've already
computed them when computing the UV plane's watermarks (since the
UV plane always appears before ethe Y plane when iterating through
the planes).

This leads to allocating no DDB for the Y plane since .min_ddb_alloc
also gets zeroed. And that of course leads to underruns when scanning
out planar formats.

Cc: stable@vger.kernel.org
Cc: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
Fixes: dbf71381d733 ("drm/i915: Nuke intel_atomic_crtc_state_for_each_plane_state() from skl+ wm code")
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210327005945.4929-1-ville.syrjala@linux.intel.com
Reviewed-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
drivers/gpu/drm/i915/intel_pm.c