RTX 4070 Laptop (Ada): power capped at <=35 W after an AC transition, cleared only by a module reload; the SBIOS platform power query is never retried

Ouverte
#1,584 7 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
5/5
Temps estimé
Plus d'une semaine
Accessibilité débutants
8/100
Type d'issue
Bug
Clarté
Plutôt claire
Activité
Active
Stack technique
c, linux

Piste de recherche

Start in platform_request_handler_ctrl.c at the two assertion sites, :2118 (PlatformRequestHandler failing to read the platform power mode from SBIOS) and :1505 (PshareStatus), and trace where the returned NV_ERR_INVALID_DATA is turned into a latched power ceiling rather than being retried. Reading PlatformRequestHandler and the AC-transition notification path is the prerequisite; the reporter's repro A (load, unplug, replug) reproduces it in about two seconds on the attached hardware. Done means a failed SBIOS query no longer latches a cap — either retried or treated as recoverable — and the 15–25 W collapse after replug no longer occurs.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

Summary

On laptops running the open kernel modules, the dGPU can end up capped at
≤35 W while the SM clock stays high (P0, ≥2000 MHz). nvidia-smi reports
Idle: Active as the only clock-event reason, every named throttle reason
(SW Power Cap, HW Slowdown, HW Thermal Slowdown, Board Limit,
Reliability) is Not Active, the GPU sits at 39–48 °C, and the enforced limit
is still displayed as 115–133 W. The cap survives suspend/resume and does not
clear on its own; reloading the driver restores full power immediately.

It is not vendor-specific. The same failure, with the same
PlatformRequestHandler / SBIOS assertions, has been reported on:

vendor / model GPU reported cap source
Lenovo ThinkPad P14s Gen 6 RTX PRO 1000 Blackwell 25 W #1310
Lenovo LOQ 15AHP10 RTX 5050 Laptop below max TGP #1393
Lenovo LOQ 15IRX10 RTX 5050 Laptop 35 W of 100 W forum 385103
Razer Blade 16 RTX 4070 Laptop ~25 W of 80 W forum 384084
Acer Nitro ANV15-51 RTX 4050 Laptop same assertions, cap not quantified forum 375988
MSI Crosshair 16 HX (this report) RTX 4070 Laptop 15.8–25.7 W here

(An HP OMEN Max 16 case with the same symptom was root-caused to the Linux
hp-wmi driver rather than the NVIDIA module, so it is not counted here.)

What this report adds to those: an Ada machine, a bug report captured while
latched
, a per-second timeseries of the collapse after an AC transition, and
the observation that a full module reload clears it with no reboot and no new
assertions.

The cap appears when the driver is running while the AC adapter is absent and
the GPU is loaded, and the adapter then returns. Unloading and reloading the
modules clears it completely with no reboot, and the reload logs no new
assertions — so the SBIOS query that fails at the transition succeeds seconds
later, and the driver never retries it.

This machine

The numbers in this report come from one MSI Crosshair 16 HX; the failure itself
is the cross-vendor one above.

Platform

Laptop MSI Crosshair 16 HX D14VGKG (MS-15P2)
BIOS E15P2IMS.110
CPU Intel i7-14700HX
GPU NVIDIA GeForce RTX 4070 Laptop 8 GB (Ada, 10de:2820), VBIOS 95.06.35.00.21, 115 W base TGP / 140 W max
Graphics mode hybrid MUX, internal panel on the iGPU, dGPU at 01:00.0
OS Arch Linux, kernel 7.3.4-zen2-1-zen (stable; also seen on 7.3.4-arch1-1)
Driver nvidia-open-dkms 620.73.04 and 620.70.06 — both affected
nvidia-powerd running; stopping it is not a fix

Symptom

state power SM clock P-state clocks_event_reasons.active
healthy, AC, bf16 matmul 132–139 W 2535–2550 MHz P0 0x400
healthy, AC, FP32 burn 77–80 W 2550 MHz P0 0x400
latched, AC, any load 15.8–25.7 W 2175 MHz P0 0x1

nvidia-smi -q names 0x1 Idle: Active, i.e. the driver reports the GPU as
idle while it is at P0, at 2175 MHz, under 100 % utilization. Every other named
reason (SW Power Cap, HW Slowdown, HW Thermal Slowdown,
HW Power Brake Slowdown, SW Thermal Slowdown, Board Limit, Reliability)
reports Not Active, and the GPU sits at 39–44 °C.

The enforced limit is not lowered. From the attached bug report, captured at
16.09 W / 100 % util / P0:

GPU Ceiling Power Limit
    Current Power Limit     : 133.16 W
    Default Power Limit     : 115.00 W
Max Power Limit             : 140.00 W
Min Power Limit             : 5.00 W

So the driver believes it may draw 133 W and delivers 16 W. The clamp is
downstream of the limit that nvidia-smi can read or set (nvidia-smi -pl is
rejected with "Changing power management limit is not supported in current scope
for GPU").

The assertion log at the transition (620.73.04):

NVRM: nvAssertOkFailedNoLog: Assertion failed: Invalid data passed [NV_ERR_INVALID_DATA] (0x00000025)
      returned from PlatformRequestHandler failed to get platform power mode from SBIOS
      @ platform_request_handler_ctrl.c:2118
NVRM: nvAssertOkFailedNoLog: Assertion failed: Invalid data passed [NV_ERR_INVALID_DATA] (0x00000025)
      returned from PshareStatus @ platform_request_handler_ctrl.c:1505
NVRM: nvAssertOkFailedNoLog: Assertion failed: Invalid data passed [NV_ERR_INVALID_DATA] (0x00000025)
      returned from PlatformRequestHandler failed to get target temp from SBIOS
      @ platform_request_handler_ctrl.c:2175

:2118 and :1505 fire in pairs, once per query, for as long as the adapter
state is changing (14 and 13 times in this boot); :2175 fires once at module
init.

Reproduction

A. Unplug and replug with the GPU under load. This is the path that happens
in practice, and it needs no reboot.

Boot on AC, start any sustained load, then pull the charger. The GPU falls to the
battery budget (22–45 W, clock drops, 0x24). Plug the charger back in, and the
card goes to P0 and then collapses within about two seconds:

t after replug   power      SM clock   P-state   mask
0 s              57.69 W    2295 MHz   P0        0x4
1 s              27.72 W    2565 MHz   P0        0x400
2 s              15.86 W    2175 MHz   P0        0x1
3 s              15.82 W    2175 MHz   P0        0x1
4 s              15.79 W    2175 MHz   P0        0x1
...

The assertion pairs appear at the same second. Replugging again, or leaving it on
AC, does not recover it. The attached bug report was captured in this state.

B. Boot with the charger absent, then plug in. Reproduced on every battery
boot attempted (3 of 3, across both driver versions). The adapter is offline at
module init:

$ journalctl -b -k | grep ADP1
kernel: ACPI: AC: AC Adapter [ADP1] (off-line)

The GPU idles normally on battery (2.9–3.2 W, 210 MHz, P8). After plugging the
charger in and loading the GPU it settles at 25.4–25.7 W, 2175 MHz, P0, 0x1,
and stays there for as long as the machine is up — still 25.7 W 63 minutes later,
across an S3 suspend/resume cycle.

Note that a battery boot with the GPU left idle while unplugged did not latch
in one attempt, whereas the same flap with the GPU loaded latched within one
second. Load, not charge state, is the variable in our data.

What does not help

  • nvidia-smi -pm 1 (persistence mode), PowerMizer "Prefer maximum performance"
  • nvidia-smi -lgc (clock reporting changes, power does not)
  • powerprofilesctl set performance, CPU governor performance
  • suspend to RAM and resume (the idle state briefly looks healthy, the first load
    drops straight back to ≤35 W)
  • stopping nvidia-powerd under load (memory clock and P-state recover, power
    stays low)
  • driver 620.73.04 vs 620.70.06 — identical behaviour

What fixes it: full module re-init, no reboot

Stopping the graphical session, stopping nvidia-powerd, unloading the four
modules and loading them again clears the cap completely, including about a
minute after the replug:

$ systemctl isolate multi-user.target       # compositor must release the DRM nodes
$ systemctl stop nvidia-powerd              # holds /dev/nvidiactl and /dev/nvidia0
$ modprobe -r nvidia_drm nvidia_modeset nvidia_uvm nvidia
$ modprobe nvidia && modprobe nvidia_drm modeset=1
$ systemctl start nvidia-powerd

# no new NV_ERR_INVALID_DATA assertions during the reload

$ nvidia-smi --query-gpu=power.draw,clocks.sm,pstate --format=csv,noheader
134.31 W, 2550 MHz, P0
134.78 W, 2550 MHz, P0
135.06 W, 2550 MHz, P0

Verified three times. Requirements: the compositor must be stopped rather than
merely VT-switched, and nvidia-powerd must be stopped first because it holds
/dev/nvidiactl and /dev/nvidia0 without appearing in nvidia-smi's process
list.

The observation I think matters

The re-init succeeds immediately after the replug and logs no new assertion,
so at that moment the SBIOS is returning a valid platform power mode — the same
query that failed at the transition and again when the GPU was first loaded
afterwards. Two consequences:

  1. the firmware answer is not permanently broken; and
  2. the driver does not retry the query once it has failed, so a transient failure
    becomes a persistent ≤35 W ceiling until the module is reloaded.

If that reading is correct, retrying the platform-mode query (or treating a
failed one as recoverable instead of latching a power ceiling) would resolve this
class of report on platforms whose firmware answers badly during an AC
transition.

Related reports

The table at the top covers the other affected machines. Two further items matter
for triage:

  • #1360 — assertion-only report, described there as "boot-only cosmetic". On
    these machines the assertions are not cosmetic: they accompany a 5× power cap.
  • PR #1402 skips the init-time system-limit update, which removes the assertion
    lines but not the cap. PR #1531 re-reads the dynamic budget on
    Notify(NPCF, 0xC0); its description states that an invalid SBIOS answer is
    unchanged, which is the state here.

Developer-forum threads, all with the same assertions:

Attachments

  • nvidia-bug-report.log.gz — captured while latched: 16.09 W, 100 %
    utilization, P0, 2175 MHz, 43 °C, Idle: Active, Current Power Limit 133.16 W, 28 NV_ERR_INVALID_DATA assertions.

I can provide acpidump, a healthy-state report for comparison, or test a
candidate patch on this machine (Ada, hybrid, both triggers reproduce on demand).

Langage dominant
C
Étoiles
17.7k
Forks
2k
Métriques de merge des PR
Aucune PR mergée en 30 j

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de NVIDIA/open-gpu-kernel-modules

Toutes les issues de NVIDIA/open-gpu-kernel-modules

Issues similaires

Plus d'issues C

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.