xref: /linux/Documentation/ABI/testing/sysfs-bus-thunderbolt (revision 6fc14e1a44e53c472865252b47398346a27d600e)
19aaa3b8bSMika WesterbergWhat: /sys/bus/thunderbolt/devices/.../domainX/boot_acl
29aaa3b8bSMika WesterbergDate:		Jun 2018
39aaa3b8bSMika WesterbergKernelVersion:	4.17
49aaa3b8bSMika WesterbergContact:	thunderbolt-software@lists.01.org
59aaa3b8bSMika WesterbergDescription:	Holds a comma separated list of device unique_ids that
69aaa3b8bSMika Westerberg		are allowed to be connected automatically during system
79aaa3b8bSMika Westerberg		startup (e.g boot devices). The list always contains
89aaa3b8bSMika Westerberg		maximum supported number of unique_ids where unused
99aaa3b8bSMika Westerberg		entries are empty. This allows the userspace software
109aaa3b8bSMika Westerberg		to determine how many entries the controller supports.
119aaa3b8bSMika Westerberg		If there are multiple controllers, each controller has
129aaa3b8bSMika Westerberg		its own ACL list and size may be different between the
139aaa3b8bSMika Westerberg		controllers.
149aaa3b8bSMika Westerberg
159aaa3b8bSMika Westerberg		System BIOS may have an option "Preboot ACL" or similar
169aaa3b8bSMika Westerberg		that needs to be selected before this list is taken into
179aaa3b8bSMika Westerberg		consideration.
189aaa3b8bSMika Westerberg
199aaa3b8bSMika Westerberg		Software always updates a full list in each write.
209aaa3b8bSMika Westerberg
219aaa3b8bSMika Westerberg		If a device is authorized automatically during boot its
229aaa3b8bSMika Westerberg		boot attribute is set to 1.
239aaa3b8bSMika Westerberg
24f67cf491SMika WesterbergWhat: /sys/bus/thunderbolt/devices/.../domainX/security
25f67cf491SMika WesterbergDate:		Sep 2017
26f67cf491SMika WesterbergKernelVersion:	4.13
27f67cf491SMika WesterbergContact:	thunderbolt-software@lists.01.org
28f67cf491SMika WesterbergDescription:	This attribute holds current Thunderbolt security level
29f67cf491SMika Westerberg		set by the system BIOS. Possible values are:
30f67cf491SMika Westerberg
31f67cf491SMika Westerberg		none: All devices are automatically authorized
32f67cf491SMika Westerberg		user: Devices are only authorized based on writing
33f67cf491SMika Westerberg		      appropriate value to the authorized attribute
34f67cf491SMika Westerberg		secure: Require devices that support secure connect at
35f67cf491SMika Westerberg			minimum. User needs to authorize each device.
36f67cf491SMika Westerberg		dponly: Automatically tunnel Display port (and USB). No
37f67cf491SMika Westerberg			PCIe tunnels are created.
38*6fc14e1aSMika Westerberg		usbonly: Automatically tunnel USB controller of the
39*6fc14e1aSMika Westerberg			 connected Thunderbolt dock (and Display Port). All
40*6fc14e1aSMika Westerberg			 PCIe links downstream of the dock are removed.
41f67cf491SMika Westerberg
42f67cf491SMika WesterbergWhat: /sys/bus/thunderbolt/devices/.../authorized
43f67cf491SMika WesterbergDate:		Sep 2017
44f67cf491SMika WesterbergKernelVersion:	4.13
45f67cf491SMika WesterbergContact:	thunderbolt-software@lists.01.org
46f67cf491SMika WesterbergDescription:	This attribute is used to authorize Thunderbolt devices
47f67cf491SMika Westerberg		after they have been connected. If the device is not
48f67cf491SMika Westerberg		authorized, no devices such as PCIe and Display port are
49f67cf491SMika Westerberg		available to the system.
50f67cf491SMika Westerberg
51f67cf491SMika Westerberg		Contents of this attribute will be 0 when the device is not
52f67cf491SMika Westerberg		yet authorized.
53f67cf491SMika Westerberg
54f67cf491SMika Westerberg		Possible values are supported:
55f67cf491SMika Westerberg		1: The device will be authorized and connected
56f67cf491SMika Westerberg
57f67cf491SMika Westerberg		When key attribute contains 32 byte hex string the possible
58f67cf491SMika Westerberg		values are:
59f67cf491SMika Westerberg		1: The 32 byte hex string is added to the device NVM and
60f67cf491SMika Westerberg		   the device is authorized.
61f67cf491SMika Westerberg		2: Send a challenge based on the 32 byte hex string. If the
62f67cf491SMika Westerberg		   challenge response from device is valid, the device is
63f67cf491SMika Westerberg		   authorized. In case of failure errno will be ENOKEY if
64f67cf491SMika Westerberg		   the device did not contain a key at all, and
65f67cf491SMika Westerberg		   EKEYREJECTED if the challenge response did not match.
66f67cf491SMika Westerberg
6714862ee3SYehezkel BernatWhat: /sys/bus/thunderbolt/devices/.../boot
6814862ee3SYehezkel BernatDate:		Jun 2018
6914862ee3SYehezkel BernatKernelVersion:	4.17
7014862ee3SYehezkel BernatContact:	thunderbolt-software@lists.01.org
7114862ee3SYehezkel BernatDescription:	This attribute contains 1 if Thunderbolt device was already
7214862ee3SYehezkel Bernat		authorized on boot and 0 otherwise.
7314862ee3SYehezkel Bernat
74f67cf491SMika WesterbergWhat: /sys/bus/thunderbolt/devices/.../key
75f67cf491SMika WesterbergDate:		Sep 2017
76f67cf491SMika WesterbergKernelVersion:	4.13
77f67cf491SMika WesterbergContact:	thunderbolt-software@lists.01.org
78f67cf491SMika WesterbergDescription:	When a devices supports Thunderbolt secure connect it will
79f67cf491SMika Westerberg		have this attribute. Writing 32 byte hex string changes
80f67cf491SMika Westerberg		authorization to use the secure connection method instead.
81e545f0d8SBernat, Yehezkel		Writing an empty string clears the key and regular connection
82e545f0d8SBernat, Yehezkel		method can be used again.
83f67cf491SMika Westerberg
84bfe778acSMika WesterbergWhat:		/sys/bus/thunderbolt/devices/.../device
85bfe778acSMika WesterbergDate:		Sep 2017
86bfe778acSMika WesterbergKernelVersion:	4.13
87bfe778acSMika WesterbergContact:	thunderbolt-software@lists.01.org
88bfe778acSMika WesterbergDescription:	This attribute contains id of this device extracted from
89bfe778acSMika Westerberg		the device DROM.
90bfe778acSMika Westerberg
9172ee3390SMika WesterbergWhat:		/sys/bus/thunderbolt/devices/.../device_name
9272ee3390SMika WesterbergDate:		Sep 2017
9372ee3390SMika WesterbergKernelVersion:	4.13
9472ee3390SMika WesterbergContact:	thunderbolt-software@lists.01.org
9572ee3390SMika WesterbergDescription:	This attribute contains name of this device extracted from
9672ee3390SMika Westerberg		the device DROM.
9772ee3390SMika Westerberg
98bfe778acSMika WesterbergWhat:		/sys/bus/thunderbolt/devices/.../vendor
99bfe778acSMika WesterbergDate:		Sep 2017
100bfe778acSMika WesterbergKernelVersion:	4.13
101bfe778acSMika WesterbergContact:	thunderbolt-software@lists.01.org
102bfe778acSMika WesterbergDescription:	This attribute contains vendor id of this device extracted
103bfe778acSMika Westerberg		from the device DROM.
104bfe778acSMika Westerberg
10572ee3390SMika WesterbergWhat:		/sys/bus/thunderbolt/devices/.../vendor_name
10672ee3390SMika WesterbergDate:		Sep 2017
10772ee3390SMika WesterbergKernelVersion:	4.13
10872ee3390SMika WesterbergContact:	thunderbolt-software@lists.01.org
10972ee3390SMika WesterbergDescription:	This attribute contains vendor name of this device extracted
11072ee3390SMika Westerberg		from the device DROM.
11172ee3390SMika Westerberg
112bfe778acSMika WesterbergWhat:		/sys/bus/thunderbolt/devices/.../unique_id
113bfe778acSMika WesterbergDate:		Sep 2017
114bfe778acSMika WesterbergKernelVersion:	4.13
115bfe778acSMika WesterbergContact:	thunderbolt-software@lists.01.org
116bfe778acSMika WesterbergDescription:	This attribute contains unique_id string of this device.
117bfe778acSMika Westerberg		This is either read from hardware registers (UUID on
118bfe778acSMika Westerberg		newer hardware) or based on UID from the device DROM.
119bfe778acSMika Westerberg		Can be used to uniquely identify particular device.
120e6b245ccSMika Westerberg
121e6b245ccSMika WesterbergWhat:		/sys/bus/thunderbolt/devices/.../nvm_version
122e6b245ccSMika WesterbergDate:		Sep 2017
123e6b245ccSMika WesterbergKernelVersion:	4.13
124e6b245ccSMika WesterbergContact:	thunderbolt-software@lists.01.org
125e6b245ccSMika WesterbergDescription:	If the device has upgradeable firmware the version
126e6b245ccSMika Westerberg		number is available here. Format: %x.%x, major.minor.
127e6b245ccSMika Westerberg		If the device is in safe mode reading the file returns
128e6b245ccSMika Westerberg		-ENODATA instead as the NVM version is not available.
129e6b245ccSMika Westerberg
130e6b245ccSMika WesterbergWhat:		/sys/bus/thunderbolt/devices/.../nvm_authenticate
131e6b245ccSMika WesterbergDate:		Sep 2017
132e6b245ccSMika WesterbergKernelVersion:	4.13
133e6b245ccSMika WesterbergContact:	thunderbolt-software@lists.01.org
134e6b245ccSMika WesterbergDescription:	When new NVM image is written to the non-active NVM
135e6b245ccSMika Westerberg		area (through non_activeX NVMem device), the
136e6b245ccSMika Westerberg		authentication procedure is started by writing 1 to
137e6b245ccSMika Westerberg		this file. If everything goes well, the device is
138e6b245ccSMika Westerberg		restarted with the new NVM firmware. If the image
139e6b245ccSMika Westerberg		verification fails an error code is returned instead.
140e6b245ccSMika Westerberg
141e6b245ccSMika Westerberg		When read holds status of the last authentication
142e6b245ccSMika Westerberg		operation if an error occurred during the process. This
143e6b245ccSMika Westerberg		is directly the status value from the DMA configuration
144e6b245ccSMika Westerberg		based mailbox before the device is power cycled. Writing
145e6b245ccSMika Westerberg		0 here clears the status.
146d1ff7024SMika Westerberg
147d1ff7024SMika WesterbergWhat:		/sys/bus/thunderbolt/devices/<xdomain>.<service>/key
148d1ff7024SMika WesterbergDate:		Jan 2018
149d1ff7024SMika WesterbergKernelVersion:	4.15
150d1ff7024SMika WesterbergContact:	thunderbolt-software@lists.01.org
151d1ff7024SMika WesterbergDescription:	This contains name of the property directory the XDomain
152d1ff7024SMika Westerberg		service exposes. This entry describes the protocol in
153d1ff7024SMika Westerberg		question. Following directories are already reserved by
154d1ff7024SMika Westerberg		the Apple XDomain specification:
155d1ff7024SMika Westerberg
156d1ff7024SMika Westerberg		network:  IP/ethernet over Thunderbolt
157d1ff7024SMika Westerberg		targetdm: Target disk mode protocol over Thunderbolt
158d1ff7024SMika Westerberg		extdisp:  External display mode protocol over Thunderbolt
159d1ff7024SMika Westerberg
160d1ff7024SMika WesterbergWhat:		/sys/bus/thunderbolt/devices/<xdomain>.<service>/modalias
161d1ff7024SMika WesterbergDate:		Jan 2018
162d1ff7024SMika WesterbergKernelVersion:	4.15
163d1ff7024SMika WesterbergContact:	thunderbolt-software@lists.01.org
164d1ff7024SMika WesterbergDescription:	Stores the same MODALIAS value emitted by uevent for
165d1ff7024SMika Westerberg		the XDomain service. Format: tbtsvc:kSpNvNrN
166d1ff7024SMika Westerberg
167d1ff7024SMika WesterbergWhat:		/sys/bus/thunderbolt/devices/<xdomain>.<service>/prtcid
168d1ff7024SMika WesterbergDate:		Jan 2018
169d1ff7024SMika WesterbergKernelVersion:	4.15
170d1ff7024SMika WesterbergContact:	thunderbolt-software@lists.01.org
171d1ff7024SMika WesterbergDescription:	This contains XDomain protocol identifier the XDomain
172d1ff7024SMika Westerberg		service supports.
173d1ff7024SMika Westerberg
174d1ff7024SMika WesterbergWhat:		/sys/bus/thunderbolt/devices/<xdomain>.<service>/prtcvers
175d1ff7024SMika WesterbergDate:		Jan 2018
176d1ff7024SMika WesterbergKernelVersion:	4.15
177d1ff7024SMika WesterbergContact:	thunderbolt-software@lists.01.org
178d1ff7024SMika WesterbergDescription:	This contains XDomain protocol version the XDomain
179d1ff7024SMika Westerberg		service supports.
180d1ff7024SMika Westerberg
181d1ff7024SMika WesterbergWhat:		/sys/bus/thunderbolt/devices/<xdomain>.<service>/prtcrevs
182d1ff7024SMika WesterbergDate:		Jan 2018
183d1ff7024SMika WesterbergKernelVersion:	4.15
184d1ff7024SMika WesterbergContact:	thunderbolt-software@lists.01.org
185d1ff7024SMika WesterbergDescription:	This contains XDomain software version the XDomain
186d1ff7024SMika Westerberg		service supports.
187d1ff7024SMika Westerberg
188d1ff7024SMika WesterbergWhat:		/sys/bus/thunderbolt/devices/<xdomain>.<service>/prtcstns
189d1ff7024SMika WesterbergDate:		Jan 2018
190d1ff7024SMika WesterbergKernelVersion:	4.15
191d1ff7024SMika WesterbergContact:	thunderbolt-software@lists.01.org
192d1ff7024SMika WesterbergDescription:	This contains XDomain service specific settings as
193d1ff7024SMika Westerberg		bitmask. Format: %x
194