[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-115075":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":18,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":21,"hasPages":21,"topics":23,"createdAt":10,"pushedAt":24,"updatedAt":25,"readmeContent":26,"aiSummary":27,"trendingCount":15,"starSnapshotCount":15,"syncStatus":14,"lastSyncTime":28,"discoverSource":29},115075,"pico-ga100vfi","dalzyu\u002Fpico-ga100vfi","dalzyu","defeating fuse security on ga100 with pico 2(and some wires)","",null,"Python",177,54,2,0,10,117,52,95.12,"MIT License",false,"main",[],"2026-11-20 19:30:10","2026-11-23 18:38:05","# pico-ga100vfi\n\nVoltage-glitch toolchain for NVIDIA GA100 boards (CMP 170HX), inspired by\n[`kate-land\u002Fga100vfi`](https:\u002F\u002Fgithub.com\u002Fkate-land\u002Fga100vfi), on generic\nRP2350A \u002F RP2350B boards using an I2C-only actuation path.\n\nCredits:\n- [`kate-land`](https:\u002F\u002Fgithub.com\u002Fkate-land) for discovering the GA100 VFI method,\n  the fuse controller map, and the original tooling ([write-up](https:\u002F\u002Fblog.kate.land\u002Fposts\u002Fusing-voltage-glitching-to-unlock-the-a100\u002F)).\n- [`mellojello_`](https:\u002F\u002Fgithub.com\u002FJosiahWhite), who published an 8 GB CMP 170HX write-up concurrently and proved\n  out the I2C + `PEX_RST` path first.\n\nMIT licensed. See `LICENSE`.\n\n## What it does\n\nA GA100 samples its fuse block once, early in power-on reset. Dropping NVVDD below\nthe sense-amp threshold across that window makes the block read back as unburned.\nThe card comes up with `DSOV = 0` (software override unlocked), making the shadow\nregisters readable and writable.\n\nThis repo drives that dip over the board's I2C bus via PMBus commands to the\nMP2888B voltage controller, timed off the `PEX_RST` release edge.\n\nUnlocking disabled units on a GA100 goes in four steps:\n\n1. **Glitch to Goldilocks** — run `campaign` to boot the card with software override\n   unlocked (`DSOV = 0`), a valid fuse CRC, and open privilege masks.\n2. **Arm fuse programming** — re-sense the control fuses so fuse-program enable comes\n   back while `DSOV = 0` holds, then turn on software override and clear the write\n   and burn locks in the shadow option registers.\n3. **Append fuseless-fuse (FF) records** — read the die's defect masks so only good\n   units get unmasked (HBM stacks, SMs, PCIe\u002FNVLink, FP capabilities), and burn new\n   FF records into blank OTP rows. The controller reads FF records in order and last\n   record per block wins, so appending overrides old floorsweeping without touching\n   already-burned rows.\n4. **Power cycle** — power-cycle so the fuse controller replays the new FF chain on\n   a clean boot.\n\nThis repo handles the voltage-glitch step (getting the card into the Goldilocks\nstate). For the deep dive on how the GA100 fuse controller works, read\n[Kate's blog post](https:\u002F\u002Fblog.kate.land\u002Fposts\u002Fusing-voltage-glitching-to-unlock-the-a100\u002F).\n\n## How to connect Pico 2 to 170HX Board\n\n| Connection | Required? | Purpose |\n|---|---|---|\n| `GND` | **yes** | common ground between Pico and GPU PCB |\n| I2CC SDA + SCL (`GP0` \u002F `GP1`) | **yes** | PMBus to the MP2888B NVVDD controller |\n| `PEX_RST` (`GP22`) | **yes** | fundamental reset (`PEX_RST_BUF*`); its release edge is `t = 0` |\n\nThat's it — four wires.\n\nA direct **common ground** wire between the Pico and the GPU PCB is highly recommended. You may choose whatever points are convinient for you on the Pico and the GPU PCB.\n\n![Recommended points for connecting to I2CC and PEX_RST_BUF*](docs\u002Fimages\u002Fbetter_pic(from@ichundes).png)\n\nThe `PEX_RST` tap must be a **direct** wire (no series resistor) — U809 drives that\nnet push-pull, so a series resistor keeps the Pico from pulling it below V_IL.\n\n### Board support\n\n| Family | Boards | Debug ADC pin |\n|---|---|---|\n| RP2350B *(default, tested)* | Pico 2 W, Waveshare Plus-W | GP42 (ADC2) |\n| RP2350A | Pico 2 | GP26–GP29 only |\n\n`firmware\u002Fboard.h` holds the pin map and validates family, ADC, and hardware I2C\npin choices at compile time.\n\n### Customizing pin definitions\n\nEdit the `#define PIN_*` macros in [`firmware\u002Fboard.h`](firmware\u002Fboard.h), then\nrebuild and reflash:\n\n- **`PIN_I2C_SDA` \u002F `PIN_I2C_SCL` (I2CC):** must be **hardware I2C** pins on the\n  same controller (`i2c0` or `i2c1`) — hardware I2C is required for deterministic\n  1 MHz PMBus timing during the glitch. `board.h` picks `I2C_BUS` automatically from\n  `PIN_I2C_SDA` and rejects mismatched pairs at compile time:\n\n  | Controller | Valid SDA pins | Valid SCL pins |\n  |---|---|---|\n  | `i2c0` *(default: GP0 \u002F GP1)* | `GP % 4 == 0` (`0, 4, 8, 12, 16, 20, 24, 28`, …) | `GP % 4 == 1` (`1, 5, 9, 13, 17, 21, 25, 29`, …) |\n  | `i2c1` | `GP % 4 == 2` (`2, 6, 10, 14, 18, 22, 26`, …) | `GP % 4 == 3` (`3, 7, 11, 15, 19, 23, 27`, …) |\n\n- **`PIN_PEX_RST`:** any unused GPIO (`0–29` on RP2350A, `0–47` on RP2350B).\n- **`PIN_NVVDD_ADC`:** any ADC-capable pin for your chip (`GP26–GP29` on RP2350A,\n  `GP40–GP47` on RP2350B).\n\n*(Note: `firmware\u002Fdetect.c` is a standalone probe and keeps its own `I2C_SDA = 0`,\n`I2C_SCL = 1`, `i2c0` constants.)*\n\n## Build\n\n```sh\nexport PICO_SDK_PATH=\u002Fpath\u002Fto-pico-sdk\n\n# Normal build (stock clocks, no ADC — just three wires)\ncmake -S firmware -B build -DPICO_BOARD=pico2_w -G Ninja\nninja -C build\n\n# RP2350A (Pico 2)\ncmake -S firmware -B build-pico2 -DPICO_BOARD=pico2 -DBOARD_RP2350A=ON -G Ninja\nninja -C build-pico2\n```\n\nOutputs `build\u002Fpwmvid.uf2` and `build\u002Fdetect.uf2`. Hold BOOTSEL, plug USB, and copy\nthe `.uf2` onto the `RP2350` drive. More detail in [`docs\u002FBUILD.md`](docs\u002FBUILD.md).\n\n### Debug build (budget oscilloscope)\n\nThe normal build is minimal: stock 150 MHz clocks, no ADC. For tuning and\ndebugging, a **debug build** adds a 400 MHz overclock and\nNVVDD rail sampling on the family ADC pin — GP42 on RP2350B, GP26 on RP2350A\n(wire the NVVDD sense point to `PIN_NVVDD_ADC` from `firmware\u002Fboard.h`):\n\n```sh\ncmake -S firmware -B build-debug -DPICO_BOARD=pico2_w -DDEBUG=ON -G Ninja\nninja -C build-debug\n\n# RP2350A (Pico 2) debug build\ncmake -S firmware -B build-debug-pico2 -DPICO_BOARD=pico2 -DBOARD_RP2350A=ON -DDEBUG=ON -G Ninja\nninja -C build-debug-pico2\n```\n\nWith `-DDEBUG=ON`:\n- 400 MHz overclock (VREG 1.50 V; only QMI M0 CLKDIV is raised, to 8, with a masked write that leaves the bootrom's other timing fields untouched, plus a no-allocate XIP dummy read and __dsb\u002F__isb before the clk_sys switch; the banner prints the M0 timing before and after)\n- NVVDD ADC on the family ADC pin (GP42 on RP2350B, GP26 on RP2350A) at ~4.17 MSa\u002Fs (240 ns\u002Fsample)\n- `y` dumps a 16384-sample rail trace\n- `v` reports the live rail voltage\n- `glitch done` includes an `nvvdd=` average\n\nThe ADC never feeds the glitch decision — it's purely diagnostic.\n\n## Host usage\n\nPlug the Pico over USB into the **same host machine that has the CMP 170HX\ninstalled** (`\u002Fdev\u002FttyACM0`) — the host client needs both serial control of the\nPico and direct PCIe BAR0 access to the card. Make sure `nvidia` is\nunloaded and blacklisted (otherwise the driver re-locks the VRM and binds before you\ncan inspect BAR0).\n\n```sh\n# Install once (or prefix commands with PYTHONPATH=host)\npip install -e host\u002F\n\n# Recommended: pick v_dip automatically per shot (see docs\u002FADAPTIVE.md).\nsudo python3 -m ga100vfi campaign --bdf 0000:1a:00.0 --adaptive\n\n# If you already know your card's v_dip (e.g. from a previous adaptive run):\nsudo python3 -m ga100vfi campaign --bdf 0000:1a:00.0 --v-dip 358\n\n# Single-shot & diagnostic commands\nsudo python3 -m ga100vfi baseline --bdf 0000:1a:00.0   # shadow fuse snapshot\nsudo python3 -m ga100vfi classify --bdf 0000:1a:00.0   # restore BAR0 + run the 5 checks\nsudo python3 -m ga100vfi attempt --pulses 3 --v-dip 354 --t-dip -60 --v-restore 750 --pw 198 --gap 150 --delay 117 --trace\nsudo python3 -m ga100vfi revert                         # hand VRM back to PWM-VID\n```\n\n`campaign` fires at most `--budget` attempts (default 500). It exits `0` in the\nGoldilocks state with a JSON verdict on stdout and the VRM already handed back to\nstock PWM-VID control, or `1` when the budget runs out. `--adaptive` picks `v_dip`\nper shot from the outcomes so far; how, and its results, are in\n[`docs\u002FADAPTIVE.md`](docs\u002FADAPTIVE.md).\n\nEach Goldilocks run, adaptive or not, appends one JSON line to `--log` (default\n`goldilocks.jsonl` in the working directory): local time with UTC offset, the board\nserial from the card's InfoROM (`null` if the card has none), the BDF, the attempt\ncount, and the winning glitch profile (every `g` parameter, as in\n`host\u002Fga100vfi\u002Fglitch.py` `Attempt`). Replay a profile with `attempt`, or reuse its\n`v_dip_mv` with `campaign --v-dip`. The file holds your card's serial; keep it out of\nanything you publish.\n\n## The glitch\n\n`t = 0` is the `PEX_RST` release edge.\n\n| Time | Action |\n|---|---|\n| t = −1300 \u002F −1200 µs | lower `VOUT_MIN` (`0x20`) and enable PMBus control (`E1 = 0xC2FA`) |\n| t = −1000 µs | assert `PEX_RST`; set rail to 600 mV |\n| t = `td − delay` | triple-pulse `VOUT_COMMAND` dips (`pw` µs low, `gap` µs high) |\n| t = 0 µs | release `PEX_RST` (GPU samples fuses around this edge) |\n| t = `post` + 10 \u002F +60 µs | restore `VOUT_COMMAND` = `0x7E` (stock) and `VOUT_MIN` = `0x30` |\n| t = `post` + 500 ms | hand back to PWM-VID mode (`E1 = 0xC2EA`), unless `revert=0` |\n\nA single deep dip zeroes the whole fuse block (`CRC = 0x00`). Reaching Goldilocks\n(`DSOV = 0`, `CRC = 0x55`, PLMs = `0xffffffff`) takes a **shallow three-pulse**\nwaveform that knocks out only the row 0\u002F1 control fuses:\n\n```\nu                                        # unlock + config-id 0x1229 (stops devinit re-locking)\ng 354 -60 750 -20 0 1 0 3 198 150 117 0   # shallow triple pulse (revert=0 for fast campaign)\n```\n\n**Note:** This glitch has only been tested on a single card. Silicon, VRM, and\nboard-to-board variation means other cards may need fine-tuning (`--v-dip`,\n`--t-dip`, `--delay`, `--pw`, `--gap`; use `attempt --trace` to inspect the rail).\nFull command set: [`docs\u002FPROTOCOL.md`](docs\u002FPROTOCOL.md).\n\n### Measured waveform & 100-shot telemetry\n\nAcross a 100-attempt run with the settings above (`240 ns\u002Fsample` DMA trace captured\non every shot, `56.9 s` total):\n\n- **14 Goldilocks hits** (`14.0%` per shot) · **86 clean misses** (`DSOV = 1`) ·\n  **100\u002F100 PCIe link-up** (`0` untrained-link drops, `0` I2C NACKs).\n- **Throughput:** `~181 ms` per shot in `campaign` (`~5.5 shots\u002Fs`, `40.5 ms` glitch\n  + `140.3 ms` PCIe link\u002FBAR0 restore; trace dumps add `~376 ms` when enabled).\n  Median time to Goldilocks is ~5 shots (`\u003C 1 s`); 95% probability by ~20 shots\n  (`~3.6 s`).\n- **Command → rail lag:** measured `~46 µs` on the Pulse 1 falling edge, with\n  Pulse 1 cleanly straddling `t = 0` (`~0.320 V` dip vs `~0.725 V` restore).\n\n![Captured NVVDD triple-pulse waveform at 240 ns\u002Fsample and zoomed Pulse-1 edge showing ~46 us command-to-rail lag](docs\u002Fimages\u002Fnvvdd-waveform.png)\n\n![100-shot outcome breakdown, cumulative Goldilocks probability, and per-attempt latency breakdown](docs\u002Fimages\u002Fcampaign-telemetry.png)\n\n## Repository layout\n\n```\nAGENTS.md          rules for coding agents (hardware safety, coding, provenance, verification)\nfirmware\u002F\n  board.h          pin map (single source of truth)\n  pwmvid.c         main firmware: timed voltage stage + reset pulse\n  detect.c         standalone I2C probe (plain Pico 2)\n  CMakeLists.txt   builds pwmvid + detect; defaults to BOARD_RP2350B\nhost\u002F\n  pyproject.toml   packaging (`pip install -e host\u002F`)\n  ga100vfi\u002F\n    bar0.py        BAR0 mapping, post-reset sysfs restore, and register access\n    classify.py    the five Goldilocks per-attempt checks\n    glitch.py      serial client and attempt issuance\n    adaptive.py    `campaign --adaptive` v_dip planner (Thompson sampling)\n    sim.py         simulated cards for tuning the planner (`python -m ga100vfi.sim`)\n    cli.py         `ga100vfi` CLI (`campaign`, `attempt`, `classify`, `baseline`, `revert`)\ndocs\u002F\n  ADAPTIVE.md      `campaign --adaptive`: how it picks v_dip, flags, hardware and sim results\n  BUILD.md         prerequisites, per-family build, flashing, verification\n  PROTOCOL.md      serial command set and firmware safety invariants\n  images\u002F          wiring diagram and tap-point photos\n```\n\n## Safety\n\n- **Avoid excessive glitching.** Test boards have survived thousands of attempts, but\n  repeatedly browning out NVVDD stresses the VRM and power delivery — run campaigns\n  at your own risk.\n- **Never drive `PEX_RST` high.** The firmware drives it low only and releases to\n  high-Z; driving 3.3 V into that 1.8 V push-pull net can damage the buffer\u002FGPU.\n- **Keep NVVDD protected.** After every dip the firmware restores `VOUT_COMMAND` to\n  stock and hands control back to PWM-VID (`revert=1` by default, or on `campaign`\n  exit \u002F `revert`).\n- **Never power-cycle the host mid-boot.**\n\n## Addendum: Defective vs. Disabled\n\nMany will wonder why there are extra SMs and FBPs available to unlock — if the\ncard could be sold as a higher SKU for more money, why cut it down? Part of it is\nprice discrimination: the 170HX is artificially trimmed to target a specific market.\n\nStill, it isn't always just segmentation. Many of the non-defective but disabled\nunits have worse performance characteristics, or even quirks that make them\nunusable, while others work fine. The former most likely failed NVIDIA's targets for\nparametric yield, while the latter were just disabled for segmentation (after all,\nNVIDIA can't sell 128 SKUs of GA100 varying from 1–128 SMs!). On the flipside,\nthere's a slim possibility that some \"defective\" units end up working in your\ntests — those likely missed NVIDIA's bar for functional yield, even if they happen\nto pass your specific workloads.\n\nThis is all conjecture and best guesses, though. Take it with oceans of salt and\ndo not consider this advice.\n\n## Disclaimer\n\nUse at your own risk. I am not responsible for bricked cards, toasted VRMs, dead\nboards, thermonuclear war, or anything else that happens from using this tool. You\nare choosing to modify your own hardware.\n\n## Support\n\nIf this project helped you, you may donate through here if you'd like:\n\n\u003Ca href=\"https:\u002F\u002Fbuymeacoffee.com\u002Fdalzy\">\u003Cimg src=\"https:\u002F\u002Fcdn.buymeacoffee.com\u002Fbuttons\u002Fv2\u002Fdefault-yellow.png\" alt=\"Buy me a coffee\" width=\"220\">\u003C\u002Fa>\n","这是一个用于对NVIDIA GA100（CMP 170HX）显卡实施电压毛刺攻击以绕过熔丝安全机制的硬件-软件协同工具链。项目基于树莓派Pico 2微控制器，通过I2C总线向MP2888B电源管理芯片发送PMBus指令，在PCIe复位信号（PEX_RST）释放边沿精准触发NVVDD供电电压瞬时跌落，使熔丝控制器误判为未烧录状态，从而解锁软件覆盖（DSOV=0）并开放阴影寄存器读写权限。核心特点是仅需4根导线、纯I2C控制、无需调试接口或固件修改，适用于显卡单元解锁（如启用禁用的SM\u002FHBM\u002FPCIe单元）等底层硬件安全研究与工程调试场景。","2026-11-24 04:50:15","CREATED_QUERY"]