620.70.06: platform power mode unreadable (NV_ERR_INVALID_DATA at platform_request_handler_ctrl.c:2118), GPU stuck at base clock; 615.78.08 clean on same BIOS
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
- 12/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- Active
- Stack technique
- c, linux
- Domaine
- devtools, operating-systems
Piste de recherche
Start in src/nvidia/src/kernel/platform/platform_request_handler_ctrl.c around lines 1428 and 2113-2120, where NV_ERR_INVALID_DATA from pfmreqhndlrGetPerfSensorCounterById_IMPL() is treated as fatal in _pfmreqhndlrUpdatePpmdLimit(). Then compare the dsmOrderOfPrecedenceList and DSMCalls[] changes in src/nvidia/src/kernel/platform/acpi_common.c between 615.78.08 and 620.70.06. Done means identifying why the NVPCF_3X entry changes DSM selection on this platform, which needs firmware and driver knowledge beyond a newcomer's reach.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Summary
On 620.70.06 the open module cannot read the platform power mode from the firmware: pfmreqhndlrGetPerfSensorCounterById() returns NV_ERR_INVALID_DATA for PFM_REQ_HNDLR_PPMD_SENSOR, _pfmreqhndlrUpdatePpmdLimit() asserts at platform_request_handler_ctrl.c:2118 and bails before emitting NV2080_NOTIFIERS_PLATFORM_POWER_MODE_CHANGE. nvidia-powerd therefore keeps whatever power budget it applied last, and the GPU sits at base clock under load with SW Power Cap and SW Thermal Slowdown both flagged as active at ~59 °C against an 87 °C target. Restarting nvidia-powerd restores clocks immediately (1050 MHz -> ~2520 MHz, 19 W -> 55 W) without any firmware or thermal change.
615.78.08 on the same kernel and the same BIOS produced 1 assertion per boot. 620.70.06 produces hundreds per boot and continues at ~1/s while the machine is idle.
Environment
| Laptop | Lenovo LOQ 15APH8 (82XT), board LNVNB161216 |
| BIOS | LYCN46WW, 06/30/2025 |
| dGPU | NVIDIA GeForce RTX 4050 Laptop GPU, 10de:28e1, VBIOS 95.07.22.00.50, 5-95 W |
| iGPU | AMD Phoenix1 |
| Kernel | 7.3.4-1-cachyos |
| Driver | 620.70.06, open kernel modules, built from tag 620.70.06 (locally built DKMS) |
| Previous driver | 615.78.08, open kernel modules, same kernel, same BIOS, same machine |
Regression boundary (assertions per boot)
journalctl -k -b -1..-9 | rg -c 'failed to get platform power mode from SBIOS':
| Driver | Assertions per boot |
|---|---|
| 615.78.08 | 1, 1, 1 (three boots) |
| 620.70.06 | 590, 20568, 8234, 9598, 15042, 18115, 1905 |
Current boot (17 min uptime, GPU idle): 874.
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
Driver-side path
620.70.06 src/nvidia/src/kernel/platform/platform_request_handler_ctrl.c:
:1428-1431–pfmreqhndlrGetPerfSensorCounterById_IMPL()returnsNV_ERR_INVALID_DATA(the documented "counter is not available" code) when the cache entry is neitherbSupportednorbVolatile.:2113-2120–_pfmreqhndlrUpdatePpmdLimit()treats that same return as fatal: assert, thengoto exitwithout fillingppmMaskCurrent/ppmIdxCurrentand withoutgpuNotifySubDeviceEvent(NV2080_NOTIFIERS_PLATFORM_POWER_MODE_CHANGE).pfmreqhndlrHandleStatusChangeEvent()(:1489+) calls_pfmreqhndlrCallPshareStatus()and asserts on failure, so the status-change path is also degraded.
Net effect: the sensor that carries the platform's power-mode index is marked unavailable, so no client is ever told that the AC/DC budget changed, and nvidia-powerd keeps its previous decision.
Firmware side (this machine's own ACPI tables)
Dumping DSDT + SSDT* (acpidump, iasl -d) shows the platform does implement the interface; this is not a BIOS that lacks it:
\_SB.NPCF(HIDNVDA0820) exposes_DSMUUID36b49710-2483-11e7-9598-0800200c9a66, requires revision (Arg1)0x0200, and implements sub-functions0x00,0x02,0x04,0x05,0x07,0x0Aincluding a 6-element capability buffer and a 49-byte (0x31) power-budget payload.- A second platform DSM implements the GPS/PRH sub-functions
0x00(FUNC_SUPPORT),0x13,0x20(PSHARESTATUS) and0x2A(PSHAREPARAMS), with different return sizes for revision0x0100and0x0200.
With ACPI debug enabled (/sys/module/acpi/parameters/debug_level = 0xE), both are called continuously at ~2 Hz:
NVPCF DSM sub-func#1
NVPCF DSM sub-func#2
NV GPS DSM
The NVPCF calls reach implemented sub-functions; the GPS/PRH one is entered and returns without reaching any of its implemented cases (0x00, 0x13, 0x20, 0x2A), which is what an unsupported revision or sub-function probe looks like from the firmware side.
615 -> 620 source delta in this subsystem
git diff 615.78.08 620.70.06 -- src/nvidia/src/kernel/platform/ for the platform request handler is a pure rename (GPS_* -> PFM_REQ_HNDLR_*, ACPI_DSM_FUNCTION_GPS* -> ACPI_DSM_FUNCTION_PRH*); no logic changes. The behavioural delta is in src/nvidia/src/kernel/platform/acpi_common.c:
ACPI_DSM_FUNCTION_NVPCF_3Xis added todsmOrderOfPrecedenceList(afterNVPCF_2X, beforeNVPCF).genDsmSubFuncRemapTablegrows a column for it (all zero), andACPI_DSM_FUNCTION_GPS/GPS_2XbecomePRH/PRH_2XinDSMCalls[], the remap table andgetDsmGetObjectSubfunction().ACPI_DSM_FUNCTION_NVPCF_3Xis appended to the enum beforeACPI_DSM_FUNCTION_COUNT.
Hypothesis (not yet proven): the new NVPCF_3X entry changes which DSM is selected/remapped on this platform, so the driver ends up querying the NVPCF interface where 615 used GPS/PRH, and the sensor capability parse that feeds PFM_REQ_HNDLR_PPMD_SENSOR no longer succeeds. That would explain both the assert storm and the ACPI trace above. I have not isolated the exact selection decision.
Reproduction
- Boot 620.70.06 on this machine (battery or AC).
sleep 60; journalctl -k -b | rg -c 'failed to get platform power mode'-> dozens.- Put the dGPU under load (
nvidia-smi dmon, or any 3D workload) ->P4, ~1050 MHz, ~19 W against an 83.7 W limit,SW Power Cap+SW Thermal Slowdownactive. systemctl restart nvidia-powerd-> clocks jump to ~2520 MHz and the flags clear; the assertion storm stops.
Ask
- Is the
NVPCF_3Xprecedence entry the intended cause here, or is there a platform capability that should gate it? - Is
_pfmreqhndlrUpdatePpmdLimit()supposed to treat "counter unavailable" as a permanent state, or should it re-query support / re-sample (the counter clearly becomes available again afternvidia-powerdrestarts on this machine)? - Happy to build and test a patch against 620.70.06 on this exact machine, and to submit a PR if you want the change proposed that way.
I can provide the full nvidia-bug-report.sh output and the decoded ACPI tables on request.
- 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
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de NVIDIA/open-gpu-kernel-modules
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
NVIDIA/open-gpu-kernel-modules#1635 ·
Les mainteneurs répondent en général sous 1 jour
-
nvidia-drm: NULL dereference in nv_drm_create_sync_file() when sync_file_create() fails (kernel oops when fs.file-max is exhausted)Peut-être à nouveau libre Une pull request pour cette issue a été fermée sans être fusionnée. Ouvertebug
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
NVIDIA/open-gpu-kernel-modules#1601 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
NVIDIA/open-gpu-kernel-modules#1479 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
PlatformRequestHandler: missing !bInit guard on bSystemParamLimitUpdate causes NV_ERR_INVALID_DATA at bootPeut-être pris @SammyTourani l’a pris il y a 69 jours. Ouverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 88/100
NVIDIA/open-gpu-kernel-modules#1360 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
NVIDIA/open-gpu-kernel-modules#1343 · 3 commentaires ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de NVIDIA/open-gpu-kernel-modules
Issues similaires
-
iOS: the "Edit controls" button never hides, even with a controller connected, and covers the gameOuvertegame: 010065A014024000 ios
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
seedds/nxnative#3714 · 1 commentaire ·
Les mainteneurs répondent en général sous 2 jours
-
area/docdb kind/enhancement mvu-pg15-pg19 priority/low
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
yugabyte/yugabyte-db#40355 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
Les mainteneurs répondent en général sous 1 jour
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
Jstar269/nakagawa-recomp#3753 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 72/100
ly05010419/MacNativeGames#2474 ·
Les mainteneurs répondent en général sous 1 jour