]> git.itanic.dy.fi Git - linux-stable/commit
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)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 15 Jan 2024 23:31:24 +0000 (18:31 -0500)
commitd02069850fc102b07ae923535d5e212f2c8a34e9
tree2404a080a746069b20364ffbdb4f6b4e27ffddc5
parent25852d4b97572ff62ffee574cb8bb4bc551af23a
drm/amdgpu: fall back to INPUT power for AVG power via INFO IOCTL

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>
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c