drm/amdgpu:change sequence of SDMA v4 init
authorMonk Liu <Monk.Liu@amd.com>
Fri, 24 Feb 2017 04:06:22 +0000 (12:06 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Mar 2017 03:55:39 +0000 (23:55 -0400)
commitca82a746b0e20a70fc39101ca376a90d26dd1b28
tree9276818ace0483b687cb03715dd238385821fa69
parente09706f46ebecf3ae39996772c0ece12e91d8c45
drm/amdgpu:change sequence of SDMA v4 init

must set minor_update.enable before write smaller value
to wptr/doorbell, so for sriov we need set that register
bit in hw_init period.

this could fix the SDMA ring test fail after guest reboot

Signed-off-by: Monk Liu <Monk.Liu@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