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 @@ -752,12 +752,13 @@ static int gt_reset(struct xe_gt *gt)
752
752
753
753
xe_gt_info (gt , "reset started\n" );
754
754
755
+ xe_pm_runtime_get (gt_to_xe (gt ));
756
+
755
757
if (xe_fault_inject_gt_reset ()) {
756
758
err = - ECANCELED ;
757
759
goto err_fail ;
758
760
}
759
761
760
- xe_pm_runtime_get (gt_to_xe (gt ));
761
762
xe_gt_sanitize (gt );
762
763
763
764
err = xe_force_wake_get (gt_to_fw (gt ), XE_FORCEWAKE_ALL );
@@ -792,11 +793,11 @@ static int gt_reset(struct xe_gt *gt)
792
793
XE_WARN_ON (xe_force_wake_put (gt_to_fw (gt ), XE_FORCEWAKE_ALL ));
793
794
err_msg :
794
795
XE_WARN_ON (xe_uc_start (& gt -> uc ));
795
- xe_pm_runtime_put (gt_to_xe (gt ));
796
796
err_fail :
797
797
xe_gt_err (gt , "reset failed (%pe)\n" , ERR_PTR (err ));
798
798
799
799
xe_device_declare_wedged (gt_to_xe (gt ));
800
+ xe_pm_runtime_put (gt_to_xe (gt ));
800
801
801
802
return err ;
802
803
}
You can’t perform that action at this time.
0 commit comments