Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: aa9664ffe863 ("drm/i915/icl: Enable 2nd DBuf slice only when needed")
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Mahesh Kumar <mahesh1.kumar@intel.com>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180517132626.5885-1-mahesh1.kumar@intel.com

authored by

Mahesh Kumar and committed by
Paulo Zanoni
6ceb7277 61d5676b

-1
-1
drivers/gpu/drm/i915/intel_pm.c
··· 5150 5150 sizeof(dst->ddb.uv_plane[pipe])); 5151 5151 memcpy(dst->ddb.plane[pipe], src->ddb.plane[pipe], 5152 5152 sizeof(dst->ddb.plane[pipe])); 5153 - dst->ddb.enabled_slices = src->ddb.enabled_slices; 5154 5153 } 5155 5154 5156 5155 static void