[GH-ISSUE #11] Compatibility report: RTX 2080 (TU104, 10de:1e87) works on Bazzite 44 — Nvidia 615.78.08 + rpm-ostree + Secure Boot + dracut (Aprox. 50% increase) #7

Open
opened 2026-10-31 06:58:08 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @TheRealmBreaker on GitHub (Oct 25, 2026).
Original GitHub issue: https://github.com/nlzy/turing-unlock/issues/11

The following fix was done with assistance from a local agent. Proper Bazzite install instructions for rpm-ostree and secure boot were taken from this document at gpu-unblock PR #79.. This report was AI generated with final editing by myself before posting.

Card

  • RTX 2080 8 GB (non-Super, Rev. A), TU104 — PCI 10de:1e87, bus 0000:06:00.0, VBIOS 90.04.0B.80.03 (stock, unmodified)
  • Single NVIDIA GPU; boot VGA, drives the desktop (nvidia-drm, Wayland). Intel iGPU not bound to vfio (pass-through).
  • Same PCI ID as the TU104 success in #5; our entry-stage selector reads ss0=0x0 ss1=0x0 (there it was ss0=0x2300000) — card-state variance noted, unlock still lands.

Environment

  • Bazzite 44 (ghcr.io/ublue-os/bazzite-nvidia-open:stable, image 44.20261012.1) — Fedora Atomic, rpm-ostree, no dkms
  • kernel 7.2.9-ogc3.1.fc44.x86_64, NVIDIA 615.78.08 (open kernel modules, akmods)
  • Secure Boot ON: locally enrolled MOK; boot log shows integrity: Loaded X.509 cert 'turing-unlock module signing'
  • dracut, image regen enabled (regenerate-initramfs: true); module layered as one local RPM (module + firmware + dracut drop-in), no dkms
  • built from master @ 1d379b7 (2.0.0), no code changes (0x1e87 is in supported_ids[])

Result

Unlocked on the first boot after layering, and on every boot since:

dracut: rd.driver.pre=turing_unlock ... nvidia nvidia_drm nvidia_modeset nvidia_uvm ...
kernel: integrity: Loaded X.509 cert 'turing-unlock module signing: 2fc5b48c...'
kernel: turing_unlock: booter geometry ok: image=59136 sig=16 patch_loc=0x8700
kernel: turing_unlock: entry: plm=0xffffff8f ss0=0x0 ss1=0x0 wpr2=0x0:0x1ffffe00 boot=0x0
kernel: turing_unlock: GFW boot complete: plm=0xffffff8f boot=0x3ff cpuctl=0x10
kernel: turing_unlock: ROM chain: pos=0x0 data=0x52494350 bytes=59392 type=0x0 last=0
kernel: turing_unlock: ROM expansion: base=0xe800 ext=0x1fe00 adjust=0x11600
kernel: turing_unlock: FWSEC V2 geometry: image_off=0x3f53c size=0xa200 imem=0x9d00 ...
kernel: turing_unlock: flcn reset done: base=0x110000
kernel: turing_unlock: sec done: halted=1 plm=0xffffffff mailbox=0x0:0x0
kernel: turing_unlock: unlock result: ss0=0x88888888 ss1=0x8 readout=0x0 (want ss0=0x88888888 ss1=0x8 readout=0)
kernel: turing_unlock: TU102 FEAT UNLOCKED
kernel: pci 0000:06:00.0: turing_unlock: unlocked

nvidia bound normally afterwards, display fine, no Xid errors. torch 2.10 cuBLAS, 8192³ dense GEMM, median of 5, power/clock sampled per block:

Size 8192³ locked unlocked
FP16→FP32acc 28.51 TFLOPS (1875 MHz, 331 FLOP/clk/SM, 173 W) 58.01 TFLOPS (1770 MHz, 712 FLOP/clk/SM, 256 W) = +103%
FP16→FP16acc 28.72 56.65
TF32 (control, SM86-style path) 7.82 7.97
FP32 8.76 8.56

Post-unlock clocks actually sit lower (1875→1770 MHz at ~255 W) yet per-clock tensor throughput more than doubles (331→712 FLOP/clk/SM) — the win is pure rate, power-capped workloads gain proportionally less. Unlocked FP16→FP32 lands within ~2% of full-rate FP16→FP16acc.

Step-by-step for Fedora Atomic / rpm-ostree / Secure Boot (Bazzite-tested)

Building the RPM is the only way to get the module + firmware into a Bazzite initramfs; it takes four further steps, all documented below. Everything but sudo steps is in the repo.

1. Build module + assets (module must match the running kernel exactly):

make -C kernel/turing_unlock KDIR=/usr/src/kernels/$(uname -r)
make assets    # fetches 610.43.03 sources, emits assets/610.43.03/*.bin

2. Sign with a stable local key, enroll the MOK (Secure Boot; keep mok.key — regenerating after enrollment bricks the chain):

Taken directly from the pull request referenced above.

Create a signing key once and keep the private key private (mode 600, not in
any repository):

mkdir -p ~/.local/share/gpu-unlock-mok && cd ~/.local/share/gpu-unlock-mok
openssl req -new -x509 -newkey rsa:2048 -nodes -days 3650 -sha256 \
    -subj "/CN=gpu-unlock module signing $(hostname)/" \
    -keyout mok.key -outform DER -out mok.der
chmod 600 mok.key
cd -
/usr/src/kernels/$(uname -r)/scripts/sign-file sha256 \
    ~/.local/share/gpu-unlock-mok/mok.key ~/.local/share/gpu-unlock-mok/mok.der \
    kernel/gpu_unlock/gpu_unlock.ko
modinfo kernel/gpu_unlock/gpu_unlock.ko | grep -E '^(signer|sig_key)'

Enroll the certificate. mokutil asks for a one-time password; on the next
boot the blue MOK Manager screen asks for it again (Enroll MOK → Continue →
Yes):

sudo mokutil --import ~/.local/share/gpu-unlock-mok/mok.der

After that boot, mokutil --test-key ~/.local/share/gpu-unlock-mok/mok.der
should say the key is already enrolled. Later rebuilds signed with the same
key need no new enrollment.

3. Local RPM spec — the three additional fixes are in this spec as comments:

%global debug_package %{nil}
# Fix 1: default %post strips .ko and kills the appended signature.
%global __os_install_post %{nil}

Name:     turing-unlock-local
Version:  1.0.0
Release:  1%{?dist}
BuildArch: x86_64
Requires: kernel-core = <kernel-core version-release>   # image kernel bumps => transaction stops here

%post
# Fix 2: rpm-ostree does not rerun depmod for ordinary packages; dracut's
# force_drivers resolves via modprobe -> modules.dep, so without this the module
# silently stays OUT of the initramfs (symptom: 'modprobe: FATAL: Module turing_unlock
# not found' in dracut-pre-udev). depmod does not touch the signed .ko.
if [ -d "/usr/lib/modules/%{kver}/extra" ]; then /usr/bin/depmod -a || :; fi

%install
install -Dm644 %{_sourcedir}/turing_unlock.ko %{buildroot}/usr/lib/modules/%{kver}/extra/turing_unlock.ko
for f in booter_load_tu102.bin gsp_tu10x.bin gsp_boot_tu102.bin gsp_boot_desc_tu102.bin sec2_bl_tu102.bin v67-tu102-610.43.03.bin; do
    install -Dm644 %{_sourcedir}/assets/$f %{buildroot}/usr/lib/firmware/turing-unlock/610.43.03/$f
done
# Fix 3: dracut reads conf drop-ins in FILENAME order. Bazzite ships 99-nvidia.conf
# which force-drivers nvidia; install as turing-unlock.conf and nvidia sorts first,
# binds the card at probe init (615.x AUTO GSP), and the unlock fails with -16
# (-EBUSY, device logged as 'nvidia 0000:06:00.0:' instead of 'pci ...').
install -Dm644 %{_sourcedir}/dracut.conf %{buildroot}/usr/lib/dracut/dracut.conf.d/00-turing-unlock.conf

%files
/usr/lib/modules/%{kver}/extra/turing_unlock.ko
/usr/lib/firmware/turing-unlock
/usr/lib/dracut/dracut.conf.d/00-turing-unlock.conf

(%{kver} / %{kcore} come from --define "kver $(uname -r)" and --define "kcore $(rpm -q --qf '%{VERSION}-%{RELEASE}' kernel-core); the spec needs __os_install_post disabled, hence no %changelog requirement issues.)

4. Build it in a throwaway container (rpm-ostree wants root-owned files):

KVER="$(uname -r)"; KCORE="$(rpm -q --qf '%{VERSION}-%{RELEASE}' kernel-core)"
podman run --rm --security-opt label=disable -v "$PWD:/w" -w /w -e KVER="$KVER" -e KCORE="$KCORE" registry.fedoraproject.org/fedora:44 \
  bash -c 'dnf install -y -q rpm-build >/dev/null; rpmbuild -bb --define "kver $KVER" --define "kcore $KCORE" --define "_sourcedir /w/rpm-src" --define "_rpmdir /w/rpm-out" turing-unlock-local.spec'

5. Layer + karg — karg prefix must equal the module name (turing_unlock.targets=all); stale kargs from earlier tries (e.g. gpu_unlock.targets=all) must be deleted or they shadow:

sudo rpm-ostree initramfs --enable   # already true on bazzite-nvidia; enable regen
sudo rpm-ostree install <rpm-out>/turing-unlock-local-1.0.0-1.fc44.x86_64.rpm
sudo rpm-ostree kargs --add=turing_unlock.targets=all

If a previous attempt layered anything (e.g. turing-unlock-dkms / turing-unlock-firmware), rpm-ostree uninstall <pkg> first — its files conflict with the local RPM's paths, and a failed transaction poisons the deployed initramfs. Re-signed module rebuilds need a Version bump, not a same-NVR reinstall (rpm-ostree dedupes on NVR).

6. Reboot, then verify each link of the chain:

rpm-ostree status | grep -E 'turing-unlock-local|regenerate'
sudo journalctl -k -b 0 | grep -E 'rd\.driver\.pre=|turing_unlock' | head -20

Failure signatures worth keeping:

  • rd.driver.pre lacks turing_unlock → Fix 2 (depmod/modules.dep)
  • modprobe: FATAL: Module turing_unlock not found → initramfs not regenerated or file stripped unsigned
  • unlock failed (-16) logged on nvidia <bus>: → Fix 3 (drop-in sorts after 99-nvidia.conf; nvidia bound first)
  • integrity: Loaded X.509 cert 'turing-unlock module signing' absent → signature/MOK chain broken
  • success: unlock result: ss0=0x88888888 ss1=0x8 + pci <bus>: turing_unlock: unlocked

Final note from the human

  • Many thanks to #5/#6 and @alexderz from upstream for proving that it was indeed possible, and to continue working through the initial failures until reaching unlock. Ya'll are real ones
Originally created by @TheRealmBreaker on GitHub (Oct 25, 2026). Original GitHub issue: https://github.com/nlzy/turing-unlock/issues/11 _The following fix was done with assistance from a local agent. Proper Bazzite install instructions for rpm-ostree and secure boot were taken from [this document at gpu-unblock PR #79.](https://github.com/alexderz/gpu-unlock/blob/caa8293873dcaac1e57877d8f64cb95c8b9e70c7/docs/Fedora%20Atomic%20and%20Secure%20Boot.md). This report was AI generated with final editing by myself before posting._ ## Card - RTX 2080 8 GB (non-Super, Rev. A), **TU104** — PCI `10de:1e87`, bus `0000:06:00.0`, VBIOS `90.04.0B.80.03` (stock, unmodified) - Single NVIDIA GPU; boot VGA, drives the desktop (nvidia-drm, Wayland). Intel iGPU not bound to vfio (pass-through). - Same PCI ID as the TU104 success in #5; our entry-stage selector reads `ss0=0x0 ss1=0x0` (there it was `ss0=0x2300000`) — card-state variance noted, unlock still lands. ## Environment - **Bazzite 44** (`ghcr.io/ublue-os/bazzite-nvidia-open:stable`, image `44.20261012.1`) — Fedora Atomic, **rpm-ostree**, no dkms - kernel **7.2.9-ogc3.1.fc44.x86_64**, NVIDIA **615.78.08** (open kernel modules, akmods) - **Secure Boot ON**: locally enrolled MOK; boot log shows `integrity: Loaded X.509 cert 'turing-unlock module signing'` - **dracut**, image regen enabled (`regenerate-initramfs: true`); module **layered as one local RPM** (module + firmware + dracut drop-in), no dkms - built from `master` @ `1d379b7` (2.0.0), no code changes (`0x1e87` is in `supported_ids[]`) ## Result Unlocked on the first boot after layering, and on every boot since: ```text dracut: rd.driver.pre=turing_unlock ... nvidia nvidia_drm nvidia_modeset nvidia_uvm ... kernel: integrity: Loaded X.509 cert 'turing-unlock module signing: 2fc5b48c...' kernel: turing_unlock: booter geometry ok: image=59136 sig=16 patch_loc=0x8700 kernel: turing_unlock: entry: plm=0xffffff8f ss0=0x0 ss1=0x0 wpr2=0x0:0x1ffffe00 boot=0x0 kernel: turing_unlock: GFW boot complete: plm=0xffffff8f boot=0x3ff cpuctl=0x10 kernel: turing_unlock: ROM chain: pos=0x0 data=0x52494350 bytes=59392 type=0x0 last=0 kernel: turing_unlock: ROM expansion: base=0xe800 ext=0x1fe00 adjust=0x11600 kernel: turing_unlock: FWSEC V2 geometry: image_off=0x3f53c size=0xa200 imem=0x9d00 ... kernel: turing_unlock: flcn reset done: base=0x110000 kernel: turing_unlock: sec done: halted=1 plm=0xffffffff mailbox=0x0:0x0 kernel: turing_unlock: unlock result: ss0=0x88888888 ss1=0x8 readout=0x0 (want ss0=0x88888888 ss1=0x8 readout=0) kernel: turing_unlock: TU102 FEAT UNLOCKED kernel: pci 0000:06:00.0: turing_unlock: unlocked ``` nvidia bound normally afterwards, display fine, no Xid errors. torch 2.10 cuBLAS, 8192³ dense GEMM, median of 5, power/clock sampled per block: | Size 8192³ | locked | unlocked | | --- | ---: | ---: | | **FP16→FP32acc** | **28.51 TFLOPS** (1875 MHz, 331 FLOP/clk/SM, 173 W) | **58.01 TFLOPS** (1770 MHz, 712 FLOP/clk/SM, 256 W) = **+103%** | | FP16→FP16acc | 28.72 | 56.65 | | TF32 (control, SM86-style path) | 7.82 | 7.97 | | FP32 | 8.76 | 8.56 | Post-unlock clocks actually sit *lower* (1875→1770 MHz at ~255 W) yet per-clock tensor throughput more than doubles (331→712 FLOP/clk/SM) — the win is pure rate, power-capped workloads gain proportionally less. Unlocked FP16→FP32 lands within ~2% of full-rate FP16→FP16acc. ## Step-by-step for Fedora Atomic / rpm-ostree / Secure Boot (Bazzite-tested) Building the RPM is the only way to get the module + firmware into a Bazzite initramfs; it takes four further steps, all documented below. Everything but `sudo` steps is in the repo. **1. Build module + assets** (module must match the running kernel exactly): ```bash make -C kernel/turing_unlock KDIR=/usr/src/kernels/$(uname -r) make assets # fetches 610.43.03 sources, emits assets/610.43.03/*.bin ``` **2. Sign with a stable local key, enroll the MOK** (Secure Boot; keep `mok.key` — regenerating after enrollment bricks the chain): _Taken directly from the [pull request](https://github.com/alexderz/gpu-unlock/blob/caa8293873dcaac1e57877d8f64cb95c8b9e70c7/docs/Fedora%20Atomic%20and%20Secure%20Boot.md) referenced above._ Create a signing key once and keep the private key private (mode 600, not in any repository): ```sh mkdir -p ~/.local/share/gpu-unlock-mok && cd ~/.local/share/gpu-unlock-mok openssl req -new -x509 -newkey rsa:2048 -nodes -days 3650 -sha256 \ -subj "/CN=gpu-unlock module signing $(hostname)/" \ -keyout mok.key -outform DER -out mok.der chmod 600 mok.key cd - /usr/src/kernels/$(uname -r)/scripts/sign-file sha256 \ ~/.local/share/gpu-unlock-mok/mok.key ~/.local/share/gpu-unlock-mok/mok.der \ kernel/gpu_unlock/gpu_unlock.ko modinfo kernel/gpu_unlock/gpu_unlock.ko | grep -E '^(signer|sig_key)' ``` Enroll the certificate. `mokutil` asks for a one-time password; on the next boot the blue MOK Manager screen asks for it again (Enroll MOK → Continue → Yes): ```sh sudo mokutil --import ~/.local/share/gpu-unlock-mok/mok.der ``` After that boot, `mokutil --test-key ~/.local/share/gpu-unlock-mok/mok.der` should say the key is already enrolled. Later rebuilds signed with the same key need no new enrollment. **3. Local RPM spec** — the three additional fixes are *in* this spec as comments: ```spec %global debug_package %{nil} # Fix 1: default %post strips .ko and kills the appended signature. %global __os_install_post %{nil} Name: turing-unlock-local Version: 1.0.0 Release: 1%{?dist} BuildArch: x86_64 Requires: kernel-core = <kernel-core version-release> # image kernel bumps => transaction stops here %post # Fix 2: rpm-ostree does not rerun depmod for ordinary packages; dracut's # force_drivers resolves via modprobe -> modules.dep, so without this the module # silently stays OUT of the initramfs (symptom: 'modprobe: FATAL: Module turing_unlock # not found' in dracut-pre-udev). depmod does not touch the signed .ko. if [ -d "/usr/lib/modules/%{kver}/extra" ]; then /usr/bin/depmod -a || :; fi %install install -Dm644 %{_sourcedir}/turing_unlock.ko %{buildroot}/usr/lib/modules/%{kver}/extra/turing_unlock.ko for f in booter_load_tu102.bin gsp_tu10x.bin gsp_boot_tu102.bin gsp_boot_desc_tu102.bin sec2_bl_tu102.bin v67-tu102-610.43.03.bin; do install -Dm644 %{_sourcedir}/assets/$f %{buildroot}/usr/lib/firmware/turing-unlock/610.43.03/$f done # Fix 3: dracut reads conf drop-ins in FILENAME order. Bazzite ships 99-nvidia.conf # which force-drivers nvidia; install as turing-unlock.conf and nvidia sorts first, # binds the card at probe init (615.x AUTO GSP), and the unlock fails with -16 # (-EBUSY, device logged as 'nvidia 0000:06:00.0:' instead of 'pci ...'). install -Dm644 %{_sourcedir}/dracut.conf %{buildroot}/usr/lib/dracut/dracut.conf.d/00-turing-unlock.conf %files /usr/lib/modules/%{kver}/extra/turing_unlock.ko /usr/lib/firmware/turing-unlock /usr/lib/dracut/dracut.conf.d/00-turing-unlock.conf ``` (`%{kver}` / `%{kcore}` come from `--define "kver $(uname -r)"` and `--define "kcore $(rpm -q --qf '%{VERSION}-%{RELEASE}' kernel-core)`; the spec needs `__os_install_post` disabled, hence no `%changelog` requirement issues.) **4. Build it in a throwaway container** (rpm-ostree wants root-owned files): ```bash KVER="$(uname -r)"; KCORE="$(rpm -q --qf '%{VERSION}-%{RELEASE}' kernel-core)" podman run --rm --security-opt label=disable -v "$PWD:/w" -w /w -e KVER="$KVER" -e KCORE="$KCORE" registry.fedoraproject.org/fedora:44 \ bash -c 'dnf install -y -q rpm-build >/dev/null; rpmbuild -bb --define "kver $KVER" --define "kcore $KCORE" --define "_sourcedir /w/rpm-src" --define "_rpmdir /w/rpm-out" turing-unlock-local.spec' ``` **5. Layer + karg** — karg prefix must equal the module *name* (`turing_unlock.targets=all`); stale kargs from earlier tries (e.g. `gpu_unlock.targets=all`) must be deleted or they shadow: ```bash sudo rpm-ostree initramfs --enable # already true on bazzite-nvidia; enable regen sudo rpm-ostree install <rpm-out>/turing-unlock-local-1.0.0-1.fc44.x86_64.rpm sudo rpm-ostree kargs --add=turing_unlock.targets=all ``` If a previous attempt layered anything (e.g. `turing-unlock-dkms` / `turing-unlock-firmware`), `rpm-ostree uninstall <pkg>` first — its files conflict with the local RPM's paths, and a failed transaction poisons the deployed initramfs. Re-signed module rebuilds need a Version bump, not a same-NVR reinstall (rpm-ostree dedupes on NVR). **6. Reboot, then verify each link of the chain:** ```bash rpm-ostree status | grep -E 'turing-unlock-local|regenerate' sudo journalctl -k -b 0 | grep -E 'rd\.driver\.pre=|turing_unlock' | head -20 ``` Failure signatures worth keeping: - `rd.driver.pre` lacks `turing_unlock` → Fix 2 (depmod/`modules.dep`) - `modprobe: FATAL: Module turing_unlock not found` → initramfs not regenerated or file stripped unsigned - `unlock failed (-16)` logged on `nvidia <bus>:` → Fix 3 (drop-in sorts after `99-nvidia.conf`; nvidia bound first) - `integrity: Loaded X.509 cert 'turing-unlock module signing'` absent → signature/MOK chain broken - success: `unlock result: ss0=0x88888888 ss1=0x8` + `pci <bus>: turing_unlock: unlocked` ## Final note from the human - Many thanks to #5/#6 and @alexderz from upstream for proving that it was indeed possible, and to continue working through the initial failures until reaching unlock. Ya'll are real ones
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
nlzy/turing-unlock#7
No description provided.