7900 XTX unable to set power1_cap
Posting a new issue as the others are for different cards and are a year old.
See: #1812, #1657
Brief summary of the problem:
Reporting in that I get an error when trying to set the power limit for a 7900 XTX.
The default limit is 291w, whereas the TDP of the card should be 355w.
Hardware description:
- CPU:
AMD Ryzen 7 5800X (16) @ 3.8GHz
- GPU:
0f:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 31 [Radeon RX 7900 XT/7900 XTX] [1002:744c] (rev c8)
- System Memory:
32047MiB
- Display(s):
3840x2160 @ 144.00Hz, 3840x2160 @ 144.00Hz
- Type of Display Connection:
2x DP 1.4a DSC
System information:
- Distro name and Version:
Gentoo Linux x86_64
- Kernel version:
Linux gentoo 6.1.7-zen1-znver3-o3-pds #1 ZEN SMP PREEMPT_DYNAMIC Wed Jan 18 15:35:26 EST 2023 x86_64 AMD Ryzen 7 5800X 8-Core Processor AuthenticAMD GNU/Linux
- Custom kernel:
zen-sources
- AMD official driver version:
media-libs/mesa-22.3.3, sys-devel/llvm-15.0.7
How to reproduce the issue:
- Attempt to set
power1_cap
- Fail
$ pwd
/sys/class/drm/card0/device
$ cat hwmon/hwmon6/power1_cap_max
611000000
$ cat hwmon/hwmon6/power1_cap
291000000
$ echo 355000000 > hwmon/hwmon6/power1_cap
bash: echo: write error: Input/output error
The above commands were run as root
.
dmesg output:
amdgpu 0000:0f:00.0: amdgpu: [smu_v13_0_set_power_limit] Set power limit Failed!
Edited by kzd