]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/pm: don't update runpm last_usage on debugfs getter
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Mon, 16 Sep 2024 14:35:15 +0000 (16:35 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 7 Oct 2024 18:03:45 +0000 (14:03 -0400)
commitef532206a94357de1fbd259364265e7e0758d8af
treee32ac6fa9c725991da4dacd55529a54672691a0d
parent90b97b16e1ab5b455649477373f05839c5d20951
drm/amd/pm: don't update runpm last_usage on debugfs getter

Reading pm values from the GPU shouldn't prevent it to be suspended
by resetting the last active timestamp (eg: if an background app
monitors GPU sensors every second, it would prevent the autosuspend
sequence to trigger).

Tested-by: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Kenneth Feng <kenneth.feng@amd.com>
Signed-off-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/amdgpu_pm.c