Commit 8c9f017
fw/coredump: wake LCPU during dump so BLE crashes capture its RAM
The LCPU (BLE controller) RAM lives in the LPSYS domain and is only
reachable while that domain is powered. NimBLE host asserts (e.g.
ble_hs.c start_stage2) crash through the generic assert path, which
leaves the LCPU asleep, so their coredumps dropped the 24 KB LCPU
region entirely.
Wake the LCPU from prv_dump_lcpu_ram() so the controller RAM is captured
for every crash type. If the LCPU is fully powered down the wake blocks
until the watchdog reboots us, costing only this dump. The two
special-case wake calls in the NimBLE init path are now redundant and
removed, along with the wrapper.
Fixes FIRM-2292
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>1 parent 916fdbf commit 8c9f017
3 files changed
Lines changed: 10 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | 30 | | |
34 | 31 | | |
35 | 32 | | |
| |||
60 | 57 | | |
61 | 58 | | |
62 | 59 | | |
63 | | - | |
64 | | - | |
65 | | - | |
| 60 | + | |
| 61 | + | |
66 | 62 | | |
67 | 63 | | |
68 | 64 | | |
| |||
155 | 151 | | |
156 | 152 | | |
157 | 153 | | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
| 154 | + | |
162 | 155 | | |
163 | 156 | | |
164 | 157 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
447 | 447 | | |
448 | 448 | | |
449 | 449 | | |
450 | | - | |
451 | | - | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
452 | 455 | | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
| 456 | + | |
| 457 | + | |
458 | 458 | | |
459 | 459 | | |
460 | 460 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
336 | 336 | | |
337 | 337 | | |
338 | 338 | | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | 339 | | |
346 | 340 | | |
347 | 341 | | |
| |||
0 commit comments