drm/amd/pm: Add sysfs attribute to get pm metrics
authorLijo Lazar <lijo.lazar@amd.com>
Fri, 29 Sep 2023 06:26:49 +0000 (11:56 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 29 Nov 2023 21:24:02 +0000 (16:24 -0500)
commit223aad1be34e1169ee7210bce05726cc5ef1fd66
treedb0b7694a4a8acd1413a9088338e90c1ef2c6fd6
parentf9a45b76a1883b081fbe15466b11d0264e85d372
drm/amd/pm: Add sysfs attribute to get pm metrics

Add sysfs attribute to read power management metrics. A snapshot is
captured to the buffer when the attribute is read.

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