workaround link training problems on s3 resume with alder lake
authorjsg <jsg@openbsd.org>
Tue, 5 Jul 2022 02:47:05 +0000 (02:47 +0000)
committerjsg <jsg@openbsd.org>
Tue, 5 Jul 2022 02:47:05 +0000 (02:47 +0000)
commit39642ac141eaad18e76ec63a7959fae493d2e04a
treef55d500a588089a40a98229fb6229cb47c955100
parentaf68d8b3809452a5df2d0964f04790f1e000f3a3
workaround link training problems on s3 resume with alder lake

The firmware from multiple lenovo alder lake machines claim there are
two eDP ports in the video bios table (VBT).

Which results in link training problems on resume from S3 with the
screen continually turning on and off.  Forcing port B to not be
recognised as eDP works around this.  I believe port A is the normal eDP
port.

https://gitlab.freedesktop.org/drm/intel/-/issues/5531
https://gitlab.freedesktop.org/drm/intel/-/issues/4950
sys/dev/pci/drm/i915/display/intel_bios.c