diff options
author | Mika Westerberg <mika.westerberg@linux.intel.com> | 2021-03-22 19:09:35 +0300 |
---|---|---|
committer | Mika Westerberg <mika.westerberg@linux.intel.com> | 2021-06-01 10:48:59 +0300 |
commit | 6ed541c53edcd5bf3cbd9fd600fd593e95ec79fb (patch) | |
tree | 661f0178ab6fe3cacff2228aa4f9e8741417edfe /drivers/input/mousedev.c | |
parent | 69fea377e660dcd2f5ab3097b9bd5ed29cfac1fa (diff) | |
download | linux-6ed541c53edcd5bf3cbd9fd600fd593e95ec79fb.tar.xz |
thunderbolt: Allocate credits according to router preferences
The USB4 Connection Manager guide provides detailed information how the
USB4 router buffer (credit) allocation information should be used by the
connection manager when it allocates buffers for different paths. This
patch implements it for Linux. For USB 3.x and DisplayPort we use
directly the router preferences. The rest of the buffer space is then
used for PCIe and DMA (peer-to-peer, XDomain) traffic. DMA tunnels
require at least one buffer and PCIe six, so if there is not enough
buffers we fail the tunnel creation.
For the legacy Thunderbolt 1-3 devices we use the existing hard-coded
scheme except for DMA where we use the values suggested by the USB4 spec
chapter 13.
Co-developed-by: Gil Fine <gil.fine@intel.com>
Signed-off-by: Gil Fine <gil.fine@intel.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'drivers/input/mousedev.c')
0 files changed, 0 insertions, 0 deletions