]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Ensure no conflicts with BIOS when updating Dbuf
authorStanislav Lisovskiy <stanislav.lisovskiy@intel.com>
Thu, 13 Feb 2020 14:04:10 +0000 (16:04 +0200)
committerJani Nikula <jani.nikula@intel.com>
Sat, 15 Feb 2020 17:19:38 +0000 (19:19 +0200)
commita6a32f6626afe311b7e9d2b05a491f30373afb69
treeba86f3b6d6243fa7ac373f1b3fc23dcdf3ca1f52
parentcc032165f748920a9c65adbfd48b0ff12901bdbf
drm/i915: Ensure no conflicts with BIOS when updating Dbuf

TGL BIOS seems to enable both DBuf slices ocasionally, depending
how many displays are connected, while i915 according to BSpec
was powering on S1 DBuf slice, until a modeset was done.

This was causing a brief flash during the boot as we were
disabling slice, previously used by BIOS with that.

To prevent this, now we are ensuring tht we are enabling
_at least_ one slice, but if there are more, let's not
power them off.

Fixes: 91c6fbd51328 ("drm/i915: Correctly map DBUF slices to pipes")
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200213140412.32697-2-stanislav.lisovskiy@intel.com
drivers/gpu/drm/i915/display/intel_display_power.c