[GH-ISSUE #5] Compatibility report: RTX 2080 (TU104, 10de:1e87) works on driver 615.78.08 + kernel 7.3 - FP16->FP32 39.0->64.5 TFLOPS (+65%) #6

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

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

Card

  • RTX 2080 8 GB (non-Super, Rev. A), TU104 - PCI 10de:1e87, bus 0000:01:00.0, VBIOS 90.04.23.40.6F (Gigabyte, subsystem 1458:37c5)
  • Single NVIDIA GPU. It is the boot VGA and drives the desktop (Plasma 6, Wayland). The Intel iGPU is bound to vfio-pci.

Environment

  • Garuda Linux (Arch based), kernel 7.3.0-2 (custom CachyOS-based build, Clang/LLVM), Secure Boot off, GRUB
  • NVIDIA driver 615.78.08 (nvidia-open-dkms), nvidia is in the initramfs
  • dracut, not mkinitcpio: built from master @ 1d379b7 (2.0.0) with packaging/arch, with the PKGBUILD changed to call install-dracut instead of install-mkinitcpio. The dracut drop-in worked as is (rd.driver.pre=turing_unlock), and turing_unlock finishes before nvidia binds. DKMS adds LLVM=1 for the Clang kernel by itself.
  • No code changes needed, since 0x1e87 is in the TU104 list.

Result

TU104 works with the unchanged TU102 Booter/firmware path, unlocking on the first boot and on every boot since:

turing_unlock: entry: plm=0xffffff8f ss0=0x2300000 ss1=0x6 wpr2=0x0:0x1ffffe00 boot=0x0
turing_unlock: FWSEC done: ret=0 mb0=0x0 mb1=0x0 scratch0e=0x0 wpr2=0x1ffee00:0x1ffe000
turing_unlock: sec done: halted=1 plm=0xffffffff mailbox=0x0:0x0
turing_unlock: unlock result: ss0=0x88888888 ss1=0x8 readout=0x0 (want ss0=0x88888888 ss1=0x8 readout=0)
turing_unlock: TU102 FEAT UNLOCKED
pci 0000:01:00.0: turing_unlock: unlocked

nvidia bound the card normally afterwards. The display came up fine, with no Xid errors.

Dense cuBLAS GemmEx, 5-sample medians, all figures in TFLOPS:

Size FP16->FP32 locked FP16->FP32 unlocked FP16->FP16 FP32 SGEMM
2048^3 35.8 60.5 62.0 9.1
4096^3 36.7 61.3 64.5 9.4
8192^3 39.0 64.5 (+65%) 67.0 9.7

FP16->FP16 and FP32 are unchanged by the unlock. Unlocked FP16->FP32 now runs within about 3% of FP16->FP16.

Power / thermals

  • The first unlocked run used a 200 W cap (nvidia-smi -pl 200, stock is 245 W). The card held about 203 W with throttle reason 0x4 (SW power cap), 1890 MHz steady, max 71 C. The power limit is respected after the unlock.
  • At the stock 245 W limit, the 8192^3 result is the same 64.5 TFLOPS.

Notes

  • Pre-unlock ss0 reads 0x2300000 on this card (TU106 in #3 reported 0x0). ss1 is 0x6, same as TU106.
Originally created by @senjinthedragon on GitHub (Oct 25, 2026). Original GitHub issue: https://github.com/nlzy/turing-unlock/issues/5 ## Card - RTX 2080 8 GB (non-Super, Rev. A), **TU104** - PCI `10de:1e87`, bus `0000:01:00.0`, VBIOS `90.04.23.40.6F` (Gigabyte, subsystem `1458:37c5`) - Single NVIDIA GPU. It is the boot VGA and drives the desktop (Plasma 6, Wayland). The Intel iGPU is bound to vfio-pci. ## Environment - Garuda Linux (Arch based), kernel 7.3.0-2 (custom CachyOS-based build, Clang/LLVM), Secure Boot off, GRUB - **NVIDIA driver 615.78.08** (`nvidia-open-dkms`), nvidia is in the initramfs - **dracut**, not mkinitcpio: built from `master` @ `1d379b7` (2.0.0) with `packaging/arch`, with the PKGBUILD changed to call `install-dracut` instead of `install-mkinitcpio`. The dracut drop-in worked as is (`rd.driver.pre=turing_unlock`), and turing_unlock finishes before nvidia binds. DKMS adds `LLVM=1` for the Clang kernel by itself. - No code changes needed, since `0x1e87` is in the TU104 list. ## Result **TU104 works with the unchanged TU102 Booter/firmware path**, unlocking on the first boot and on every boot since: ``` turing_unlock: entry: plm=0xffffff8f ss0=0x2300000 ss1=0x6 wpr2=0x0:0x1ffffe00 boot=0x0 turing_unlock: FWSEC done: ret=0 mb0=0x0 mb1=0x0 scratch0e=0x0 wpr2=0x1ffee00:0x1ffe000 turing_unlock: sec done: halted=1 plm=0xffffffff mailbox=0x0:0x0 turing_unlock: unlock result: ss0=0x88888888 ss1=0x8 readout=0x0 (want ss0=0x88888888 ss1=0x8 readout=0) turing_unlock: TU102 FEAT UNLOCKED pci 0000:01:00.0: turing_unlock: unlocked ``` `nvidia` bound the card normally afterwards. The display came up fine, with no Xid errors. Dense cuBLAS `GemmEx`, 5-sample medians, all figures in TFLOPS: | Size | FP16->FP32 locked | FP16->FP32 unlocked | FP16->FP16 | FP32 SGEMM | | ---: | ---: | ---: | ---: | ---: | | 2048^3 | 35.8 | 60.5 | 62.0 | 9.1 | | 4096^3 | 36.7 | 61.3 | 64.5 | 9.4 | | **8192^3** | 39.0 | **64.5 (+65%)** | 67.0 | 9.7 | FP16->FP16 and FP32 are unchanged by the unlock. Unlocked FP16->FP32 now runs within about 3% of FP16->FP16. ## Power / thermals - The first unlocked run used a 200 W cap (`nvidia-smi -pl 200`, stock is 245 W). The card held about 203 W with throttle reason `0x4` (SW power cap), 1890 MHz steady, max 71 C. The power limit is respected after the unlock. - At the stock 245 W limit, the 8192^3 result is the same 64.5 TFLOPS. ## Notes - Pre-unlock `ss0` reads `0x2300000` on this card (TU106 in #3 reported `0x0`). `ss1` is `0x6`, same as TU106.
Author
Owner

@mwbreur commented on GitHub (Oct 25, 2026):

cd cdcdcdcdGot it to work eventually.

I tried it on a NVIDIA GeForce RTX 2080, 8192 MiB, 90.04.0B.80.0C, 0x130210DE, 3
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation TU104 [GeForce RTX 2080 Rev. A] [10de:1e87] (rev a1) (prog-if 00 [VGA controller])

#!/bin/bash

Exit immediately if a command exits with a non-zero status

set -e

echo "========================================================================"
echo " Turing-Unlock Automated Installer for Ubuntu 26.04 LTS & NVIDIA 615 Open"
echo "========================================================================"
echo "⚠️ WARNING: Unlocking tensor cores draws high power and may damage"
echo " your hardware. Use entirely at your own risk."
echo "========================================================================"
sleep 3

1. Ensure running as root

if [ "$EUID" -ne 0 ]; then
echo "❌ Error: Please run this script using sudo: sudo ./install.sh"
exit 1
fi

2. Check for local repository context

if [ ! -f "Makefile" ] || [ ! -d "kernel/turing_unlock" ]; then
echo "❌ Error: Script must be executed from inside the cloned 'turing-unlock' directory."
exit 1
fi

3. Add multiverse and install the explicit 615-open stack

echo "📦 [1/7] Ensuring multiverse repository is active and installing NVIDIA 615 Open..."
add-apt-repository -y multiverse
apt-get update
apt-get install -y nvidia-driver-615-open build-essential dkms wget git python3 xz-utils

4. Build the Debian packages out of the source code

echo "🏗️ [2/7] Cleaning cache and building native Debian packages..."
make clean

Running compilation as regular user matching the folder owner if possible, fallback to root

STAGING_USER=$(logname || echo "root")
sudo -u "$STAGING_USER" make deb

5. Install the newly compiled custom kernel module and firmware

echo "💿 [3/7] Deploying custom turing-unlock packages via apt..."
apt-get install -y --reinstall ./build/deb/turing-unlock-*.deb

6. Configure modprobe soft dependencies to correct the loading precedence

echo "⚙️ [4/7] Generating soft-dependencies configuration for modprobe..."
cat << 'EOF' > /etc/modprobe.d/turing-unlock-open.conf
softdep nvidia pre: turing_unlock
softdep nvidia-open pre: turing_unlock
softdep nvidia_drm pre: turing_unlock
softdep nvidia_modeset pre: turing_unlock
EOF

7. Create the initramfs-tools generation hook to bundle custom firmware blobs

echo "📂 [5/7] Creating initramfs firmware asset hook script..."
cat << 'EOF' > /etc/initramfs-tools/hooks/turing_unlock_fw
#!/bin/sh
PREREQ=""
prereqs() {
echo "$PREREQ"
}
case $1 in
prereqs)
prereqs
exit 0
;;
esac

. /usr/share/initramfs-tools/hook-functions
if [ -d /lib/firmware/turing-unlock ]; then
copy_modules_dir /lib/firmware/turing-unlock
fi
EOF
chmod +x /etc/initramfs-tools/hooks/turing_unlock_fw

8. Append the runtime parameters to GRUB safely if not already present

echo "📝 [6/7] Injecting targets parameter into bootloader configuration..."
if ! grep -q "turing_unlock.targets=" /etc/default/grub; then
sed -i 's/GRUB_CMDLINE_LINUX_DEFAULT="/GRUB_CMDLINE_LINUX_DEFAULT="rd.driver.pre=turing_unlock turing_unlock.targets=all /' /etc/default/grub
fi

9. Configure persistent power ceilings and performance modes via rc.local

echo "🔋 [7/7] Setting up persistent 200W safety power ceiling on startup..."
if [ ! -f /etc/rc.local ]; then
cat << 'EOF' > /etc/rc.local
#!/bin/bash
nvidia-smi -pm 1
nvidia-smi -pl 200
exit 0
EOF
else

Insert before exit 0 if file exists but doesn't have the commands

if ! grep -q "nvidia-smi -pl 200" /etc/rc.local; then
sed -i '/exit 0/i nvidia-smi -pm 1\nnvidia-smi -pl 200' /etc/rc.local
fi
fi
chmod +x /etc/rc.local

10. Reconstruct the boot ramdisk allocations completely

echo "🔄 Rebuilding kernel initramfs system boot images..."
update-initramfs -u -k all
update-grub

echo "========================================================================"
echo " ✅ SUCCESS: Installation complete!"
echo "========================================================================"
echo " Please REBOOT your machine now."
echo " After rebooting, run this command to verify the unlock:"
echo " journalctl -k -b | grep turing_unlock"
echo "========================================================================"

Automated Setup Script for Ubuntu 26.04 LTS (NVIDIA 615 Open Branch)

If you are running an Ubuntu desktop/server layout with standard initramfs-tools (instead of Arch Linux's dracut), you can automate the entire driver migration, priority sorting, firmware hooks, and power-capping configurations.

  1. Create a script file inside your cloned repository directory:
    nano install.sh
    
  2. Paste the script contents into the file, save and close (Ctrl+O, Enter, Ctrl+X).
  3. Make it executable and run it with root permissions:
    chmod +x install.sh
    sudo ./install.sh
    
  4. Once completed, reboot your system!

Oh yes and the result : user@ai-unsloth:~$ ~/.unsloth/studio/unsloth_studio/bin/python /home/michiel/test_tensor.py
Your RTX 2080 is performing at: 67.20 TFLOPS

Tests done with cuda_samples

TEST: FP16 Tensor Core GEMM Execution

Initializing...
GPU Device 0: "Turing" with compute capability 7.5

M: 4096 (16 x 256)
N: 4096 (16 x 256)
K: 4096 (16 x 256)
Preparing data for GPU...
Required shared memory size: 64 Kb
Computing... using high performance kernel compute_gemm
Time: 4.808896 ms
TFLOPS: 28.58


TEST: INT8 Integer Tensor Core (IMMA) Execution

Initializing...
GPU Device 0: "Turing" with compute capability 7.5

M: 4096 (16 x 256)
N: 4096 (16 x 256)
K: 4096 (16 x 256)
Preparing data for GPU...
Required shared memory size: 64 Kb
Computing... using high performance kernel compute_gemm_imma
Time: 2.596160 ms
TOPS: 52.94


TEST: Asynchronous Memory Pipeline Performance

[globalToShmemAsyncCopy] - Starting...
GPU Device 0: "Turing" with compute capability 7.5

MatrixA(1280,1280), MatrixB(1280,1280)
Running kernel = 0 - AsyncCopyMultiStageLargeChunk
Computing result using CUDA Kernel...
done
Performance= 1158.41 GFlop/s, Time= 3.621 msec, Size= 4194304000 Ops, WorkgroupSize= 256 threads/block
Checking computed result for correctness: Result = PASS

NOTE: The CUDA Samples are not meant for performance measurements. Results may vary when GPU Boost is enabled.


TEST: Cooperative Groups Warp Aggregated Atomics

GPU Device 0: "Turing" with compute capability 7.5

CPU max matches GPU max

<!-- gh-comment-id:6402225265 --> @mwbreur commented on GitHub (Oct 25, 2026): cd cdcdcdcdGot it to work eventually. I tried it on a NVIDIA GeForce RTX 2080, 8192 MiB, 90.04.0B.80.0C, 0x130210DE, 3 01:00.0 VGA compatible controller [0300]: NVIDIA Corporation TU104 [GeForce RTX 2080 Rev. A] [10de:1e87] (rev a1) (prog-if 00 [VGA controller]) #!/bin/bash # Exit immediately if a command exits with a non-zero status set -e echo "========================================================================" echo " Turing-Unlock Automated Installer for Ubuntu 26.04 LTS & NVIDIA 615 Open" echo "========================================================================" echo "⚠️ WARNING: Unlocking tensor cores draws high power and may damage" echo " your hardware. Use entirely at your own risk." echo "========================================================================" sleep 3 # 1. Ensure running as root if [ "$EUID" -ne 0 ]; then echo "❌ Error: Please run this script using sudo: sudo ./install.sh" exit 1 fi # 2. Check for local repository context if [ ! -f "Makefile" ] || [ ! -d "kernel/turing_unlock" ]; then echo "❌ Error: Script must be executed from inside the cloned 'turing-unlock' directory." exit 1 fi # 3. Add multiverse and install the explicit 615-open stack echo "📦 [1/7] Ensuring multiverse repository is active and installing NVIDIA 615 Open..." add-apt-repository -y multiverse apt-get update apt-get install -y nvidia-driver-615-open build-essential dkms wget git python3 xz-utils # 4. Build the Debian packages out of the source code echo "🏗️ [2/7] Cleaning cache and building native Debian packages..." make clean # Running compilation as regular user matching the folder owner if possible, fallback to root STAGING_USER=$(logname || echo "root") sudo -u "$STAGING_USER" make deb # 5. Install the newly compiled custom kernel module and firmware echo "💿 [3/7] Deploying custom turing-unlock packages via apt..." apt-get install -y --reinstall ./build/deb/turing-unlock-*.deb # 6. Configure modprobe soft dependencies to correct the loading precedence echo "⚙️ [4/7] Generating soft-dependencies configuration for modprobe..." cat << 'EOF' > /etc/modprobe.d/turing-unlock-open.conf softdep nvidia pre: turing_unlock softdep nvidia-open pre: turing_unlock softdep nvidia_drm pre: turing_unlock softdep nvidia_modeset pre: turing_unlock EOF # 7. Create the initramfs-tools generation hook to bundle custom firmware blobs echo "📂 [5/7] Creating initramfs firmware asset hook script..." cat << 'EOF' > /etc/initramfs-tools/hooks/turing_unlock_fw #!/bin/sh PREREQ="" prereqs() { echo "$PREREQ" } case $1 in prereqs) prereqs exit 0 ;; esac . /usr/share/initramfs-tools/hook-functions if [ -d /lib/firmware/turing-unlock ]; then copy_modules_dir /lib/firmware/turing-unlock fi EOF chmod +x /etc/initramfs-tools/hooks/turing_unlock_fw # 8. Append the runtime parameters to GRUB safely if not already present echo "📝 [6/7] Injecting targets parameter into bootloader configuration..." if ! grep -q "turing_unlock.targets=" /etc/default/grub; then sed -i 's/GRUB_CMDLINE_LINUX_DEFAULT="/GRUB_CMDLINE_LINUX_DEFAULT="rd.driver.pre=turing_unlock turing_unlock.targets=all /' /etc/default/grub fi # 9. Configure persistent power ceilings and performance modes via rc.local echo "🔋 [7/7] Setting up persistent 200W safety power ceiling on startup..." if [ ! -f /etc/rc.local ]; then cat << 'EOF' > /etc/rc.local #!/bin/bash nvidia-smi -pm 1 nvidia-smi -pl 200 exit 0 EOF else # Insert before exit 0 if file exists but doesn't have the commands if ! grep -q "nvidia-smi -pl 200" /etc/rc.local; then sed -i '/exit 0/i nvidia-smi -pm 1\nnvidia-smi -pl 200' /etc/rc.local fi fi chmod +x /etc/rc.local # 10. Reconstruct the boot ramdisk allocations completely echo "🔄 Rebuilding kernel initramfs system boot images..." update-initramfs -u -k all update-grub echo "========================================================================" echo " ✅ SUCCESS: Installation complete!" echo "========================================================================" echo " Please REBOOT your machine now." echo " After rebooting, run this command to verify the unlock:" echo " journalctl -k -b | grep turing_unlock" echo "========================================================================" ### Automated Setup Script for Ubuntu 26.04 LTS (NVIDIA 615 Open Branch) If you are running an Ubuntu desktop/server layout with standard `initramfs-tools` (instead of Arch Linux's `dracut`), you can automate the entire driver migration, priority sorting, firmware hooks, and power-capping configurations. 1. Create a script file inside your cloned repository directory: ```bash nano install.sh ``` 2. Paste the script contents into the file, save and close (`Ctrl+O`, `Enter`, `Ctrl+X`). 3. Make it executable and run it with root permissions: ```bash chmod +x install.sh sudo ./install.sh ``` 4. Once completed, reboot your system! Oh yes and the result : user@ai-unsloth:~$ ~/.unsloth/studio/unsloth_studio/bin/python /home/michiel/test_tensor.py Your RTX 2080 is performing at: 67.20 TFLOPS Tests done with cuda_samples -------------------------------------------------- TEST: FP16 Tensor Core GEMM Execution -------------------------------------------------- Initializing... GPU Device 0: "Turing" with compute capability 7.5 M: 4096 (16 x 256) N: 4096 (16 x 256) K: 4096 (16 x 256) Preparing data for GPU... Required shared memory size: 64 Kb Computing... using high performance kernel compute_gemm Time: 4.808896 ms TFLOPS: 28.58 -------------------------------------------------- TEST: INT8 Integer Tensor Core (IMMA) Execution -------------------------------------------------- Initializing... GPU Device 0: "Turing" with compute capability 7.5 M: 4096 (16 x 256) N: 4096 (16 x 256) K: 4096 (16 x 256) Preparing data for GPU... Required shared memory size: 64 Kb Computing... using high performance kernel compute_gemm_imma Time: 2.596160 ms TOPS: 52.94 -------------------------------------------------- TEST: Asynchronous Memory Pipeline Performance -------------------------------------------------- [globalToShmemAsyncCopy] - Starting... GPU Device 0: "Turing" with compute capability 7.5 MatrixA(1280,1280), MatrixB(1280,1280) Running kernel = 0 - AsyncCopyMultiStageLargeChunk Computing result using CUDA Kernel... done Performance= 1158.41 GFlop/s, Time= 3.621 msec, Size= 4194304000 Ops, WorkgroupSize= 256 threads/block Checking computed result for correctness: Result = PASS NOTE: The CUDA Samples are not meant for performance measurements. Results may vary when GPU Boost is enabled. -------------------------------------------------- TEST: Cooperative Groups Warp Aggregated Atomics -------------------------------------------------- GPU Device 0: "Turing" with compute capability 7.5 CPU max matches GPU max
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#6
No description provided.