]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2303d8ea80c94c9451780bd97d30d09f12e37c58
tree406f4f0193d31b0d657c69496cd68563960402c0
parent9c38e564dcd5c04c85dca60816190d78bc5bdcbf
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 c59851376a95 ("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