[GH-ISSUE #21] GA106 (RTX 3060 LHR, 10de:2504): -110 with stock; after relaxing 2 checks FWSEC succeeds, then SEC2 unreachable (PRI 0xbadf5620) #17

Closed
opened 2026-10-26 16:39:16 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @bobneumann on GitHub (Oct 23, 2026).
Original GitHub issue: https://github.com/Zagitta/gpu-unlock/issues/21

GA106 (RTX 3060 LHR, 10de:2504): stock module fails with -110; with 2 relaxed checks FWSEC succeeds, then SEC2 becomes unreachable (PRI 0xbadf5620)

Hardware / env: 2x RTX 3060 Lite Hash Rate (10de:2504; ZOTAC and MSI boards), Ubuntu 24.04, kernel 6.8.0-147-generic, NVIDIA 595.99.02, Secure Boot off, built from fc83321 (via make install-deb; had to drop the stale docs/STAGE1* install line, see #18). Cmdline: gpu_unlock.targets=0000:04:00.0 gpu_unlock.dyndbg=+p (single card, cold-ish boot after reboot; warm reboot recovers the card, nothing persists).

I could not find any GA106 report in the tracker, so this may be the first. Each step below was found by iterating on one card (GPU1); GPU0 was left alone and kept working.

Stage 1 - stock: -110 at falcon.c:229

Engine reset itself is fine (assert/release OK, hwcfg2=0x67f7 scrub done, chip=0xb76000a1 written), then gu_falcon_hs() polls CPUCTL bit 4 (HALTED) to clear within 1000 us:

poll timeout: reg=0x110100 last=0x10 mask=0x10 expected=0x0 budget_us=1000
failure unlock_610.c:735 unlock_transaction_fwsec error=-110 ...

Also: after this failure the module keeps BAR ownership/DMA buffers ("firmware did not stop; keeping its DMA buffers until power off"), so nvidia.ko then fails request_mem_region (probe ... failed with error -1) and rmmod gpu_unlock says "in use". Recovered by removing the cmdline flag and rebooting. Expected given the conservative design, just noting it.

Waiting 200 ms instead of 1 ms makes no difference: the bit never clears on GA106 (cpuctl=0x10 after 200 ms). Tolerating it (log + continue) lets FWSEC launch.

Stage 2 - FWSEC runs OK, WPR2 size check rejects it (-EIO)

FWSEC result: scratch=0x0 expected_hi16=0
FWSEC WPR2: low=0x2ffe000 high=0x2ffee00 expected_page=0x2ffe00 end=0x2fff00000

lo matches the requested FRTS start (0x2ffe00000), but WPR2 ends at 0x2ffee1000 instead of the layout's 0x2fff00000 (about 900 KB instead of 1 MB). Relaxing only the final equality in unlock_transaction_fwsec (still requiring lo match, hi > lo, hi < wpr_end) lets it continue.

Stage 3 - SEC2 unreachable after FWSEC (current blocker, -ENODEV)

At the pre-launch table check, SEC2 (0x840000) reads back a PRI error and never recovers (retried for 500 ms):

GA106 patch: SEC2 cpuctl=0xbadf5620 after 500 ms (plm_reset=0xffffffff)
table failure: family=GA102/GA103/GA104/GA106 phase=prelaunch index=0 attempt=1 address=0x1fa7cc expected=0xfffff0ff observed=0x0 error=-19

The SEC2 CPUCTL read at entry (before FWSEC) succeeds, so SEC2 is reachable pre-FWSEC on this card and is gone (or gated/locked) after FWSEC-FRTS ran. I have no idea whether this is GA106 vs GA102 SEC2/FRTS behaviour, or something specific to LHR boards. I stopped here since I can't reason about it blind.

Entry state if useful: plm=0xffffff8f ss0=0x7100000 ss1=0x0 wpr2_hi=0x0; FWSEC fuse raw=0x3 version=2; Booter fuse raw=0x1 version=1; FB 0x300000000 (12 GB); VGA base 0x2fff00000.

Diff I used (3 small checks, plus the Makefile fix)

Attached below. Happy to run any debug build or extra register dumps (e.g. SEC2/PMC/PRI-ring state before and after FWSEC) on either card.

diff vs fc83321
@@ falcon.c (gu_falcon_hs)
-	ret = gu_falcon_poll(io, eng->base + GU_FALCON_CPUCTL_OFFSET, 16, 0, 1000, true, NULL);
-	if (ret)
+	ret = gu_falcon_poll(io, eng->base + GU_FALCON_CPUCTL_OFFSET, 16, 0, 200000, false, &trans);
+	if (ret == -ETIMEDOUT)
+		dev_info(io->dev, "GA106 patch: CPUCTL halted bit still set after reset (cpuctl=%#x), continuing\n", trans);
+	else if (ret)
 		return ret;
@@ unlock_610.c (unlock_transaction_fwsec)
-	    (wpr_lo >> 4) != (u32)(frts >> 12) ||
-	    (((u64)(wpr_hi >> 4) + 1) << 12) != work->layout.wpr_end)
+	    (wpr_lo >> 4) != (u32)(frts >> 12))
 		ret = -EIO;
+	else if ((((u64)(wpr_hi >> 4) + 1) << 12) != work->layout.wpr_end)
+		dev_info(&work->pdev->dev, "GA106 patch: WPR2 end %#llx != expected %#llx, continuing\n", ...);
@@ unlock_610.c (run_privileged_writes) - diagnostic only
+	retry SEC2 CPUCTL read up to 500 ms, log value and reset PLM
@@ Makefile (install-dkms)
-	install -Dm644 -t $(DESTDIR)/usr/share/doc/gpu-unlock/docs \
-		docs/STAGE1.md docs/STAGE1-TAIL-REPLAY.json docs/CMP-PORT-PLAN.md
Originally created by @bobneumann on GitHub (Oct 23, 2026). Original GitHub issue: https://github.com/Zagitta/gpu-unlock/issues/21 GA106 (RTX 3060 LHR, `10de:2504`): stock module fails with -110; with 2 relaxed checks FWSEC succeeds, then SEC2 becomes unreachable (PRI `0xbadf5620`) **Hardware / env:** 2x RTX 3060 Lite Hash Rate (`10de:2504`; ZOTAC and MSI boards), Ubuntu 24.04, kernel 6.8.0-147-generic, NVIDIA 595.99.02, Secure Boot off, built from `fc83321` (via `make install-deb`; had to drop the stale `docs/STAGE1*` install line, see #18). Cmdline: `gpu_unlock.targets=0000:04:00.0 gpu_unlock.dyndbg=+p` (single card, cold-ish boot after reboot; warm reboot recovers the card, nothing persists). I could not find any GA106 report in the tracker, so this may be the first. Each step below was found by iterating on one card (GPU1); GPU0 was left alone and kept working. ## Stage 1 - stock: `-110` at `falcon.c:229` Engine reset itself is fine (assert/release OK, `hwcfg2=0x67f7` scrub done, `chip=0xb76000a1` written), then `gu_falcon_hs()` polls `CPUCTL` bit 4 (HALTED) to clear within **1000 us**: ``` poll timeout: reg=0x110100 last=0x10 mask=0x10 expected=0x0 budget_us=1000 failure unlock_610.c:735 unlock_transaction_fwsec error=-110 ... ``` Also: after this failure the module keeps BAR ownership/DMA buffers ("firmware did not stop; keeping its DMA buffers until power off"), so `nvidia.ko` then fails `request_mem_region` (`probe ... failed with error -1`) and `rmmod gpu_unlock` says "in use". Recovered by removing the cmdline flag and rebooting. Expected given the conservative design, just noting it. Waiting 200 ms instead of 1 ms makes no difference: the bit **never** clears on GA106 (`cpuctl=0x10` after 200 ms). Tolerating it (log + continue) lets FWSEC launch. ## Stage 2 - FWSEC runs OK, WPR2 size check rejects it (`-EIO`) ``` FWSEC result: scratch=0x0 expected_hi16=0 FWSEC WPR2: low=0x2ffe000 high=0x2ffee00 expected_page=0x2ffe00 end=0x2fff00000 ``` `lo` matches the requested FRTS start (`0x2ffe00000`), but WPR2 ends at `0x2ffee1000` instead of the layout's `0x2fff00000` (about 900 KB instead of 1 MB). Relaxing only the final equality in `unlock_transaction_fwsec` (still requiring lo match, hi > lo, hi < wpr_end) lets it continue. ## Stage 3 - SEC2 unreachable after FWSEC (current blocker, `-ENODEV`) At the pre-launch table check, SEC2 (`0x840000`) reads back a PRI error and never recovers (retried for 500 ms): ``` GA106 patch: SEC2 cpuctl=0xbadf5620 after 500 ms (plm_reset=0xffffffff) table failure: family=GA102/GA103/GA104/GA106 phase=prelaunch index=0 attempt=1 address=0x1fa7cc expected=0xfffff0ff observed=0x0 error=-19 ``` The SEC2 `CPUCTL` read at entry (before FWSEC) succeeds, so SEC2 is reachable pre-FWSEC on this card and is gone (or gated/locked) after FWSEC-FRTS ran. I have no idea whether this is GA106 vs GA102 SEC2/FRTS behaviour, or something specific to LHR boards. I stopped here since I can't reason about it blind. Entry state if useful: `plm=0xffffff8f ss0=0x7100000 ss1=0x0 wpr2_hi=0x0`; FWSEC fuse raw=0x3 version=2; Booter fuse raw=0x1 version=1; FB 0x300000000 (12 GB); VGA base 0x2fff00000. ## Diff I used (3 small checks, plus the Makefile fix) Attached below. Happy to run any debug build or extra register dumps (e.g. SEC2/PMC/PRI-ring state before and after FWSEC) on either card. <details><summary>diff vs fc83321</summary> ```diff @@ falcon.c (gu_falcon_hs) - ret = gu_falcon_poll(io, eng->base + GU_FALCON_CPUCTL_OFFSET, 16, 0, 1000, true, NULL); - if (ret) + ret = gu_falcon_poll(io, eng->base + GU_FALCON_CPUCTL_OFFSET, 16, 0, 200000, false, &trans); + if (ret == -ETIMEDOUT) + dev_info(io->dev, "GA106 patch: CPUCTL halted bit still set after reset (cpuctl=%#x), continuing\n", trans); + else if (ret) return ret; @@ unlock_610.c (unlock_transaction_fwsec) - (wpr_lo >> 4) != (u32)(frts >> 12) || - (((u64)(wpr_hi >> 4) + 1) << 12) != work->layout.wpr_end) + (wpr_lo >> 4) != (u32)(frts >> 12)) ret = -EIO; + else if ((((u64)(wpr_hi >> 4) + 1) << 12) != work->layout.wpr_end) + dev_info(&work->pdev->dev, "GA106 patch: WPR2 end %#llx != expected %#llx, continuing\n", ...); @@ unlock_610.c (run_privileged_writes) - diagnostic only + retry SEC2 CPUCTL read up to 500 ms, log value and reset PLM @@ Makefile (install-dkms) - install -Dm644 -t $(DESTDIR)/usr/share/doc/gpu-unlock/docs \ - docs/STAGE1.md docs/STAGE1-TAIL-REPLAY.json docs/CMP-PORT-PLAN.md ``` </details>
Author
Owner

@Zagitta commented on GitHub (Oct 23, 2026):

Likely an issue with latest push per #20, for the time being use c274e74981d996e4b83266b43b9070804099ddae

<!-- gh-comment-id:6377060458 --> @Zagitta commented on GitHub (Oct 23, 2026): Likely an issue with latest push per #20, for the time being use `c274e74981d996e4b83266b43b9070804099ddae`
Author
Owner

@bobneumann commented on GitHub (Oct 24, 2026):

Confirmed, thanks. Rebuilt at c274e74 on the same box (2x RTX 3060 LHR 10de:2504, Ubuntu 24.04, kernel 6.8.0-147, driver 595.99.02, power-capped to 145 W): both cards report gpu_unlock: unlocked, nvidia binds normally, zero Xid. 8192^2 matmul: stock 27.5 -> 47.1 TFLOPS BF16 (+71%), 27.2 -> 44.8 FP16 (+65%). Both cards loaded concurrently for 90 s: 46.2/45.8 TFLOPS, 73/61 C, no errors. So the failure in this report was the fc83321 regression (same three symptoms as #20), not GA106. Closing from my side.

<!-- gh-comment-id:6385949546 --> @bobneumann commented on GitHub (Oct 24, 2026): Confirmed, thanks. Rebuilt at c274e74 on the same box (2x RTX 3060 LHR 10de:2504, Ubuntu 24.04, kernel 6.8.0-147, driver 595.99.02, power-capped to 145 W): both cards report `gpu_unlock: unlocked`, nvidia binds normally, zero Xid. 8192^2 matmul: stock 27.5 -> 47.1 TFLOPS BF16 (+71%), 27.2 -> 44.8 FP16 (+65%). Both cards loaded concurrently for 90 s: 46.2/45.8 TFLOPS, 73/61 C, no errors. So the failure in this report was the fc83321 regression (same three symptoms as #20), not GA106. Closing from my side.
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#17
No description provided.