OSDN Git Service

drm/i915/display: remove strap checks from gen 9
authorLucas De Marchi <lucas.demarchi@intel.com>
Fri, 30 Apr 2021 22:38:07 +0000 (15:38 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Mon, 10 May 2021 14:06:22 +0000 (07:06 -0700)
commit097d9e902068426e335ba7c0115f2c8ae7f9d08e
tree406f4f0193d31b0d657c69496cd68563960402c0
parentba9c5bf76734e70648bf61d81326b9c44abba643
drm/i915/display: remove strap checks from gen 9

Direction on gen9+ was to stop reading the straps and only rely on the
VBT for marking the port presence. This happened while dealing with
WaIgnoreDDIAStrap and instead of using it as a WA, it should now be the
normal flow. See commit 885d3e5b6f08 ("drm/i915/display: fix comment on
skl straps").

For gen 10 it's hard to say if this will work or not since I can't test
it, so leave it with the same behavior as before.

For PCH_TGP we should still rely on the VBT to make ports E and F not
available.

v2 (Ville):
  - use display ver >= 9 to make it consistent with the rest of the
    driver instead of checking for == 9
  - also handle CNL and only initialize port F if it is
    IS_CNL_WITH_PORT_F. Eventually CNL may be removed, but while it
    isn't let's keep it consistent everywhere

Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Anusha Srivatsa <anusha.srivatsa@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210430223808.1078010-4-lucas.demarchi@intel.com
drivers/gpu/drm/i915/display/intel_display.c