Commit 7e00f19
boards: tenstorrent: implement workaround to reset BH SOC on PCIE cards
P100 cards have the BH_RST gpio wired to the ARC JTAG interface,
enabling the ARC JTAG to reset the SOC directly. However, P100a/b/c,
P150 a/b/c, and P300 a/b/c cards don't connect this GPIO.
To workaround this, we need to directly instruct the BMC to toggle the
reset pin of the BH SOC. We accomplish this by starting an openocd
instance for the BMC within the reset procedure for the BH SOC. This
openocd instance directly sets the GPIO register for the reset pin,
then clears it. This allows us to assert the BH_RST pin on cards that do
not wire it to the ARC_JTAG interface.
Note that in order to export the proper variables for the openocd
command, the build process now creates a temporary file
"bmc-reset-vars.cfg" with the board-specific data for the reset
procedure, as well as the path to the openocd instance to run. This file
is added to gitignore as we don't want to track it.
Signed-off-by: Daniel DeGrasse <[email protected]>1 parent 0d959e2 commit 7e00f19
File tree
3 files changed
+36
-17
lines changed- boards/tenstorrent/tt_blackhole
- support
3 files changed
+36
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
17 | 36 | | |
18 | 37 | | |
19 | 38 | | |
| |||
Lines changed: 14 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
| 10 | + | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
| |||
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
20 | 26 | | |
21 | | - | |
| 27 | + | |
22 | 28 | | |
23 | | - | |
| 29 | + | |
24 | 30 | | |
25 | 31 | | |
26 | 32 | | |
27 | 33 | | |
28 | 34 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
42 | 39 | | |
43 | 40 | | |
44 | 41 | | |
| |||
0 commit comments