drm/amdgpu/sriov:Correct pfvf exchange logic
authorEmily Deng <Emily.Deng@amd.com>
Sat, 29 Dec 2018 09:46:05 +0000 (17:46 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Feb 2019 09:25:39 +0000 (10:25 +0100)
commitf749f9702c9885c9fb48b78e8e74b43ecb857845
tree396cb13403a44d123311d5ea7c68c2b96200cc33
parentbdd8fd8a2efe3be7c67d38568f65a3e88a93cb59
drm/amdgpu/sriov:Correct pfvf exchange logic

[ Upstream commit b8cf66182eddb22e9c7539821ed6eecdb4f86d1a ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c