]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amd/pm: fix the issue of size calculation error for smu 13.0.6
authorYang Wang <kevinyang.wang@amd.com>
Mon, 27 Oct 2025 07:22:54 +0000 (15:22 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 4 Nov 2025 16:52:46 +0000 (11:52 -0500)
commit8f94d5d0d7ec2af5c583ca6666acfc8f4413a850
tree9e352c0ccdd4a28c3e62659f6cefd83a3b7c6b35
parent87208c10683930fbc066e6fe3b6111a0ab67bd04
drm/amd/pm: fix the issue of size calculation error for smu 13.0.6

v1:
the driver should handle return value of smu_v13_0_6_printk_clk_levels()
to return the correct size for sysfs reads.

v2:
fix the issue of size calculation error in smu_v13_0_6_print_clks()

Fixes: cdfdec6f1608 ("drm/amd/pm: Avoid writing nulls into `pp_od_clk_voltage`")
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/smu13/smu_v13_0_6_ppt.c