OSDN Git Service

drm/amdgpu: enable WPTR_POLL_ENABLE for sriov on sdma_v6_0
authorHorace Chen <horace.chen@amd.com>
Thu, 21 Jul 2022 04:18:18 +0000 (12:18 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 1 Sep 2022 19:11:06 +0000 (15:11 -0400)
commitafb50906cf029a40b713c60d8800d3ee25ebe03d
treedb3b6ad461b3e36a6d7d016d437daef3598d5663
parentca4ba3394e2aebcee123055a1275980940f21598
drm/amdgpu: enable WPTR_POLL_ENABLE for sriov on sdma_v6_0

[Why]
Under SR-IOV, if VF is switched out then its doorbell will be disabled,
SDMA rely on WPTR_POLL to get doorbells which was sent during VF
switched-out time.

[How]
For SR-IOV, set SDMA WPTR_POLL_ENABLE to 1.

Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Horace Chen <horace.chen@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c