drm/amdgpu: value of amdgpu_sriov_vf cannot be set into F32_POLL_ENABLE
authorWentao Lou <Wentao.Lou@amd.com>
Thu, 25 Apr 2019 04:43:04 +0000 (12:43 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 29 Apr 2019 19:57:40 +0000 (14:57 -0500)
commitedf1e0008264ca7ad70d13576d7f204c1cf5abab
tree4779913717a30b4c4b4fb34be68ec8d21e579ad1
parentbeac93e6f8101227df2e48d789bde7b6a0895e29
drm/amdgpu: value of amdgpu_sriov_vf cannot be set into F32_POLL_ENABLE

amdgpu_sriov_vf would return 0x0 or 0x4 to indicate if sriov.
but F32_POLL_ENABLE need 0x0 or 0x1 to determine if enabled.
set 0x4 into F32_POLL_ENABLE would make SDMA0_GFX_RB_WPTR_POLL_CNTL not working.

Signed-off-by: Wentao Lou <Wentao.Lou@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c