drm/amdgpu/sriov:Correct pfvf exchange logic
authorEmily Deng <Emily.Deng@amd.com>
Sat, 29 Dec 2018 09:46:05 +0000 (17:46 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 2 Jan 2019 20:24:48 +0000 (15:24 -0500)
commitb8cf66182eddb22e9c7539821ed6eecdb4f86d1a
tree36bbbd9fd552c6177fba3a978888013df430a638
parent048b9b0f5ceefb2691834ac62f8459ebb7d3100e
drm/amdgpu/sriov:Correct pfvf exchange logic

The pfvf exchange need be in exclusive mode. And add pfvf exchange in gpu
reset.

Signed-off-by: Emily Deng <Emily.Deng@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
drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c