drm/amdgpu: disable SDMA WPTR_POLL_ENABLE for SR-IOV
authorHorace Chen <horace.chen@amd.com>
Tue, 25 Apr 2023 05:15:32 +0000 (13:15 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 4 May 2023 03:10:02 +0000 (23:10 -0400)
commit100bd00881f8553d0ccfc99a575966d990c455eb
treeba3e3ec9990dfa2e5876d159ef23e0d3d840d295
parent2397e3d8d2e120355201a8310b61929f5a8bd2c0
drm/amdgpu: disable SDMA WPTR_POLL_ENABLE for SR-IOV

[Why]
This WPTR_POLL_ENABLE is a hardware contigious polling which will cause
FCLK and UCLK to keep on a high level.
Mostly its case can be covered by F32_WPTR_POLL_ENABLE which polls by
firmware.
So to save power, SR-IOV also needs to disable this bit

Signed-off-by: Horace Chen <horace.chen@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c