[GH-ISSUE #255] ESXi passthrough: removing gpu_unlock.targets and rebooting guest does not restore stock state (RTX 3080 Ti) #224

Open
opened 2026-10-30 04:55:44 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @Carl-C on GitHub (Oct 29, 2026).
Original GitHub issue: https://github.com/Zagitta/gpu-unlock/issues/255

Problem: disabling does not restore stock state in an ESXi passthrough guest

Removing gpu_unlock.targets= and rebooting the guest stops further unlock operations, but the RTX 3080 Ti retains the previous unlock performance. The owner cannot power-cycle the ESXi host and needs a supported way to restore the stock GPU state without cutting power.

This is a disable/rollback problem, not a success/compatibility report. The failure-form Result choices do not describe it; the environment fields are included below rather than selecting an inaccurate result.

Reproduction

  1. Unlock the passed-through GPU at boot with gpu_unlock.targets=0000:03:00.0 (initially gpu-unlock 1.0.0 at af28cbb).
  2. Upgrade to 2.0.0 (1fc6d628c4), reboot the VM. The module finds SS0=0x88888888 and SS1=0x8 and reports -114 (already unlocked); performance remains elevated.
  3. Remove gpu_unlock.targets= from the GRUB configuration, run update-grub, and reboot the VM again.
  4. Verify the boot command line has no target, the loaded module's targets reads (null), and there are no unlock-operation messages this boot.
  5. Run the same benchmark: the GPU is still at unlocked performance.

Expected: a supported software restore procedure, or an explicit explanation of the reset/power conditions required to undo the register changes in passthrough environments. Merely stopping future writes does not restore this card.

Actual: no verified software restore method is available in this setup. A physical power cycle has not been tested as a remedy here; this report does not assert that it is the only possible remedy.

Result

Disable/rollback fails to restore stock performance after a guest reboot. The unlock itself originally worked.

Card

NVIDIA GeForce RTX 3080 Ti (GA102), 12 GB (12288 MiB). Board vendor not captured.

PCI IDs

0000:03:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA102 [GeForce RTX 3080 Ti] [10de:2208] (rev a1)
0000:03:00.1 Audio device [0403]: NVIDIA Corporation GA102 High Definition Audio Controller [10de:1aef] (rev a1)

VBIOS version

00000000:03:00.0, 94.02.71.00.2E

Is the card modified?

Not sure; no modification history was verified.

Distribution

Ubuntu 24.04.5 LTS, VMware ESXi PCI passthrough guest. ESXi host version/build not captured.

Kernel

6.8.0-147-generic

NVIDIA driver

580.178.04, proprietary kernel module (modinfo nvidia -F license returns NVIDIA).

Initramfs generator

initramfs-tools

gpu-unlock version and install method

Original successful unlock: 1.0.0 at af28cbb, locally built Debian DKMS + firmware packages.
Disable reproduction: 2.0.0 at 1fc6d628c4, built with make deb and installed using apt; DKMS and initramfs verified.

Latest upstream main was checked at 7eb51bccae. The changes since 1fc6d62 address sparse type warnings; main.c still exposes targets/resume and its exit path drops resources without restoring selectors. Latest main was inspected, not installed or hardware-tested.

Kernel command line (disabled boot)

BOOT_IMAGE=/vmlinuz-6.8.0-147-generic root=<redacted> ro

Setup

  • GPU passed through to an ESXi guest; VMware SVGA supplies the guest console.
  • GPU power limit: 350 W. Secure Boot disabled.
  • Guest PCI reset methods: flr only.
  • NVIDIA power status: Runtime D3 status: Not supported.
  • Guest mem_sleep: [s2idle] shallow; no deep/S3 option.
  • No manual register writes, driver unload/reset experiments, or host power cycle were performed for this report.

Kernel log

Disabled boot, filtered for gpu_unlock (only module-loading messages, no unlock attempt):

Oct 28 07:32:22 guest kernel: gpu_unlock: loading out-of-tree module taints kernel.
Oct 28 07:32:22 guest kernel: gpu_unlock: module verification failed: signature and/or required key missing - tainting kernel

Relevant original successful-unlock output, showing that the unlock selectors survived the unlock flow's FLR:

Oct 26 13:01:58 guest kernel: pci 0000:03:00.0: selector read: SS0=0x14004163 expected_unlock=0x88888888
Oct 26 13:01:58 guest kernel: pci 0000:03:00.0: selector write: SS0=0x88888888
Oct 26 13:01:58 guest kernel: pci 0000:03:00.0: post-FLR SEC2 reset released, GSP halted, BME=0 pending=0 WPR2=1ffffe00:00000000 SS0=88888888 SS1=00000008
Oct 26 13:01:58 guest kernel: pci 0000:03:00.0: gpu_unlock: unlocked

Relevant 2.0.0 boot before disabling:

Oct 28 06:54:39 guest kernel: pci 0000:03:00.0: gpu_unlock: stage=gfw plm=0xffffffff ss0=0x88888888 ss1=0x8 wpr2_hi=0x0
Oct 28 06:54:39 guest kernel: pci 0000:03:00.0: gpu_unlock: stage=handoff ret=-114 state=0 retained=0 pages=0/20606 cleanup=0
Oct 28 06:54:39 guest kernel: pci 0000:03:00.0: gpu_unlock: unlock failed (-114)

Benchmark before and after disabling

Same custom Python/ctypes cuBLAS benchmark: 8192³ dense GEMM, FP32 accumulation/output, reduced-precision reduction disabled, 350 W, 7 samples with 400 ms windows and 20 s warm-up. cuBLAS 12.8.4.1 / CUDA runtime 12.8.90. No clock or power changes.

Input Original stock baseline Initially unlocked Targets removed + VM reboot
FP16 71.70 120.11 119.07
BF16 71.62 121.40 120.25
TF32 37.89 67.05 66.78
FP32 control 25.76 25.85 25.76

Values are TFLOPS. The disabled-boot measurements were recorded on 2026-10-28 at 07:53 UTC. These figures demonstrate the rollback symptom; they are not submitted as a standalone success report.

Suspend and resume

Not tested. The guest has no deep/S3 option.

Request

Is there a supported way to restore the original selectors after stopping GPU clients/unbinding the driver, without power-cycling the host? If restoration is not supported, could you clarify the expected disable behavior for ESXi passthrough and whether an explicit restore mode is feasible?

Searched existing issues for ESXi/VMware, relock, disable, restore and cold/power-cycle reports. #101 concerns successful ESXi use, not restoration; no matching rollback issue was found.

Submitted by an AI assistant at the hardware owner's explicit request, using existing machine logs and read-only environment checks.

Privacy: guest hostname and root device path have been redacted. No GPU UUID, boot IDs, IP addresses, usernames, or local workspace paths are included.

Originally created by @Carl-C on GitHub (Oct 29, 2026). Original GitHub issue: https://github.com/Zagitta/gpu-unlock/issues/255 ## Problem: disabling does not restore stock state in an ESXi passthrough guest Removing `gpu_unlock.targets=` and rebooting the guest stops further unlock operations, but the RTX 3080 Ti retains the previous unlock performance. The owner cannot power-cycle the ESXi host and needs a supported way to restore the stock GPU state without cutting power. This is a disable/rollback problem, not a success/compatibility report. The failure-form Result choices do not describe it; the environment fields are included below rather than selecting an inaccurate result. ## Reproduction 1. Unlock the passed-through GPU at boot with `gpu_unlock.targets=0000:03:00.0` (initially gpu-unlock 1.0.0 at af28cbb). 2. Upgrade to 2.0.0 (1fc6d628c49c7fba34ef3a2e7f758700d35ce890), reboot the VM. The module finds SS0=0x88888888 and SS1=0x8 and reports -114 (already unlocked); performance remains elevated. 3. Remove `gpu_unlock.targets=` from the GRUB configuration, run `update-grub`, and reboot the VM again. 4. Verify the boot command line has no target, the loaded module's targets reads `(null)`, and there are no unlock-operation messages this boot. 5. Run the same benchmark: the GPU is still at unlocked performance. Expected: a supported software restore procedure, or an explicit explanation of the reset/power conditions required to undo the register changes in passthrough environments. Merely stopping future writes does not restore this card. Actual: no verified software restore method is available in this setup. A physical power cycle has **not** been tested as a remedy here; this report does not assert that it is the only possible remedy. ## Result Disable/rollback fails to restore stock performance after a guest reboot. The unlock itself originally worked. ## Card NVIDIA GeForce RTX 3080 Ti (GA102), 12 GB (12288 MiB). Board vendor not captured. ## PCI IDs ```text 0000:03:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA102 [GeForce RTX 3080 Ti] [10de:2208] (rev a1) 0000:03:00.1 Audio device [0403]: NVIDIA Corporation GA102 High Definition Audio Controller [10de:1aef] (rev a1) ``` ## VBIOS version ```text 00000000:03:00.0, 94.02.71.00.2E ``` ## Is the card modified? Not sure; no modification history was verified. ## Distribution Ubuntu 24.04.5 LTS, VMware ESXi PCI passthrough guest. ESXi host version/build not captured. ## Kernel `6.8.0-147-generic` ## NVIDIA driver `580.178.04`, proprietary kernel module (`modinfo nvidia -F license` returns `NVIDIA`). ## Initramfs generator initramfs-tools ## gpu-unlock version and install method Original successful unlock: 1.0.0 at af28cbb, locally built Debian DKMS + firmware packages. Disable reproduction: 2.0.0 at 1fc6d628c49c7fba34ef3a2e7f758700d35ce890, built with `make deb` and installed using apt; DKMS and initramfs verified. Latest upstream main was checked at 7eb51bccae0a0b7e599e084d971170e9a1e82d0c. The changes since 1fc6d62 address sparse type warnings; main.c still exposes targets/resume and its exit path drops resources without restoring selectors. **Latest main was inspected, not installed or hardware-tested.** ## Kernel command line (disabled boot) ```text BOOT_IMAGE=/vmlinuz-6.8.0-147-generic root=<redacted> ro ``` ## Setup - GPU passed through to an ESXi guest; VMware SVGA supplies the guest console. - GPU power limit: 350 W. Secure Boot disabled. - Guest PCI reset methods: `flr` only. - NVIDIA power status: `Runtime D3 status: Not supported`. - Guest mem_sleep: `[s2idle] shallow`; no deep/S3 option. - No manual register writes, driver unload/reset experiments, or host power cycle were performed for this report. ## Kernel log Disabled boot, filtered for gpu_unlock (only module-loading messages, no unlock attempt): ```text Oct 28 07:32:22 guest kernel: gpu_unlock: loading out-of-tree module taints kernel. Oct 28 07:32:22 guest kernel: gpu_unlock: module verification failed: signature and/or required key missing - tainting kernel ``` Relevant original successful-unlock output, showing that the unlock selectors survived the unlock flow's FLR: ```text Oct 26 13:01:58 guest kernel: pci 0000:03:00.0: selector read: SS0=0x14004163 expected_unlock=0x88888888 Oct 26 13:01:58 guest kernel: pci 0000:03:00.0: selector write: SS0=0x88888888 Oct 26 13:01:58 guest kernel: pci 0000:03:00.0: post-FLR SEC2 reset released, GSP halted, BME=0 pending=0 WPR2=1ffffe00:00000000 SS0=88888888 SS1=00000008 Oct 26 13:01:58 guest kernel: pci 0000:03:00.0: gpu_unlock: unlocked ``` Relevant 2.0.0 boot before disabling: ```text Oct 28 06:54:39 guest kernel: pci 0000:03:00.0: gpu_unlock: stage=gfw plm=0xffffffff ss0=0x88888888 ss1=0x8 wpr2_hi=0x0 Oct 28 06:54:39 guest kernel: pci 0000:03:00.0: gpu_unlock: stage=handoff ret=-114 state=0 retained=0 pages=0/20606 cleanup=0 Oct 28 06:54:39 guest kernel: pci 0000:03:00.0: gpu_unlock: unlock failed (-114) ``` ## Benchmark before and after disabling Same custom Python/ctypes cuBLAS benchmark: 8192³ dense GEMM, FP32 accumulation/output, reduced-precision reduction disabled, 350 W, 7 samples with 400 ms windows and 20 s warm-up. cuBLAS 12.8.4.1 / CUDA runtime 12.8.90. No clock or power changes. | Input | Original stock baseline | Initially unlocked | Targets removed + VM reboot | | --- | ---: | ---: | ---: | | FP16 | 71.70 | 120.11 | 119.07 | | BF16 | 71.62 | 121.40 | 120.25 | | TF32 | 37.89 | 67.05 | 66.78 | | FP32 control | 25.76 | 25.85 | 25.76 | Values are TFLOPS. The disabled-boot measurements were recorded on 2026-10-28 at 07:53 UTC. These figures demonstrate the rollback symptom; they are not submitted as a standalone success report. ## Suspend and resume Not tested. The guest has no deep/S3 option. ## Request Is there a supported way to restore the original selectors after stopping GPU clients/unbinding the driver, without power-cycling the host? If restoration is not supported, could you clarify the expected disable behavior for ESXi passthrough and whether an explicit restore mode is feasible? Searched existing issues for ESXi/VMware, relock, disable, restore and cold/power-cycle reports. #101 concerns successful ESXi use, not restoration; no matching rollback issue was found. Submitted by an AI assistant at the hardware owner's explicit request, using existing machine logs and read-only environment checks. Privacy: guest hostname and root device path have been redacted. No GPU UUID, boot IDs, IP addresses, usernames, or local workspace paths are included.
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#224
No description provided.