[GH-ISSUE #101] Compatibility report: RTX 3070 Laptop 16 GB, VMware passthrough (10de:249d) #74

Closed
opened 2026-10-26 16:40:13 +07:00 by bsakaguchi · 5 comments
Owner

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

Result

Unlocked, and FP16/BF16 got faster

Card

NVIDIA GeForce RTX 3070 Laptop GPU (GA104M), reports 16 GB VRAM, passed through to a VMware ESXi guest

PCI IDs

0000:03:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA104M [GeForce RTX 3070 Mobile / Max-Q] [10de:249d] (rev a1)
0000:03:00.1 Audio device [0403]: NVIDIA Corporation GA104 High Definition Audio Controller [10de:228b] (rev a1)

VBIOS version

00000000:03:00.0, 94.04.35.00.25

Is the card modified?

Stock

Distribution

Ubuntu 24.04.5 LTS (guest, inside VMware ESXi with PCI passthrough)

Kernel

7.0.0-38-generic

NVIDIA driver

615.71.09, open kernel modules (Ubuntu 24.04 package nvidia-driver-615-open)

Initramfs generator

initramfs-tools

gpu-unlock version and install method

af28cbb, manual: make install-dkms + dkms add/build/install, then make install-firmware install-initramfs-tools

Kernel command line

BOOT_IMAGE=/boot/vmlinuz-7.0.0-38-generic root=UUID=18cca73a-f1b6-4453-8d32-4dcf0a338acf ro quiet splash gpu_unlock.targets=0000:03:00.0 vt.handoff=7

Setup

VMware ESXi PCI passthrough (DirectPath I/O) to an Ubuntu guest — to my knowledge this is
the first VMware report; the only passthrough results so far have been Proxmox/KVM + vfio-pci.

Details:

  • Card is the only GPU in the guest; headless, no display attached.
  • Guest sees it as 10de:249d with subsystem rewritten to 10de:0000 (passthrough signature),
    DeviceName: pciPassthru0; the VMware SVGA II adapter (15ad:0405) is the console display.
  • BAR0 is 16 MB, so the PROM aperture at BAR0+0x300000 is readable; the unlock read it fine
    and FWSEC parsing matched other GA104M reports exactly.
  • FLReset+ is advertised and FLR worked.
  • Power limit 115 W (this SKU's maximum). Secure Boot disabled.
  • Memory reservation is pinned to the full configured size (required for FPT passthrough devices).

Kernel log

gpu_unlock: loading out-of-tree module taints kernel.
gpu_unlock: module verification failed: signature and/or required key missing - tainting kernel
gpu_unlock: ROM chain: pos=0x0 data=0x52494350 bytes=65024 type=0x0 last=0
gpu_unlock: ROM chain: pos=0xfe00 data=0x52494350 bytes=91648 type=0x3 last=0
gpu_unlock: ROM chain: pos=0x26400 data=0x5344504e bytes=22016 type=0xe0 last=0
gpu_unlock: ROM chain: pos=0x2ba00 data=0x5344504e bytes=388096 type=0xe0 last=128
gpu_unlock: ROM expansion: base=0xfe00 ext=0x26400 adjust=0x16600
gpu_unlock: ROM BIT: offset=0x1b0 size=12 stride=6 tokens=17 adjust=0x16600
gpu_unlock: ROM ucode table: offset=0x8a4e5 version=1 header=6 stride=6 entries=16
gpu_unlock: FWSEC descriptor: offset=0x422f0 ROM_bytes=1048576 header=0x4ac0301
gpu_unlock: FWSEC geometry: image_off=0x4279c size=0xe200 imem=0xda00 va=0x0 pa=0x0 dmem=0x800 pa=0x0 pkc=0x5a4 interface=0x1c engine=0x400 ucode=9 signatures=3 versions=0x7 bytes=1152
gpu_unlock: FWSEC interface: offset=0x1c version=1 header=4 stride=8 entries=2 FRTS=0x3ffe00000
gpu_unlock: FWSEC mapper: version=3 size=64 cmd_offset=0x7c0 cmd_size=64
gpu_unlock: FWSEC signature selection: versions=0x7 fuse_version=2 sig_bytes=384
pci 0000:03:00.0: gpu_unlock: unlocked

Benchmark before and after

torch 2.14.1+cu130 (cuBLAS), 4096³ dense GEMM, 5-sample medians, 115 W card, FP32 accumulation.

Input Before After Change
FP16 30.73 59.89 +94.9%
BF16 30.66 59.81 +95.1%
TF32 15.43 30.04 +94.7%
FP32 (no tensor cores, control) 8.49 8.56 +0.8%

The FP32 control row is the useful part: it stayed flat while the three tensor paths doubled,
so the gain is the unlocked issue rate and not clocks.

Under sustained FP16 GEMM load: SM 1455 MHz (max 2100), 101.7 W of 115 W, 62–65 °C, 100% util.
It does NOT downclock, which I think explains why this card gets the full 2x instead of the
+40% seen on the 80 W RTX 3080 Laptop in #81 — that one had to drop to 840–900 MHz to stay
inside its power budget. Suggestion: gains here look like min(2x, whatever the power budget
allows), so power-limited laptop cards will always land below 2x.

Real workload, Wan2.2 5B image-to-video, 832×480, 33 frames, 20 steps, CFG 7, identical graph:
63.0 s → 41.7 s (−33.8%), sampling 1.54 s/it (≈2.6 s/it before, inferred from total).
Sampling itself gains ≈+69%, not the full +95%, because attention and memory traffic don't
benefit as much as pure GEMM.

Suspend and resume

None

Anything else

Two things that might be worth folding into the README:

  1. Passthrough VMs cannot be snapshotted or suspended (vSphere DirectPath I/O limitation),
    so there is no rollback safety net from the hypervisor side. In practice this was fine:
    the module only reads PROM and writes volatile registers, and a power cycle resets
    everything, so the only real rollback needed is the initramfs/GRUB change.

  2. The unlock survives as intended, nvidia binds normally afterwards, and 3 consecutive
    diffusion runs completed with 0 Xid events. No stability issues so far.

Thanks — the pre-driver kmod approach is a big improvement over re-patching the driver
every release.

Originally created by @alansxf on GitHub (Oct 25, 2026). Original GitHub issue: https://github.com/Zagitta/gpu-unlock/issues/101 ### Result Unlocked, and FP16/BF16 got faster ### Card NVIDIA GeForce RTX 3070 Laptop GPU (GA104M), reports 16 GB VRAM, passed through to a VMware ESXi guest ### PCI IDs ```text 0000:03:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA104M [GeForce RTX 3070 Mobile / Max-Q] [10de:249d] (rev a1) 0000:03:00.1 Audio device [0403]: NVIDIA Corporation GA104 High Definition Audio Controller [10de:228b] (rev a1) ``` ### VBIOS version 00000000:03:00.0, 94.04.35.00.25 ### Is the card modified? Stock ### Distribution Ubuntu 24.04.5 LTS (guest, inside VMware ESXi with PCI passthrough) ### Kernel 7.0.0-38-generic ### NVIDIA driver 615.71.09, open kernel modules (Ubuntu 24.04 package nvidia-driver-615-open) ### Initramfs generator initramfs-tools ### gpu-unlock version and install method af28cbb, manual: make install-dkms + dkms add/build/install, then make install-firmware install-initramfs-tools ### Kernel command line BOOT_IMAGE=/boot/vmlinuz-7.0.0-38-generic root=UUID=18cca73a-f1b6-4453-8d32-4dcf0a338acf ro quiet splash gpu_unlock.targets=0000:03:00.0 vt.handoff=7 ### Setup VMware ESXi PCI passthrough (DirectPath I/O) to an Ubuntu guest — to my knowledge this is the first VMware report; the only passthrough results so far have been Proxmox/KVM + vfio-pci. Details: - Card is the only GPU in the guest; headless, no display attached. - Guest sees it as 10de:249d with subsystem rewritten to 10de:0000 (passthrough signature), DeviceName: pciPassthru0; the VMware SVGA II adapter (15ad:0405) is the console display. - BAR0 is 16 MB, so the PROM aperture at BAR0+0x300000 is readable; the unlock read it fine and FWSEC parsing matched other GA104M reports exactly. - FLReset+ is advertised and FLR worked. - Power limit 115 W (this SKU's maximum). Secure Boot disabled. - Memory reservation is pinned to the full configured size (required for FPT passthrough devices). ### Kernel log ```text gpu_unlock: loading out-of-tree module taints kernel. gpu_unlock: module verification failed: signature and/or required key missing - tainting kernel gpu_unlock: ROM chain: pos=0x0 data=0x52494350 bytes=65024 type=0x0 last=0 gpu_unlock: ROM chain: pos=0xfe00 data=0x52494350 bytes=91648 type=0x3 last=0 gpu_unlock: ROM chain: pos=0x26400 data=0x5344504e bytes=22016 type=0xe0 last=0 gpu_unlock: ROM chain: pos=0x2ba00 data=0x5344504e bytes=388096 type=0xe0 last=128 gpu_unlock: ROM expansion: base=0xfe00 ext=0x26400 adjust=0x16600 gpu_unlock: ROM BIT: offset=0x1b0 size=12 stride=6 tokens=17 adjust=0x16600 gpu_unlock: ROM ucode table: offset=0x8a4e5 version=1 header=6 stride=6 entries=16 gpu_unlock: FWSEC descriptor: offset=0x422f0 ROM_bytes=1048576 header=0x4ac0301 gpu_unlock: FWSEC geometry: image_off=0x4279c size=0xe200 imem=0xda00 va=0x0 pa=0x0 dmem=0x800 pa=0x0 pkc=0x5a4 interface=0x1c engine=0x400 ucode=9 signatures=3 versions=0x7 bytes=1152 gpu_unlock: FWSEC interface: offset=0x1c version=1 header=4 stride=8 entries=2 FRTS=0x3ffe00000 gpu_unlock: FWSEC mapper: version=3 size=64 cmd_offset=0x7c0 cmd_size=64 gpu_unlock: FWSEC signature selection: versions=0x7 fuse_version=2 sig_bytes=384 pci 0000:03:00.0: gpu_unlock: unlocked ``` ### Benchmark before and after torch 2.14.1+cu130 (cuBLAS), 4096³ dense GEMM, 5-sample medians, 115 W card, FP32 accumulation. | Input | Before | After | Change | | ----- | ------- | ------- | ------ | | FP16 | 30.73 | 59.89 | +94.9% | | BF16 | 30.66 | 59.81 | +95.1% | | TF32 | 15.43 | 30.04 | +94.7% | | FP32 (no tensor cores, control) | 8.49 | 8.56 | +0.8% | The FP32 control row is the useful part: it stayed flat while the three tensor paths doubled, so the gain is the unlocked issue rate and not clocks. Under sustained FP16 GEMM load: SM 1455 MHz (max 2100), 101.7 W of 115 W, 62–65 °C, 100% util. It does NOT downclock, which I think explains why this card gets the full 2x instead of the +40% seen on the 80 W RTX 3080 Laptop in #81 — that one had to drop to 840–900 MHz to stay inside its power budget. Suggestion: gains here look like min(2x, whatever the power budget allows), so power-limited laptop cards will always land below 2x. Real workload, Wan2.2 5B image-to-video, 832×480, 33 frames, 20 steps, CFG 7, identical graph: 63.0 s → 41.7 s (−33.8%), sampling 1.54 s/it (≈2.6 s/it before, inferred from total). Sampling itself gains ≈+69%, not the full +95%, because attention and memory traffic don't benefit as much as pure GEMM. ### Suspend and resume None ### Anything else Two things that might be worth folding into the README: 1. Passthrough VMs cannot be snapshotted or suspended (vSphere DirectPath I/O limitation), so there is no rollback safety net from the hypervisor side. In practice this was fine: the module only reads PROM and writes volatile registers, and a power cycle resets everything, so the only real rollback needed is the initramfs/GRUB change. 2. The unlock survives as intended, nvidia binds normally afterwards, and 3 consecutive diffusion runs completed with 0 Xid events. No stability issues so far. Thanks — the pre-driver kmod approach is a big improvement over re-patching the driver every release.
Author
Owner

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

The card reports 16 GB at 7001 MHz memory clock (407 GB/s measured); the reference RTX 3070 Laptop SKU is 8 GB at 12 Gbps. It was received in this configuration and the VBIOS was not reflashed by me.
DirectPath I/O VMs cannot be suspended by vSphere at all, so this path is not reachable here.

<!-- gh-comment-id:6396078320 --> @alansxf commented on GitHub (Oct 25, 2026): The card reports 16 GB at 7001 MHz memory clock (407 GB/s measured); the reference RTX 3070 Laptop SKU is 8 GB at 12 Gbps. It was received in this configuration and the VBIOS was not reflashed by me. DirectPath I/O VMs cannot be suspended by vSphere at all, so this path is not reachable here.
Author
Owner

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

A/B follow-up: how the unlock is actually cleared, and where the gain really comes from

I got a clean before/after on the same machine, same engine, same model, same script. One thing worth flagging first: removing gpu_unlock.targets= from the kernel cmdline is not enough to get back to a locked card.

How the unlock state actually gets cleared

Action Result
reboot inside the guest still unlocked (FP16 59.70 TFLOPS)
vSphere Power Off → Power On still unlocked (FP16 59.93)
physical host power removal, 5 s cleared (FP16 30.59)

In a passthrough VM, a guest power-off only removes vCPU/RAM — the PCIe device keeps auxiliary power, so the volatile speed selectors survive. For anyone benchmarking in a VM: you cannot A/B this by rebooting, you have to cut power to the host (or write the selectors back manually).

GEMM (N=4096, median of 3)

Case Locked Unlocked Delta
FP16 30.59 59.94 +95.9%
BF16 30.67 59.76 +94.8%
TF32 15.43 30.12 +95.2%
FP32 (TF32 off, control) 8.41 8.51 +1.2%

The FP32 control staying flat confirms the gain is the unlocked FP/BF16 issue path, not clocks or anything else.

Real LLM inference A/B (same engine version, same model, same script)

Metric Locked Unlocked
decode 54.5 tok/s 54.5 tok/s
cold prefill, 27.2K tokens 1300 tok/s 1450 tok/s (+11.5%)

Under load the unlocked card ran at a lower SM clock (1620 vs 1695 MHz median, both peaking ~1900 MHz) with peak power 103.9 W against a 115 W limit — so this is genuinely issue rate, not overclocking, and it is not power-throttled.

Why prefill only gains 11.5% while GEMM gains 95%. Model prefill time as C + M (compute + memory/other); the unlock only halves C. Solving 0.5C + M = 0.888 (C + M) gives M ≈ 3.3 C, i.e. compute is only ~23% of prefill wall time for a 3-bit MoE on a 16 GB card at 417 GB/s. Then 0.5 × 23% ≈ 11.5%, matching the measurement exactly. Rule of thumb: gain ≈ compute share × 50%. Decode is pure bandwidth (compute share ≈ 0) so it does not move at all; a diffusion workload on the same card gained ~34% end-to-end because its compute share is much higher.

One discrepancy with the source comments

The comments say the cold/default value is SS0=0x22222222 / SS1=0x2. On this card, right after the power cycle with the driver bound and the GPU idle in P8, I read:

SS0 @0x0082381c = 0x11100000
SS1 @0x00823820 = 0x00000003

Unlocked it reads exactly 0x88888888 / 0x8 as documented. I do not know why the cold value differs — possibly related to this card being a modified 16 GB vBIOS (memory at 7001 MHz vs stock 6001 MHz). The practical takeaway is that reading the selectors is not a reliable locked/unlocked test on every card; the GEMM number is.

Two corrections to the report form

  • Is the card modified? is currently Stock. Given the 16 GB / 7001 MHz module this should probably read Memory upgrade.
  • Suspend and resume is currently None. Per the vSphere DirectPath I/O limitations, suspend/resume is not supported at all for this VM, so Not tested is more accurate than None.
<!-- gh-comment-id:6398103392 --> @alansxf commented on GitHub (Oct 25, 2026): **A/B follow-up: how the unlock is actually cleared, and where the gain really comes from** I got a clean before/after on the same machine, same engine, same model, same script. One thing worth flagging first: removing `gpu_unlock.targets=` from the kernel cmdline is **not** enough to get back to a locked card. ### How the unlock state actually gets cleared | Action | Result | |---|---| | `reboot` inside the guest | still unlocked (FP16 59.70 TFLOPS) | | vSphere Power Off → Power On | still unlocked (FP16 59.93) | | **physical host power removal, 5 s** | cleared (FP16 30.59) | In a passthrough VM, a guest power-off only removes vCPU/RAM — the PCIe device keeps auxiliary power, so the volatile speed selectors survive. For anyone benchmarking in a VM: you cannot A/B this by rebooting, you have to cut power to the host (or write the selectors back manually). ### GEMM (N=4096, median of 3) | Case | Locked | Unlocked | Delta | |---|---|---|---| | FP16 | 30.59 | 59.94 | **+95.9%** | | BF16 | 30.67 | 59.76 | **+94.8%** | | TF32 | 15.43 | 30.12 | **+95.2%** | | FP32 (TF32 off, control) | 8.41 | 8.51 | +1.2% | The FP32 control staying flat confirms the gain is the unlocked FP/BF16 issue path, not clocks or anything else. ### Real LLM inference A/B (same engine version, same model, same script) | Metric | Locked | Unlocked | |---|---|---| | decode | 54.5 tok/s | 54.5 tok/s | | cold prefill, 27.2K tokens | 1300 tok/s | 1450 tok/s (**+11.5%**) | Under load the unlocked card ran at a **lower** SM clock (1620 vs 1695 MHz median, both peaking ~1900 MHz) with peak power 103.9 W against a 115 W limit — so this is genuinely issue rate, not overclocking, and it is not power-throttled. **Why prefill only gains 11.5% while GEMM gains 95%.** Model prefill time as `C + M` (compute + memory/other); the unlock only halves `C`. Solving `0.5C + M = 0.888 (C + M)` gives `M ≈ 3.3 C`, i.e. **compute is only ~23% of prefill wall time** for a 3-bit MoE on a 16 GB card at 417 GB/s. Then `0.5 × 23% ≈ 11.5%`, matching the measurement exactly. Rule of thumb: **gain ≈ compute share × 50%**. Decode is pure bandwidth (compute share ≈ 0) so it does not move at all; a diffusion workload on the same card gained ~34% end-to-end because its compute share is much higher. ### One discrepancy with the source comments The comments say the cold/default value is `SS0=0x22222222 / SS1=0x2`. On this card, right after the power cycle with the driver bound and the GPU idle in P8, I read: ``` SS0 @0x0082381c = 0x11100000 SS1 @0x00823820 = 0x00000003 ``` Unlocked it reads exactly `0x88888888 / 0x8` as documented. I do not know why the cold value differs — possibly related to this card being a modified 16 GB vBIOS (memory at 7001 MHz vs stock 6001 MHz). The practical takeaway is that reading the selectors is not a reliable locked/unlocked test on every card; the GEMM number is. ### Two corrections to the report form - `Is the card modified?` is currently `Stock`. Given the 16 GB / 7001 MHz module this should probably read `Memory upgrade`. - `Suspend and resume` is currently `None`. Per the vSphere DirectPath I/O limitations, suspend/resume is not supported at all for this VM, so `Not tested` is more accurate than `None`.
Author
Owner

@mcgl0vin commented on GitHub (Oct 26, 2026):

What version of VMWare are you using? Any specific tips or tricks you had to do inside of VMWare itself for this to work??

<!-- gh-comment-id:6415331626 --> @mcgl0vin commented on GitHub (Oct 26, 2026): What version of VMWare are you using? Any specific tips or tricks you had to do inside of VMWare itself for this to work??
Author
Owner

@alansxf commented on GitHub (Oct 26, 2026):

3. 你使用的是哪个版本的VMware?为了让它正常工作,你在VMware内部做了哪些具体的操作或技巧?

v8

<!-- gh-comment-id:6417976570 --> @alansxf commented on GitHub (Oct 26, 2026): > 3\. 你使用的是哪个版本的VMware?为了让它正常工作,你在VMware内部做了哪些具体的操作或技巧? v8
bsakaguchi 2026-10-30 04:54:50 +07:00
Author
Owner

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

Thanks for the report! Success reports now live in one place: https://github.com/Zagitta/gpu-unlock/discussions/238. Closing this so the issue tracker stays focused on cards where the unlock fails. Your numbers stay searchable here under the success-report label. If something stops working later, please open an unlock failure issue.

<!-- gh-comment-id:6454930344 --> @Zagitta commented on GitHub (Oct 27, 2026): Thanks for the report! Success reports now live in one place: https://github.com/Zagitta/gpu-unlock/discussions/238. Closing this so the issue tracker stays focused on cards where the unlock fails. Your numbers stay searchable here under the `success-report` label. If something stops working later, please open an unlock failure issue.
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#74
No description provided.