]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amdgpu: release exclusive mode after hw_init
authorpding <Pixel.Ding@amd.com>
Mon, 6 Nov 2017 03:21:55 +0000 (11:21 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 4 Dec 2017 21:41:44 +0000 (16:41 -0500)
Signed-off-by: pding <Pixel.Ding@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c

index 6636fa25aaf5df551f860a007db02f21a3e68549..ddb50c48cb063b23a2d156a627f2100ca7c2e51e 100644 (file)
@@ -1790,6 +1790,10 @@ static int amdgpu_init(struct amdgpu_device *adev)
        }
 
        amdgpu_amdkfd_device_init(adev);
+
+       if (amdgpu_sriov_vf(adev))
+               amdgpu_virt_release_full_gpu(adev, true);
+
        return 0;
 }
 
index 252d41d5ff562cb218097b8300092e71f1cacb51..9ed1bee0fd64851d0e2adea171967beb711f4985 100644 (file)
@@ -177,9 +177,6 @@ retry_init:
                pm_runtime_put_autosuspend(dev->dev);
        }
 
-       if (amdgpu_sriov_vf(adev))
-               amdgpu_virt_release_full_gpu(adev, true);
-
 out:
        if (r) {
                /* balance pm_runtime_get_sync in amdgpu_driver_unload_kms */