drm/i915/icl: Don't update enabled dbuf slices struct until updated in hw
authorMahesh Kumar <[email protected]>
Thu, 17 May 2018 13:26:26 +0000 (18:56 +0530)
committerJani Nikula <[email protected]>
Thu, 7 Jun 2018 08:39:15 +0000 (11:39 +0300)
commit197af5f2131101f9a6118b238901cb1988f5d7f9
tree39ff12cd1c9f7ba3f7552d5865b214119ba1cbea
parent2f08b23d70324bb0f592c71bd36cdc1d2f12face
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 <[email protected]>
Signed-off-by: Mahesh Kumar <[email protected]>
Signed-off-by: Paulo Zanoni <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
(cherry picked from commit 6ceb7277173597eeed8d635e08db51e35235ab21)
Signed-off-by: Jani Nikula <[email protected]>
drivers/gpu/drm/i915/intel_pm.c