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)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 7 Feb 2022 09:09:23 +0000 (11:09 +0200)
commitb3dcc6dc0f32612d04839c2fb32e94d0ebf92c98
tree0e64b10d4fcfa2359efed514d2aa02b7bcb6ebc8
parenteef173954432fe0612acb63421a95deb41155cdc
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>
drivers/gpu/drm/i915/intel_pm.c