drm/amd/display: add sysfs entry to read PSR residency from firmware
authorShirish S <shirish.s@amd.com>
Fri, 10 Mar 2023 06:24:17 +0000 (11:54 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 13 Mar 2023 21:27:48 +0000 (17:27 -0400)
commit22f1482aff4aee39e5f3354808bc099084c2b64b
tree46fca15afc18f251fed4c2796a007066e607b2c8
parentdcaf5000b054935780db718ecff8cafe6c183df8
drm/amd/display: add sysfs entry to read PSR residency from firmware

[Why]
Currently there aren't any methods to determine PSR state residency.

[How]
create a sysfs entry for reading residency and internally hook it up
to existing functionality of reading PSR residency from firmware.

[Hamza: dropped the link.h include and made checkpatch happy]

Signed-off-by: Shirish S <shirish.s@amd.com>
Signed-off-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c