OSDN Git Service

drm/amdgpu/sriov: No need the event 3 and 4 now
authorEmily Deng <Emily.Deng@amd.com>
Mon, 2 Dec 2019 17:53:10 +0000 (01:53 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 2 Dec 2019 22:39:28 +0000 (17:39 -0500)
As will call unload kms when initialize fail, and the unload kms will
send event 3 and 4, so don't need event 3 and 4 in device init.

Signed-off-by: Emily Deng <Emily.Deng@amd.com>
Reviewed-by: Zhan Liu <zhan.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

index baee37c..dd46199 100644 (file)
@@ -3018,8 +3018,6 @@ fence_driver_init:
                }
                dev_err(adev->dev, "amdgpu_device_ip_init failed\n");
                amdgpu_vf_error_put(adev, AMDGIM_ERROR_VF_AMDGPU_INIT_FAIL, 0, 0);
-               if (amdgpu_virt_request_full_gpu(adev, false))
-                       amdgpu_virt_release_full_gpu(adev, false);
                goto failed;
        }