]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
thunderbolt: Change bandwidth reservations to comply USB4 v2
authorGil Fine <gil.fine@linux.intel.com>
Tue, 1 Oct 2024 17:31:03 +0000 (17:31 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2024 14:30:01 +0000 (16:30 +0200)
commit5ac89bb0062e960e0be3d0d7cbf56dca3fd48bab
tree2b9bae6292a38cf02fa830bf452c132b507c92f8
parent7b85d751081be8d3c3b8b5b2c12ce7eac3a06e04
thunderbolt: Change bandwidth reservations to comply USB4 v2

[ Upstream commit 582e70b0d3a412d15389a3c9c07a44791b311715 ]

USB4 v2 Connection Manager guide (section 6.1.2.3) suggests to reserve
bandwidth in a sligthly different manner. It suggests to keep minimum of
1500 Mb/s for each path that carry a bulk traffic. Here we change the
bandwidth reservations to comply to the above for USB 3.x and PCIe
protocols over Gen 4 link, taking weights into account (that's 1500 Mb/s
for PCIe and 3000 Mb/s for USB 3.x).

For Gen 3 and below we use the existing reservation.

Signed-off-by: Gil Fine <gil.fine@linux.intel.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Qin Wan <qin.wan@hp.com>
Signed-off-by: Alexandru Gagniuc <alexandru.gagniuc@hp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/thunderbolt/tb.c
drivers/thunderbolt/tunnel.c
drivers/thunderbolt/tunnel.h