drm/amdgpu/gfx9: use amdgpu_gfx_off_ctrl_immediate() for PG
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 31 Jan 2025 02:25:12 +0000 (21:25 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 13 Feb 2025 02:04:07 +0000 (21:04 -0500)
commit15f00b073c9e3c6f98c6139ba1cc181a2adb3b74
treeca109d6bee99f3e7d3308ce649fd447c8100e0f3
parent250d9769eeee6cfebbafaca3e4f34a907b5b166f
drm/amdgpu/gfx9: use amdgpu_gfx_off_ctrl_immediate() for PG

Use amdgpu_gfx_off_ctrl_immediate() when powergating.
There's no need for the delay in gfx off allow.  The
powergating is dynamically disabled/enabled as for
RV/PCO on compute queues and allowing gfx off again as
soon the job is submitted improves power savings.

Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Suggested-by: Błażej Szczygieł <mumei6102@gmail.com>
Link: https://gitlab.freedesktop.org/drm/amd/-/issues/3861
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c