Commit db1ac77
Make silicon pcie_address optional
Summary:
`icecube800bc`'s spec carried a placeholder NPU PCIe address (`00:01.0`) that
its own `_review_notes` flagged as not-yet-known. A placeholder is worse than
nothing here: it passes pre-flight and then gets aggregated into the platform's
PCIe presence-check list as if it were real.
Drop it from the spec, and make `platform.silicon[].pcie_address` optional so
omission is the supported way to say "not known yet":
- `schemas/platform-spec.v1.json`: remove `pcie_address` from the `silicon`
item `required` list. The `BB:DD.F` pattern is unchanged, so a present value
is still validated exactly as before.
- `validator/spec_validator.py`: `_Silicon.pcie_address` becomes
`str | None = None`, and the format check is skipped when absent.
- `configs/icecube800bc/spec.json`: `{ "name": "TH6" }`, with the review note
reworded from "replace this placeholder" to "add it once confirmed".
- `references/vendor-spec-schema.md`: field marked optional, with a worked
example and an explicit note that an empty string is not a valid stand-in.
An empty string is deliberately still rejected — the `BB:DD.F` pattern does not
match `""`, so there is exactly one way to express "unknown" and consumers do
not have to special-case a sentinel. Per-component `pcie_address` (in
`$defs/component`) was already optional and is untouched.
___
Differential Revision: D117156310
fbshipit-source-id: 6d61075f2c2dff2b4b40666a4616efea6d0939a91 parent 63b56c3 commit db1ac77
5 files changed
Lines changed: 38 additions & 8 deletions
File tree
- fboss/platform/firmware_onboarding
- configs/icecube800bc
- references
- schemas
- validator
- tests
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| |||
Lines changed: 14 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
52 | 64 | | |
53 | 65 | | |
54 | 66 | | |
55 | 67 | | |
56 | 68 | | |
57 | | - | |
| 69 | + | |
58 | 70 | | |
59 | 71 | | |
60 | 72 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
165 | 167 | | |
166 | 168 | | |
167 | 169 | | |
168 | | - | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
169 | 173 | | |
170 | 174 | | |
171 | 175 | | |
| |||
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
| 139 | + | |
| 140 | + | |
140 | 141 | | |
141 | 142 | | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
142 | 156 | | |
143 | 157 | | |
144 | 158 | | |
| |||
0 commit comments