]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amd/pm: add od table upload error message parsing for smu v14.0.x
authorYang Wang <kevinyang.wang@amd.com>
Fri, 3 Apr 2026 03:52:46 +0000 (23:52 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 17 Apr 2026 18:53:02 +0000 (14:53 -0400)
commit4f2c86c62a0043be59447c1507c81ecdac7bfa55
tree854df013fa7526ced73a92f8661faff72b9731cf
parent79d47bc4c73080aeac971bfc0e687b0cdefbabde
drm/amd/pm: add od table upload error message parsing for smu v14.0.x

parse and print detailed reasons for od table upload failures to
help users understand error causes.

example:
$ echo "0 30 40" | sudo tee fan_curve
$ echo "1 40 30" | sudo tee fan_curve
$ echo "c" | sudo tee fan_curve

kernel log:
[   75.040174] amdgpu 0000:0a:00.0: Failed to upload overdrive table, ret:-5
[   75.040178] amdgpu 0000:0a:00.0: Invalid overdrive table content: OD_FAN_CURVE_PWM_ERROR (13)
[   75.040181] amdgpu 0000:0a:00.0: Failed to upload overdrive table!

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