diff options
| author | Ilya Zlobintsev <ilya.zlobintsev@gmail.com> | 2025-10-13 19:30:42 +0300 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2025-10-20 18:25:17 -0400 |
| commit | cdfdec6f1608b4830eeb1ae6c89d3eec91673807 (patch) | |
| tree | 2005c555314ded60c8e7d378a9a2d9694a5916d4 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
| parent | 8c62f75cb7e9016678c28a10638107515f8b2ad2 (diff) | |
drm/amd/pm: Avoid writing nulls into `pp_od_clk_voltage`
Calling `smu_cmn_get_sysfs_buf` aligns the
offset used by `sysfs_emit_at` to the current page boundary, which was
previously directly returned from the various `print_clk_levels`
implementations to be added to the buffer position.
Instead, only the relative offset showing how much was written
to the buffer should be returned, regardless of how it was changed
for alignment purposes.
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Ilya Zlobintsev <ilya.zlobintsev@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
0 files changed, 0 insertions, 0 deletions