diff options
author | Monk Liu <Monk.Liu@amd.com> | 2017-11-14 16:56:55 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-12-06 12:47:52 -0500 |
commit | 241361350648adaaa3510410245a66a7c02b2b8e (patch) | |
tree | 8256f8ff17d538e034d2d762724c35c0483636a9 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
parent | a95b0275ffc54131788014f15e7cb7b973201e2e (diff) | |
download | lwn-241361350648adaaa3510410245a66a7c02b2b8e.tar.gz lwn-241361350648adaaa3510410245a66a7c02b2b8e.zip |
drm/amdgpu:show error message if fail on event4
Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index fdce06b5b2b8..636a9138067e 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c @@ -1942,7 +1942,8 @@ static int amdgpu_fini(struct amdgpu_device *adev) } if (amdgpu_sriov_vf(adev)) - amdgpu_virt_release_full_gpu(adev, false); + if (amdgpu_virt_release_full_gpu(adev, false)) + DRM_ERROR("failed to release exclusive mode on fini\n"); return 0; } |