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
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 12/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- c, linux
- Lĩnh vực
- devtools, operating-systems
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- C
- Star
- 17.7k
- Fork
- 2k
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của NVIDIA/open-gpu-kernel-modules
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
NVIDIA/open-gpu-kernel-modules#1635 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
nvidia-drm: NULL dereference in nv_drm_create_sync_file() when sync_file_create() fails (kernel oops when fs.file-max is exhausted)Có thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
NVIDIA/open-gpu-kernel-modules#1601 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
NVIDIA/open-gpu-kernel-modules#1479 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
PlatformRequestHandler: missing !bInit guard on bSystemParamLimitUpdate causes NV_ERR_INVALID_DATA at bootCó thể đã có người làm @SammyTourani đã nhận 69 ngày trước. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
NVIDIA/open-gpu-kernel-modules#1360 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
NVIDIA/open-gpu-kernel-modules#1343 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của NVIDIA/open-gpu-kernel-modules
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Jstar269/nakagawa-recomp#3753 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
ly05010419/MacNativeGames#2474 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Life-Framework/Life-Framework#7017 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
gjrtimmer/jetson-nvmpi#170 ·