drm/amdgpu:re-write sriov_reinit_early/late (v2)
authorMonk Liu <Monk.Liu@amd.com>
Wed, 26 Apr 2017 04:00:49 +0000 (12:00 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 May 2017 21:40:19 +0000 (17:40 -0400)
commit2cb681b6e4e317068153e217948d471f3117baee
tree21d9454ac8e21f94a46327e9fa2ab4cf2b1303d9
parent17b2e332a277bf8a1314bfa58ac17d38b77d3c14
drm/amdgpu:re-write sriov_reinit_early/late (v2)

1,this way we make those routines compatible with the sequence
  requirment for both Tonga and Vega10
2,ignore PSP hw init when doing TDR, because for SR-IOV device
the ucode won't get lost after VF FLR, so no need to invoke PSP
doing the ucode reloading again.

v2: squash in ARRAY_SIZE fix

Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Reviewed-by: Xiangliang Yu <Xiangliang.Yu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c