Skip to content

Commit c032cdd

Browse files
committed
thunderbolt: Do not create DisplayPort tunnels on adapters of the same router
Probably due to a firmware bug Dell TB16 dock announces that one of its DisplayPort adapters is actually DP IN. Now this is possible and used with some external GPUs but not likely in this case as we are dealing with a dock. Anyways the problem is that the driver tries to create a DisplayPort tunnel between adapters of the same router which then shows to user that there is no picture on the display (because there are no available DP OUT adapters on the dock anymore). Fix this by not creating DisplayPort tunnels between adapters that are on the same router. Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/10265 Fixes: 274baf6 ("thunderbolt: Add DP IN added last in the head of the list of DP resources") Cc: Gil Fine <gil.fine@linux.intel.com> Cc: stable@vger.kernel.org Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
1 parent 39cd87c commit c032cdd

File tree

1 file changed

+6
-0
lines changed
  • drivers/thunderbolt

1 file changed

+6
-0
lines changed

drivers/thunderbolt/tb.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1801,6 +1801,12 @@ static struct tb_port *tb_find_dp_out(struct tb *tb, struct tb_port *in)
18011801
continue;
18021802
}
18031803

1804+
/* Needs to be on different routers */
1805+
if (in->sw == port->sw) {
1806+
tb_port_dbg(port, "skipping DP OUT on same router\n");
1807+
continue;
1808+
}
1809+
18041810
tb_port_dbg(port, "DP OUT available\n");
18051811

18061812
/*

0 commit comments

Comments
 (0)