drm/amd/powerplay: revise the outputs layout of amdgpu_pm_info debugfs
authorEvan Quan <evan.quan@amd.com>
Tue, 14 Jul 2020 06:25:39 +0000 (14:25 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Jul 2020 20:22:37 +0000 (16:22 -0400)
commit81b41ff5d287bc2346ee7ffb544ace3557f05642
tree0b356cf2f6fb69ddcbea29b1e27d7baff8189d0c
parent1df67a4ecedd34046a867afa6b29c12baf03cd25
drm/amd/powerplay: revise the outputs layout of amdgpu_pm_info debugfs

The current outputs of amdgpu_pm_info debugfs come with clock gating
status and followed by current clock/power information. However the
clock gating status retrieving may pull GFX out of CG status. That
will make the succeeding clock/power information retrieving inaccurate.

To overcome this and be with minimum impact, the outputs are updated
to show current clock/power information first.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c