AMD General

[PATCH] drm/amd/pm: fix amdgpu_pm_info power display units

Kindly review and verify this patch.

Best Regards,
Kevin
From: amd-gfx <[email protected]> On Behalf Of Zdeněk 
Kopřivík
Sent: Wednesday, June 17, 2026 06:02
To: [email protected]
Subject: [BUG] Zero-fill formatting error for GPU power metrics in 
amdgpu_pm_info

Some people who received this message don't often get email from 
[email protected]<mailto:[email protected]>. Learn why this is 
important<https://aka.ms/LearnAboutSenderIdentification>
Hello,
I noticed a minor string-formatting issue in the 'amdgpu_pm_info' debugfs 
output when reading power consumption of my Radeon 780M.

The output fails to zero-fill the fractional portion of the Wattage readout to 
3 decimal places. For example, when the hardware returns a value corresponding 
to 3.084 W (3084 mW), the driver seems to format it as "3.84 W" instead of 
"3.084 W".

System Info:
- GPU: AMD Radeon 780M (gfx1103)
- Kernel Version: 7.0

Kind regards,
Zdenek

Reply via email to