drm/i915: apply WaEnableVGAAccessThroughIOPort as needed
authorEmil Velikov <emil.velikov@collabora.com>
Fri, 4 Jun 2021 15:49:05 +0000 (16:49 +0100)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 10 Jun 2021 14:31:51 +0000 (17:31 +0300)
commita3af0140663dc335e5c18277a61bb99bfcb60694
treec8bf71a96783f470be9451e32a98e409cec1ec35
parent0d6695b112762aa7aad28c46e65561389b6f50d6
drm/i915: apply WaEnableVGAAccessThroughIOPort as needed

Currently as the workaround is applied the screen flickers. As a result
we do not achieve seamless boot experience.

Avoiding the issue in the common use-case might be hard, although we can
resolve it for dual GPU setups - when the "other" GPU is primary and/or
outputs are connected to it.

With this I was able to get seamless experience on my Intel/Nvidia box,
running systemd-boot and sddm/Xorg. Note that the i915 driver is within
initrd while the Nvidia one is not.

Without this patch, the splash presented by systemd-boot (UEFI BGRT) is
torn down as the code-path kicks in, leaving the monitor blank until the
login manager starts.

Same issue were reported with plymouth/grub, although personally I
wasn't able to get them to behave on my setup.

Suggested-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210604154905.660142-1-emil.l.velikov@gmail.com
drivers/gpu/drm/i915/display/intel_vga.c