drm/amdgpu: reduce RLC safe mode request for gfx clock gating
authorPrike Liang <Prike.Liang@amd.com>
Mon, 16 Dec 2024 08:37:58 +0000 (16:37 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 6 Jan 2025 19:44:29 +0000 (14:44 -0500)
commit2b11179e1878fafcc5c63de726d1b6b8b281e8e9
tree7a0717905dfeb505ec712837cae5b862a19cd164
parenta5d258a00b41143d9c64880eed35799d093c4782
drm/amdgpu: reduce RLC safe mode request for gfx clock gating

The driver can only request one time for the power safe mode instead of
polling and disabling the power feature each time prior to program the
GFX clock gating control registers. This update will reduce the latency
on the GFX clock gating entry.

Signed-off-by: Prike Liang <Prike.Liang@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c