drm/amdgpu: fall back to INPUT power for AVG power via INFO IOCTL
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 2 Oct 2023 18:43:06 +0000 (14:43 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Jan 2024 23:35:58 +0000 (15:35 -0800)
commit836e236b878a385911db619b38393d624a4d7eae
tree98bc51880c1f1b30b1f8ded83c2b308ad5d66ef3
parent1515db19c4a374f75e6bf5430f9cb9b7e3c2fd0d
drm/amdgpu: fall back to INPUT power for AVG power via INFO IOCTL

[ Upstream commit d02069850fc102b07ae923535d5e212f2c8a34e9 ]

For backwards compatibility with userspace.

Fixes: 47f1724db4fe ("drm/amd: Introduce `AMDGPU_PP_SENSOR_GPU_INPUT_POWER`")
Link: https://gitlab.freedesktop.org/drm/amd/-/issues/2897
Reviewed-by: Yang Wang <kevinyang.wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c