[GH-ISSUE #110] [Result Success] RTX 4090 (10de:2684, Gigabyte 1458:40bf) with Secure Boot ENABLED (MOK-signed DKMS, lockdown=integrity), Linux Mint 22.2 / 7.0.0-31, NVIDIA 595.84 open, AMD iGPU display: cold boot + warm reboot unlocked #69

Open
opened 2026-10-31 06:56:04 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @mrfireflygenai on GitHub (Oct 28, 2026).
Original GitHub issue: https://github.com/JustAResearcher/gpu-unlock-ada/issues/110

Summary

One RTX 4090 unlocked on the first AC-off cold boot, and again after an ordinary warm reboot. I used the documented make install → install-deb path on Linux Mint 22.2 with Secure Boot left enabled (kernel lockdown integrity). The DKMS module was signed with the machine's existing MOK, the same key the NVIDIA DKMS driver already uses, and the kernel accepted it. The reports in this repo that I found all had Secure Boot disabled, so this may be a useful data point.

The card is compute-only: the monitors are driven by the Ryzen 5700G iGPU (boot VGA), as in #58.

Environment

Item Value
GPU RTX 4090 10de:2684, Gigabyte subsystem 1458:40bf, vBIOS 95.02.3C.00.AB, at 0000:01:00.0
Host Ryzen 7 5700G; AMD iGPU is the boot VGA and drives both monitors
OS Linux Mint 22.2 (zara, Ubuntu 24.04 noble base), kernel 7.0.0-31-generic
Root LVM (/dev/mapper/vgmint-root)
Driver NVIDIA 595.84 open kernel modules (DKMS), CUDA 13.2
DKMS 3.4.4-1ubuntu1 (from NVIDIA's CUDA apt repo)
Secure Boot enabled, lockdown [integrity]
gpu-unlock 1.1.1, debs built from main via make install
Initramfs initramfs-tools; gpu_unlock.ko.zst + all AD102 firmware present, no nvidia.ko in the image, so no softdep or init-top hook was needed
Cmdline gpu_unlock.targets=0000:01:00.0 only

Secure Boot steps

  1. A MOK already existed and was enrolled (created earlier for the NVIDIA driver):
    /var/lib/shim-signed/mok/MOK.der, MOK.priv
    mokutil --test-key /var/lib/shim-signed/mok/MOK.der  ->  already enrolled
    
  2. /etc/dkms/framework.conf had no mok_* lines, so I added these lines before installing:
    mok_signing_key=/var/lib/shim-signed/mok/MOK.priv
    mok_certificate=/var/lib/shim-signed/mok/MOK.der
    
    I did not test whether DKMS would have picked up the key without these lines.
  3. make install (detected ubuntu via ID_LIKE=ubuntu debian). DKMS built and signed the module for all four installed kernels (Sign command: /usr/bin/kmodsign), and update-initramfs regenerated all images. Host test suite: 33 tests OK, 3 skipped (optional PyCryptodome decoder).
  4. Result: modinfo gpu_unlock → signer: localhost.localdomain Secure Boot Module Signature key. No Key was rejected and no module-verification messages at boot. tools/read_sm_rates.py also works under lockdown integrity.

It may be worth a short README note that Secure Boot works with a MOK-signed DKMS build, and that framework.conf may need the mok_* lines on Ubuntu derivatives.

Cold boot (AC off ~30 s)

pci 0000:01:00.0: entry: plm=0xffffff8f ss0=0x1724066 ss1=0x2 wpr2_hi=0x0
pci 0000:01:00.0: AD102 payload result: boot=0 halt=0 marker=0x67b00001 expected=0x67b00001 marker_ok=1 required_permissions=1 cpuctl=0x10 halted=1 debug=0xda550000 ss0=0x1724066 ss1=0x2
pci 0000:01:00.0: selector result: SS0=0x88888888 expected=0x88888888 matched=1
pci 0000:01:00.0: selector result: SS1=0x8 expected=0x8 matched=1
pci 0000:01:00.0: post-FLR GFW result: error=0 pci=0x268410de plm=0x8b8f boot=0x3ff cpuctl=0x10 budget_us=2050000
pci 0000:01:00.0: post-FLR SEC2 reset released, GSP halted, BME=0 pending=0 WPR2=1ffffe00:00000000 SS0=88888888 SS1=00000008
pci 0000:01:00.0: AD102 post-FLR: readout1=0x0 fields=0 0 0 0 0 0 0 0 0 valid=1 full=1
pci 0000:01:00.0: gpu_unlock: unlocked

The stock entry selectors on this Gigabyte board are ss0=0x1724066 ss1=0x2, which differs from the 0x25117024 / 0x1 in #58. The expected unlock values were still reached and survived FLR.

RM getter after handoff:

"rates": {"imla0": 0, "fmla16": 0, "dp": 0, "fmla32": 0, "ffma": 0, "imla1": 0, "imla2": 0, "imla3": 0, "imla4": 0}

nvidia-smi was healthy, with no Xid.

Warm reboot (sudo reboot, option still set)

The card came back fresh enough (wpr2_hi=0), and the transaction ran again and succeeded:

pci 0000:01:00.0: entry: plm=0xffffff8f ss0=0x0 ss1=0x0 wpr2_hi=0x0
pci 0000:01:00.0: selector result: SS0=0x88888888 expected=0x88888888 matched=1
pci 0000:01:00.0: selector result: SS1=0x8 expected=0x8 matched=1
pci 0000:01:00.0: gpu_unlock: unlocked

Note that the entry selectors read 0x0 / 0x0 after the warm reboot, not the stock cold-boot values. The RM getter again reports fmla32=0, and nvidia-smi is healthy.

Workload (anecdotal, not a matched run)

ComfyUI, same workflow: 26 s stock → 16.31 s unlocked (~1.6×). This is not a controlled matched pair: there was no fixed power cap, no repeated runs, and model caching was not controlled. I did not run diagnostics/bench or gemm_bench.

Not tested

  • Matched instruction or GEMM benchmarks
  • Long-run stability
  • Dual boot: booting Windows and then rebooting into Linux (I expect the module to refuse a card initialised by the Windows driver)
Originally created by @mrfireflygenai on GitHub (Oct 28, 2026). Original GitHub issue: https://github.com/JustAResearcher/gpu-unlock-ada/issues/110 ## Summary One RTX 4090 unlocked on the first AC-off cold boot, and again after an ordinary warm reboot. I used the documented `make install` → `install-deb` path on **Linux Mint 22.2 with Secure Boot left enabled** (kernel lockdown `integrity`). The DKMS module was signed with the machine's existing MOK, the same key the NVIDIA DKMS driver already uses, and the kernel accepted it. The reports in this repo that I found all had Secure Boot disabled, so this may be a useful data point. The card is compute-only: the monitors are driven by the Ryzen 5700G iGPU (boot VGA), as in #58. ## Environment | Item | Value | |---|---| | GPU | RTX 4090 `10de:2684`, Gigabyte subsystem `1458:40bf`, vBIOS `95.02.3C.00.AB`, at `0000:01:00.0` | | Host | Ryzen 7 5700G; AMD iGPU is the boot VGA and drives both monitors | | OS | Linux Mint 22.2 (`zara`, Ubuntu 24.04 `noble` base), kernel `7.0.0-31-generic` | | Root | LVM (`/dev/mapper/vgmint-root`) | | Driver | NVIDIA `595.84` **open** kernel modules (DKMS), CUDA 13.2 | | DKMS | `3.4.4-1ubuntu1` (from NVIDIA's CUDA apt repo) | | Secure Boot | **enabled**, lockdown `[integrity]` | | gpu-unlock | 1.1.1, debs built from `main` via `make install` | | Initramfs | initramfs-tools; `gpu_unlock.ko.zst` + all AD102 firmware present, **no `nvidia.ko` in the image**, so no softdep or init-top hook was needed | | Cmdline | `gpu_unlock.targets=0000:01:00.0` only | ## Secure Boot steps 1. A MOK already existed and was enrolled (created earlier for the NVIDIA driver): ``` /var/lib/shim-signed/mok/MOK.der, MOK.priv mokutil --test-key /var/lib/shim-signed/mok/MOK.der -> already enrolled ``` 2. `/etc/dkms/framework.conf` had no `mok_*` lines, so I added these lines before installing: ``` mok_signing_key=/var/lib/shim-signed/mok/MOK.priv mok_certificate=/var/lib/shim-signed/mok/MOK.der ``` I did not test whether DKMS would have picked up the key without these lines. 3. `make install` (detected `ubuntu` via `ID_LIKE=ubuntu debian`). DKMS built and signed the module for all four installed kernels (`Sign command: /usr/bin/kmodsign`), and `update-initramfs` regenerated all images. Host test suite: 33 tests OK, 3 skipped (optional PyCryptodome decoder). 4. Result: `modinfo gpu_unlock` → `signer: localhost.localdomain Secure Boot Module Signature key`. No `Key was rejected` and no module-verification messages at boot. `tools/read_sm_rates.py` also works under lockdown `integrity`. It may be worth a short README note that Secure Boot works with a MOK-signed DKMS build, and that `framework.conf` may need the `mok_*` lines on Ubuntu derivatives. ## Cold boot (AC off ~30 s) ``` pci 0000:01:00.0: entry: plm=0xffffff8f ss0=0x1724066 ss1=0x2 wpr2_hi=0x0 pci 0000:01:00.0: AD102 payload result: boot=0 halt=0 marker=0x67b00001 expected=0x67b00001 marker_ok=1 required_permissions=1 cpuctl=0x10 halted=1 debug=0xda550000 ss0=0x1724066 ss1=0x2 pci 0000:01:00.0: selector result: SS0=0x88888888 expected=0x88888888 matched=1 pci 0000:01:00.0: selector result: SS1=0x8 expected=0x8 matched=1 pci 0000:01:00.0: post-FLR GFW result: error=0 pci=0x268410de plm=0x8b8f boot=0x3ff cpuctl=0x10 budget_us=2050000 pci 0000:01:00.0: post-FLR SEC2 reset released, GSP halted, BME=0 pending=0 WPR2=1ffffe00:00000000 SS0=88888888 SS1=00000008 pci 0000:01:00.0: AD102 post-FLR: readout1=0x0 fields=0 0 0 0 0 0 0 0 0 valid=1 full=1 pci 0000:01:00.0: gpu_unlock: unlocked ``` The stock entry selectors on this Gigabyte board are **`ss0=0x1724066 ss1=0x2`**, which differs from the `0x25117024 / 0x1` in #58. The expected unlock values were still reached and survived FLR. RM getter after handoff: ``` "rates": {"imla0": 0, "fmla16": 0, "dp": 0, "fmla32": 0, "ffma": 0, "imla1": 0, "imla2": 0, "imla3": 0, "imla4": 0} ``` `nvidia-smi` was healthy, with no Xid. ## Warm reboot (`sudo reboot`, option still set) The card came back fresh enough (`wpr2_hi=0`), and the transaction ran again and succeeded: ``` pci 0000:01:00.0: entry: plm=0xffffff8f ss0=0x0 ss1=0x0 wpr2_hi=0x0 pci 0000:01:00.0: selector result: SS0=0x88888888 expected=0x88888888 matched=1 pci 0000:01:00.0: selector result: SS1=0x8 expected=0x8 matched=1 pci 0000:01:00.0: gpu_unlock: unlocked ``` Note that the entry selectors read **`0x0 / 0x0`** after the warm reboot, not the stock cold-boot values. The RM getter again reports `fmla32=0`, and `nvidia-smi` is healthy. ## Workload (anecdotal, not a matched run) ComfyUI, same workflow: **26 s stock → 16.31 s unlocked** (~1.6×). This is not a controlled matched pair: there was no fixed power cap, no repeated runs, and model caching was not controlled. I did not run `diagnostics/bench` or `gemm_bench`. ## Not tested - Matched instruction or GEMM benchmarks - Long-run stability - Dual boot: booting Windows and then rebooting into Linux (I expect the module to refuse a card initialised by the Windows driver)
Author
Owner

@TheIronWolfModding commented on GitHub (Oct 31, 2026):

Also unlocked on MSI 1462:5102 (vBIOS 95.02.3C.00.3C, driver 580.178.04, kernel 7.1.5-tiwf): cold boot entry ss0=0x21713107 ss1=0x7 wpr2_hi=0 → matched, full=1, RM getter all 0,
nvidia-smi healthy — a third distinct stock selector pair, so per-board values vary and normalising them is right; note initramfs-tools starts udev in init-top before /conf/modules,
so gpu_unlock needs an init-top preload when nvidia.ko is in the image.

<!-- gh-comment-id:6547207439 --> @TheIronWolfModding commented on GitHub (Oct 31, 2026): Also unlocked on MSI 1462:5102 (vBIOS 95.02.3C.00.3C, driver 580.178.04, kernel 7.1.5-tiwf): cold boot entry ss0=0x21713107 ss1=0x7 wpr2_hi=0 → matched, full=1, RM getter all 0, nvidia-smi healthy — a third distinct stock selector pair, so per-board values vary and normalising them is right; note initramfs-tools starts udev in init-top before /conf/modules, so gpu_unlock needs an init-top preload when nvidia.ko is in the image.
Sign in to join this conversation.
No labels
pull-request
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
JustAResearcher/gpu-unlock-ada#69
No description provided.