[GH-ISSUE #20] fc83321 fails to unlock 2x RTX 3090 (GSP HALTED wait, WPR2 end check, SEC2 PRI error); c274e74 works #16

Open
opened 2026-10-26 16:39:15 +07:00 by bsakaguchi · 5 comments
Owner

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

fc83321 fails to unlock two RTX 3090s on every cold boot. c274e74 (its parent) unlocks both cards on the same machine, and nvidia binds them normally.

Setup

  • Cards: 2x RTX 3090 10de:2204
    • 0000:01:00.0 MSI 1462:3884, VBIOS 94.02.42.00.F1
    • 0000:16:00.0 NVIDIA 10de:1454, VBIOS 94.02.59.00.AE
  • Board: MSI PRO X670-P WIFI, Ryzen 9 9900X, amd_iommu=on iommu=pt
  • OS: Fedora 44, kernel 7.2.11-200.fc44.x86_64, dracut, make rpm
  • Driver: NVIDIA 615.71.09 open kernel module
  • gpu_unlock.targets=all, cold boots (entry: ... wpr2_hi=0x0)

Failure 1: GSP HALTED never clears after reset (fc83321 as is)

Falcon reset done: base=0x110000 hwcfg=0x67f7 chip=0xb72000a1
poll timeout: reg=0x110100 last=0x10 mask=0x10 expected=0x0 budget_us=1000
failure unlock_610.c:735 unlock_transaction_fwsec error=-110 ...

gu_falcon_hs() now waits 1 ms for CPUCTL.HALTED to clear before DMA/STARTCPU. RM (kgspExecuteHsFalcon_GA102) has no such wait, and neither did c274e74. These boards keep HALTED set across the reset.

Failure 2: WPR2 high must equal the 1 MiB reserve end

After tolerating the stale HALTED for the GSP only:

FWSEC WPR2: low=0x5ffe000 high=0x5ffee00 expected_page=0x5ffe00 end=0x5fff00000
failure unlock_610.c:737 unlock_transaction_fwsec error=-5 ...

FWSEC-FRTS returns a 0xe1000-byte region. The new (hi + 1) << 12 == wpr_end condition rejects it. The 3090 Ti log in #1 has the same shape (low=0x5ff2000 high=0x5ff2e00 end=0x5ff300000). RM only checks hi != 0 and lo == FRTS offset. The test fixture uses 0x5ffeff000, which real hardware does not return.

Failure 3: SEC2 PRI error in the privileged write table

With both checks above relaxed, FWSEC succeeds and the next stage fails:

FWSEC WPR2: low=0x5ffe000 high=0x5ffee00 expected_page=0x5ffe00 end=0x5fff00000
failure unlock_610.c:967 table_failure error=-19 last_mmio=0x840100 value=0xbadf5620 ...

I stopped here and have not looked into this one.

c274e74 on the same cards

FWSEC WPR2: low=0x5ffe000 high=0x5ffee00 expected_page=0x5ffe00 end=0x5fff00000
selector write: SS0=0x88888888
selector write: SS1=0x8
post-FLR SEC2 reset released, GSP halted, BME=0 pending=0 WPR2=1ffffe00:00000000 SS0=88888888 SS1=00000008
gpu_unlock: unlocked

Both cards, no Xid.

Partial fix

Fixes for failures 1 and 2, with tests (make test passes, the new tests fail without the fix): github.com/sammcj/gpu-unlock@95e8ba5

I haven't opened a PR, because it doesn't get these cards past failure 3.

Originally created by @sammcj on GitHub (Oct 23, 2026). Original GitHub issue: https://github.com/Zagitta/gpu-unlock/issues/20 `fc83321` fails to unlock two RTX 3090s on every cold boot. `c274e74` (its parent) unlocks both cards on the same machine, and `nvidia` binds them normally. ### Setup - Cards: 2x RTX 3090 `10de:2204` - `0000:01:00.0` MSI `1462:3884`, VBIOS `94.02.42.00.F1` - `0000:16:00.0` NVIDIA `10de:1454`, VBIOS `94.02.59.00.AE` - Board: MSI PRO X670-P WIFI, Ryzen 9 9900X, `amd_iommu=on iommu=pt` - OS: Fedora 44, kernel `7.2.11-200.fc44.x86_64`, dracut, `make rpm` - Driver: NVIDIA 615.71.09 open kernel module - `gpu_unlock.targets=all`, cold boots (`entry: ... wpr2_hi=0x0`) ### Failure 1: GSP HALTED never clears after reset (`fc83321` as is) ``` Falcon reset done: base=0x110000 hwcfg=0x67f7 chip=0xb72000a1 poll timeout: reg=0x110100 last=0x10 mask=0x10 expected=0x0 budget_us=1000 failure unlock_610.c:735 unlock_transaction_fwsec error=-110 ... ``` `gu_falcon_hs()` now waits 1 ms for `CPUCTL.HALTED` to clear before DMA/STARTCPU. RM (`kgspExecuteHsFalcon_GA102`) has no such wait, and neither did `c274e74`. These boards keep HALTED set across the reset. ### Failure 2: WPR2 high must equal the 1 MiB reserve end After tolerating the stale HALTED for the GSP only: ``` FWSEC WPR2: low=0x5ffe000 high=0x5ffee00 expected_page=0x5ffe00 end=0x5fff00000 failure unlock_610.c:737 unlock_transaction_fwsec error=-5 ... ``` FWSEC-FRTS returns a `0xe1000`-byte region. The new `(hi + 1) << 12 == wpr_end` condition rejects it. The 3090 Ti log in #1 has the same shape (`low=0x5ff2000 high=0x5ff2e00 end=0x5ff300000`). RM only checks hi != 0 and lo == FRTS offset. The test fixture uses `0x5ffeff000`, which real hardware does not return. ### Failure 3: SEC2 PRI error in the privileged write table With both checks above relaxed, FWSEC succeeds and the next stage fails: ``` FWSEC WPR2: low=0x5ffe000 high=0x5ffee00 expected_page=0x5ffe00 end=0x5fff00000 failure unlock_610.c:967 table_failure error=-19 last_mmio=0x840100 value=0xbadf5620 ... ``` I stopped here and have not looked into this one. ### `c274e74` on the same cards ``` FWSEC WPR2: low=0x5ffe000 high=0x5ffee00 expected_page=0x5ffe00 end=0x5fff00000 selector write: SS0=0x88888888 selector write: SS1=0x8 post-FLR SEC2 reset released, GSP halted, BME=0 pending=0 WPR2=1ffffe00:00000000 SS0=88888888 SS1=00000008 gpu_unlock: unlocked ``` Both cards, no Xid. ### Partial fix Fixes for failures 1 and 2, with tests (`make test` passes, the new tests fail without the fix): https://github.com/sammcj/gpu-unlock/commit/95e8ba5 I haven't opened a PR, because it doesn't get these cards past failure 3.
Author
Owner

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

Can confirm the same issue on my single 3090 setup, only went as far as encountering Failure 1 though. Reverting to c274e74 works. My OS is Debian 13 on kernel 6.12.113+deb13-amd64, Driver is 615.71.09.

<!-- gh-comment-id:6375696819 --> @Silver267 commented on GitHub (Oct 23, 2026): Can confirm the same issue on my single 3090 setup, only went as far as encountering Failure 1 though. Reverting to c274e74 works. My OS is Debian 13 on kernel 6.12.113+deb13-amd64, Driver is 615.71.09.
Author
Owner

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

Same issue here.

MAG X670E TOMAHAWK WIFI (MS-7E12)
9950X
Single 3090 FE.
vLLM set up in a proxmox vm with the gpu passthru.
VM OS is Ubuntu 24.04 Server
Nvidia Driver 580.178.04

Thought it was VM specific so I tried to install it directly to proxmox host. Same issue.
Went to c274e74, didnt need to do anything at the host level. Worked right away in the VM.

Thank you for posting this issue. Would have been stuck for hours.

<!-- gh-comment-id:6376377518 --> @jangcodes commented on GitHub (Oct 23, 2026): Same issue here. MAG X670E TOMAHAWK WIFI (MS-7E12) 9950X Single 3090 FE. vLLM set up in a proxmox vm with the gpu passthru. VM OS is Ubuntu 24.04 Server Nvidia Driver 580.178.04 Thought it was VM specific so I tried to install it directly to proxmox host. Same issue. Went to c274e74, didnt need to do anything at the host level. Worked right away in the VM. Thank you for posting this issue. Would have been stuck for hours.
Author
Owner

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

Can confirm same results on 4 x 3090 FE, github.com/Zagitta/gpu-unlock@c274e74981 worked for me

<!-- gh-comment-id:6376496784 --> @scallbe1 commented on GitHub (Oct 23, 2026): Can confirm same results on 4 x 3090 FE, https://github.com/Zagitta/gpu-unlock/commit/c274e74981d996e4b83266b43b9070804099ddae worked for me
Author
Owner

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

That's very strange fc83321 works fine on my machine with 2x3090 🤔

I'm investigating, sorry for the trouble

<!-- gh-comment-id:6376962998 --> @Zagitta commented on GitHub (Oct 23, 2026): That's very strange `fc83321` works fine on my machine with 2x3090 🤔 I'm investigating, sorry for the trouble
Author
Owner

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

I routinely manually fire suspend/resume to lower power usage of the cards after models have been loaded or compiling done and do not have the unlock ever go away.

<!-- gh-comment-id:6377691784 --> @Ph0rk0z commented on GitHub (Oct 24, 2026): I routinely manually fire suspend/resume to lower power usage of the cards after models have been loaded or compiling done and do not have the unlock ever go away.
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#16
No description provided.