[GH-ISSUE #102] [Compatibility] Gigabyte RTX 3090 (10de:2204 / 1458:403a) / MSI MPG X570 GAMING PRO CARBON WIFI BIOS 1.Q2 / Ryzen 9 3950X (no iGPU): headless USB local profile, one clean transaction, after fixing the AMI PciIo I/O record (#7) #71

Open
opened 2026-10-31 07:01:16 +07:00 by bsakaguchi · 4 comments
Owner

Originally created by @kevinwwillis on GitHub (Oct 28, 2026).
Original GitHub issue: https://github.com/windows-GPU-UNLOCK/Windows-GPU-UNLOCK/issues/102

Evidence type

Existing unlock experiment — details below

Hardware

Component Configuration
GPU Gigabyte GeForce RTX 3090, 24 GiB, 10de:2204, subsystem 1458:403a
VBIOS 94.02.59.00.5e (never cross-flashed); NVIDIA GOP nvgop-ga1xx 0x6000a
GPU location 0000:2d:00.0, behind root port 1022:1483
Motherboard / BIOS MSI MPG X570 GAMING PRO CARBON WIFI (MS-7B93), AMI 1.Q2
CPU AMD Ryzen 9 3950X (no iGPU; the RTX owns the only GOP)
Windows / driver Windows 11 Pro 26300 / NVIDIA 621.01
Secure Boot / BitLocker Off / off
Resizable BAR On (BAR1 32 GiB)
Displays Three monitors, all on the RTX 3090

Result

One supervised boot from the headless USB route with a generated local profile:

  • Unlock child: transaction result=0, FINAL status=0 ... clean=1. FWSEC ran and set WPR2, SS1 was written once (6 → 8), FLR returned, the post-FLR checks passed, bus mastering ended off, and the command register was restored to 0x0002.
  • Wrapper: every step through starting bootmgfw.efi returned 0.
  • Windows: all three monitors came back, the NVIDIA driver loaded with no nvlddmkm events, and Resizable BAR was still on.

Benchmark: torch.matmul, torch 2.11.0+cu128, FP16/BF16 with FP32 accumulation and reduced-precision reduction off, TF32, plain FP32 as the control. Each figure is the mean of 3 runs, and each run is the median of 5 × 100 matmuls. Driver 621.01, 370 W limit. Locked → unlocked, TFLOPS:

n FP32 (control) TF32 FP16 BF16
4096 23.2 → 23.0 (0.99×) 33.8 → 56.5 (1.67×) 67.9 → 112.5 (1.66×) 68.8 → 114.9 (1.67×)
8192 24.5 → 24.2 (0.99×) 37.7 → 61.9 (1.64×) 69.9 → 110.9 (1.59×) 71.1 → 114.3 (1.61×)

Both sides run at the 370 W power limit (throttle reason 0x4).

The owner reports that a Windows restart on this board resets the GPU to its power-on state. Every probe and unlock boot here started from a restart into the F11 menu. The probe captures show the cold-state registers at their power-on values (GFW 0x8b8f/0x3ff/0x10, WPR2 0, SS0 0x10153132, SS1 0x6). Sleep and hibernate were not tested.

What blocked it, and how it was solved

1. PciIo I/O record mismatch: the MSI X570 issue in #7. Both read-only captures had command 0x0002 (I/O off, memory on, bus master off), but the firmware PciIo attribute record was 0x300 (I/O + memory). make-profile.py refuses that pair, and it is right to: RestoreDecode would stop after the display had been detached.

The cause, observed on hardware: the AMI PciIo->Attributes(Enable, IO) returns success and changes nothing when its record already holds IO. The hardware bit is never written. The NVIDIA GOP ignores that call's status.

The fix is a small pre-step EFI that runs before the project's wrapper, which itself is unmodified:

  1. Log the GPU's and bridge's full config space.
  2. Call Attributes(Disable, IO). On this firmware that corrects the record to 0x200 and leaves the command at 0x0002.
  3. Require no other config-space change in the GPU or its bridge.
  4. Re-read at 1, 2, 4 and 8 s.
  5. Only then start the wrapper (\EFI\BOOT\NEXT.EFI). On any failure it returns EFI_NOT_STARTED while the display is still attached, so the firmware falls through to Windows Boot Manager.

Three boots gave the identical result (0x0002/0x300 → 0x0002/0x200, stable at every recheck). After it, the probe reads pci-attributes value=0x200 and the capture passes CapturePermit.

2. Display-child count. With three monitors connected, the RTX GOP created three no-EDID display children. With one monitor it created one. The headless release already accepts 1 to GU_HEADLESS_MAX_DISPLAY_CHILDREN (4) at runtime and does not pin the ADR bytes. The only limit was in profile generation (make-profile.py: one or two) and the replay fixture (one extra child). The local diff raises both to the runtime limit as a named constant tied to the C define by a test. It also adds replay failure cases on the last child: a consumer, path drift, a fifth child, and an EDID driver.

3. NVIDIA GOP 0x6000a is not in proven.json. The owner accepted a first run locally (a local proven.json entry, .text sha256 8924ba488419e5d82b524d10e8dd63bfe886f077026fae1a9cc03e25b920b276). Before that, an offline comparison of the driver binding's Supported/Start/Stop call trees (direct calls, displacements masked) found them instruction-for-instruction identical to 0x60009. 52 of the image's 652 functions differ, all reached only through function tables. This run is the first hardware release of 0x6000a; it released and restored cleanly.

4. Test-only fix. Two simulated-transaction jobs always started the PciIo record at 0x300. With this card's captured command 0x0002, port.c GuEnableMaster then correctly refused. The simulations now derive the record from the captured command register. That gives 0x300 for every earlier capture (command 0x0003), so their results cannot change. A new test feeds GuEnableMaster three mismatched records and checks that each is refused with no write. No production code changed.

Source and build

  • Base 20c44fe. Local diff: 11 files, +119/−21, test, generator and docs only, plus the local proven.json entry. Pre-step: about 375 lines of C plus host tests. Both are published at: https://github.com/kevinwwillis/Windows-GPU-UNLOCK/tree/msi-x570-rtx3090-local-unlock/research/msi-x570-3090 (branch msi-x570-rtx3090-local-unlock, commits 3d2eb05 and ff93077 on 20c44fe)
  • clang/lld-link 20.1.8. Profile LOCAL-220410de-403a1458-1337743f, header sha256 e84a31e774742e83824d9ff004175812fd087f21bcd87b89343504049f8c7acc, PROM sha256 1337743fa8b84093707d4c4d2a5dfbf7383c9231b7fec13ba5006c7128f7710d. Selector entryLatchedSs1Full, GU_TARGET_BUS=0x2d, GU_NO_EDID_DRIVER 1.
  • All 20 test-profile.ps1 host jobs pass. That script needs Windows PowerShell 5.1: under PowerShell 7, ConvertFrom-Json returns Int64 and the Format -isnot [int] identity check fails before any test runs.
  • SHA-256: pre-step 6b2047cd6fa0205f37cd8a42087e911cd1b17ff5d01fb0a9c294feac29b43695, wrapper ebdb02a7567b01b8f2cc395e369f3960da1f165795ec128a744639c031ebda74, child 7beed8426c740b3fea7747aa12683040dafffea98916f688b61d3f32440ae473.

Limits

  • One unlock transaction so far.
  • Only three-monitor boots have run on hardware. One to four monitors are covered by the host replay only.
  • No firmware, PROM or VBIOS dumps are attached. The sanitized boot logs and benchmark JSON are on the branch above.
Originally created by @kevinwwillis on GitHub (Oct 28, 2026). Original GitHub issue: https://github.com/windows-GPU-UNLOCK/Windows-GPU-UNLOCK/issues/102 ### Evidence type Existing unlock experiment — details below ### Hardware | Component | Configuration | |---|---| | GPU | Gigabyte GeForce RTX 3090, 24 GiB, `10de:2204`, subsystem `1458:403a` | | VBIOS | 94.02.59.00.5e (never cross-flashed); NVIDIA GOP `nvgop-ga1xx` **0x6000a** | | GPU location | `0000:2d:00.0`, behind root port `1022:1483` | | Motherboard / BIOS | MSI MPG X570 GAMING PRO CARBON WIFI (MS-7B93), AMI 1.Q2 | | CPU | AMD Ryzen 9 3950X (no iGPU; the RTX owns the only GOP) | | Windows / driver | Windows 11 Pro 26300 / NVIDIA 621.01 | | Secure Boot / BitLocker | Off / off | | Resizable BAR | On (BAR1 32 GiB) | | Displays | Three monitors, all on the RTX 3090 | ### Result One supervised boot from the headless USB route with a generated local profile: - Unlock child: `transaction result=0`, `FINAL status=0 ... clean=1`. FWSEC ran and set WPR2, SS1 was written once (6 → 8), FLR returned, the post-FLR checks passed, bus mastering ended off, and the command register was restored to `0x0002`. - Wrapper: every step through starting `bootmgfw.efi` returned 0. - Windows: all three monitors came back, the NVIDIA driver loaded with no `nvlddmkm` events, and Resizable BAR was still on. Benchmark: torch.matmul, torch 2.11.0+cu128, FP16/BF16 with FP32 accumulation and reduced-precision reduction off, TF32, plain FP32 as the control. Each figure is the mean of 3 runs, and each run is the median of 5 × 100 matmuls. Driver 621.01, 370 W limit. Locked → unlocked, TFLOPS: | n | FP32 (control) | TF32 | FP16 | BF16 | |---|---:|---:|---:|---:| | 4096 | 23.2 → 23.0 (0.99×) | 33.8 → 56.5 (1.67×) | 67.9 → 112.5 (1.66×) | 68.8 → 114.9 (1.67×) | | 8192 | 24.5 → 24.2 (0.99×) | 37.7 → 61.9 (1.64×) | 69.9 → 110.9 (1.59×) | 71.1 → 114.3 (1.61×) | Both sides run at the 370 W power limit (throttle reason `0x4`). The owner reports that a Windows restart on this board resets the GPU to its power-on state. Every probe and unlock boot here started from a restart into the F11 menu. The probe captures show the cold-state registers at their power-on values (GFW `0x8b8f/0x3ff/0x10`, WPR2 0, SS0 `0x10153132`, SS1 `0x6`). Sleep and hibernate were not tested. ### What blocked it, and how it was solved **1. PciIo I/O record mismatch: the MSI X570 issue in #7.** Both read-only captures had command `0x0002` (I/O off, memory on, bus master off), but the firmware PciIo attribute record was `0x300` (I/O + memory). `make-profile.py` refuses that pair, and it is right to: `RestoreDecode` would stop after the display had been detached. The cause, observed on hardware: the AMI `PciIo->Attributes(Enable, IO)` returns success and changes nothing when its record already holds IO. The hardware bit is never written. The NVIDIA GOP ignores that call's status. The fix is a small pre-step EFI that runs before the project's wrapper, which itself is unmodified: 1. Log the GPU's and bridge's full config space. 2. Call `Attributes(Disable, IO)`. On this firmware that corrects the record to `0x200` and leaves the command at `0x0002`. 3. Require no other config-space change in the GPU or its bridge. 4. Re-read at 1, 2, 4 and 8 s. 5. Only then start the wrapper (`\EFI\BOOT\NEXT.EFI`). On any failure it returns `EFI_NOT_STARTED` while the display is still attached, so the firmware falls through to Windows Boot Manager. Three boots gave the identical result (`0x0002/0x300` → `0x0002/0x200`, stable at every recheck). After it, the probe reads `pci-attributes value=0x200` and the capture passes `CapturePermit`. **2. Display-child count.** With three monitors connected, the RTX GOP created three no-EDID display children. With one monitor it created one. The headless release already accepts 1 to `GU_HEADLESS_MAX_DISPLAY_CHILDREN` (4) at runtime and does not pin the ADR bytes. The only limit was in profile generation (`make-profile.py`: one or two) and the replay fixture (one extra child). The local diff raises both to the runtime limit as a named constant tied to the C define by a test. It also adds replay failure cases on the last child: a consumer, path drift, a fifth child, and an EDID driver. **3. NVIDIA GOP 0x6000a is not in `proven.json`.** The owner accepted a first run locally (a local `proven.json` entry, `.text` sha256 `8924ba488419e5d82b524d10e8dd63bfe886f077026fae1a9cc03e25b920b276`). Before that, an offline comparison of the driver binding's Supported/Start/Stop call trees (direct calls, displacements masked) found them instruction-for-instruction identical to 0x60009. 52 of the image's 652 functions differ, all reached only through function tables. This run is the first hardware release of 0x6000a; it released and restored cleanly. **4. Test-only fix.** Two simulated-transaction jobs always started the PciIo record at `0x300`. With this card's captured command `0x0002`, `port.c` GuEnableMaster then correctly refused. The simulations now derive the record from the captured command register. That gives `0x300` for every earlier capture (command `0x0003`), so their results cannot change. A new test feeds GuEnableMaster three mismatched records and checks that each is refused with no write. No production code changed. ### Source and build - Base `20c44fe`. Local diff: 11 files, +119/−21, test, generator and docs only, plus the local `proven.json` entry. Pre-step: about 375 lines of C plus host tests. Both are published at: https://github.com/kevinwwillis/Windows-GPU-UNLOCK/tree/msi-x570-rtx3090-local-unlock/research/msi-x570-3090 (branch `msi-x570-rtx3090-local-unlock`, commits `3d2eb05` and `ff93077` on `20c44fe`) - clang/lld-link 20.1.8. Profile `LOCAL-220410de-403a1458-1337743f`, header sha256 `e84a31e774742e83824d9ff004175812fd087f21bcd87b89343504049f8c7acc`, PROM sha256 `1337743fa8b84093707d4c4d2a5dfbf7383c9231b7fec13ba5006c7128f7710d`. Selector `entryLatchedSs1Full`, `GU_TARGET_BUS=0x2d`, `GU_NO_EDID_DRIVER 1`. - All 20 `test-profile.ps1` host jobs pass. That script needs Windows PowerShell 5.1: under PowerShell 7, `ConvertFrom-Json` returns Int64 and the `Format -isnot [int]` identity check fails before any test runs. - SHA-256: pre-step `6b2047cd6fa0205f37cd8a42087e911cd1b17ff5d01fb0a9c294feac29b43695`, wrapper `ebdb02a7567b01b8f2cc395e369f3960da1f165795ec128a744639c031ebda74`, child `7beed8426c740b3fea7747aa12683040dafffea98916f688b61d3f32440ae473`. ### Limits - One unlock transaction so far. - Only three-monitor boots have run on hardware. One to four monitors are covered by the host replay only. - No firmware, PROM or VBIOS dumps are attached. The sanitized boot logs and benchmark JSON are on the branch above.
Author
Owner

@3ndetz commented on GitHub (Oct 29, 2026):

Follow-up on a similar MSI X570 system: one supervised USB unlock succeeded on MSI MPG X570 GAMING PLUS / Ryzen 9 5900X / RTX 3090 (PCI 10de:2204, subsystem 1b4c:1454). The PCI decode pre-step from this report corrected the same 0x300 / 0x0002 mismatch; the locally generated profile passed 20 host jobs, and Windows recovered after one clean unlock transaction.

A short WSL cuBLAS FP16-input / FP32-accumulation 4096 × 4096 test at the same 296 W limit and driver 610.88 measured 58.30 → 89.77 TFLOPS (+54%). This is one pair of short runs; repeated boots, persistence and long-term stability remain unverified. Sanitized details: #138. Thanks for documenting the pre-step.

<!-- gh-comment-id:6504092640 --> @3ndetz commented on GitHub (Oct 29, 2026): Follow-up on a similar MSI X570 system: one supervised USB unlock succeeded on MSI MPG X570 GAMING PLUS / Ryzen 9 5900X / RTX 3090 (PCI `10de:2204`, subsystem `1b4c:1454`). The PCI decode pre-step from this report corrected the same `0x300` / `0x0002` mismatch; the locally generated profile passed 20 host jobs, and Windows recovered after one clean unlock transaction. A short WSL cuBLAS FP16-input / FP32-accumulation 4096 × 4096 test at the same 296 W limit and driver 610.88 measured 58.30 → 89.77 TFLOPS (+54%). This is one pair of short runs; repeated boots, persistence and long-term stability remain unverified. Sanitized details: #138. Thanks for documenting the pre-step.
Author
Owner

@xiaolidakucha commented on GitHub (Oct 30, 2026):

Thanks for documenting this in detail — it resolves the exact blocker on my machine.

My card reports the same GOP build: nvgop 0x6000a, .text sha256 8924ba488419e5d82b524d10e8dd63bfe886f077026fae1a9cc03e25b920b276 (from the generator's refusal on an unmodified main checkout, not a local edit). Different family though: RTX 3060 12GB, GA106, 10de:2504 / 1043:8816, VBIOS 94.06.25.00.9b, on a Gigabyte Z690 UD DDR4 (BIOS F5) with an i9-12900KF and no iGPU.

Both of my captures pass observations_pass and prom_pass; the only refusal is driver_scope on this hash. So your result looks like it would unblock a GA10x board as well, not just GA102 — which is why I am asking rather than waiting.

Two questions, if you have a moment:

1.Would you be willing to raise your proven.json entry as a PR, citing #138 as the second machine? It seems far more likely to land from you than from a first-time reporter.
2.If not, could you say what the entry actually needs — just version, image size and .text hash, or does proven.json also pin call-tree fingerprints? I would rather not guess at the schema and get it subtly wrong.
I am happy to contribute my two captures as a second, different-family data point for the same hash. I will not post PROM dumps, loaded driver images or raw captures.

Related: #50 already succeeded on this exact board (Z690 UD DDR4 BIOS F27) with a different RTX 3060 at 10de:1536, so the board side is proven; only the GOP hash is in the way.

<!-- gh-comment-id:6519684264 --> @xiaolidakucha commented on GitHub (Oct 30, 2026): Thanks for documenting this in detail — it resolves the exact blocker on my machine. My card reports the same GOP build: nvgop 0x6000a, .text sha256 8924ba488419e5d82b524d10e8dd63bfe886f077026fae1a9cc03e25b920b276 (from the generator's refusal on an unmodified main checkout, not a local edit). Different family though: RTX 3060 12GB, GA106, 10de:2504 / 1043:8816, VBIOS 94.06.25.00.9b, on a Gigabyte Z690 UD DDR4 (BIOS F5) with an i9-12900KF and no iGPU. Both of my captures pass observations_pass and prom_pass; the only refusal is driver_scope on this hash. So your result looks like it would unblock a GA10x board as well, not just GA102 — which is why I am asking rather than waiting. Two questions, if you have a moment: 1.Would you be willing to raise your proven.json entry as a PR, citing #138 as the second machine? It seems far more likely to land from you than from a first-time reporter. 2.If not, could you say what the entry actually needs — just version, image size and .text hash, or does proven.json also pin call-tree fingerprints? I would rather not guess at the schema and get it subtly wrong. I am happy to contribute my two captures as a second, different-family data point for the same hash. I will not post PROM dumps, loaded driver images or raw captures. Related: #50 already succeeded on this exact board (Z690 UD DDR4 BIOS F27) with a different RTX 3060 at 10de:1536, so the board side is proven; only the GOP hash is in the way.
Author
Owner

@xiaolidakucha commented on GitHub (Oct 30, 2026):

Same-card context, if useful: this board's earlier 3060 (10de:1536) run in #50 measured
BF16 25.99 -> 49.38 TFLOPS on the same Z690 UD DDR4.

<!-- gh-comment-id:6519703233 --> @xiaolidakucha commented on GitHub (Oct 30, 2026): Same-card context, if useful: this board's earlier 3060 (10de:1536) run in #50 measured BF16 25.99 -> 49.38 TFLOPS on the same Z690 UD DDR4.
Author
Owner

@kevinwwillis commented on GitHub (Oct 30, 2026):

Thanks. I've opened #152 to add 0x6000a (.text 8924ba48…b276) to proven.json, scoped to the RTX 3090 (10de:2204) only, citing #102 and #138.

On the schema: in current main an entry is just the version (a hex string, "6000a") and the .text sha256. proven.json does not pin call-tree fingerprints. The pair appears in up to three places:

  • the top-level nvgop list, with an evidence link;
  • the family's nvgop list under chips;
  • where the family has a pci_nvgop map, under the card's PCI ID.

make-profile.py checks the captured driver against those lists, and test_family_admission.py lists which versions each test card must accept.

For your 3060 (GA106, 10de:2504): our evidence is GA102 only, so the PR doesn't widen GA106. That would be its own change, citing a GA106 card that released cleanly on this build. Your captures plus a supervised run would be that evidence.

<!-- gh-comment-id:6525522812 --> @kevinwwillis commented on GitHub (Oct 30, 2026): Thanks. I've opened #152 to add 0x6000a (`.text` 8924ba48…b276) to `proven.json`, scoped to the RTX 3090 (`10de:2204`) only, citing #102 and #138. On the schema: in current main an entry is just the version (a hex string, `"6000a"`) and the `.text` sha256. `proven.json` does not pin call-tree fingerprints. The pair appears in up to three places: - the top-level `nvgop` list, with an evidence link; - the family's `nvgop` list under `chips`; - where the family has a `pci_nvgop` map, under the card's PCI ID. `make-profile.py` checks the captured driver against those lists, and `test_family_admission.py` lists which versions each test card must accept. For your 3060 (GA106, `10de:2504`): our evidence is GA102 only, so the PR doesn't widen GA106. That would be its own change, citing a GA106 card that released cleanly on this build. Your captures plus a supervised run would be that evidence.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
windows-GPU-UNLOCK/Windows-GPU-UNLOCK#71
No description provided.