thunderbolt: Add support for native USB4 _OSC
authorMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 18 Feb 2020 14:14:42 +0000 (16:14 +0200)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 4 Feb 2021 07:45:25 +0000 (10:45 +0300)
commitc6da62a219d028de10f2e22e93a34c7ee2b88d03
treed8bf3538e6d14399f17ae2a51249ba5aaf9b8d17
parent5a6a2c0f0f43676df27632d657a3f18b151a7ef8
thunderbolt: Add support for native USB4 _OSC

ACPI 6.4 introduced a new _OSC capability used to negotiate whether the
OS is supposed to use Software (native) or Firmware based Connection
Manager. If the native support is granted then there are set of bits
that enable/disable different tunnel types that the Software Connection
Manager is allowed to tunnel.

This adds support for this new USB4 _OSC accordingly. When PCIe
tunneling is disabled then the driver switches security level to be
"nopcie" following the security level 5 used in Firmware based
Connection Manager.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Acked-by: Yehezkel Bernat <YehezkelShB@gmail.com>
drivers/thunderbolt/acpi.c
drivers/thunderbolt/nhi.c
drivers/thunderbolt/tb.c
drivers/thunderbolt/tb.h
drivers/thunderbolt/tunnel.c
drivers/thunderbolt/usb4.c
drivers/thunderbolt/xdomain.c