drm/i915: Populate pipe dbuf slices more accurately during readout
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 4 Feb 2022 14:18:17 +0000 (16:18 +0200)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Mon, 7 Feb 2022 12:56:49 +0000 (12:56 +0000)
commit85bb289215cf37e05e9581b39b114db1293f9ecd
treefbe6f7dd5915415530bb91767b1cbed70919ba6a
parent8fd5a26e43859547790a7995494c952b708ab3b5
drm/i915: Populate pipe dbuf slices more accurately during readout

During readout we cannot assume the planes are actually using the
slices they are supposed to use. The BIOS may have misprogrammed
things and put the planes onto the wrong dbuf slices. So let's
do the readout more carefully to make sure we really know which
dbuf slices are actually in use by the pipe at the time.

Cc: <stable@vger.kernel.org> # v5.14+
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220204141818.1900-2-ville.syrjala@linux.intel.com
Reviewed-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
(cherry picked from commit b3dcc6dc0f32612d04839c2fb32e94d0ebf92c98)
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
drivers/gpu/drm/i915/intel_pm.c