thunderbolt: Introducing Thunderbolt(TM) Networking
Subsystems (5)
v7 cover thunderbolt: Introducing Thunderbolt(TM) Networking
This driver enables Thunderbolt Networking on non-Apple platforms running Linux.
Thunderbolt Networking provides peer-to-peer connections to transfer files between computers, perform PC migrations, and/or set up small workgroups with shared storage.
This is a virtual connection that emulates an Ethernet adapter that enables Ethernet networking with the benefit of Thunderbolt superfast medium capability.
Thunderbolt Networking enables two hosts and several devices that have a Thunderbolt controller to be connected together in a linear (Daisy chain) series from a single port.
Thunderbolt Networking for Linux is compatible with Thunderbolt Networking on systems running macOS or Windows and also supports Thunderbolt generation 2 and 3 controllers.
Note that all pre-existing Thunderbolt generation 3 features, such as USB, Display and other Thunderbolt device connectivity will continue to function exactly as they did prior to enabling Thunderbolt Networking.
Code and Software Specifications:
This kernel code creates a virtual ethernet device for computer to computer communication over a Thunderbolt cable.
The new driver is a separate driver to the existing Thunderbolt driver. It is designed to work on systems running Linux that interface with Intel Connection Manager (ICM) firmware based Thunderbolt controllers that support Thunderbolt Networking. The kernel code operates in coordination with the Thunderbolt user- space daemon to implement full Thunderbolt networking functionality.
Hardware Specifications:
Thunderbolt Hardware specs have not yet been published but are used where necessary for register definitions.
Changes since v6:
- Removed (TM) from Kconfig
- Removed redundant DRV_NAME macro
- Removed copyright notice from Makefile
- Moved networking.txt file to Documentation/Thunderbolt/
- Edited patch descriptions
- Edited documentation in networking.txt
These patches were pushed to GitHub where they can be reviewed more comfortably with green/red highlighting:
https://github.com/01org/thunderbolt-software-kernel-tree
Daemon code:
https://github.com/01org/thunderbolt-software-daemon
For reference, here's a link to version 6:
[v6]: https://lkml.org/lkml/2016/8/1/233
Amir Levy (8):
thunderbolt: Macro rename
thunderbolt: Updating the register definitions
thunderbolt: Kconfig for Thunderbolt Networking
thunderbolt: Communication with the ICM (firmware)
thunderbolt: Networking state machine
thunderbolt: Networking transmit and receive
thunderbolt: Networking doc
thunderbolt: Adding maintainer entry
Documentation/00-INDEX | 2 + Documentation/thunderbolt/networking.txt | 132 ++ MAINTAINERS | 8 +- drivers/thunderbolt/Kconfig | 27 +- drivers/thunderbolt/Makefile | 3 +- drivers/thunderbolt/icm/Makefile | 2 + drivers/thunderbolt/icm/icm_nhi.c | 1622 +++++++++++++++++++++ drivers/thunderbolt/icm/icm_nhi.h | 92 ++ drivers/thunderbolt/icm/net.c | 2264 ++++++++++++++++++++++++++++++ drivers/thunderbolt/icm/net.h | 297 ++++ drivers/thunderbolt/nhi_regs.h | 115 +- 11 files changed, 4555 insertions(+), 9 deletions(-) create mode 100644 Documentation/thunderbolt/networking.txt create mode 100644 drivers/thunderbolt/icm/Makefile create mode 100644 drivers/thunderbolt/icm/icm_nhi.c create mode 100644 drivers/thunderbolt/icm/icm_nhi.h create mode 100644 drivers/thunderbolt/icm/net.c create mode 100644 drivers/thunderbolt/icm/net.h
Signature · 1 line
2.7.4
PATCH v7 1/8 thunderbolt: Macro rename
This first patch updates the NHI Thunderbolt controller registers file to reflect that it is not only for Cactus Ridge.
No functional change intended.
--- drivers/thunderbolt/nhi_regs.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/thunderbolt/nhi_regs.h +3 -3
@@ -1,11 +1,11 @@/* -* Thunderbolt Cactus Ridge driver - NHI registers +* Thunderbolt driver - NHI registers * * Copyright (c) 2014 Andreas Noever <[email protected]> */ -#ifndef DSL3510_REGS_H_ -#define DSL3510_REGS_H_ +#ifndef NHI_REGS_H_ +#define NHI_REGS_H_ #include <linux/types.h>
Signature · 1 line
2.7.4
PATCH v7 2/8 thunderbolt: Updating the register definitions
In reply to Amir LevyAdding more Thunderbolt(TM) register definitions
and some helper macros.
--- drivers/thunderbolt/nhi_regs.h | 109 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 109 insertions(+)
drivers/thunderbolt/nhi_regs.h +109 -0
@@ -9,6 +9,11 @@#include <linux/types.h> +#define NHI_MMIO_BAR 0 + +#define TBT_RING_MIN_NUM_BUFFERS 2 +#define TBT_RING_MAX_FRAME_SIZE (4 * 1024) +enum ring_flags {RING_FLAG_ISOCH_ENABLE =1 <<27 ,/* TX only? */ RING_FLAG_E2E_FLOW_CONTROL =1 <<28 ,
@@ -39,6 +44,33 @@ struct ring_desc {u32 time;/* write zero */ } __packed; +/** +* struct tbt_buf_desc - TX/RX ring buffer descriptor. +* This is same as struct ring_desc, but without the use of bitfields and +* with explicit endianity. +*/ +struct tbt_buf_desc { +__le64 phys; +__le32 attributes; +__le32 time; +}; + +#define DESC_ATTR_LEN_SHIFT 0 +#define DESC_ATTR_LEN_MASK GENMASK(11, DESC_ATTR_LEN_SHIFT) +#define DESC_ATTR_EOF_SHIFT 12 +#define DESC_ATTR_EOF_MASK GENMASK(15, DESC_ATTR_EOF_SHIFT) +#define DESC_ATTR_SOF_SHIFT 16 +#define DESC_ATTR_SOF_MASK GENMASK(19, DESC_ATTR_SOF_SHIFT) +#define DESC_ATTR_TX_ISOCH_DMA_EN BIT(20)/* TX */ +#define DESC_ATTR_RX_CRC_ERR BIT(20)/* RX after use */ +#define DESC_ATTR_DESC_DONE BIT(21) +#define DESC_ATTR_REQ_STS BIT(22)/* TX and RX before use */ +#define DESC_ATTR_RX_BUF_OVRN_ERR BIT(22)/* RX after use */ +#define DESC_ATTR_INT_EN BIT(23) +#define DESC_ATTR_OFFSET_SHIFT 24 +#define DESC_ATTR_OFFSET_MASK GENMASK(31, DESC_ATTR_OFFSET_SHIFT) + +/* NHI registers in bar 0 */ /*
@@ -60,6 +92,30 @@ struct ring_desc {*/ #define REG_RX_RING_BASE 0x08000 +#define REG_RING_STEP 16 +#define REG_RING_PHYS_LO_OFFSET 0 +#define REG_RING_PHYS_HI_OFFSET 4 +#define REG_RING_CONS_PROD_OFFSET 8/* cons - RO, prod - RW */ +#define REG_RING_CONS_SHIFT 0 +#define REG_RING_CONS_MASK GENMASK(15, REG_RING_CONS_SHIFT) +#define REG_RING_PROD_SHIFT 16 +#define REG_RING_PROD_MASK GENMASK(31, REG_RING_PROD_SHIFT) +#define REG_RING_SIZE_OFFSET 12 +#define REG_RING_SIZE_SHIFT 0 +#define REG_RING_SIZE_MASK GENMASK(15, REG_RING_SIZE_SHIFT) +#define REG_RING_BUF_SIZE_SHIFT 16 +#define REG_RING_BUF_SIZE_MASK GENMASK(27, REG_RING_BUF_SIZE_SHIFT) + +#define TBT_RING_CONS_PROD_REG (iobase, ringbase, ringnumber) \ + ((iobase) + (ringbase) + \ + ((ringnumber) * REG_RING_STEP) + \ + REG_RING_CONS_PROD_OFFSET) + +#define TBT_REG_RING_PROD_EXTRACT (val) (((val) & REG_RING_PROD_MASK) >> \ + REG_RING_PROD_SHIFT) + +#define TBT_REG_RING_CONS_EXTRACT (val) (((val) & REG_RING_CONS_MASK) >> \ + REG_RING_CONS_SHIFT)/* * 32 bytes per entry, one entry for every hop (REG_HOP_COUNT) * 00: enum_ring_flags
@@ -77,6 +133,19 @@ struct ring_desc {* ..: unknown */ #define REG_RX_OPTIONS_BASE 0x29800 +#define REG_RX_OPTS_TX_E2E_HOP_ID_SHIFT 12 +#define REG_RX_OPTS_TX_E2E_HOP_ID_MASK \ + GENMASK(22, REG_RX_OPTS_TX_E2E_HOP_ID_SHIFT) +#define REG_RX_OPTS_MASK_OFFSET 4 +#define REG_RX_OPTS_MASK_EOF_SHIFT 0 +#define REG_RX_OPTS_MASK_EOF_MASK GENMASK(15, REG_RX_OPTS_MASK_EOF_SHIFT) +#define REG_RX_OPTS_MASK_SOF_SHIFT 16 +#define REG_RX_OPTS_MASK_SOF_MASK GENMASK(31, REG_RX_OPTS_MASK_SOF_SHIFT) + +#define REG_OPTS_STEP 32 +#define REG_OPTS_E2E_EN BIT(28) +#define REG_OPTS_RAW BIT(30) +#define REG_OPTS_VALID BIT(31)/* * three bitfields: tx, rx, rx overflow
@@ -86,6 +155,7 @@ struct ring_desc {*/ #define REG_RING_NOTIFY_BASE 0x37800#define RING_NOTIFY_REG_COUNT (nhi) ((31 + 3 * nhi->hop_count) / 32) +#define REG_RING_NOTIFY_STEP 4/* * two bitfields: rx, tx
@@ -94,8 +164,47 @@ struct ring_desc {*/ #define REG_RING_INTERRUPT_BASE 0x38200#define RING_INTERRUPT_REG_COUNT (nhi) ((31 + 2 * nhi->hop_count) / 32) +#define REG_RING_INT_TX_PROCESSED (ring_num) BIT(ring_num) +#define REG_RING_INT_RX_PROCESSED (ring_num, num_paths) BIT((ring_num) + \ + (num_paths)) +#define RING_INT_DISABLE (base, val) iowrite32( \ + ioread32((base) + REG_RING_INTERRUPT_BASE) & ~(val), \ + (base) + REG_RING_INTERRUPT_BASE) +#define RING_INT_ENABLE (base, val) iowrite32( \ + ioread32((base) + REG_RING_INTERRUPT_BASE) | (val), \ + (base) + REG_RING_INTERRUPT_BASE) +#define RING_INT_DISABLE_TX (base, ring_num) \ + RING_INT_DISABLE(base, REG_RING_INT_TX_PROCESSED(ring_num)) +#define RING_INT_DISABLE_RX (base, ring_num, num_paths) \ + RING_INT_DISABLE(base, REG_RING_INT_RX_PROCESSED(ring_num, num_paths)) +#define RING_INT_ENABLE_TX (base, ring_num) \ + RING_INT_ENABLE(base, REG_RING_INT_TX_PROCESSED(ring_num)) +#define RING_INT_ENABLE_RX (base, ring_num, num_paths) \ + RING_INT_ENABLE(base, REG_RING_INT_RX_PROCESSED(ring_num, num_paths)) +#define RING_INT_DISABLE_TX_RX (base, ring_num, num_paths) \ + RING_INT_DISABLE(base, REG_RING_INT_TX_PROCESSED(ring_num) | \ + REG_RING_INT_RX_PROCESSED(ring_num, num_paths)) + +#define REG_RING_INTERRUPT_STEP 4 + +#define REG_INT_THROTTLING_RATE 0x38c00 +#define REG_INT_THROTTLING_RATE_STEP 4 +#define NUM_INT_VECTORS 16 + +#define REG_INT_VEC_ALLOC_BASE 0x38c40 +#define REG_INT_VEC_ALLOC_STEP 4 +#define REG_INT_VEC_ALLOC_FIELD_BITS 4 +#define REG_INT_VEC_ALLOC_FIELD_MASK (BIT(REG_INT_VEC_ALLOC_FIELD_BITS) - 1) +#define REG_INT_VEC_ALLOC_PER_REG ((BITS_PER_BYTE * sizeof(u32)) / \ + REG_INT_VEC_ALLOC_FIELD_BITS)/* The last 11 bits contain the number of hops supported by the NHI port. */ #define REG_HOP_COUNT 0x39640 +#define REG_HOP_COUNT_TOTAL_PATHS_MASK GENMASK(10, 0) + +#define REG_HOST_INTERFACE_RST 0x39858 + +#define REG_DMA_MISC 0x39864 +#define REG_DMA_MISC_INT_AUTO_CLEAR BIT(2)#endif
Signature · 1 line
2.7.4
PATCH v7 3/8 thunderbolt: Kconfig for Thunderbolt Networking
In reply to Amir LevyUpdate to the Kconfig Thunderbolt description to add Thunderbolt networking as an option.
The menu item "Thunderbolt support" now offers:
"Apple Hardware Support" (existing)
and/or
"Thunderbolt Networking" (new)
You can choose the driver for your platform or build both drivers - each driver will detect if it can run on the specific platform. If the Thunderbolt Networking option is chosen, Thunderbolt Networking will be enabled between Linux non-Apple systems, macOS and Windows based systems.
Thunderbolt Networking will not affect any other Thunderbolt feature that was previous available to Linux users on either Apple or non-Apple platforms.
--- drivers/thunderbolt/Kconfig | 27 +++++++++++++++++++++++---- drivers/thunderbolt/Makefile | 2 +- 2 files changed, 24 insertions(+), 5 deletions(-)
drivers/thunderbolt/Kconfig +23 -4
@@ -1,13 +1,32 @@ -menuconfig THUNDERBOLT - tristate "Thunderbolt support for Apple devices" +config THUNDERBOLT + tristate "Thunderbolt support" depends on PCI select CRC32 help - Cactus Ridge Thunderbolt Controller driver + Thunderbolt Controller driver + +if THUNDERBOLT + +config THUNDERBOLT_APPLE + tristate "Apple hardware support" + help This driver is required if you want to hotplug Thunderbolt devices on Apple hardware. Device chaining is currently not supported. - To compile this driver a module, choose M here. The module will be + To compile this driver as a module, choose M here. The module will be called thunderbolt. + +config THUNDERBOLT_ICM + tristate "Thunderbolt Networking" + help + This driver is required if you want Thunderbolt Networking on + non-Apple hardware. + It creates a virtual Ethernet device that enables computer to + computer communication over a Thunderbolt cable. + + To compile this driver as a module, choose M here. The module will be + called thunderbolt_icm. + +endif
drivers/thunderbolt/Makefile +1 -1
@@ -1,3 +1,3 @@ -obj-${CONFIG_THUNDERBOLT} := thunderbolt.o +obj-${CONFIG_THUNDERBOLT_APPLE} := thunderbolt.o thunderbolt-objs := nhi.o ctl.o tb.o switch.o cap.o path.o tunnel_pci.o eeprom.o
Signature · 1 line
2.7.4
Re: [PATCH v7 3/8] thunderbolt: Kconfig for Thunderbolt Networking
Quoted 42 lines · Amir Levy
Update to the
KconfigThunderbolt description to add Thunderbolt networking as an option.
The menu item "Thunderbolt support" now offers:
"Apple Hardware Support" (existing)
and/or
"Thunderbolt Networking" (new)You can choose the driver for your platform or build both drivers - each driver will detect if it can run on the specific platform. If the Thunderbolt Networking option is chosen, Thunderbolt Networking will be enabled between Linux non-Apple systems, macOS and Windows based systems.
Thunderbolt Networking will not affect any other Thunderbolt feature that was previous available to Linux users on either Apple or non-Apple platforms.Signed-off-by Amir Levy <[email protected]>--- drivers/thunderbolt/Kconfig | 27 +++++++++++++++++++++++---- drivers/thunderbolt/Makefile | 2 +- 2 files changed, 24 insertions(+), 5 deletions(-)drivers/thunderbolt/Kconfig +9
-3@@ -1,13 +1,32 @@ -menuconfig THUNDERBOLT - tristate "Thunderbolt support for Apple devices" +config THUNDERBOLT + tristate "Thunderbolt support" depends on PCI select CRC32 help - Cactus Ridge Thunderbolt Controller driver + Thunderbolt Controller driver + +if THUNDERBOLT + +config THUNDERBOLT_APPLE + tristate "Apple hardware support" + help
drivers/thunderbolt/Kconfig line 21
Quoted 10 lines
drivers/thunderbolt/Kconfig +3
-1This driver is required if you want to hotplug Thunderbolt devices on Apple hardware. Device chaining is currently not supported. - To compile this driver a module, choose M here. The module will be + To compile this driver as a module, choose M here. The module will be called thunderbolt. + +config THUNDERBOLT_ICM
You are adding a config option here that is not used in the tree yet. Please wait until you need the option to actually add it :)
You might just want to do the APPLE stuff here, that way you can drop in the networking stuff in a simple patch at the end of this series.
thanks,
greg k-h
PATCH v7 4/8 thunderbolt: Communication with the ICM (firmware)
In reply to Amir LevyThis patch provides the communication protocol between the Intel Connection Manager(ICM) firmware that is operational in the Thunderbolt controller in non-Apple hardware.
The ICM firmware-based controller is used for establishing and maintaining the Thunderbolt Networking connection - we need to be able to communicate with it.
--- drivers/thunderbolt/Makefile | 1 + drivers/thunderbolt/icm/Makefile | 2 + drivers/thunderbolt/icm/icm_nhi.c | 1324 +++++++++++++++++++++++++++++++++++++ drivers/thunderbolt/icm/icm_nhi.h | 92 +++ drivers/thunderbolt/icm/net.h | 227 +++++++ 5 files changed, 1646 insertions(+) create mode 100644 drivers/thunderbolt/icm/Makefile create mode 100644 drivers/thunderbolt/icm/icm_nhi.c create mode 100644 drivers/thunderbolt/icm/icm_nhi.h create mode 100644 drivers/thunderbolt/icm/net.h
drivers/thunderbolt/Makefile +1 -0
@@ -1,3 +1,4 @@ obj-${CONFIG_THUNDERBOLT_APPLE} := thunderbolt.o thunderbolt-objs := nhi.o ctl.o tb.o switch.o cap.o path.o tunnel_pci.o eeprom.o +obj-${CONFIG_THUNDERBOLT_ICM} += icm/
drivers/thunderbolt/icm/Makefile new file +2 -0
@@ -0,0 +1,2 @@ +obj-${CONFIG_THUNDERBOLT_ICM} += thunderbolt-icm.o +thunderbolt-icm-objs := icm_nhi.o
drivers/thunderbolt/icm/icm_nhi.c new file +1324 -0
1,324 lines not on this page · raw message
drivers/thunderbolt/icm/icm_nhi.h new file +92 -0
92 lines not on this page · raw message
drivers/thunderbolt/icm/net.h new file +227 -0
227 lines not on this page · raw message
Signature · 1 line
2.7.4
Re: [PATCH v7 4/8] thunderbolt: Communication with the ICM (firmware)
Quoted 49 lines · Amir Levy
This patch provides the communication protocol between the Intel Connection Manager(ICM) firmware that is operational in the Thunderbolt controller in non-Apple hardware.
The ICM firmware-based controller is used for establishing and maintaining the Thunderbolt Networking connection - we need to be able to communicate with it.Signed-off-by Amir Levy <[email protected]>--- drivers/thunderbolt/Makefile | 1 + drivers/thunderbolt/icm/Makefile | 2 + drivers/thunderbolt/icm/icm_nhi.c | 1324 +++++++++++++++++++++++++++++++++++++ drivers/thunderbolt/icm/icm_nhi.h | 92 +++ drivers/thunderbolt/icm/net.h | 227 +++++++ 5 files changed, 1646 insertions(+) create mode 100644 drivers/thunderbolt/icm/Makefile create mode 100644 drivers/thunderbolt/icm/icm_nhi.c create mode 100644 drivers/thunderbolt/icm/icm_nhi.h create mode 100644 drivers/thunderbolt/icm/net.hdrivers/thunderbolt/Makefile +1
-0@@ -1,3 +1,4 @@ obj-${CONFIG_THUNDERBOLT_APPLE} := thunderbolt.o thunderbolt-objs := nhi.o ctl.o tb.o switch.o cap.o path.o tunnel_pci.o eeprom.o +obj-${CONFIG_THUNDERBOLT_ICM} += icm/drivers/thunderbolt/icm/Makefile new file +2
-0@@ -0,0 +1,2 @@ +obj-${CONFIG_THUNDERBOLT_ICM} += thunderbolt-icm.o +thunderbolt-icm-objs := icm_nhi.odrivers/thunderbolt/icm/icm_nhi.c new file +6
-0@@ -0,0 +1,1324 @@ +/******************************************************************************* +* +* Intel Thunderbolt(TM) driver +* Copyright(c) 2014 - 2016 Intel Corporation. +* +* This program is free software; you can redistribute it and/or modify it
drivers/thunderbolt/icm/icm_nhi.c line 16
Quoted 10 lines
drivers/thunderbolt/icm/icm_nhi.c new file +10
-0+* under the terms and conditions of the GNU General Public License, +* version 2, as published by the Free Software Foundation. +* +* This program is distributed in the hope it will be useful, but WITHOUT +* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for +* more details. +* +* You should have received a copy of the GNU General Public License along +* with this program. If not, see <http://www.gnu.org/licenses/>.
Why is this sentence needed?
drivers/thunderbolt/icm/icm_nhi.c line 19
Quoted 3 lines
drivers/thunderbolt/icm/icm_nhi.c new file +3
-0+* +* The full GNU General Public License is included in this distribution in +* the file called "COPYING".
Why is this sentence needed?
drivers/thunderbolt/icm/icm_nhi.c line 22
Quoted 3 lines
drivers/thunderbolt/icm/icm_nhi.c new file +3
-0+* +* Contact Information: +* Intel Thunderbolt Mailing List <[email protected]>
Shouldn't this just be in the MAINTAINERS file?
drivers/thunderbolt/icm/icm_nhi.c line 23
Quoted 1 line
drivers/thunderbolt/icm/icm_nhi.c new file +1
-0+* Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
Unless you are going to track the address of Intel for the next 40+ years, don't put it in a source comment. Please just drop it.
Quoted 58 lines
drivers/thunderbolt/icm/icm_nhi.c new file +58
-0+* +******************************************************************************/ + +#include <linux/printk.h> +#include <linux/crc32.h> +#include <linux/delay.h> +#include <linux/dmi.h> +#include "icm_nhi.h" +#include "net.h" + +#define NHI_GENL_VERSION 1 +#define NHI_GENL_NAME "thunderbolt" + +#define DEVICE_DATA (num_ports, dma_port, nvm_ver_offset, nvm_auth_on_boot,\ + support_full_e2e) \ + ((num_ports) | ((dma_port) << 4) | ((nvm_ver_offset) << 10) | \ + ((nvm_auth_on_boot) << 22) | ((support_full_e2e) << 23)) +#define DEVICE_DATA_NUM_PORTS (device_data) ((device_data) & 0xf) +#define DEVICE_DATA_DMA_PORT (device_data) (((device_data) >> 4) & 0x3f) +#define DEVICE_DATA_NVM_VER_OFFSET (device_data) (((device_data) >> 10) & 0xfff) +#define DEVICE_DATA_NVM_AUTH_ON_BOOT (device_data) (((device_data) >> 22) & 0x1) +#define DEVICE_DATA_SUPPORT_FULL_E2E (device_data) (((device_data) >> 23) & 0x1) + +#define USEC_TO_256_NSECS (usec) DIV_ROUND_UP((usec) * NSEC_PER_USEC, 256) + +/* NHI genetlink commands */ +enum { +NHI_CMD_UNSPEC , +NHI_CMD_SUBSCRIBE , +NHI_CMD_UNSUBSCRIBE , +NHI_CMD_QUERY_INFORMATION , +NHI_CMD_MSG_TO_ICM , +NHI_CMD_MSG_FROM_ICM , +NHI_CMD_MAILBOX , +NHI_CMD_APPROVE_TBT_NETWORKING , +NHI_CMD_ICM_IN_SAFE_MODE , + __NHI_CMD_MAX, +}; +#define NHI_CMD_MAX (__NHI_CMD_MAX - 1) + +/* NHI genetlink policy */ +static const struct nla_policy nhi_genl_policy[NHI_ATTR_MAX +1 ] = { + [NHI_ATTR_DRV_VERSION ] = { .type =NLA_NUL_STRING , }, + [NHI_ATTR_NVM_VER_OFFSET ] = { .type =NLA_U16 , }, + [NHI_ATTR_NUM_PORTS ] = { .type =NLA_U8 , }, + [NHI_ATTR_DMA_PORT ] = { .type =NLA_U8 , }, + [NHI_ATTR_SUPPORT_FULL_E2E ] = { .type =NLA_FLAG , }, + [NHI_ATTR_MAILBOX_CMD ] = { .type =NLA_U32 , }, + [NHI_ATTR_PDF ] = { .type =NLA_U32 , }, + [NHI_ATTR_MSG_TO_ICM ] = { .type =NLA_BINARY , + .len =TBT_ICM_RING_MAX_FRAME_SIZE }, + [NHI_ATTR_MSG_FROM_ICM ] = { .type =NLA_BINARY , + .len =TBT_ICM_RING_MAX_FRAME_SIZE }, +}; + +/* NHI genetlink family */ +static struct genl_family nhi_genl_family = { + .id =GENL_ID_GENERATE ,
drivers/thunderbolt/icm/icm_nhi.c line 91
Quoted 10 lines
drivers/thunderbolt/icm/icm_nhi.c new file +10
-0+ .hdrsize = FIELD_SIZEOF(struct tbt_nhi_ctxt, id), + .name = NHI_GENL_NAME, + .version = NHI_GENL_VERSION, + .maxattr = NHI_ATTR_MAX, +}; + +static LIST_HEAD (controllers_list); +static DEFINE_MUTEX (controllers_list_mutex); +static atomic_t subscribers =ATOMIC_INIT (0 ); +static u32 portid;
This is really odd, why have a global single portid?
Quoted 65 lines
drivers/thunderbolt/icm/icm_nhi.c new file +65
-0+ +static bool nhi_nvm_authenticated (struct tbt_nhi_ctxt *nhi_ctxt) +{ +enum icm_operation_mode op_mode; +u32 *msg_head, port_id, reg; +struct sk_buff *skb; +int i; + +if (!nhi_ctxt->nvm_auth_on_boot) +return true; + +/* +* The check for NVM authentication can take time for iCM, +* especially in low power configuration. +*/ +for (i =0 ; i <5 ; i++) { +u32 status =ioread32 (nhi_ctxt->iobase +REG_FW_STS ); + +if (status ®_FW_STS_NVM_AUTH_DONE ) +break ; + +msleep (30 ); + } +/* +* The check for authentication is done after checking if iCM +* is present so it shouldn't reach the max tries (=5). +* Anyway, the check for full functionality below covers the error case. +*/ + reg =ioread32 (nhi_ctxt->iobase +REG_OUTMAIL_CMD ); + op_mode = (reg ®_OUTMAIL_CMD_OP_MODE_MASK ) >> +REG_OUTMAIL_CMD_OP_MODE_SHIFT ; +if (op_mode ==FULL_FUNCTIONALITY ) +return true; + +dev_warn (&nhi_ctxt->pdev->dev,"controller id %#x is in operation mode %#x status %#lx\n" , + nhi_ctxt->id, op_mode, + (reg ®_OUTMAIL_CMD_STS_MASK )>>REG_OUTMAIL_CMD_STS_SHIFT ); + + skb =genlmsg_new (NLMSG_ALIGN (nhi_genl_family.hdrsize),GFP_KERNEL ); +if (!skb) { +dev_err (&nhi_ctxt->pdev->dev,"genlmsg_new failed: not enough memory to send controller operational mode\n" ); +return false; + } + +/* keeping port_id into a local variable for next use */ + port_id = portid; + msg_head =genlmsg_put (skb, port_id,0 , &nhi_genl_family,0 , +NHI_CMD_ICM_IN_SAFE_MODE ); +if (!msg_head) { +nlmsg_free (skb); +dev_err (&nhi_ctxt->pdev->dev,"genlmsg_put failed: not enough memory to send controller operational mode\n" ); +return false; + } + + *msg_head = nhi_ctxt->id; + +genlmsg_end (skb, msg_head); + +genlmsg_unicast (&init_net, skb, port_id); + +return false; +} + +int nhi_send_message (struct tbt_nhi_ctxt *nhi_ctxt,enum pdf_value pdf, +u32 msg_len,const void *msg,bool ignore_icm_resp)
drivers/thunderbolt/icm/icm_nhi.c line 166
Quoted 10 lines
drivers/thunderbolt/icm/icm_nhi.c new file +10
-0+{ +u32 prod_cons, prod, cons, attr; +struct tbt_icm_ring_shared_memory *shared_mem; +void __iomem *reg =TBT_RING_CONS_PROD_REG (nhi_ctxt->iobase, +REG_TX_RING_BASE , +TBT_ICM_RING_NUM ); + +dev_dbg (&nhi_ctxt->pdev->dev, +"send msg: controller id %#x pdf %u cmd %hhu msg len %u\n" , + nhi_ctxt->id, pdf, ((u8 *)msg)[3 ], msg_len);
Don't put trace debug calls in your code, either use a real tracepoint, or just use ftrace. Delete these, they aren't needed once you want to submit the code for merging as it should not be needed.
You do this in a lot of other places as well, please fix all of them.
drivers/thunderbolt/icm/icm_nhi.c line 171
Quoted 5 lines
drivers/thunderbolt/icm/icm_nhi.c new file +5
-0+ +if (nhi_ctxt->d0_exit) { +dev_notice (&nhi_ctxt->pdev->dev, +"controller id %#x is exiting D0\n" , + nhi_ctxt->id);
What can a user do about this?
drivers/thunderbolt/icm/icm_nhi.c line 181
Quoted 10 lines
drivers/thunderbolt/icm/icm_nhi.c new file +10
-0+return -ENODEV ; + } + + prod_cons =ioread32 (reg); + prod =TBT_REG_RING_PROD_EXTRACT (prod_cons); + cons =TBT_REG_RING_CONS_EXTRACT (prod_cons); +if (prod >=TBT_ICM_RING_NUM_TX_BUFS ) { +dev_warn (&nhi_ctxt->pdev->dev, +"controller id %#x producer %u out of range\n" , + nhi_ctxt->id, prod);
What can a user do about this?
drivers/thunderbolt/icm/icm_nhi.c line 187
Quoted 6 lines
drivers/thunderbolt/icm/icm_nhi.c new file +6
-0+return -ENODEV ; + } +if (TBT_TX_RING_FULL (prod, cons,TBT_ICM_RING_NUM_TX_BUFS )) { +dev_err (&nhi_ctxt->pdev->dev, +"controller id %#x TX ring full\n" , + nhi_ctxt->id);
What can a user do about this?
drivers/thunderbolt/icm/icm_nhi.c line 197
Quoted 10 lines
drivers/thunderbolt/icm/icm_nhi.c new file +10
-0+return -ENOSPC ; + } + + attr = (msg_len <<DESC_ATTR_LEN_SHIFT ) &DESC_ATTR_LEN_MASK ; + attr |= (pdf <<DESC_ATTR_EOF_SHIFT ) &DESC_ATTR_EOF_MASK ; + + shared_mem = nhi_ctxt->icm_ring_shared_mem; + shared_mem->tx_buf_desc[prod].attributes =cpu_to_le32 (attr); + +memcpy (shared_mem->tx_buf[prod], msg, msg_len);
No zero-copy, sad :(
drivers/thunderbolt/icm/icm_nhi.c line 204
Quoted 7 lines
drivers/thunderbolt/icm/icm_nhi.c new file +7
-0+ + prod_cons &= ~REG_RING_PROD_MASK ; + prod_cons |= (((prod +1 ) %TBT_ICM_RING_NUM_TX_BUFS ) << +REG_RING_PROD_SHIFT ) ®_RING_PROD_MASK ; + +if (likely (!nhi_ctxt->wait_for_icm_resp)) + nhi_ctxt->wait_for_icm_resp = true;
Can you measure the speed difference with likely() here? If so, great, if not, drop it as the cpu can guess this better than you or I can.
drivers/thunderbolt/icm/icm_nhi.c line 208
Quoted 4 lines
drivers/thunderbolt/icm/icm_nhi.c new file +4
-0+else +dev_dbg (&nhi_ctxt->pdev->dev, +"controller id %#x wait_for_icm_resp should have been cleared\n" , + nhi_ctxt->id);
Huh? So this isn't a real issue?
drivers/thunderbolt/icm/icm_nhi.c line 215
Quoted 7 lines
drivers/thunderbolt/icm/icm_nhi.c new file +7
-0+ + nhi_ctxt->ignore_icm_resp = ignore_icm_resp; + +iowrite32 (prod_cons, reg); + +return 0 ; +}
thanks,
greg k-h
PATCH v7 5/8 thunderbolt: Networking state machine
In reply to Amir LevyThis patch builds the peer to peer communication path. Communication is established by a negotiation process whereby messages are sent back and forth between the peers until a connection is established. This includes the Thunderbolt Network driver communication with the second peer via Intel Connection Manager(ICM) firmware.
+--------------------+ +--------------------+ |Host 1 | |Host 2 | | | | | | +-----------+ | | +-----------+ | | |Thunderbolt| | | |Thunderbolt| | | |Networking | | | |Networking | | | |Driver | | | |Driver | | | +-----------+ | | +-----------+ | | ^ | | ^ | | | | | | | | +------------+---+ | | +------------+---+ | | |Thunderbolt | | | | |Thunderbolt | | | | |Controller v | | | |Controller v | | | | +---+ | | | | +---+ | | | | |ICM|<-+-+------------+-+-------->|ICM| | | | | +---+ | | | | +---+ | | | +----------------+ | | +----------------+ | +--------------------+ +--------------------+
Note that this patch only establishes the link between the two hosts and not Network Packet handling - this is dealt with in the next patch.
--- drivers/thunderbolt/icm/Makefile | 2 +- drivers/thunderbolt/icm/icm_nhi.c | 303 ++++++++++++++- drivers/thunderbolt/icm/net.c | 793 ++++++++++++++++++++++++++++++++++++++ drivers/thunderbolt/icm/net.h | 70 ++++ 4 files changed, 1157 insertions(+), 11 deletions(-) create mode 100644 drivers/thunderbolt/icm/net.c
drivers/thunderbolt/icm/Makefile +1 -1
@@ -1,2 +1,2 @@ obj-${CONFIG_THUNDERBOLT_ICM} += thunderbolt-icm.o -thunderbolt-icm-objs := icm_nhi.o +thunderbolt-icm-objs := icm_nhi.o net.o
drivers/thunderbolt/icm/icm_nhi.c +293 -10
363 lines not on this page · raw message
drivers/thunderbolt/icm/net.c new file +793 -0
793 lines not on this page · raw message
drivers/thunderbolt/icm/net.h +70 -0
105 lines not on this page · raw message
Signature · 1 line
2.7.4
Re: [PATCH v7 5/8] thunderbolt: Networking state machine
Quoted 48 lines · Amir Levy
This patch builds the peer to peer communication path. Communication is established by a negotiation process whereby messages are sent back and forth between the peers until a connection is established. This includes the Thunderbolt Network driver communication with the second peer via Intel Connection Manager(ICM) firmware.
+--------------------+ +--------------------+ |Host 1 | |Host 2 | | | | | | +-----------+ | | +-----------+ | | |Thunderbolt| | | |Thunderbolt| | | |Networking | | | |Networking | | | |Driver | | | |Driver | | | +-----------+ | | +-----------+ | | ^ | | ^ | | | | | | | | +------------+---+ | | +------------+---+ | | |Thunderbolt | | | | |Thunderbolt | | | | |Controller v | | | |Controller v | | | | +---+ | | | | +---+ | | | | |ICM|<-+-+------------+-+-------->|ICM| | | | | +---+ | | | | +---+ | | | +----------------+ | | +----------------+ | +--------------------+ +--------------------+Note that this patch only establishes the link between the two hosts and not Network Packet handling - this is dealt with in the next patch.
Signed-off-by Amir Levy <[email protected]>--- drivers/thunderbolt/icm/Makefile | 2 +- drivers/thunderbolt/icm/icm_nhi.c | 303 ++++++++++++++- drivers/thunderbolt/icm/net.c | 793 ++++++++++++++++++++++++++++++++++++++ drivers/thunderbolt/icm/net.h | 70 ++++ 4 files changed, 1157 insertions(+), 11 deletions(-) create mode 100644 drivers/thunderbolt/icm/net.cdrivers/thunderbolt/icm/Makefile +1
-1@@ -1,2 +1,2 @@ obj-${CONFIG_THUNDERBOLT_ICM} += thunderbolt-icm.o -thunderbolt-icm-objs := icm_nhi.o +thunderbolt-icm-objs := icm_nhi.o net.odrivers/thunderbolt/icm/icm_nhi.c +0
-0
drivers/thunderbolt/icm/icm_nhi.c static const struct nla_policy nhi_genl_policy[NHI_ATTR_MAX + 1] = { · line 79
Quoted 6 lines
drivers/thunderbolt/icm/icm_nhi.c +3
-0@@ -74,6 +74,12 @@ static const struct nla_policy nhi_genl_policy[NHI_ATTR_MAX + 1] = { .len = TBT_ICM_RING_MAX_FRAME_SIZE }, [NHI_ATTR_MSG_FROM_ICM] = { .type = NLA_BINARY, .len = TBT_ICM_RING_MAX_FRAME_SIZE }, + [NHI_ATTR_LOCAL_ROUTE_STRING] = {.len = sizeof(struct route_string)}, + [NHI_ATTR_LOCAL_UUID] = { .len = sizeof(uuid_be) }, + [NHI_ATTR_REMOTE_UUID] = { .len = sizeof(uuid_be) },
Be consistent in your choice of whitespace please.
Re: [PATCH v7 5/8] thunderbolt: Networking state machine
In reply to Amir LevyQuoted 144 lines · Amir Levy
This patch builds the peer to peer communication path. Communication is established by a negotiation process whereby messages are sent back and forth between the peers until a connection is established. This includes the Thunderbolt Network driver communication with the second peer via Intel Connection Manager(ICM) firmware.
+--------------------+ +--------------------+ |Host 1 | |Host 2 | | | | | | +-----------+ | | +-----------+ | | |Thunderbolt| | | |Thunderbolt| | | |Networking | | | |Networking | | | |Driver | | | |Driver | | | +-----------+ | | +-----------+ | | ^ | | ^ | | | | | | | | +------------+---+ | | +------------+---+ | | |Thunderbolt | | | | |Thunderbolt | | | | |Controller v | | | |Controller v | | | | +---+ | | | | +---+ | | | | |ICM|<-+-+------------+-+-------->|ICM| | | | | +---+ | | | | +---+ | | | +----------------+ | | +----------------+ | +--------------------+ +--------------------+Note that this patch only establishes the link between the two hosts and not Network Packet handling - this is dealt with in the next patch.
Signed-off-by Amir Levy <[email protected]>--- drivers/thunderbolt/icm/Makefile | 2 +- drivers/thunderbolt/icm/icm_nhi.c | 303 ++++++++++++++- drivers/thunderbolt/icm/net.c | 793 ++++++++++++++++++++++++++++++++++++++ drivers/thunderbolt/icm/net.h | 70 ++++ 4 files changed, 1157 insertions(+), 11 deletions(-) create mode 100644 drivers/thunderbolt/icm/net.cdrivers/thunderbolt/icm/Makefile +1
-1@@ -1,2 +1,2 @@ obj-${CONFIG_THUNDERBOLT_ICM} += thunderbolt-icm.o -thunderbolt-icm-objs := icm_nhi.o +thunderbolt-icm-objs := icm_nhi.o net.odrivers/thunderbolt/icm/icm_nhi.c +72
-2@@ -74,6 +74,12 @@ static const struct nla_policy nhi_genl_policy[NHI_ATTR_MAX + 1] = { .len = TBT_ICM_RING_MAX_FRAME_SIZE }, [NHI_ATTR_MSG_FROM_ICM] = { .type = NLA_BINARY, .len = TBT_ICM_RING_MAX_FRAME_SIZE }, + [NHI_ATTR_LOCAL_ROUTE_STRING] = {.len = sizeof(struct route_string)}, + [NHI_ATTR_LOCAL_UUID] = { .len = sizeof(uuid_be) }, + [NHI_ATTR_REMOTE_UUID] = { .len = sizeof(uuid_be) }, + [NHI_ATTR_LOCAL_DEPTH] = { .type = NLA_U8, }, + [NHI_ATTR_ENABLE_FULL_E2E] = { .type = NLA_FLAG, }, + [NHI_ATTR_MATCH_FRAME_ID] = { .type = NLA_FLAG, }, };/* NHI genetlink family */ @@ -522,6 +528,29 @@ int nhi_mailbox(struct tbt_nhi_ctxt *nhi_ctxt, u32 cmd, u32 data, bool deinit)return 0 ; } +static inline bool nhi_is_path_disconnected (u32 cmd,u8 num_ports) +{ +return (cmd >=DISCONNECT_PORT_A_INTER_DOMAIN_PATH && + cmd < (DISCONNECT_PORT_A_INTER_DOMAIN_PATH + num_ports)); +} + +static int nhi_mailbox_disconn_path (struct tbt_nhi_ctxt *nhi_ctxt,u32 cmd) + __releases(&controllers_list_mutex) +{ +struct port_net_dev *port; +u32 port_num = cmd -DISCONNECT_PORT_A_INTER_DOMAIN_PATH ; + + port = &(nhi_ctxt->net_devices[port_num]); +mutex_lock (&port->state_mutex); + +mutex_unlock (&controllers_list_mutex); + port->medium_sts =MEDIUM_READY_FOR_APPROVAL ; +if (port->net_dev) +negotiation_events (port->net_dev,MEDIUM_DISCONNECTED ); +mutex_unlock (&port->state_mutex); +return 0 ; +} +static int nhi_mailbox_generic (struct tbt_nhi_ctxt *nhi_ctxt,u32 mb_cmd) __releases(&controllers_list_mutex) {@@ -571,13 +600,94 @@ static int nhi_genl_mailbox(__always_unused struct sk_buff *u_skb,return -ERESTART ; nhi_ctxt =nhi_search_ctxt (*(u32 *)info->userhdr); -if (nhi_ctxt && !nhi_ctxt->d0_exit) -return nhi_mailbox_generic (nhi_ctxt, mb_cmd); +if (nhi_ctxt && !nhi_ctxt->d0_exit) { + +/* rwsem is released later by the below functions */ +if (nhi_is_path_disconnected (cmd, nhi_ctxt->num_ports)) +return nhi_mailbox_disconn_path (nhi_ctxt, cmd); +else +return nhi_mailbox_generic (nhi_ctxt, mb_cmd); + + }mutex_unlock (&controllers_list_mutex);return -ENODEV ; } +static int nhi_genl_approve_networking (__always_unused struct sk_buff *u_skb, +struct genl_info *info) +{ +struct tbt_nhi_ctxt *nhi_ctxt; +struct route_string *route_str; +int res = -ENODEV ; +u8 port_num; + +if (!info || !info->userhdr || !info->attrs || + !info->attrs[NHI_ATTR_LOCAL_ROUTE_STRING ] || + !info->attrs[NHI_ATTR_LOCAL_UUID ] || + !info->attrs[NHI_ATTR_REMOTE_UUID ] || + !info->attrs[NHI_ATTR_LOCAL_DEPTH ]) +return -EINVAL ; + +/* +* route_str is an unique topological address +* used for approving remote controller +*/ + route_str =nla_data (info->attrs[NHI_ATTR_LOCAL_ROUTE_STRING ]); +/* extracts the port we're connected to */ + port_num =PORT_NUM_FROM_LINK (L0_PORT_NUM (route_str->lo)); + +if (mutex_lock_interruptible (&controllers_list_mutex)) +return -ERESTART ; + + nhi_ctxt =nhi_search_ctxt (*(u32 *)info->userhdr); +if (nhi_ctxt && !nhi_ctxt->d0_exit) { +struct port_net_dev *port; + +if (port_num >= nhi_ctxt->num_ports) { + res = -EINVAL ; + goto free_ctl_list; + }
drivers/thunderbolt/icm/icm_nhi.c static int nhi_genl_mailbox(__always_unused struct sk_buff *u_skb, · line 660
Quoted 10 lines
drivers/thunderbolt/icm/icm_nhi.c +10
-0+ + port = &(nhi_ctxt->net_devices[port_num]); + +mutex_lock (&port->state_mutex); +mutex_unlock (&controllers_list_mutex); + +if (port->medium_sts !=MEDIUM_READY_FOR_APPROVAL ) { +dev_info (&nhi_ctxt->pdev->dev, +"%s: controller id %#x in state %u <> MEDIUM_READY_FOR_APPROVAL\n" , + __func__, nhi_ctxt->id, port->medium_sts);
Why is this needed? Don't spam the kernel log for a normal device operation please, only report serious errors when something goes wrong.
And if this is an error, why is it dev_info()?
PATCH v7 6/8 thunderbolt: Networking transmit and receive
In reply to Amir LevyThis patch provides the handling interface for sending and receiving network packets between the hosts over the full communication route (using the communication path established in the previous patch).
The Thunderbolt Network driver interfaces the Linux network stack and the hardware controller configuration to handle packet transmissions:
+----------------+ +----------------+ |Host 1 | |Host 2 | | | | | | +-------+ | | +-------+ | | |Network| | | |Network| | | |Stack | | | |Stack | | | +-------+ | | +-------+ | | ^ | | ^ | | | | | | | | v | | v | | +-----------+ | | +-----------+ | | |Thunderbolt| | | |Thunderbolt| | | |Networking | | | |Networking | | | |Driver | | | |Driver | | | +-----------+ | | +-----------+ | | ^ | | ^ | | | | | | | | v | | v | | +-----------+ | | +-----------+ | | |Thunderbolt| | | |Thunderbolt| | | |Controller |<-+------------+->|Controller | | | +-----------+ | | +-----------+ | +----------------+ +----------------+
--- drivers/thunderbolt/icm/icm_nhi.c | 15 + drivers/thunderbolt/icm/net.c | 1471 +++++++++++++++++++++++++++++++++++++ 2 files changed, 1486 insertions(+)
drivers/thunderbolt/icm/icm_nhi.c +15 -0
@@ -1036,6 +1036,7 @@ static irqreturn_t nhi_msi(int __always_unused irq, void *data) {struct tbt_nhi_ctxt *nhi_ctxt = data;u32 isr0, isr1, imr0, imr1; +int i;/* clear on read */ isr0 =ioread32 (nhi_ctxt->iobase +REG_RING_NOTIFY_BASE );
@@ -1058,6 +1059,20 @@ static irqreturn_t nhi_msi(int __always_unused irq, void *data)spin_unlock (&nhi_ctxt->lock); +for (i =0 ; i < nhi_ctxt->num_ports; ++i) { +struct net_device *net_dev = + nhi_ctxt->net_devices[i].net_dev; +if (net_dev) { +u8 path =PATH_FROM_PORT (nhi_ctxt->num_paths, i); + +if (isr0 ®_RING_INT_RX_PROCESSED ( + path, nhi_ctxt->num_paths)) +tbt_net_rx_msi (net_dev); +if (isr0 ®_RING_INT_TX_PROCESSED (path)) +tbt_net_tx_msi (net_dev); + } + } +if (isr0 ®_RING_INT_RX_PROCESSED (TBT_ICM_RING_NUM , nhi_ctxt->num_paths))schedule_work (&nhi_ctxt->icm_msgs_work);
drivers/thunderbolt/icm/net.c +1471 -0
1,563 lines not on this page · raw message
Signature · 1 line
2.7.4
PATCH v7 7/8 thunderbolt: Networking doc
In reply to Amir LevyAdding Thunderbolt(TM) networking documentation.
--- Documentation/00-INDEX | 2 + Documentation/thunderbolt/networking.txt | 132 +++++++++++++++++++++++++++++++ 2 files changed, 134 insertions(+) create mode 100644 Documentation/thunderbolt/networking.txt
Documentation/00-INDEX +2 -0
@@ -439,6 +439,8 @@ this_cpu_ops.txt - List rationale behind and the way to use this_cpu operations. thermal/ - directory with information on managing thermal issues (CPU/temp) +thunderbolt/ + - directory with info regarding Thunderbolt. trace/ - directory with info on tracing technologies within linux unaligned-memory-access.txt
Documentation/thunderbolt/networking.txt new file +132 -0
132 lines not on this page · raw message
Signature · 1 line
2.7.4
PATCH v7 8/8 thunderbolt: Adding maintainer entry
In reply to Amir LevyAdd Amir Levy as maintainer for Thunderbolt(TM) ICM driver
--- MAINTAINERS | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
MAINTAINERS +7 -1
@@ -10358,7 +10358,13 @@ F: include/uapi/linux/stm.h THUNDERBOLT DRIVER M: Andreas Noever <[email protected]> S: Maintained -F: drivers/thunderbolt/ +F: drivers/thunderbolt/* + +THUNDERBOLT ICM DRIVER +M: Amir Levy <[email protected]> +S: Maintained +F: drivers/thunderbolt/icm/ +F: Documentation/thunderbolt/networking.txt TI BQ27XXX POWER SUPPLY DRIVER R: Andrew F. Davis <[email protected]>
Signature · 1 line
2.7.4