Skip to content

Commit 58b4af9

Browse files
committed
thunderbolt: Increase DPRX capabilities read timeout
Some graphics drivers such as i915 support runtime power management and if there is nothing connected at the moment they will runtime suspend to save power. At least i915 is polling for new connections every 10 seconds if the hardware does support sending PME. To allow i915 and other graphics from detect the just established DisplayPort tunnel allow the DPRX capabilities read to take up to 12 seconds. Signed-off-by: Mika Westerberg <[email protected]>
1 parent c55017a commit 58b4af9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

drivers/thunderbolt/tunnel.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1186,9 +1186,12 @@ static int tb_dp_consumed_bandwidth(struct tb_tunnel *tunnel, int *consumed_up,
11861186
* return that bandwidth (it may be smaller than the
11871187
* reduced one). According to VESA spec, the DPRX
11881188
* negotiation shall compete in 5 seconds after tunnel
1189-
* established. We give it 100ms extra just in case.
1189+
* established. Since at least i915 can runtime suspend
1190+
* if there is nothing connected, and that it polls any
1191+
* new connections every 10 seconds, we use 12 seconds
1192+
* here.
11901193
*/
1191-
ret = tb_dp_wait_dprx(tunnel, 5100);
1194+
ret = tb_dp_wait_dprx(tunnel, 12000);
11921195
if (ret)
11931196
return ret;
11941197
ret = tb_dp_read_cap(tunnel, DP_COMMON_CAP, &rate, &lanes);

0 commit comments

Comments
 (0)