open-gpu-kernel-modules icon indicating copy to clipboard operation
open-gpu-kernel-modules copied to clipboard

Feature request: re-evaluate voltage after final GPC clock arbitration on Blackwell

Open Loong0x00 opened this issue 4 months ago • 1 comments

NVIDIA Open GPU Kernel Modules Version

610.43.03 (nvidia-open-dkms 610.43.03-3)

Proprietary-driver comparison

Not applicable on this hardware. The tested GPU is Blackwell and uses the open kernel modules with GSP-RM enabled.

Operating System and Version

Arch Linux

Kernel Release

7.1.4-arch1-1 during the controlled measurements

Hardware: GPU

  • NVIDIA GeForce RTX 5090 (GB202)
  • PCI device ID: 10de:2b85
  • VBIOS: 98.02.2E.40.E0
  • GSP-RM: enabled
  • Configured board-power limit: 600 W

Feature request

Please re-evaluate the voltage request after the final effective GPC-clock arbitration result changes, or expose a supported API that asks the normal V/F path to re-evaluate voltage for the current effective clock without imposing a minimum or maximum clock lock.

On this RTX 5090, read-only policy telemetry shows that the active WORKLOAD_COMBINED_2X policy can publish a GPC candidate/ceiling around 2.97 GHz while the realized graphics clock is around 2.89 GHz. The observed voltage appears to remain closer to the earlier/higher clock request instead of being fully recomputed for the final realized clock.

A diagnostic max-only feedback experiment makes this visible. Re-submitting the PMU's current GPC result through NVIDIA's exported API as:

nvmlDeviceSetGpuLockedClocks(device, 0, pmu_dg0_mhz);

leaves the minimum open, does not force the GPU to the submitted maximum, but causes the normal clock/V/F path to re-evaluate. In the same Cyberpunk 2077 path-tracing workload, this retained essentially the same throughput while reducing reported voltage and board power.

Controlled results

Workload and configuration:

  • Cyberpunk 2077 2.31 built-in benchmark
  • 6144 x 3456
  • Path Tracing enabled
  • DLAA
  • Frame Generation disabled
  • identical 127-point V/F curve, memory offset, power limit and game settings
State Average FPS GPU clock average GPU voltage average 1 s board power average
Existing configuration, 10-run baseline 11.7911 2897.6 MHz 973.1 mV 555.3 W
PMU-result max-only feedback, one diagnostic run 11.7763 2892.5 MHz 962.2 mV 539.7 W

The measured differences were:

  • average FPS: -0.13%, within ordinary run-to-run variation;
  • graphics clock: -5.1 MHz;
  • reported voltage: -10.9 mV;
  • one-second average board power: -15.6 W.

During the diagnostic scene:

  • PMU PERF limit 0x43 / policy-0 DG0: approximately 2968 MHz average;
  • submitted max-only value: approximately 2965 MHz average;
  • reported physical graphics clock: approximately 2893 MHz average;
  • power-model observed branch-0 frequency: approximately 2885 MHz average.

No Xid, GPU-lost, reset-required, thermal slowdown, hardware slowdown or power-brake event occurred. The locked-clock range was reset successfully after the run.

Why an internal or event-driven implementation is requested

The diagnostic bridge polled the policy result and issued 942 NVML SET calls during an 82.5-second scene because the candidate moves frequently. This is not proposed as a userspace solution.

A follow-up controller that required a 30 MHz change to remain in the same 15 MHz bin for 150 ms submitted only four updates, but largely lost the voltage/power reduction. That run measured 11.7088 FPS, 2907.5 MHz, 978.3 mV and 550.1 W. The policy output moves too often for exact-bin debouncing, while high-rate userspace polling is undesirable.

The desired internal sequence appears conceptually simpler:

final granted/effective GPC frequency
  -> normal V/F lookup
  -> updated rail voltage request

This would avoid an additional userspace feedback controller and would let the existing firmware retain responsibility for stability, slew limits and arbitration.

Expected behavior / requested API

Could NVIDIA consider either of the following?

  1. After all power/performance constraints produce the final effective GPC target, re-evaluate the associated voltage request when the final target is materially below the frequency used for the current request.
  2. Expose a supported API to request V/F re-evaluation for the current effective clock, without installing a locked-clock minimum or maximum.

If retaining the higher voltage is intentional for transient-response or stability reasons, documentation of that behavior and any supported energy-efficiency control would also be helpful.

Related controller reports

These existing issues concern a different but adjacent Blackwell clock/power-arbitration interaction:

  • #1265 — memory locked-clock request reduces RT performance and leaves substantial board-power headroom unused
  • #1266 — a finite memory-clock maximum constrains XBAR/SYS and changes performance

Complete benchmark summaries, per-sample telemetry, bridge logs and read-only policy-status captures are available if useful.

Loong0x00 avatar Jul 29 '26 06:07 Loong0x00

Update: reproduced on 610.57.04 with a rising V/F tail and two RT workloads

I reproduced the same final-clock/voltage mismatch on a newer stack while removing a potential confound in the original report: the active GPC V/F tail now rises monotonically instead of remaining flat.

Current system

  • GPU: GeForce RTX 5090 / GB202 (10de:2b85, subsystem 1043:89e3)
  • Open kernel/GSP driver: 610.57.04
  • VBIOS: 98.02.2E.80.50
  • Configured board-power limit: 595 W
  • Cyberpunk 2077 2.31 built-in benchmark, 6144 x 3456
  • no upscaling, frame generation or dynamic resolution

The relevant runtime-read-back V/F points were:

935 mV  -> 3000 MHz
1010 mV -> 3105 MHz
1050 mV -> 3150 MHz
>=1050 mV remains at 3150 MHz

The driver reported all 127 points after applying the curve. No clock lock was installed.

Result

Workload Avg FPS Realized/reported GPC avg NVVDD/reported voltage avg Board power avg policy-0 DG0 avg PERF 0x43 avg DG0 - realized
Path Tracing 11.3408 3028.1 MHz 1009.8 mV 572.0 W 3097.7 MHz 3099.5 MHz +69.6 MHz
RT Ultra, no Path Tracing 21.8783 2960.5 MHz 985.7 mV 559.5 W 3085.7 MHz 3088.7 MHz +125.2 MHz

The Path Tracing medians provide the cleanest single-bin comparison:

NVVDD/reported voltage median: 1010 mV
active V/F point at 1010 mV:   3105 MHz
WORKLOAD_COMBINED_2X DG0:      3105 MHz
realized/reported GPC clock:   3030 MHz

Thus the rising V/F curve and the power-policy search both select the 3105 MHz state, and the voltage is consistent with that state, but the realized clock settles one or more stages later at about 3030 MHz. The unused voltage is not explained by a flat user curve.

The RT-setting A/B also changed the policy model's internal workload and candidate state while preserving the downstream mismatch:

                              Path Tracing     RT Ultra
model workload branch 0/1:    285.3 / 251.7    311.7 / 269.4
estimated tuple MHz 0/1:      2838 / 2630      2761 / 2571
DG0 median:                   3105             3082 MHz
realized GPC median:          3030             2955 MHz

This does not by itself prove that an explicit RT-mode enum is an input; the change may be mediated by activity counters, V/F residency, or workload-regime selection. It does show that the policy model changes with the RT workload, while a separate post-DG0 stage removes substantially more clock than the ordinary physical clock-grid quantization can explain.

During both scene windows:

  • the conventional active PERF-limit list was empty;
  • software power capping was active;
  • no hardware slowdown, thermal slowdown, power-brake slowdown, or software thermal slowdown was reported;
  • no Xid, GSP reset-required condition, or PCIe AER error occurred.

Revised requested fix

Please invalidate and re-evaluate the matching voltage request whenever any downstream clock client, projection, filter, or finalizer materially lowers the granted GPC clock after the power-policy result. A generation/version identifier shared by the final clock grant and its voltage request would prevent a voltage request computed for an older/higher candidate from surviving a later clock grant.

Conceptually:

policy candidate / DG0
  -> all downstream clock-client arbitration
  -> final granted GPC clock
  -> V/F re-evaluation for that exact grant generation
  -> rail request update

The high-rate NVML re-commit from the original report remains only a diagnostic causal probe, not a proposed userspace fix. Raw per-sample policy, NVML, rail, and clock telemetry for both runs is available if useful.

Loong0x00 avatar Aug 21 '26 07:08 Loong0x00