drm/amd: Add a new hwmon attribute for instantaneous power
authorMario Limonciello <mario.limonciello@amd.com>
Thu, 10 Aug 2023 10:31:55 +0000 (05:31 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Aug 2023 22:08:29 +0000 (18:08 -0400)
commitbb9f7b6826257390a847abb39c719dca0de41a18
tree612ddbd542431989f3c379c6dc0f9b6b884dfef6
parentd117fd296456b0b754fe6819a68ba883c4f46d1c
drm/amd: Add a new hwmon attribute for instantaneous power

Some GPUs provide support for current power, some average power,
and some both.  To be able to support all these combinations,
introduce a new attribute.

Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/amdgpu_pm.c