Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 197af5f2 authored by Mahesh Kumar's avatar Mahesh Kumar Committed by Jani Nikula
Browse files

drm/i915/icl: Don't update enabled dbuf slices struct until updated in hw



Do not update number of enabled dbuf slices in dev_priv struct until we
actually enable/disable dbuf slice in hw. This is leading to never
updating dbuf slices and resulting in DBuf slice mismatch warning.

Fixes: aa9664ff ("drm/i915/icl: Enable 2nd DBuf slice only when needed")
Reviewed-by: default avatarPaulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: default avatarMahesh Kumar <mahesh1.kumar@intel.com>
Signed-off-by: default avatarPaulo Zanoni <paulo.r.zanoni@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180517132626.5885-1-mahesh1.kumar@intel.com


(cherry picked from commit 6ceb7277)
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
parent 2f08b23d
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -5150,7 +5150,6 @@ skl_copy_ddb_for_pipe(struct skl_ddb_values *dst,
	       sizeof(dst->ddb.uv_plane[pipe]));
	memcpy(dst->ddb.plane[pipe], src->ddb.plane[pipe],
	       sizeof(dst->ddb.plane[pipe]));
	dst->ddb.enabled_slices = src->ddb.enabled_slices;
}

static void