Skip to content

Commit dade58e

Browse files
yanzhao56zhenyw
authored andcommitted
drm/i915/gvt: do not deliver a workload if its creation fails
in workload creation routine, if any failure occurs, do not queue this workload for delivery. if this failure is fatal, enter into failsafe mode. Fixes: 6d76303 ("drm/i915/gvt: Move common vGPU workload creation into scheduler.c") Cc: [email protected] rib#4.19+ Cc: [email protected] Signed-off-by: Yan Zhao <[email protected]> Signed-off-by: Zhenyu Wang <[email protected]>
1 parent 26cdaac commit dade58e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/gpu/drm/i915/gvt/scheduler.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -1486,8 +1486,9 @@ intel_vgpu_create_workload(struct intel_vgpu *vgpu, int ring_id,
14861486
intel_runtime_pm_put_unchecked(dev_priv);
14871487
}
14881488

1489-
if (ret && (vgpu_is_vm_unhealthy(ret))) {
1490-
enter_failsafe_mode(vgpu, GVT_FAILSAFE_GUEST_ERR);
1489+
if (ret) {
1490+
if (vgpu_is_vm_unhealthy(ret))
1491+
enter_failsafe_mode(vgpu, GVT_FAILSAFE_GUEST_ERR);
14911492
intel_vgpu_destroy_workload(workload);
14921493
return ERR_PTR(ret);
14931494
}

0 commit comments

Comments
 (0)