]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amd/pm: disable OD_FAN_CURVE if temp or pwm range invalid for smu v14
authorYang Wang <kevinyang.wang@amd.com>
Thu, 19 Mar 2026 07:36:50 +0000 (03:36 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 24 Mar 2026 17:30:20 +0000 (13:30 -0400)
commitab4905d466b60f170d85e19ca2a5d2b159aeb780
treed10b2b0f822ac0e54542a5dd4abe3d9b5202e95e
parent19d4149b22f57094bfc4b86b742381b3ca394ead
drm/amd/pm: disable OD_FAN_CURVE if temp or pwm range invalid for smu v14

Forcibly disable the OD_FAN_CURVE feature when temperature or PWM range is invalid,
otherwise PMFW will reject this configuration on smu v14.0.2/14.0.3.

example:
$ sudo cat /sys/bus/pci/devices/<BDF>/gpu_od/fan_ctrl/fan_curve

OD_FAN_CURVE:
0: 0C 0%
1: 0C 0%
2: 0C 0%
3: 0C 0%
4: 0C 0%
OD_RANGE:
FAN_CURVE(hotspot temp): 0C 0C
FAN_CURVE(fan speed): 0% 0%

$ echo "0 50 40" | sudo tee fan_curve

kernel log:
[  969.761627] amdgpu 0000:03:00.0: amdgpu: Fan curve temp setting(50) must be within [0, 0]!
[ 1010.897800] amdgpu 0000:03:00.0: amdgpu: Fan curve temp setting(50) must be within [0, 0]!

Signed-off-by: Yang Wang <kevinyang.wang@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c