linux/drivers/gpu/drm/amd/pm
Yang Wang 28922a43fd 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>
(cherry picked from commit ab4905d466b60f170d85e19ca2a5d2b159aeb780)
Cc: stable@vger.kernel.org
2026-03-24 13:54:42 -04:00
..
inc drm/amd/pm: add smu ras driver framework 2025-11-04 11:53:58 -05:00
legacy-dpm drm/amdgpu: apply state adjust rules to some additional HAINAN vairants 2026-03-17 18:04:03 -04:00
powerplay Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00
swsmu drm/amd/pm: disable OD_FAN_CURVE if temp or pwm range invalid for smu v14 2026-03-24 13:54:42 -04:00
Makefile drm/amd: Enable SMU 15_0_0 support 2026-01-08 11:41:42 -05:00
amdgpu_dpm.c drm/amd/pm: fix race in power state check before mutex lock 2026-01-27 18:11:27 -05:00
amdgpu_dpm_internal.c drm/amd/pm: Remove unneeded legacy DPM related code. 2025-09-15 16:52:50 -04:00
amdgpu_pm.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00