You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+86-50Lines changed: 86 additions & 50 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -94,7 +94,7 @@ pre-commit install
94
94
tt-smi can be used as a GUI (`tt-smi`) or CLI (`tt-smi -s`) to display system information and Tenstorrent device telemetry, and it can be used to reset Tenstorrent devices (`tt-smi -r`).
Tenstorrent System Management Interface (TT-SMI) is a command line utility to interact with all Tenstorrent devices on host. The main objective of TT-SMI is to provide a simple and easy-to-use
109
109
interface to display devices, device telemetry, and system information. TT-SMI is also used to issue board-level resets.
@@ -113,12 +113,12 @@ options:
113
113
-l, --local Run on local chips (Wormhole only)
114
114
-v, --version show program's version number and exit
115
115
-s, --snapshot Dump snapshot of current tt-smi information to STDOUT
116
-
-ls, --list List boards that are available on host and quit
116
+
-ls, --list List boards on the host and quit (UMD: UMD Chip ID, PCI BDF, PCI Dev ID, …)
Write snapshot to a file. Default: ~/tt_smi/<timestamp>_snapshot.json
119
119
-c, --compact Run in compact mode, hiding the sidebar and other static elements
120
-
-r [0,1 ...], --reset [0,1 ...]
121
-
Provide a list of PCI indices. Find PCI index of board using the -ls option. If no indices are provided, all devices will be reset
120
+
-r [TARGETS ...], --reset [TARGETS ...]
121
+
Reset targets: UMD logical IDs, PCI BDFs (e.g. 0000:0a:00.0), or /dev/tenstorrent/<id>. Use -ls to list devices. Omit targets or use "all" to reset all devices. Do not mix types in one command.
122
122
--snapshot_no_tty Force no-tty behavior in the snapshot to stdout
123
123
-glx_reset, --galaxy_6u_trays_reset
124
124
Reset all the ASICs on the galaxy host
@@ -148,69 +148,105 @@ All GUI keyboard shortcuts can be found in the help menu that user can bring up
148
148
149
149

150
150
151
-
## Resets
151
+
## Listing devices
152
152
153
-
Another feature of tt-smi is performing resets on Blackhole, Wormhole and Grayskull PCIe cards, using the ```-r / --reset``` argument.
153
+
Use **`tt-smi -ls`** or **`tt-smi --list`** to print a table of Tenstorrent devices and exit (no GUI). This is the easiest way to see **UMD Chip ID**, **PCI BDF**, and **`/dev/tenstorrent/<n>`** (shown as **PCI Dev ID**) for each board—use these values with `tt-smi -r` as described in [Resets](#resets).
154
154
155
+
With the **UMD** backend (default), output includes two tables:
155
156
156
-
```
157
-
$ tt-smi -r 0,1 ..., --reset 0,1 ...
158
-
```
157
+
-**All available boards on host (UMD)** — every device TT-SMI discovered.
158
+
-**Boards that can be reset (UMD)** — devices eligible for `tt-smi -r`.
159
159
160
-
To perform the reset, provide a list of comma-separated PCI indices of the cards on the host. You can find PCI index of board using the -ls option. If no indices are provided, all devices will be reset.
160
+
Column meanings:
161
161
162
-
TT-SMI will perform different types of resets depending on the device:
163
-
- Grayskull
164
-
- Tensix-level reset that will reset each Tensix cores.
165
-
- Wormhole
166
-
- A board-level reset will be perfomed. Power will be cut to the board and brought back up.
167
-
- After reset, the ethernet connections will be re-trained.
168
-
- Blackhole
169
-
- An ASIC-level reset will be perfomed.
162
+
| Column | Meaning |
163
+
|--------|---------|
164
+
|**UMD Chip ID**| Logical device index used for `tt-smi -r 0`, `tt-smi -r 1`, … |
165
+
|**PCI BDF**| PCI bus/device/function, e.g. `0000:01:00.0` — use with `tt-smi -r 0000:01:00.0`|
166
+
|**PCI Dev ID**| Kernel device node path, e.g. `/dev/tenstorrent/19` — use with `tt-smi -r /dev/tenstorrent/19`|
167
+
|**Board Type**| e.g. Blackhole, Wormhole |
168
+
|**Device Series**| Board SKU / series string |
169
+
|**Board Number**| Board serial identifier |
170
170
171
-
By default, the reset command will re-initialize the boards after reset.
171
+
On large hosts (e.g. Galaxy), **UMD Chip ID** and **`/dev/tenstorrent/<n>`** are **not** always the same number—always use `-ls` to pick the correct target.
172
172
173
-
A successful reset on a system with a Wormhole N300 board looks like the following:
173
+
During discovery, **tt-umd** may print log lines (for example Ethernet heartbeat checks on Galaxy). Those messages are from the driver; the tables below still list the boards.
174
174
175
-
```
176
-
$ tt-smi -r
177
-
Starting reset on devices at PCI indices: 0
178
-
Waiting for 2 seconds for potential hotplug removal.
179
-
Waiting for devices to reappear on pci bus...
180
-
Reset successfully completed for device at PCI index 0.
181
-
Finishing reset on devices at PCI indices: 0
182
-
Re-initializing boards after reset....
183
-
Detected Chips: 2
184
-
```
175
+
### Example: Blackhole Galaxy (32 ASICs, UMD)
185
176
186
-
In order to find the correct device ID to call the reset on, the user can use the tt-smi board list function `tt-smi -ls` or `tt-smi --list`.
187
-
The dev id listed is the same as found on `/dev/tenstorrent/<dev pci id>`.
188
-
The generated output will include a list of all boards on host as well as the ones that can be reset.
177
+
Abbreviated output from a 32-board Galaxy system; your PCI BDFs and `/dev/tenstorrent/<n>` assignments will differ.
189
178
190
179
```
191
180
$ tt-smi -ls
192
-
181
+
… UMD may log info/warning lines during topology discovery …
193
182
Gathering Information ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:00
With **`--use_luwen`**, the table layout differs (no UMD Chip ID column); use **PCI BDF** and **`/dev/tenstorrent/<n>`** for `tt-smi -r` when using Luwen.
203
+
204
+
## Resets
205
+
206
+
Another feature of tt-smi is performing resets on Blackhole and Wormhole PCIe cards and galaxy machines, using the `-r` / `--reset` argument.
207
+
208
+
Reset targets are parsed as **one type per invocation** (do not mix UMD logical IDs, PCI BDFs, and `/dev/tenstorrent/<id>` paths in the same command).
209
+
210
+
### UMD (default backend)
211
+
212
+
With the UMD backend (default, no `--use_luwen`), `-r` accepts **four** kinds of input:
213
+
214
+
-**No arguments** or **`all`** — reset every detected device (`tt-smi -r` or `tt-smi -r all`).
215
+
-**UMD logical chip IDs** — comma-separated integers, e.g. `0`, `1`, `2` (same numbering as UMD device enumeration).
216
+
-**PCI BDF** — full address, e.g. `0000:0a:00.0` (comma-separated for multiple devices).
217
+
-**`/dev/tenstorrent/<id>`** — device node index, e.g. `/dev/tenstorrent/0`.
218
+
219
+
### Luwen (`--use_luwen`)
220
+
221
+
With the Luwen backend, `-r` accepts **three** kinds of input:
222
+
223
+
-**No arguments** or **`all`** — reset all devices discovered via Luwen.
224
+
-**PCI BDF** — as above.
225
+
-**`/dev/tenstorrent/<id>`** — as above.
226
+
227
+
**Note:** A bare integer (e.g. `0`) is **not** a valid Luwen reset target. Use the `/dev/tenstorrent/0` form instead.
228
+
229
+
-**Example (invalid with Luwen):**`tt-smi -r 0 --use_luwen`
230
+
-**Example (valid with Luwen):**`tt-smi -r /dev/tenstorrent/0 --use_luwen`
Use `tt-smi -ls` (or `tt-smi --list`) to list boards; see [Listing devices](#listing-devices) for UMD Chip ID, PCI BDF, and `/dev/tenstorrent/<id>` columns.
242
+
243
+
By default, the reset command will re-initialize the boards after reset. Use the `--no_reinit` arg to skip this.
244
+
245
+
211
246
## Galaxy resets
212
247
213
248
There are several options available for resetting Galaxy 6U trays.
249
+
- Use the `-r/--reset` argument and treat it like any other pcie card. Warning - Needs CPLD FW v1.16 or higher.
214
250
- glx_reset: resets the galaxy, informs users if an Ethernet failure has been detected
215
251
- glx_reset_auto: same as -glx_reset, but resets up to 3 times if an Ethernet failure has been detected
216
252
- glx_reset_tray <tray_num>: performs reset on one galaxy tray. Tray number has to be between 1-4
0 commit comments