[PR #294] gpu_unlock: unlock Turing (TU10x) with the two-write chain #286

Open
opened 2026-11-07 17:54:50 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Zagitta/gpu-unlock/pull/294
Author: @RakkiPoni
Created: 11/2/2026
Status: 🔄 Open

Base: fix/turing-loader-halt ← Head: turing-tu10x-unlock


📝 Commits (3)

  • c2c55d8 gpu_unlock: unlock Turing (TU10x) with the two-write chain
  • 9422be4 gpu_unlock: wait 10 ms after the GSP reset before the FWSEC loader
  • 326ba8f gpu_unlock: poll the TU10x scrub in DMACTL instead of sleeping 10 ms

📊 Changes

3 files changed (+94 additions, -41 deletions)

View changed files

📝 kernel/gpu_unlock/falcon.c (+19 -2)
📝 kernel/gpu_unlock/recipes.c (+46 -38)
📝 kernel/gpu_unlock/unlock_610.c (+29 -1)

📄 Description

Follows up on #242: the changes from this comment, as a PR against fix/turing-loader-halt so they are easier to review.

5247c22 alone stops at -110 on every Turing chip reported so far (loader never halts, last_mmio=0x110100:0x0). These seven changes get all three dies through:

File Change
falcon.c gu_falcon_loader() FBIF_CTL |= ALLOW_PHYS_NO_CTX, DMACTL = 0 before the loader runs (as gu_falcon_hs() does)
falcon.c gu_falcon_direct() tolerate -ETIMEDOUT on the HALTED poll: TU10x SEC2 reads back HALTED after reset
recipes.c TU10x two-write chain from nlzy/turing-unlock (payload b0ec9029…), which releases ACR mutex 3; tu102_plm opens FEAT_PLM and clears WPR2_ADDR_HI
unlock_610.c restore_frts() skipped on Turing (WPR_CFG_PLM is never opened to the host)
unlock_610.c prelaunch 0xbadf.... PLM read tolerated on Turing before the Booter runs
unlock_610.c unlock_transaction_reset() FLR skipped on Turing after checking WPR2_ADDR_HI.VAL == 0, logs stage=flr_skipped
falcon.c gu_falcon_loader() wait for the IMEM/DMEM scrub after the GSP reset: poll DMACTL & 0x6 == 0, as kflcnWaitForResetToFinish_TU102() does (326ba8f, replaces the empirical 10 ms of 9422be4). On Turing the existing HWCFG2 bit 12 wait is a no-op, so the loader could be written mid-scrub and never halt

Tested (cold boots, reports in #242)

Reporter Card Chip Result
@RakkiPoni RTX 2060 6 GB (1f08) TU106 43.9 TFLOPS FP16 (locked cap ~26)
@bilibb RTX 2080 Ti (1e07) TU102 +52 % FP16
@celisej567 RTX 2080 (1e87) TU104 unlocked
@JayCTBee 3× RTX 2060 12 GB (1f03) TU106 +57 to +69 %
@Ledzpg RTX 2070 SUPER (1e84) TU104 +57 %, after one -110 on the first boot
@jlundstrom RTX 2080 (1e87) + RTX 2070 (1f07), aarch64 TU104 / TU106 +57 % / +53 %
@sahlawat RTX 2080 Ti (1e07) TU102 unlocked on 2 cold boots with the 10 ms wait (failed without it)
@Ledzpg RTX 2070 SUPER (1e84) TU104 no wait 3/10, DMACTL poll 10/10 (10 ms wait: 6/6)
@arketec RTX 2070 TU106 unlocked with the DMACTL poll

An RTX 3060 Ti (GA104) in the same box as the 2060 still unlocks with this build, so the Ampere path is unchanged.

The intermittent -110 (@Ledzpg, @sahlawat) was a race with the falcon memory scrub. Right after the reset a TU104 reads DMACTL=0x7 (IMEM/DMEM scrub still running) while HWCFG2 bit 12 already reads 0, and DMACTL & 0x6 clears about 20 µs later. gpu_unlock.dyndbg=+p and the 10 ms wait only hid it by being slower. @Ledzpg found the register in NVIDIA's open modules and measured it; the GA102 HWCFG2 wait in gu_falcon_engine_reset() is unchanged.

Refs #242

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Zagitta/gpu-unlock/pull/294 **Author:** [@RakkiPoni](https://github.com/RakkiPoni) **Created:** 11/2/2026 **Status:** 🔄 Open **Base:** `fix/turing-loader-halt` ← **Head:** `turing-tu10x-unlock` --- ### 📝 Commits (3) - [`c2c55d8`](https://github.com/Zagitta/gpu-unlock/commit/c2c55d87cf2928cc79ab6e477a05b952f314c594) gpu_unlock: unlock Turing (TU10x) with the two-write chain - [`9422be4`](https://github.com/Zagitta/gpu-unlock/commit/9422be4c7920ceb71841c4219ef1d352ef8c2344) gpu_unlock: wait 10 ms after the GSP reset before the FWSEC loader - [`326ba8f`](https://github.com/Zagitta/gpu-unlock/commit/326ba8f26258555e24d17c49543f109b27c3e79d) gpu_unlock: poll the TU10x scrub in DMACTL instead of sleeping 10 ms ### 📊 Changes **3 files changed** (+94 additions, -41 deletions) <details> <summary>View changed files</summary> 📝 `kernel/gpu_unlock/falcon.c` (+19 -2) 📝 `kernel/gpu_unlock/recipes.c` (+46 -38) 📝 `kernel/gpu_unlock/unlock_610.c` (+29 -1) </details> ### 📄 Description Follows up on #242: the changes from [this comment](https://github.com/Zagitta/gpu-unlock/issues/242#issuecomment-6532296240), as a PR against `fix/turing-loader-halt` so they are easier to review. `5247c22` alone stops at `-110` on every Turing chip reported so far (loader never halts, `last_mmio=0x110100:0x0`). These seven changes get all three dies through: | File | Change | | :--- | :--- | | `falcon.c` `gu_falcon_loader()` | `FBIF_CTL \|= ALLOW_PHYS_NO_CTX`, `DMACTL = 0` before the loader runs (as `gu_falcon_hs()` does) | | `falcon.c` `gu_falcon_direct()` | tolerate `-ETIMEDOUT` on the HALTED poll: TU10x SEC2 reads back HALTED after reset | | `recipes.c` | TU10x two-write chain from nlzy/turing-unlock (payload `b0ec9029…`), which releases ACR mutex 3; `tu102_plm` opens FEAT_PLM and clears WPR2_ADDR_HI | | `unlock_610.c` `restore_frts()` | skipped on Turing (WPR_CFG_PLM is never opened to the host) | | `unlock_610.c` prelaunch | `0xbadf....` PLM read tolerated on Turing before the Booter runs | | `unlock_610.c` `unlock_transaction_reset()` | FLR skipped on Turing after checking WPR2_ADDR_HI.VAL == 0, logs `stage=flr_skipped` | | `falcon.c` `gu_falcon_loader()` | wait for the IMEM/DMEM scrub after the GSP reset: poll `DMACTL & 0x6 == 0`, as `kflcnWaitForResetToFinish_TU102()` does (`326ba8f`, replaces the empirical 10 ms of `9422be4`). On Turing the existing `HWCFG2` bit 12 wait is a no-op, so the loader could be written mid-scrub and never halt | ### Tested (cold boots, reports in #242) | Reporter | Card | Chip | Result | | :--- | :--- | :---: | :--- | | @RakkiPoni | RTX 2060 6 GB (`1f08`) | TU106 | 43.9 TFLOPS FP16 (locked cap ~26) | | @bilibb | RTX 2080 Ti (`1e07`) | TU102 | +52 % FP16 | | @celisej567 | RTX 2080 (`1e87`) | TU104 | unlocked | | @JayCTBee | 3× RTX 2060 12 GB (`1f03`) | TU106 | +57 to +69 % | | @Ledzpg | RTX 2070 SUPER (`1e84`) | TU104 | +57 %, after one `-110` on the first boot | | @jlundstrom | RTX 2080 (`1e87`) + RTX 2070 (`1f07`), aarch64 | TU104 / TU106 | +57 % / +53 % | | @sahlawat | RTX 2080 Ti (`1e07`) | TU102 | unlocked on 2 cold boots with the 10 ms wait (failed without it) | | @Ledzpg | RTX 2070 SUPER (`1e84`) | TU104 | no wait 3/10, `DMACTL` poll 10/10 (10 ms wait: 6/6) | | @arketec | RTX 2070 | TU106 | unlocked with the `DMACTL` poll | An RTX 3060 Ti (GA104) in the same box as the 2060 still unlocks with this build, so the Ampere path is unchanged. The intermittent `-110` (@Ledzpg, @sahlawat) was a race with the falcon memory scrub. Right after the reset a TU104 reads `DMACTL=0x7` (IMEM/DMEM scrub still running) while `HWCFG2` bit 12 already reads 0, and `DMACTL & 0x6` clears about 20 µs later. `gpu_unlock.dyndbg=+p` and the 10 ms wait only hid it by being slower. @Ledzpg found the register in NVIDIA's open modules and measured it; the GA102 `HWCFG2` wait in `gu_falcon_engine_reset()` is unchanged. Refs #242 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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
Zagitta/gpu-unlock#286
No description provided.