From: Emily Deng Date: Mon, 2 Dec 2019 17:53:10 +0000 (+0800) Subject: drm/amdgpu/sriov: No need the event 3 and 4 now X-Git-Tag: v5.6-rc1~114^2~21^2~116 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0ea203a91247082f1294e6aa6e7802914665da50;p=thirdparty%2Fkernel%2Flinux.git drm/amdgpu/sriov: No need the event 3 and 4 now 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 Reviewed-by: Zhan Liu Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index baee37c923526..dd46199287d8b 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c @@ -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; }