Commit f14899fd authored by wentalou's avatar wentalou Committed by Alex Deucher

drm/amdgpu: sriov should skip asic_reset in device_init

sriov would meet guest driver load failure,
if calling amdgpu_asic_reset in amdgpu_device_init.
sriov should skip asic_reset in device_init.
Signed-off-by: default avatarWentao Lou <Wentao.Lou@amd.com>
Acked-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 24ba5950
...@@ -2553,7 +2553,7 @@ int amdgpu_device_init(struct amdgpu_device *adev, ...@@ -2553,7 +2553,7 @@ int amdgpu_device_init(struct amdgpu_device *adev,
/* check if we need to reset the asic /* check if we need to reset the asic
* E.g., driver was not cleanly unloaded previously, etc. * E.g., driver was not cleanly unloaded previously, etc.
*/ */
if (amdgpu_asic_need_reset_on_init(adev)) { if (!amdgpu_sriov_vf(adev) && amdgpu_asic_need_reset_on_init(adev)) {
r = amdgpu_asic_reset(adev); r = amdgpu_asic_reset(adev);
if (r) { if (r) {
dev_err(adev->dev, "asic reset on init failed\n"); dev_err(adev->dev, "asic reset on init failed\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment