File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -753,12 +753,13 @@ static int gt_reset(struct xe_gt *gt)
753
753
754
754
xe_gt_info (gt , "reset started\n" );
755
755
756
+ xe_pm_runtime_get (gt_to_xe (gt ));
757
+
756
758
if (xe_fault_inject_gt_reset ()) {
757
759
err = - ECANCELED ;
758
760
goto err_fail ;
759
761
}
760
762
761
- xe_pm_runtime_get (gt_to_xe (gt ));
762
763
xe_gt_sanitize (gt );
763
764
764
765
err = xe_force_wake_get (gt_to_fw (gt ), XE_FORCEWAKE_ALL );
@@ -793,11 +794,11 @@ static int gt_reset(struct xe_gt *gt)
793
794
XE_WARN_ON (xe_force_wake_put (gt_to_fw (gt ), XE_FORCEWAKE_ALL ));
794
795
err_msg :
795
796
XE_WARN_ON (xe_uc_start (& gt -> uc ));
796
- xe_pm_runtime_put (gt_to_xe (gt ));
797
797
err_fail :
798
798
xe_gt_err (gt , "reset failed (%pe)\n" , ERR_PTR (err ));
799
799
800
800
xe_device_declare_wedged (gt_to_xe (gt ));
801
+ xe_pm_runtime_put (gt_to_xe (gt ));
801
802
802
803
return err ;
803
804
}
You can’t perform that action at this time.
0 commit comments